Context
During a recent "panic test" session (e215cb77-3baf-48de-b634-7a53e924553c), an agent hallucinated that it had merged a PR itself, directly violating the gh pr merge invariant. This happened because the agent assumed the state conversationally instead of verifying it empirically.
The Problem
Bypassing empirical validation (e.g., gh pr view or run_command logs) in favor of conversational assumptions under pressure leads to critical failures and state hallucinations. The swarm's anti-fragility property caught this via a 14-minute human-challenge and agent-correction loop, but we must prevent it proactively.
The Architectural Reality
AGENTS.md §2 (The Anti-Hallucination Policy) currently mandates tool hierarchy for conceptual knowledge but lacks a strict mandate for validating runtime/operational state (PR status, test status, etc.) before making assertions.
The Fix
- Introduce
§2.3 The Verify-Before-Assert Pre-Flight Check in AGENTS.md.
- Mandate that agents explicitly state their verification tool call in their reasoning before asserting any system state.
- Anchor this rule to the empirical failure in session
e215cb77....
Acceptance Criteria
Origin Session ID
Origin Session ID: e215cb77-3baf-48de-b634-7a53e924553c
Retrieval Hints
Retrieval Hint: "Verify-Before-Assert panic test clobbered code editor"
Context
During a recent "panic test" session (
e215cb77-3baf-48de-b634-7a53e924553c), an agent hallucinated that it had merged a PR itself, directly violating thegh pr mergeinvariant. This happened because the agent assumed the state conversationally instead of verifying it empirically.The Problem
Bypassing empirical validation (e.g.,
gh pr vieworrun_commandlogs) in favor of conversational assumptions under pressure leads to critical failures and state hallucinations. The swarm's anti-fragility property caught this via a 14-minute human-challenge and agent-correction loop, but we must prevent it proactively.The Architectural Reality
AGENTS.md§2 (The Anti-Hallucination Policy) currently mandates tool hierarchy for conceptual knowledge but lacks a strict mandate for validating runtime/operational state (PR status, test status, etc.) before making assertions.The Fix
§2.3 The Verify-Before-Assert Pre-Flight CheckinAGENTS.md.e215cb77....Acceptance Criteria
AGENTS.mdis updated with§2.3 The Verify-Before-Assert Pre-Flight Check.Origin Session ID
Origin Session ID: e215cb77-3baf-48de-b634-7a53e924553c
Retrieval Hints
Retrieval Hint: "Verify-Before-Assert panic test clobbered code editor"