Skip to content

feat(docs): tiered AGENTS.md split — orientation + 4 siblings (soc-vuu6.3 #agents-md-tiered-split)#387

Merged
boshu2 merged 2 commits into
mainfrom
feat/agents-md-tiered-split-soc-vuu6-3
May 21, 2026
Merged

feat(docs): tiered AGENTS.md split — orientation + 4 siblings (soc-vuu6.3 #agents-md-tiered-split)#387
boshu2 merged 2 commits into
mainfrom
feat/agents-md-tiered-split-soc-vuu6-3

Conversation

@boshu2
Copy link
Copy Markdown
Owner

@boshu2 boshu2 commented May 21, 2026

Summary

Split the 580-line monolithic AGENTS.md into five tiered files so cold-start sessions pay ≤250 lines for orientation, with operational detail one hop away.

File Lines Owner area
AGENTS.md 97 Orientation + Quick Reference + sibling pointer table + 1-release deprecation footer
AGENTS-WORKFLOW.md 292 Workflow phases · Branch/PR shape · Multi-agent discipline · Provenance · Doctrine altitudes · Local Pre-Push · Releasing · Landing the Plane · bd Tracking · Session Completion
AGENTS-CI.md 127 CI intro · Advisory Triage SLAs · DEFERRED Hardening matrix · CI Jobs table (67 rows) · Nightly
AGENTS-CODEX.md 52 CLI Skill-Map Refresh + Codex Skill Maintenance
AGENTS-RUNTIME.md 59 Canonical Root and Worktrees + Key Constraints

Mechanical enforcement

  • scripts/validate-agents-split.sh — 14 checks: AGENTS.md exists, ≤250 lines, each sibling exists, bidirectional links.
  • CI gate validate-agents-split (required) — wired into validate.yml needs: arrays + summary echo + docs/contracts/ci-jobs.yaml manifest.
  • scripts/generate-ci-jobs-table.sh AGENTS_PATH default flipped from AGENTS.md to AGENTS-CI.md; 67-row table regenerated.
  • 7-case bats coverage at tests/scripts/validate-agents-split.bats.

Fitness delta

Cold-start orientation budget: 580 → 97 lines (-83%). Total docs across the split: 580 → 627 lines (+47 lines of sibling pointers and deprecation footer — the overhead of the contract).

Deferred to follow-up beads

  • Operating-loop ASCII spinedocs/architecture/operating-loop.md 12-line flowchart prefix; orthogonal authoring task.
  • Universal init prompt wiringao session bootstrap referenced in AGENTS.md but blocked on soc-vuu6.25.

Verification

bash scripts/validate-agents-split.sh
# validate-agents-split: scanned 14 checks
# PASS — AGENTS.md (97 lines) + 4 siblings, links bidirectional.

bats tests/scripts/validate-agents-split.bats
# 1..7 (all pass)

bash tests/docs/validate-doc-release.sh
# PASS: doc-release gate succeeded

bash scripts/validate-ci-policy-parity.sh
# CI_JOBS_TABLE: PASS (67 rows)

Sibling patterns

CI gate shape follows scripts/check-finding-registry.sh. Manifest entry follows the validate-* row shape. Bats fixtures match tests/scripts/validate-sovereignty-proof-citations.bats.

Closes-scenario: soc-vuu6.3#agents-md-tiered-split
Bounded-context: BC1-Corpus
Evidence: AGENTS.md
Evidence: AGENTS-WORKFLOW.md
Evidence: AGENTS-CI.md
Evidence: AGENTS-CODEX.md
Evidence: AGENTS-RUNTIME.md
Evidence: scripts/validate-agents-split.sh
Evidence: tests/scripts/validate-agents-split.bats
Evidence: .github/workflows/validate.yml
Evidence: docs/contracts/ci-jobs.yaml

boshu2 added 2 commits May 20, 2026 20:55
…-vuu6.3 #agents-md-tiered-split)

Split the 580-line monolithic AGENTS.md into five tiered files so cold-start
sessions pay <=250 lines for orientation, with operational detail one hop away:

- AGENTS.md (97 lines): orientation, source-of-truth precedence, install
  instructions, quick reference, pointer table to the siblings, deprecation
  footer mapping old anchors to new homes.
- AGENTS-WORKFLOW.md (292 lines): how work flows — Workflow phases, Branch
  + PR shape, Multi-agent discipline, Provenance, Doctrine altitudes, Source
  layer, CI tiers, Local Pre-Push Checklist, Releasing, Landing the Plane,
  bd Issue Tracking, Session Completion.
- AGENTS-CI.md (127 lines): what CI checks — intro, Advisory Job Triage
  SLAs, DEFERRED Hardening matrix, generated CI Jobs and What They Check
  table (67 rows), Nightly Workflow Jobs.
- AGENTS-CODEX.md (52 lines): CLI Skill-Map Refresh + Codex Skill
  Maintenance.
- AGENTS-RUNTIME.md (59 lines): Canonical Root and Worktrees + Key
  Constraints Agents Must Follow.

Plus mechanical enforcement: new scripts/validate-agents-split.sh + CI gate
validate-agents-split (14 checks: AGENTS.md exists, <=250 lines, each sibling
exists, bidirectional links). Wired into validate.yml needs arrays and the
summary echo; registered in docs/contracts/ci-jobs.yaml.

Also: scripts/generate-ci-jobs-table.sh AGENTS_PATH default flipped from
AGENTS.md to AGENTS-CI.md (the table now lives there); 67-row table regenerated.

Deferred to follow-up beads:
- Operating-loop ASCII spine (docs/architecture/operating-loop.md 12-line
  flowchart prefix) — separate authoring exercise orthogonal to the split.
- "Spawning an agent? Run ao session bootstrap" wiring to a real command —
  currently a soft reference to soc-vuu6.25.

Fitness delta: cold-start orientation budget 580 → 97 lines (-83%).
Total docs in split: 580 → 627 lines (+47 lines for sibling pointers and
deprecation footer — the overhead cost of the split contract).

Sibling pattern: CI gate shape follows scripts/check-finding-registry.sh.
Manifest entry follows established validate-* row shape in ci-jobs.yaml.

Test coverage note: bats coverage for validate-agents-split.sh added in a
follow-up commit on this branch to keep this primary refactor reviewable.

Closes-scenario: soc-vuu6.3#agents-md-tiered-split
Bounded-context: BC1-Corpus
Evidence: scripts/validate-agents-split.sh
Evidence: AGENTS.md
Evidence: AGENTS-WORKFLOW.md
Evidence: AGENTS-CI.md
Evidence: AGENTS-CODEX.md
Evidence: AGENTS-RUNTIME.md
Evidence: .github/workflows/validate.yml
Evidence: docs/contracts/ci-jobs.yaml
…ats-coverage)

7 cases: pass-baseline, missing-AGENTS.md, over-250-lines, missing-sibling,
missing-forward-link, missing-back-link, exactly-250-lines-edge.

Sibling pattern: matches tests/scripts/validate-sovereignty-proof-citations.bats
shape — throwaway repo + synthesized fixtures + one branch per case.

Pairs with the primary refactor commit on this branch per
docs/contracts/update-principles.md Principle 2.
@boshu2 boshu2 enabled auto-merge (squash) May 21, 2026 00:56
@boshu2 boshu2 merged commit 5dfe1c9 into main May 21, 2026
69 checks passed
@boshu2 boshu2 deleted the feat/agents-md-tiered-split-soc-vuu6-3 branch May 21, 2026 01:05
boshu2 added a commit that referenced this pull request May 22, 2026
…tors (soc-2gd6 #eval-hard-fails) (#402)

## Why

The v2.42.0 release gate (`scripts/ci-local-release.sh`) was red on 8
evals. The 3 score-0/near-0 hard fails are all **eval-staleness behind
legitimate recent refactors** — verified, not gaming or security
weakening. Operator decision: update eval to match source of truth
(executable > contract).

| Eval | Was | Cause | Fix |
|---|---|---|---|
| `hook-manifest-command-counts` | 0 | `session-pr-counter.sh` (PR #362)
is the legit 37th hook script; eval hardcoded 43/36 | bump expected
counts 43→44, 36→37 |
| `push-worktree landing-plane` | 0.14 | #387 tiered-AGENTS split moved
"Landing the Plane" to `AGENTS-WORKFLOW.md` (+ dropped 2 lines) |
redirect eval target `AGENTS.md`→`AGENTS-WORKFLOW.md` + restore the 2
dropped policy lines |
| `security-toolchain ci-soft-gate-policy` | 0 | gate is intentionally
**HARD** (no `continue-on-error`); job already runs `security-gate.sh
--mode quick` + uploads artifacts | drop the stale `continue-on-error`
requirement (security stays HARD) |

**Security note:** `security-toolchain-gate` stays a HARD blocking gate.
Only the stale "soft gate" assertion was removed from the eval; the
actual scan + artifact upload + summary-blocking are unchanged.

## How tested
- hook-manifest jq → `hook-manifest-counts-ok`
- security smoke `ci-policy` → `security-toolchain-ci-policy-ok`
- all 7 landing-plane strings present in `AGENTS-WORKFLOW.md`
- shellcheck clean on edited smoke

## Scope honesty
This fixes the 3 **hard** fails only. The release gate still has **5
minor evals (0.71–0.99)** + the **vil/release-smoke** lane — a separate
remediation, deliberately NOT in this PR (no green-washing).

Sibling pattern: same "update eval to match legitimately-changed source
of truth" move as the cli-command-surface canary bumps in #396/#397.

Fitness: release-gate eval hard-fails 3 → 0.

Closes-scenario: soc-2gd6#eval-hard-fails
Bounded-context: BC4-Validation
Evidence:
evals/agentops-core/fixtures/security-toolchain-governance-smoke.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant