feat(context): two-tier agent context, deterministic drift inspection, and migration skill - #40
Merged
Merged
Conversation
…kill * commit '68fdbd0': feat(cli): add agents drift subcommand with json and fleet inspection
…t in agents update
…update embedded assets
… and update skill refresh
… in living documents test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the Two-Tier Agent Context architecture and Model A hybrid migration workflow as specified in
docs/design/2026-08-29-two-tier-context-and-llm-migration-architecture.mdanddocs/plans/2026-08-31-two-tier-context-and-llm-migration-plan.md.Highlights
Asset Embedding & Full Scaffolding (
internal/scaffold):embed.FS(assets.go).scaffold.Createnon-destructively scaffolds Tier 1 router (AGENTS.md/CLAUDE.md), Tier 2 domain context (.agents/AGENTS.md), starter skills, and the 4-storedocs/{design,plans,journal,qna}/hierarchy.scaffold.RefreshInfrastructuralSkillssafely synchronizes 100%agents-owned machine skills without touching custom user skills.Deterministic Drift Inspection (
internal/drift&agents drift):agents drift [--json] [--repo <path>] [--all]for single-repo and fleet inspection (exitcode.OKfor clean,exitcode.Advisoryfor drift).Granular
agents doctorDiagnostics (internal/doctor):scaffold:router: Clean current vs. clean legacy vs. drifted vs. missing.scaffold:symlink: Relative symlink integrity (CLAUDE.md -> AGENTS.md).scaffold:domain:.agents/AGENTS.mdpresence.scaffold:skill-recording:.agents/skills/recording-what-you-learn/.scaffold:skill-migrating:.agents/skills/migrating-fleet-context/.Refined
agents updateWiring & Skill Refresh (cmd_fleet.go):migrating-fleet-contextacross registered repositories.Authoritative
migrating-fleet-contextSkill (.agents/skills/):Documentation Invariants:
README.md,agents/README.md, and built-in help text matching live command dispatch tables.Verification
go test -count=1 ./...inagents/: 100% PASS across all 15 packages../bootstrap check: 8 ok, 0 warn, 0 fail.