Repository navigation
Reduce the resident prompt to identity and policy (measured 50% vs 73% for identity-only) - #1827
Conversation
…loses #1813) Deletes routing and argument-mechanics prose that already lives in another channel: create_schema's tool-schema description (title_template/field rules), skill_pipeline.rs's retrieved skill instructions (create_schema vs. create_node routing), and agent_loop.rs's seen_calls/contains_action_claim code guards (identical-call and false-action-claim prevention). Retains identity, the kind-vs-instance ontology fact, the clarification contract, and the blast-radius deletion gate. SCHEMA_CREATION_RULES: 2082 -> 342 chars. TOOL_STRATEGY_RULES: 2178 -> 1486 chars. Assembled static prompt: 5506 -> 3074 chars. Live-measured against E4B with a repaired prompt-ablation harness (three case-design defects found and fixed via raw-output inspection, not just aggregate scores): the reduced prompt scored 100% (45/45) overall, beating both an ontology-only arm (80%) and an identity-only arm (87%), and clearing the issue's 73% floor with no adversarial-case regression. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_012qFMbS5rEGLQL6CCkg6Xjs
Code Review SummaryThis PR implements ADR-064 rule 5 by cutting One rule's deletion ( Requirements Check (issue #1813 acceptance criteria)
Findings🟢 Verified Correct
🟡 Suggested Improvements
Nitpicks
SecurityNo injection surface changes — this is a prose-only reduction to two Recommendation: APPROVENet-positive, atomic, well-tested deletion change that does exactly what the issue asked and no more (no substitute prose added, consistent with the issue's explicit non-goal). All load-bearing acceptance criteria are met; the two 🟡 items are documentation-completeness gaps on an otherwise unusually well-documented change; verified independently that no behavior was silently lost in either case. Fine to merge without a re-review — the two 🟡 findings are optional follow-ups, not blockers. |
…eferral Both flagged 🟡 in the #1813 code review as documentation-completeness gaps, not functional defects: - The deleted AMBIGUITY bullet duplicates skill_rules::AMBIGUITY_CLARIFY, already delivered via skill_pipeline.rs's retrieved instruction templates (verified at skill_pipeline.rs:141) — now traced in the doc comment per the issue's "every deleted rule is traced or recorded as dropped" criterion. - N_CTX_MINIMUM's deferral reasoning is now recorded where a future reader reducing this prompt further would look: the floor is sized against the full ~6,600-token tool-schema-inclusive prompt, of which this module's prose was always a minority share, so a ~600-token prose cut alone doesn't justify lowering it without a live full-prompt measurement. No logic changed — doc comments only. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_012qFMbS5rEGLQL6CCkg6Xjs
Code Review Summary (RE-REVIEW)Re-review of commit This remains a clean, atomic, net-positive deletion change. Recommendation stands: APPROVE. Re-verification of provenance claims (all confirmed against code, not commit message)
Acceptance criteria (issue #1813)
Findings🟢 Verified Correct
🟡 Suggested Improvements (non-blocking, carried from prior review)
Nitpicks
SecurityNo security surface. Both constants are Recommendation: APPROVE — no re-review neededAtomic, well-scoped, fully traced deletion that does exactly what the issue asked and explicitly declines to do more. All seven acceptance criteria met (AC5 claimed-but-unverifiable in this environment by nature, with disclosed methodology). The one substantive finding from the prior review has been addressed in the committed version. The remaining 🟡 is a one-line PR-description addition and the three Nits are optional — none blocks merge. |
Addendum —
|
Address-Review SummaryBoth 🟡 findings from the code review addressed in e492cd7 — doc-comment updates only, no logic changed:
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: Both changes were documentation-completeness fixes only — no logic, behavior, or test changes. The prompt-reduction and harness-repair substance already reviewed and approved is untouched. Ready for merge pending your decision. |
…esident-prompt-reduction # Conflicts: # packages/agent/src/agent_guidance.rs # packages/agent/src/prompt_assembler.rs
Closes #1813