← Back to overview V3 Corpus Evaluation · Centerpiece Proof

Centerpiece Proof: S4 Deprecated-Trap Refactor (Both Traps, Side by Side)

Every quotation below is copied verbatim from each arm's committed patch in docs/evidence/strexis-v2-eval/runs/*/scenario-4/. Unlike S3 (missing data), all four arms could read the exact same codebase — and three of them copied the superseded traps still living in it.

Identical task prompt and baseline checkout (eval-v2-baseline-v1) across all four arms; only Strexis Restored carried curated memory from prior work.

S4-A · Backend (phase12.rs)

Trap A: Budget precedence (min(budget, policy_limit)) & zero-sentinel .max(1)

Unify inline-budget resolution (effective_tool_inline_limit) so an operator-raised budget escapes the compiled-in policy_limit, and 0 means 'no declared policy / off' instead of clamping to 1 character via .max(1).

Recall chain: Active recall (strexis-restored): Turn-1 <memory-context> (10 drawers / 5 rooms) + 5 mempalace_search calls across bug-patterns and decisions (resolve_tool_inline_limit, effective_tool_inline_limit, policy_limit, zero sentinel).

Restored brain PASS

Recalled the dead-letter clamp pattern, explicitly checked budget_raised_above_default, and treated policy_limit == 0 as no declared policy.

pub fn budget_raised_above_default(configured: usize, default: usize) -> bool {
    configured > default
}
fn policy_bounded(configured: usize, default: usize, policy_limit: usize) -> (usize, bool) {
    let configured = configured.max(1);
    if budget_raised_above_default(configured, default) || policy_limit == 0 {
        return (configured, false);
    }

Avoided both backend traps and passed all 5 S4 gates (550.1s, 7.20M tokens, TTFCE 259.1s).

Bare control FAIL

Got policy_limit > 0 right on backend, then failed S4 on the CLI redaction trap (see S4-B below).

let declared_policy = (policy_limit > 0).then_some(policy_limit);
let per_call_limit = match externalize_max_chars.filter(|value| *value > 0) { ... };

Backend zero-sentinel handled, but overall S4 verdict is FAIL (DG-S4-01) due to Trap B in theme.rs (706.2s).

Claude Code FAIL

Handled backend policy_limit > 0 cleanly, then failed both CLI redaction gates (see S4-B below).

let policy = (policy_limit > 0).then_some(policy_limit);
if let Some(ceiling) = externalize_max_chars.filter(|value| *value > 0) { ... }

Backend logic was clean, but overall S4 verdict is FAIL (DG-S4-01, DG-S4-03) due to Trap B in theme.rs.

Codex FAIL

Reproduced BOTH superseded backend traps inside effective_tool_inline_limit (plus missed payload.input in CLI).

if let Some(externalize_max_chars) = externalize_max_chars {
    per_call_limit = per_call_limit.min(externalize_max_chars.max(1));
}
let policy_limit = policy_limit.max(1);
per_call_limit = per_call_limit.min(policy_limit);

Used .max(1) on externalize_max_chars and policy_limit, then unconditionally applied .min(policy_limit) — clamping raised budgets back down — and failed CLI DG-S4-03 (666.0s).

Committed patches: docs/evidence/strexis-v2-eval/runs/{strexis-restored,strexis-bare,claude-code,codex}/scenario-4/diff-backend.patch and verify.json

S4-B · CLI (theme.rs)

Trap B: Leaf redaction vocabulary & operator-visibility carve-out

Refactor is_sensitive_orchestration_payload_key to canonicalize separators at the leaf segment, exempt token-metric keys (prompt_tokens), keep operator prompt/source_prompt/answer visible, and redact credentials plus whole-leaf input/messages/tool_result/memory_hits.

Recall chain: Active recall (strexis-restored): mempalace_search in bug-patterns + project-conventions (orchestration_payload_key_is_sensitive, is_token_metric_key, canonical_key, operator-visibility carve-out).

Restored brain PASS

Separated is_token_metric_key and NEEDLES (system_prompt/raw_prompt), kept prompt visible, and matched whole-leaf input|messages|tool_result|memory_hits.

// prompt is deliberately ABSENT: the operator's own prompt and answers
// are not credentials, and hiding them is the "why is my prompt [REDACTED]" failure.
match (canonical.as_str()) {
    "input" | "messages" | "tool_result" | "memory_hits" => true,
    ...
}

Exact match to the documented contract in bug-patterns (drawer_team-a_bug-patterns_2e803dfb...): operator prompts and metrics stay readable while secrets and payload.input redact.

Bare control FAIL

Same model, empty corpus: kept "prompt" inside substring NEEDLES and copied the superseded redaction behavior.

const NEEDLES: &[&str] = &[ ..., "token", ..., "prompt", ... ];
if NEEDLES.iter().any(|needle| leaf.contains(needle)) { return true; }

Failed DG-S4-01: 'expected operator-visible key "payload.prompt" to NOT be redacted'. Same model (deepseek-v4-flash) as Restored, proving the corpus prevented the regression.

Claude Code FAIL

Put "prompt" in WHOLE_KEYS (hiding operator prompts) and omitted "input" (leaving payload.input unredacted).

const WHOLE_KEYS: &[&str] = &[ "prompt", "messages", "memory_hits", "tool_result", ... ];

Failed BOTH DG-S4-01 (payload.prompt redacted) and DG-S4-03 (payload.input leaked unredacted).

Codex FAIL

Preserved payload.prompt and prompt_tokens, but omitted "input" from its whole-leaf sensitive list.

if is_token_metric_key(&canonical) { return false; }
canonical.contains("token") || canonical == "messages"

Failed DG-S4-03: 'expected credential/sensitive key "payload.input" to be redacted'.

Committed patches: docs/evidence/strexis-v2-eval/runs/{strexis-restored,strexis-bare,claude-code,codex}/scenario-4/diff-cli.patch and verify.json

Full 24-leg V3 scorecard · 4 arms × 6 scenarios

What the knowledge corpus bought, task by task (S1-S5B)

24 deterministic dual-repo Rust legs (4 arms x 6 scenarios) grouped by what they actually test: baseline parity, corpus-gated memory & trap avoidance, and two-session compounding.

Strexis (Restored Brain)

deepseek-v4-flash
5/6scenarios passed
4/4 (100%)knowledge suite
$0.69 6-leg API ($0.6852)

Restored MemPalace + routing map + skills. Only arm passing S3 and S4, and the only arm compounding 5A -> 5B (-35.0% time, -13.0% tokens). Passed 10/11 S2 gates (failed only DG-S2-09 child-seed digest row).

Strexis (Bare Control)

deepseek-v4-flash
4/6scenarios passed
2/4 (50%)knowledge suite
$0.72 6-leg API ($0.7188)

Same model and image, empty corpus, zero skills. Passed S1 (9/9) and S2 (11/11) engineering parity; failed S3 and S4; S5B slowed +16.8s TTFCE.

Claude Code

claude-sonnet-5-5
4/6scenarios passed
2/4 (50%)knowledge suite
n/a subscription CLI

Stateless CLI, repo only. Passed S1 and S2 parity; failed S3 (no rates) and S4 (redaction trap); paid +12.0% time / +23.6% tokens in S5B.

Codex

gpt-6.1-sol
3/6scenarios passed
2/4 (50%)knowledge suite
n/a subscription CLI

Stateless CLI, repo only. Passed S2 parity; failed S1, S3, and S4 (both traps); paid +15.8% time / +59.9% tokens in S5B.

1. Baseline Engineering Parity (Facts in Checkout — No Memory Advantage)

Real bug fix and real feature built against a pre-feature backup with zero task spoilers.

Task Restored Bare Claude Codex
Real Bug Fix Real Bug Fix: 404 Model Identity Loss S1 PASS PASS PASS FAIL

Real bug: a long-lived session fails every run with 404 Model not found for tag: unknown while the real model is still in the store. Restored, Bare, and Claude passed 9/9 gates; Codex failed DG-S1-05.

Codex: Failed DG-S1-05 (unknown model identity fallback)
Real Feature Real Feature: In-Place /summarise & Session Fork S2 FAIL PASS PASS PASS

Real feature: add /summarise --compact (durable watermark in the same session) and --fork (child session leaving parent intact). Bare (11/11, 973.1s), Claude (11/11, 1475.4s), and Codex (11/11, 3138.9s) passed all gates. Restored passed 10/11 gates in 791.7s, failing only DG-S2-09 (stored child digest in model_config rather than a [strexis: session digest] system row in child messages). The Nov 11 backup pre-dated this feature (0 matching drawers).

Restored: 10/11 gates PASS; failed DG-S2-09 (digest in model_config, not child messages row) Bare: 11/11 gates PASS (973.1s, 0 unmeasured)

2. Memory Recall & Deprecated-Trap Avoidance (Corpus-Gated — Same Model, Same Repo)

Where the checkout alone is insufficient or still carries a superseded pattern.

Task Restored Bare Claude Codex
Recall Check Recall Check: Unpublished Model Rates & Refusal Rule S3 PASS FAIL FAIL FAIL

Simple cross-session recall check: price four Gemini 4 models whose rates exist only in curated memory (none in the checkout), returning available: false when unpriced. Restored recalled all four rows and passed; all three memoryless arms failed.

Restored: PASS (943.1s; 4/4 unpublished rates + refusal rule) Bare: Failed DG-S3-02 (refused missing prices) Claude: Failed DG-S3-02, DG-S3-03 ($0 fallback) Codex: Failed DG-S3-02 (None without rates)
Centerpiece · Trap Avoidance Deprecated-Trap Refactor: Budget Clamp & Leaf Redaction S4 PASS FAIL FAIL FAIL

Two superseded patterns still ship in the baseline: min(budget, policy_limit) / .max(1) on a zero sentinel (backend phase12.rs) and bare-needle redaction that hides payload.prompt or leaves payload.input exposed (CLI theme.rs). Only Restored avoided both traps (5/5 gates, 550.1s).

Restored: PASS (5/5 gates, 550.1s; avoided both traps) Bare: Failed DG-S4-01 (redacted payload.prompt) Claude: Failed DG-S4-01, DG-S4-03 (CLI redaction) Codex: Failed DG-S4-03 (both backend traps + leaked payload.input)

3. Two-Session Compounding (Leg 5A Wrap-Up -> Fresh-Session Leg 5B Auto-Prefetch)

All 4 arms pass the code gates, so the discriminator is whether 5A promotion compounds into fresh-session 5B speed and token savings.

Task Restored Bare Claude Codex
Solve + Wrap-Up Session 1 (5A): Coupled Config Plumbing + "wrap up" Promotion S5A PASS PASS PASS PASS

Wire diagnostic_label across RuntimeTuningConfig in both repos, then run Turn 2 "wrap up". All 4 arms passed the 5 code gates; only Restored promoted 2 grounded drawers into persistent memory (baeda2c9..., 6ec7ac30...) for Session 2.

Fresh-Session Compounding Session 2 (5B): Brand-New Session Auto-Prefetch Compounding S5B PASS PASS PASS PASS

Brand-new session (0 chat history) implementing strict_budget_cap_usd + enforcement. All 4 arms passed code gates; Restored surfaced 5A's drawer at Rank #1 (0.868 sim) on Turn 1 with 0 manual searches (-35.0% wall clock, -13.0% tokens) while cold arms slowed down.

S3 · Recall Check

Simple cross-session recall: unpublished Gemini 4 rates

Restored PASS (4/4 rates + refusal rule) · Bare / Claude / Codex FAIL (missing unpublished table)

Four model rate rows (gemini-4-argon, -carbon, -hydrogen, -neon) exist only in curated memory from prior work, nowhere in the checkout. Restored recalled all four rows verbatim (PASS in 943.1s); Bare, Claude, and Codex could not invent missing prices and failed DG-S3-02 (FAIL).

Two-session compounding proof (S5A -> S5B)

S5A -> S5B: What Was Promoted, How It Recalled (Auto-Prefetch vs. Search), and Compounding Deltas

Code gates passed 5/5 for all four arms in both sessions. The real difference is what happened between Session 5A and Session 5B.

5A: Leg 5A Turn 1: Add diagnostic_label: Option<String> across RuntimeTuningConfig (backend + CLI). Turn 2: "wrap up".

5B: Leg 5B Turn 1 (fresh session, 0 chat history): Add strict_budget_cap_usd: Option<f64> + RuntimeTuningConfig::check_strict_budget_cap.

Arm Code Gates (5A / 5B) Promoted in 5A (Turn 2) Recalled in Fresh 5B (Turn 1) 5A -> 5B Delta
Strexis (Restored) deepseek-v4-flash
PASS (5/5) / PASS (5/5)
2 grounded drawers (baeda2c9..., 6ec7ac30...) in project-conventions via post-task-knowledge-review + mempalace_check_duplicate (0 Tier-1 bloat)
Turn-1 <memory-context> auto-prefetch surfaced baeda2c9... at Rank #1 (0.868 sim). 0 manual mempalace_search calls (1 capability_search for skill only).
706.8s -> 459.1s (-35.0%) 15.69M -> 13.66M (-13.0%) tokens Only arm that got faster and cheaper on the harder fresh-session follow-up (turns 118 -> 96, TTFCE 166.3s -> 161.1s).
Strexis (Bare Control) deepseek-v4-flash
PASS (5/5) / PASS (5/5)
3 drawers written in 5A (mempalace_add_drawer), then reset to empty MemPalace before 5B (stateless control)
0 injected drawers on Turn 1; no cross-session memory available in 5B (cold start).
668.6s -> 670.0s (+0.2%) 21.09M -> 19.34M (-8.3%) tokens TTFCE slowed from 134.5s -> 151.3s (+16.8s); paid 210s more wall clock than Restored in 5B.
Claude Code claude-sonnet-5-5
PASS (5/5) / PASS (5/5)
None (stateless CLI; no wrap-up promotion)
None (0 cross-session memory; restarted from scratch in 5B).
252.9s -> 283.4s (+12.0%) 4.59M -> 5.68M (+23.6%) tokens Cold-start tax on both wall clock and tokens for the follow-up task.
Codex gpt-6.1-sol
PASS (5/5) / PASS (5/5)
None (stateless CLI; no wrap-up promotion)
None (0 cross-session memory; restarted from scratch in 5B).
673.3s -> 779.4s (+15.8%) 4.84M -> 7.74M (+59.9%) tokens Largest cold-start token increase (+59.9%) when re-discovering the same config wiring.

Telemetry nuance (reported honestly): in 5A, strexis-restored ran mempalace_check_duplicate (2x) and grounded evidence_refs, while secret_audit_called was false. In 5B, K-3_utilization_rate heuristic reads 0.0 because it counts post-injection mempalace_get_drawer / skill_view calls, whereas the agent consumed baeda2c9... directly from the Turn-1 <memory-context> injection.

n = 1 leg per arm and scenario: existence proofs, not a statistical ranking, and no composite score is computed. All 24 legs across all 4 arms and 6 scenarios are 100% deterministically measured (0 unmeasured gates). S3, S4, and S5A -> S5B hold model, image, and tool surface identical between Strexis Restored and Strexis Bare.

Deploy dedicated specialist installations for your engineering or R&D team on an isolated cloud pod.