Skip to content

Delete the inert READ-THEN-WRITE TURN COMPLETION rule (measured 72/72 with and without) #1811

Closed

Description

@malibio

Overview

A resident-prompt rule that costs tokens every turn and changes no behavior. Measured inert. Delete it.

Problem Statement

packages/agent/src/agent_guidance.rs:49 carries a multi-sentence READ-THEN-WRITE TURN COMPLETION rule asserting that stopping after a search is a failed turn. It was written for a stop-after-search failure mode that could not be reproduced.

Under ADR-064 rule 5, resident prose owns identity and policy only. A rule that provably changes nothing is pure dilution — and dilution is not free: the same measurement programme found the full production prompt scoring 50% against 73% for an identity-only prompt an order of magnitude smaller.

Evidence

  • The model continued to the write in 72 of 72 trials after an ordinary tool result — flat across bulky and compact payloads (testing recency displacement) and with and without explicit continuation nudges (testing turn-budget economics). Both hypothesized causes refuted
  • End-to-end confirmation: the "find then update" scenario scored 100% both with and without the surrounding guidance
  • packages/agent/src/agent_guidance.rs:49

Note the real stop-after-search cause was found elsewhere: a large instruction payload arriving as a tool result, which is under investigation separately. Adding more prose was never going to address it.

Acceptance Criteria

  • The rule is deleted — per the pre-release stance, deleted rather than commented out or feature-flagged
  • Its accompanying assertions in agent_guidance.rs's test module are removed with it
  • Assembled system prompt character count recorded before and after in the PR
  • Agent test suite shows no regression on read-then-write scenarios

Architecture Impact

First deletion under ADR-064 rule 5. Deliberately scoped to the one rule with a direct 72/72 refutation so it can ship ahead of the broader resident-prompt reduction, which needs its own measurement.

Activity

  1. malibio commented on Jul 30, 2026

    @malibio
    CollaboratorAuthor

    Already done — as a side effect of #1820's routing cleanup, not its own PR.

    Verified on current main: READ-THEN-WRITE TURN COMPLETION is absent from TOOL_STRATEGY_RULES (agent_guidance.rs), and #1820's own test tool_strategy_rules_contain_no_per_operation_routing asserts it stays that way. #1820 deleted it as part of the per-operation-routing purge, since this rule was in fact routing prose (an instruction to continue from a read to a specific write call), not just an inert leftover — same outcome, different reason for removal than what this issue expected, but the acceptance criteria are met: the rule is gone, its test coverage is gone with it, and the assembled prompt no longer carries it.

    Closing. Flagged from #1764's scoping note, which was checking this before gating baseline recording on it.

  2. added 2 commits that reference this issue on Jul 31, 2026
    ee29e3a
    905c5fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions