SDCS-Bench
Spec-Driven Cognitive Scaffolding vs. Mid-Stride Resets
When an agent session is cut off mid-task and reset (`git reset --hard`), uncommitted code vanishes. In a 6-file repo, `state.md` alone is enough. In a 24-file, 4-package monorepo, `Full_SDCS v1.9.7` cartography (`app_map.md` + AST skeletons) cuts turns by 40.7% and cached tokens by 39.8%.
Every slab in that 3D tower is a module or requirement from the live FinTech monorepo. Scroll or hover any slab to inspect.
Stage 02 · The Mid-Stride Cutoff Shockwave
Mid-sprint, 8 volatile requirements arrive across ledger, billing, rbac, and ratelimit. Immediately after the agent's first file edit, the session is killed and uncommitted code is wiped (git reset --hard). Pure Naked loses everything (0/8 retained). Full_SDCS v1.9.7 locks all 8 rules and all 11 exact target file paths into a 238-token state.md on Turn 1.
## Current Objective - ledger: allow_overcapture (<=110% hold, overage <= available_cents); released_hold_cents in build_account_summary. - billing: max_line_discount_cents in compute_line_discounts & finalize_invoice; restocking_fee_bps in apply_net_credit. - rbac: ':*' prefix wildcard in evaluate_access_decision; revoked: bool = False on TempGrant. - ratelimit: overdraft_tokens >= 0 in QuotaPolicy/gateway/evaluate_token_bucket; read-only peek_tokens(). ## Immediate Next Action - Edit ledger/rules.py, ledger/service.py, ledger/reporting.py, billing/discounts.py, billing/invoice.py, rbac/entities.py, rbac/rules.py, ratelimit/models.py, ratelimit/quota_store.py, ratelimit/algorithms.py, ratelimit/gateway.py.
Stage 03 · Tier 2 Monorepo Turn-by-Turn Skyline
Why State.md alone burns 27 turns in a 4-package monorepo.
In Tier 2 (tier_2a_fintech, 24 files across 4 packages), State_MD_Only saves the requirements in state.md, but has no app_map.md or AST skeletons. Session 2 wakes up blind and spends 22 turns searching folders and reading files. Full_SDCS v1.9.7 knows all 11 target files immediately and finishes at Turn 16.
1,437,520 cached tokens
151,325 uncached · 29,560 out
866,008 cached tokens (-39.8%)
97,403 uncached (-35.6%)
Hover any 3D bar in the skyline or drag the slider to compare per-turn context accumulation across Session 1 and Session 2.
Stage 04 · The Scale Crossover Ledger
cached token reduction on Tier 2 monorepos with Full_SDCS v1.9.7 over State_MD_Only.
Every arm below was executed under the exact same Pure Uncoached Mid-Stride Cutoff Protocol on Gemini 4 Argon Low with domain-agnostic AGENTS.md templates.
0/8 on Pure Naked)Full_SDCS v1.9.7 finishes in 12 post-reset turns vs 22 turns for State_MD_Only)State.md; Tier 2 (24 files, 4 packages) flips decisively to Full_SDCS v1.9.7| Arm | Outcome | Retained | Turns (S1+S2) | Steps | Uncached Input | Cached Input | Output | Key Mechanism |
|---|
| Arm | Outcome | Retained | Turns (S1+S2) | Steps | Uncached Input | Cached Input | Output | Key Mechanism |
|---|
Stage 05 · Scale-Adaptive 7-Pillar Architecture
How SDCS v1.9.7 adapts from 6 files to 24+ files automatically.
app_map.md, compact AST class/method signatures for all 20 modules, and decisions.md rejection guards on Turn 1.Pillar 5: The Compass (app_map.md)
Maps all 4 packages (ledger, billing, rbac, ratelimit) on Turn 1 so the agent never wastes turns running directory scans.
AST Skeletal Interfaces
Provides exact function and dataclass signatures across all 20 modules at a fraction of full-source token cost.
Pillar 6: The Graveyard (decisions.md)
Pre-warns against mutating BucketState in peek_tokens() (REJ-002) and integer floor division in billing (REJ-003).
Interactive Session 1 -> Session 2 Handoff Inspector (tier_2a_fintech)
Compare the exact on-disk working memory left behind at the moment of the mid-stride cutoff across Full_SDCS_v1_9_7, State_MD_Only, and Pure Naked.
1. Turn 1 Cartography Advantage: Because Full_SDCS_v1_9_7 hydrated # [PILLAR 5: THE COMPASS] (app_map.md) and # [AST SKELETAL INTERFACES] on Turn 1, Session 1 (c740fc41) immediately knew the exact 11 target files across all 4 packages without calling list_files or read_file. 2. Zero-Search Session 2 Resume: When Session 2 (8db7b77f) booted after the mid-stride reset, its ## Immediate Next Action already listed all 11 file paths: - ledger/rules.py, ledger/service.py, ledger/reporting.py - billing/discounts.py, billing/invoice.py - rbac/entities.py, rbac/rules.py - ratelimit/models.py, ratelimit/quota_store.py, ratelimit/algorithms.py, ratelimit/gateway.py 3. Result: Session 2 completed all 8 cross-package requirements in just 12 turns (16 total turns vs 27 for State_MD_Only), saving 571,512 cached input tokens (-39.8%) and 53,922 uncached input tokens (-35.6%).