Repository navigation
feat(config)!: default the final-answer audit off; bound the audit child (C3) - #59
Merged
lg2m merged 1 commit intoSep 17, 2026
Conversation
… child (C3) Every user-initiated run that mutated a file, ran a shell command, or made twelve tool calls paid a second, unbounded agent loop at its completion boundary under the default `audit.mode = heuristic`. None of the reference harnesses runs a per-run judge, and the delegation plan's B1 arm that would justify it is unmeasured. The default is now `off`; `heuristic` and `always` remain opt-in. When an audit does run, the child is bounded beyond the parent's remaining budget: at most MAX_AUDIT_CHILD_TURNS (8) model turns and MAX_AUDIT_CHILD_DURATION_MS (120 s), past which the answer stands as `unavailable` exactly as an auditor failure does today. Breaking: users relying on the implicit heuristic audit must set `audit: (mode: heuristic)` explicitly.
lg2m
force-pushed
the
fix/context-usability-3-audit-default
branch
from
September 17, 2026 01:50
6ac63e8 to
d4b81c9
Compare
This was referenced Sep 17, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C3:
audit.modedefaults tooff; the audit child is boundedSpec: docs/plans/context-usability.md § C3. Stacked on #58 (C2); review against that base.
User-visible behavior
audit: (mode: heuristic | always)set explicitly, the auditor is capped at 8 model turns and 120 s on top of the inherited budget. Past either bound the answer stands asunavailable, the same fail-open path an auditor failure takes today.Breaking
AuditConfig::default()/AuditMode::default()flipHeuristic → Off. Users who want the audit setaudit: (mode: heuristic). The runtime-levelAuditPolicy::default()was alreadyOff.What changed
qq-config: enum default andAuditConfig::default().qq-core/runtime/audit.rs:MAX_AUDIT_CHILD_TURNS = 8,MAX_AUDIT_CHILD_DURATION_MS = 120_000;lib.rsclamps the child budget at the hook call.audits_inherit_remaining_limits_and_charge_inclusive_spend_onceasserts the admitted auditor'smax_model_turnsandmax_duration_ms; config default test renamed toaudit_settings_default_to_off_and_validate_revisions.RunAuditCompletednotice.How verified
cargo test --workspacegreen; fmt; strict all-target clippy.Docs
architecture.md§ audit;protocol.md§ Final-answer audit;supervised-delegation.mdB1 gate wording; ledger.