Repository navigation
fix(tools): hint past leading cd and correct placeholder handles (T20) - #285
Conversation
T20: placeholder dispatch and leading-cd hint regressions fail on db44ecf; oversized bounds correction guard passes.
T20 / ENG-1035. Separate hint eligibility from strict refusal; preserve lossless argument bounds and classify placeholder spill handles before store lookup. Independent review approves implementation; workspace/performance qualification pending.
…ch' into fix/eng-1035-t20-builtin-hints
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a57949661c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c31d1a5ca2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Spec: tool-layer.md §T20. Linear: ENG-1035.
Merged with #281 (T19), #283 (T18), and #280 onto main at
e22537040bfb1605ee360881220cf5d8e8408ce3. Final sourcec31d1a5cpassed hosted CI 38426652160; main's tree exactly matches that qualified head. The stack carries the resource and overflow-floor repairs introduced during final integration.Behavior
cd DIR &&. Prefixed commands, compound commands, and absolute/parent operands only hint under strict; plain relative built-in replacements still refuse. No classifier reparse.handle_placeholder, graded Correction, before store lookup; the message asks the model to copy a real marker.env -Sassignment substitution reads the original string once, uses the last assignment, and caps expansion at 16 KiB. Expanded-over-limit commands refuse withcommand_too_longeven underfull; raw source over the limit still prompts. Repeated self-references cannot recursively allocate exponential text. Narrow ownership exception is recorded in the root ledger.Verification
Test-first T20 commit
cc481b02failed on leading-cd and placeholder dispatch before implementation. Prerequisite test-firstc612655failed on eight self-references before bounded repair4dbf121; final regression covers 40 repetitions, expansion cap, and assignment precedence. Late overflow-floor test-first99a07e4exposed a new Forbidden-to-Prompt downgrade;4f0185f1preserves bounded prefix reasons and propagates fail-closed overflow through nested collectors. Sudo, late force, env option operands, benign echo, and nested overflow regressions pass.env -u NO_COLOR TERM=xterm-256color cargo test --workspace -- --test-threads=4: 2243 passed, 0 failed, 14 ignored, counting the nested embedding child once. Approval suite: 95 passed. Formatting, workspace Clippy with all targets/features and warnings denied, workspace build, and ten exact-test guard fixtures pass. Clippy/build usedCARGO_BUILD_JOBS=2.Earlier runs hit headless timeouts under contention and ANSI assertions with inherited
NO_COLOR=1. The final full run above passes; no failed gate is waived.Independent second-agent review (
t20_review) approves the final T20 implementation and bounded prerequisite repair. Attached path operands and recursive expansion findings were repaired.Performance
tool_dispatch: 30 alternating saved-baseline/candidate binary pairs, medians 58.888 → 59.162 µs/iteration. Paired ratio median 0.974; 30-pair same-binary A/A 1.036, control ratio MAD 0.124. No regression demonstrated within control noise; budget unchanged. IO some avg10 was 32.24 → 28.59 %; no concurrent session-owned build/test/review during recording; other shared-host workloads are outside this session's control, no tail or speedup claim.Final
classify_command1 KiB median of 3: 167.050 µs ≤ 200 µs. Raw evidence:target/qq-perf/t20-2026-10-13/(untracked); initial baseline recorded before edits.Docs and compatibility
As-built tools design, plan wording/ownership, root coordination, and ledger receipt are current. T20 adds no protocol field, schema, descriptor, or prompt version bump; inherited T19 retains its recorded version changes.
Follow-ups
D10's week after landing, ENG-1032 process cancellation, and ENG-1033 unread-edit scan optimization and classifier residuals remain separate work. ENG-1033 includes the final review's discarded
env -Ssuffix expansion-cap over-refusal; independent review approves deferral under the recorded lead merge decision. This is unresolved code work, with no weaker approval. Plan/task index/ledger and ADR-0058 acceptance reconciled in merged #286 (ce768bbc2fb7a25b227fe3405734a316adf020a1); ENG-1035 is Done.