Skip to content

feat(context): shave always-loaded context in AGENTS.md and CONVENTIONS.md to <=150 lines (e84s01) - #197

Merged
danielvm-git merged 1 commit into
mainfrom
feat/e84-shave-always-loaded-context
Nov 3, 2026
Merged

danielvm-git merged 1 commit into
mainfrom
feat/e84-shave-always-loaded-context

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

Summary

  • Pillar B: Shave Always-Loaded Context (e84s01 - Cut by ~77%)
  • Extracted harness-neutral parts into canonical AGENTS.md (98 lines, strictly $\le$ 150 lines).
  • Symlinked CLAUDE.md and GEMINI.md to AGENTS.md ([ "$(readlink CLAUDE.md)" = AGENTS.md ]).
  • Shaved CONVENTIONS.md from 486 lines down to 106 lines (strictly $\le$ 150 lines), preserving all risk tiers P0–P3, rule matrix rules (15 rules), and clean code compliance tokens.
  • Extracted toolchain syntax tables and reference material into on-demand documents:
    • agent-tooling.md (bts, sqz, rtk, token-mgmt-pre-tool-use.sh)
    • skill-naming.md
    • tombstones.md
    • catalog-freeze.md
    • file-size-exceptions.md
    • ssot-sync.md
  • Fixed recursive verification loop in e84s01-tasks.yaml and restored ## Tests (F.I.R.S.T) header.
  • Updated specs/epics/e84-agents-md-first/epic.yaml, e84s01-tasks.yaml, execution-status.yaml, and state.yaml.

Verification

  • npm run compliance: PASS (98% score, threshold 94%)
  • bash scripts/compile-rule-matrix.sh: PASS (15 rules parsed)
  • bash scripts/validate-doctrine.sh: PASS (all checks passed)
  • python3 scripts/check-skill-links.py: PASS (OK)
  • bash scripts/run-verification-gates.sh: PASS (54/54 deterministic gates passed, 100%)
  • bash scripts/sync-skills.sh: PASS (80 skills synced, all OKF wikis generated)
  • bash scripts/trace-stories.sh --strict: PASS (all P0 stories covered)
  • Line counts: AGENTS.md = 98 lines, CONVENTIONS.md = 106 lines (combined 204 lines vs 885 originally).

@danielvm-git
danielvm-git merged commit 34f6366 into main Nov 3, 2026
7 checks passed
@danielvm-git
danielvm-git deleted the feat/e84-shave-always-loaded-context branch November 3, 2026 19:57
github-actions Bot pushed a commit that referenced this pull request Nov 3, 2026
# [2.93.0](v2.92.0...v2.93.0) (2026-11-03)

### Features

* **context:** shave always-loaded context in AGENTS.md and CONVENTIONS.md to <=150 lines (e84s01) ([#197](#197)) ([34f6366](34f6366))
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.93.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

danielvm-git added a commit that referenced this pull request Nov 3, 2026
danielvm-git added a commit that referenced this pull request Nov 6, 2026
)

* fix(trace): index only files git would track, never other worktrees

trace-stories.py found files with `grep -rn ROOT` and `os.walk(ROOT)`, and
neither read .gitignore. Run from the main checkout, it linked ~50k files
under other sessions' .claude/worktrees/, plus gitignored .agents/,
.hermes/, .mimocode/, .zcode/, website build output and untracked
verification reports.

Build one inventory from `git ls-files --cached --others --exclude-standard`
(os.walk minus .claude/ outside a git repo) and use it for both the tag
scan and the file heuristic. Tracked files keep their links.

Guard: scripts/test-trace-ignored-paths.sh (golden gate trace-ignored-paths).
Fixes BUG-2026-11-03-trace-indexes-other-worktrees and
BUG-2026-11-03-wiki-indexes-ignored-reports (same root cause).

* chore(trace): regenerate traceability outputs without gitignored paths

Regenerated by scripts/trace-stories.sh --json after the fix. 108 linked files dropped; git check-ignore matches all 108. Golden report from the green Preflight run.

* chore(trace): record the merged Preflight run and #197 context in the bug file
github-actions Bot pushed a commit that referenced this pull request Nov 6, 2026
## [2.94.1](v2.94.0...v2.94.1) (2026-11-06)

### Bug Fixes

* **guard-git:** segment push targets; scan all -m ([#229](#229)) ([e72e2ad](e72e2ad))
* **trace:** index only git-tracked files and avoid other worktrees ([#203](#203)) ([6becdc3](6becdc3)), closes [#197](#197)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant