Skip to content

Implement Architecture Decision Registry and Semantic Graph features#41

Merged
fuseraft merged 4 commits into
mainfrom
feature/ctx
Jun 2, 2026
Merged

Implement Architecture Decision Registry and Semantic Graph features#41
fuseraft merged 4 commits into
mainfrom
feature/ctx

Conversation

@fuseraft
Copy link
Copy Markdown
Owner

@fuseraft fuseraft commented Jun 2, 2026

No description provided.

Scott Stauffer added 4 commits June 1, 2026 22:14
- Agents operating across long sessions have no durable record of why
  decisions were made; new sessions re-litigate settled choices
- AdrEntry / AdrStore / AdrRegistry provide a JSON-backed store under
  .fuseraft/knowledge/decisions/ with atomic writes and semaphore safety
- DecisionPlugin exposes decision_search, decision_read, decision_create,
  decision_supersede with read/write capability split in PluginCapabilityMap
- ADR injection into context assembly deferred to Gap 2 (graph traversal)
- Provides structured symbol-level indexing so ADR retrieval and context
  assembly can be driven by graph traversal instead of path/tag matching
- ChangeTracker now fires incremental graph rebuilds after .cs file writes
  so the graph stays current without a manual rebuild between sessions
- adr_graph context source in ContextAssembler walks adr_governs edges
  from recently touched files, automatically surfacing governing ADRs at
  handoff time without requiring explicit context declarations
- Gap 1 and Gap 2 subsystems were independently instantiated in three
  separate places (ChangeTracker, ContextAssembler, PluginRegistry),
  so graph writes from one path were invisible to reads from another;
  a single shared KnowledgeLayer eliminates that divergence
- DecisionPlugin previously held a direct RepositoryGraphBuilder ref,
  coupling the ADR subsystem to the graph subsystem; routing create
  through IKnowledgeLayer.RecordDecisionAsync removes that dependency
- ClaimRecord and Objective stubs define the interface surface for
  Gaps 3 and 7 so callers can program to IKnowledgeLayer now
- Gaps 3–9 close all remaining knowledge subsystems: provenance/confidence
  tracking, repository memory with approval workflow, architecture drift
  detection, dependency planner, objective tracking, adaptive context broker,
  and lifecycle GC — each gap builds on IKnowledgeLayer so subsystems stay
  decoupled
- fuseraft init now scaffolds .fuseraft/knowledge/ tree and writes default
  architecture.yaml and lifecycle.yaml on first run (skips if already present)
- KnowledgeLayerRoundTripTests covers all 8 round-trip stages end-to-end plus
  GC correctness (superseded ADR archival, stale memory demotion, expired claim
  compaction, dry-run writes nothing)
- docs/knowledge.md is a new reference covering every subsystem, the SymbolId
  scheme, confidence tiers, directory layout, and plugin tool index;
  cli-reference.md adds full sections for graph, arch, knowledge, memory, and
  objective command groups
@fuseraft fuseraft merged commit deaa9e3 into main Jun 2, 2026
1 check passed
fuseraft pushed a commit that referenced this pull request Jun 2, 2026
- craft-orchestration and config-audit had no mention of the three
  knowledge-layer plugins shipped in PR #40/#41; agents building or
  auditing configs would silently omit them
- schema-cheatsheet updated so the full plugin table is current
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