Skip to content

feat(context): adopt two-tier agent context and 4-store documentation layout - #36

Merged
nilbot merged 2 commits into
masterfrom
feat/two-tier-context-and-llm-migration-architecture
Aug 29, 2026
Merged

feat(context): adopt two-tier agent context and 4-store documentation layout#36
nilbot merged 2 commits into
masterfrom
feat/two-tier-context-and-llm-migration-architecture

Conversation

@nilbot

@nilbot nilbot commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Summary

This PR establishes the Two-Tier Agent Context Architecture and 4-Store Documentation Layout in dotfiles and defines the LLM-in-the-Loop Migration Architecture for fleet repositories.

Key Changes

  1. Two-Tier Agent Context:

    • Inverts root symlinks: AGENTS.md is now the canonical router regular file, and CLAUDE.md is a relative symlink (CLAUDE.md -> AGENTS.md), satisfying safeio.ReadRegular O_NOFOLLOW semantics.
    • Creates .agents/AGENTS.md holding repository-specific engineering guidelines, testing requirements, workflow restrictions, and the CLI Interface Documentation Invariant.
    • Solves the indirection hop via an explicit Bootstrap Protocol in root AGENTS.md.
  2. 4-Store Documentation Architecture:

    • Creates docs/plans/ for step-by-step implementation plans.
    • Relocates all active 2026-08-28 implementation plans from docs/journal/ and docs/archive/plans/ into docs/plans/ with the standard -plan.md naming convention.
    • Enforces strict immutability for pre-2026-08-20 historical records in docs/archive/.
    • Updates index files (docs/design/README.md, docs/journal/README.md, docs/plans/README.md).
  3. Bundled Skills Delivery:

    • Provisions recording-what-you-learn into .agents/skills/recording-what-you-learn/SKILL.md, exposed to harnesses via existing .claude/skills and .codex/skills symlinks.
  4. Scaffold Package & Tests:

    • Updates DefaultAgentsMD and DoctorInstruction in agents/internal/scaffold/scaffold.go to include docs/plans/ and 2-bullet doctor instruction.
    • Updates corresponding unit tests in scaffold_test.go.
  5. Design Specification:

    • Authors comprehensive design specification in docs/design/2026-08-29-two-tier-context-and-llm-migration-architecture.md.

Verification

  • go test -count=1 ./... in agents/: PASS (all test suites passing)
  • agents doctor: PASS (all wiring and scaffold checks report ok)
  • Markdown link crawler: 0 broken relative links across all 66 markdown files

nilbot added 2 commits August 29, 2026 12:39
… layout

- Establish Two-Tier Context: root AGENTS.md is canonical router, CLAUDE.md -> AGENTS.md symlink, .agents/AGENTS.md holds domain engineering guidelines and CLI docs invariant
- Establish 4-Store Documentation Architecture: create docs/plans/, move active implementation plans from docs/journal/ and docs/archive/ to docs/plans/, update index READMEs
- Bundle recording-what-you-learn in .agents/skills/
- Update DefaultAgentsMD in agents/internal/scaffold/scaffold.go to include docs/plans/ and 2-bullet doctor instruction; update tests
- Author design spec in docs/design/2026-08-29-two-tier-context-and-llm-migration-architecture.md
@nilbot
nilbot merged commit b94e63b into master Aug 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant