Skip to content

AGENTS.md: tier the rules — core invariants up front, incident-derived rules in a referenced annex #2374

Closed

Description

@ehartford

AGENTS.md is 1,035 lines in which load-bearing invariants (D65 one owner per fact, spec leads implementation, no silent fallbacks, root-cause discipline) sit interleaved with rules that each encode one historical incident (a specific date, a specific bug). Each incident rule is defensible, but in aggregate they dilute the invariants an agent must never trade away, and a reader cannot tell which rules are constitution and which are case law. #2368 already cut the file to three quarters of the words; this proposes structure, not more cutting:

  • Tier 1 (front, short): the invariants that settle new questions — mission tests, D65, spec-leads, no silent fallbacks, root cause with tool evidence, bootstrap/battery discipline, safety bars (D51 inference test, D22/D44 projections).
  • Tier 2 (annex, same file after a clear boundary or a linked docs file): incident-derived specifics — exact flags, dated traps, per-area check lists — each keeping its date/issue provenance, which is what makes them trustworthy.

Nothing is dropped; the change is ordering and labeling so an agent (or human) can weight a conflict: tier 1 wins, tier 2 explains how tier 1 was applied once. This is Eric's editorial call — the words are his — so this issue proposes the split rather than performing it inside an unrelated stack. Raised from the d119-step3 session retrospective (2026-10-12), where the invariants were what I actually reasoned from and the incident rules were looked up on demand.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): unchanged, and the next step is Eric's editorial call, as the issue itself says ("the words are his"). AGENTS.md is 1,100 lines today, with invariants and incident rules still interleaved.

    The question: which rules are tier 1 (the invariants that win a conflict) and which move to an annex as case law?

  2. added this to the post-v0.16.0 milestone on Oct 28, 2026
  3. ehartford commented on Nov 19, 2026

    @ehartford
    ContributorAuthor

    Ruled, 2026-11-18: draft it. Put D172's principle in tier one (declare the guarantees that must stay stable, infer the rest: the test to apply before bringing a brief). Check the split with a fresh agent session that reads tier one only and does a routine task; a rule it breaks that lives in the annex belongs in tier one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions