Skip to content

docs(runtime): plan verified task token efficiency - #141

Merged
lg2m merged 5 commits into
mainfrom
docs/token-efficiency-roadmap
Sep 25, 2026
Merged

lg2m merged 5 commits into
mainfrom
docs/token-efficiency-roadmap

Conversation

@lg2m

@lg2m lg2m commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Spec / slice

TE0 — docs/plans/token-efficiency.md

What changed

  • Baseline research inventory of existing tools, delegation, caching and context mechanisms.
  • TE1–TE8 bounded implementation/experiment slices with dependencies, owned paths, acceptance, safety and rollback gates.
  • Proposed ADR-0043: optimize complete verified root-task economics, including descendants, recovery and external verification.
  • Progress ledger and documentation indexes; respects concurrent ADR-0041 reservation.
  • Existing D6b/T13/cache/tool-selection/compaction issues retain ownership. New slices are tracked under ENG-886, with TE0–TE8 in ENG-887–ENG-895.

Verification

Passed: relative-link validation (9 Markdown files, 144 local targets), git diff --check, cargo fmt --all -- --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo test --workspace, cargo build --workspace.
Independent read-only review found two accounting/metadata issues; both corrected.

Performance / compatibility

Planning documentation plus a narrow client streaming-index regression fix required to repair inherited CI. No schema, protocol, dependency or default changes. No paid trials or savings claims. Minimal provider profile and hot-path benchmarks not applicable.

Decisions / follow-ups

ADR remains Proposed. Paid evaluations require ENG-809 budget authorization. Evidence reuse requires a separate authority/retention review before implementation. Root review requested for shared indexes and ADR reservation.

Linear

Closes ENG-887 (planning only).
Program: https://linear.app/retsu-ai/issue/ENG-886
ENG-888 is In Progress in stacked #158; ENG-889–ENG-895 remain planned. Merging this PR does not complete implementation.

Parent CI repair

Cherry-picked the streaming-index fix from #158 so this parent passes independently; child synchronized. Original CI failure was streaming_deltas_keep_the_tree_index, not formatting/Clippy.
Latest local checks: all 22 client tests, full workspace tests with --test-threads=1, workspace Clippy, formatting and diff check passed. Parallel workspace attempt hit the previously observed headless cost-budget timeout; serial rerun passed. Remote rerun pending.

TE0: inventory existing mechanisms, define TE1-TE8 slices and promotion gates, and propose ADR-0042. Reuse existing evaluation owners; no runtime changes.
TE0 / ENG-887: record PR #141 and parent ENG-886 with TE1-TE8 issues. All workspace gates rerun successfully.
@lg2m
lg2m merged commit 8075f05 into main Sep 25, 2026
4 checks passed
@lg2m
lg2m deleted the docs/token-efficiency-roadmap branch September 25, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant