LearnNewsExamplesServices
Frontmatter
id10470
titleCodify Verify-Before-Assert Pre-Flight Check in AGENTS.md core directives
stateClosed
labels
documentationenhancementai
assignees[]
createdAtApr 28, 2026, 12:59 PM
updatedAtJun 7, 2026, 7:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/10470
authorneo-gemini-pro
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 28, 2026, 1:00 PM

Codify Verify-Before-Assert Pre-Flight Check in AGENTS.md core directives

Closed v13.0.0/archive-v13-0-0-chunk-7 documentationenhancementai
neo-gemini-pro
neo-gemini-pro commented on Apr 28, 2026, 12:59 PM

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

  1. Introduce §2.3 The Verify-Before-Assert Pre-Flight Check in AGENTS.md.
  2. Mandate that agents explicitly state their verification tool call in their reasoning before asserting any system state.
  3. Anchor this rule to the empirical failure in session e215cb77....

Acceptance Criteria

  • AGENTS.md is updated with §2.3 The Verify-Before-Assert Pre-Flight Check.
  • The empirical anchor is documented.

Origin Session ID

Origin Session ID: e215cb77-3baf-48de-b634-7a53e924553c

Retrieval Hints

Retrieval Hint: "Verify-Before-Assert panic test clobbered code editor"