SpecFact CLI Architecture Discrepancies Report
Executive Summary
This report originally captured architecture documentation and spec/code discrepancies.
It is now updated after remediation work completed in OpenSpec change
arch-08-documentation-discrepancies-remediation (2026-02-22).
- Scope of this report: architecture docs/spec/code alignment status
- Current status: most documentation discrepancies are resolved
- Remaining gaps: implementation gaps that are intentionally documented as planned/partial
Baseline and Sources
- Remediation change:
openspec/changes/arch-08-documentation-discrepancies-remediation/ - Verification checklist:
openspec/changes/arch-08-documentation-discrepancies-remediation/DOC_VERIFICATION_CHECKLIST.md - Architecture reference:
docs/reference/architecture.md - Architecture docs index:
docs/architecture/README.md - Implementation status:
docs/architecture/implementation-status.md
Discrepancy Status Matrix
Legend:
Resolved: discrepancy has been remediated and documented accuratelyPartial: discrepancy is reduced/clarified, but implementation is still incompleteOpen: discrepancy remains and requires additional implementation/spec work
- Module system implementation vs docs:
Resolved - Bridge adapter interface mismatch:
Resolved - Operational modes docs gap:
Resolved(documented current limits and planned behavior) - Architecture layer mismatch:
Resolved - Command registry implementation detail gap:
Resolved - Module package structure missing in docs:
Resolved - Adapter capabilities docs gap:
Resolved - Architecture derive command missing in implementation:
Open(proposal now split/rescoped; no flat core command is authorized) - Change tracking implementation partial vs spec breadth:
Partial - Protocol FSM implementation minimal vs detailed spec:
Partial - Diagram references to non-existent components:
Resolved - Outdated performance metrics:
Resolved(outdated hard claims removed/tempered) - Missing error handling documentation:
Resolved - Missing architecture module vs architecture specs:
Open(runtime delivery must be reassigned into canonical grouped bundle ownership) - Incomplete bridge adapter implementations vs references:
Partial - Protocol validation gaps:
Partial - Terminology inconsistencies:
Resolved - Version reference inconsistencies:
Resolved - Feature maturity mismatch (experimental vs production-ready):
Resolved - No ADR records:
Resolved - Missing module development guide:
Resolved - Missing adapter development guide:
Resolved - Missing architecture commands:
Open(the old flat command family is no longer the target shape) - Partial change tracking coverage:
Partial - Incomplete protocol support:
Partial
Resolved in arch-08
The following remediation outputs are now present:
- Updated architecture reference with accurate module-first status and adapter contract details.
- Updated architecture pages (
module-system,component-graph,data-flow,state-machines,interface-contracts). - Added ADR structure and initial ADR:
docs/architecture/adr/README.mddocs/architecture/adr/template.mddocs/architecture/adr/0001-module-first-architecture.md
- Added implementation status page for implemented vs planned capabilities.
- Added/updated development guides:
docs/guides/module-development.mddocs/guides/adapter-development.md
- Navigation and discoverability updates in:
docs/_layouts/default.htmldocs/index.md
Remaining Gaps (Not Doc-Only)
These items are not documentation mismatches anymore; they are implementation/spec-delivery work:
specfact architecture derive|validate|tracecommand family is still planned.- That original flat command shape is now stale relative to the lean-core plus bundles architecture.
- Any future delivery must be split into core-owned contracts and grouped bundle-owned runtime commands in
specfact-cli-modules.
- Protocol FSM execution/validation engine is still partial.
- Change tracking depth is not yet uniform across all adapters/providers.
- Some architecture-level capabilities remain defined in OpenSpec before runtime delivery.
Follow-Up Plan
Phase A: Architecture command delivery
- Rescope
architecture-01-solution-layerand related changes onto canonical grouped command owners before implementation work starts. - Keep shared contracts and schema work in core; deliver any runtime command surface from the appropriate bundle in
specfact-cli-modules. - Add contract/integration tests and usage docs only after the post-split command home is approved.
Phase B: Protocol runtime completion
- Expand protocol FSM execution and guard validation support.
- Align docs/spec examples with actual runtime constraints.
Phase C: Change tracking normalization
- Standardize change-tracking semantics across adapters.
- Document provider-level capability matrix explicitly.
Maintenance Rules
- Keep
docs/architecture/implementation-status.mdas the canonical implemented-vs-planned source. - When a planned capability ships, update both implementation status and this report in the same PR.
- If a new discrepancy is found, add it with
Resolved/Partial/Openstatus and an owner change reference.
Conclusion
Documentation discrepancies targeted by arch-08 are substantially remediated.
The remaining items are primarily implementation backlog items, now clearly documented as planned or partial rather than presented as current behavior.