Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
550 commits
Select commit Hold shift + click to select a range
eaa87ac
docs: update openspec clean-code planning
djm81 Mar 22, 2026
f602dba
Update change status
djm81 Mar 22, 2026
58314e5
fix: code-review-zero-findings dogfood remediation (v0.42.3) (#435)
djm81 Mar 23, 2026
fb3c5fd
Merge branch 'main' into dev
djm81 Mar 23, 2026
2809390
Add docs refactoring changes
djm81 Mar 23, 2026
215df59
Add bug change tracking for encoding and resources
djm81 Mar 24, 2026
2a60f15
docs: restructure core site IA to 6-section progressive nav (#442)
djm81 Mar 24, 2026
81bca26
fix: harden cross-platform runtime and IDE resource discovery (#443)
djm81 Mar 24, 2026
852f446
fix: resolve review type-safety findings
djm81 Mar 24, 2026
2bbde33
Merge branch 'main' into dev
djm81 Mar 24, 2026
8272233
Improve clarity and scope of ide prompt change
djm81 Mar 25, 2026
2f0675c
feat(init): IDE prompt source catalog, --prompts, namespaced exports …
djm81 Mar 25, 2026
278142e
fix tests
djm81 Mar 25, 2026
38a9d21
release: bump version to 0.42.5 and update CHANGELOG
djm81 Mar 25, 2026
f552107
Fix review findings
djm81 Mar 25, 2026
dab2ffe
feat(init): selective IDE prompt export cleanup and VS Code recommend…
djm81 Mar 25, 2026
fbb2307
Fix review findings
djm81 Mar 25, 2026
71e760b
Merge branch 'main' into dev
djm81 Mar 25, 2026
41dc0db
Add missing import
djm81 Mar 25, 2026
2b26098
Bump patch version and changelog
djm81 Mar 25, 2026
90da7da
Fix failed tests
djm81 Mar 25, 2026
1eca7a9
Fix review findings
djm81 Mar 25, 2026
07c19b4
Merge branch 'main' into dev
djm81 Mar 26, 2026
db4ddc3
docs: core vs modules URL contract and OpenSpec alignment (#448)
djm81 Mar 26, 2026
96f35d7
feat(docs-12): docs command validation and cross-site link checks (#449)
djm81 Mar 26, 2026
f11cb9e
fix(scripts): CliRunner without mix_stderr for Click 8.3+ compatibili…
djm81 Mar 26, 2026
7ccb122
fix: review gates (semgrep print, radon CC, icontract, questionary ty…
djm81 Mar 26, 2026
d516657
Merge branch 'main' into dev
djm81 Mar 26, 2026
86bdc7c
Add speckit adapter alignment change and update affected change specs
djm81 Mar 27, 2026
f92c820
feat(adapters): spec-kit v0.4.x adapter alignment (#454)
djm81 Mar 27, 2026
dd1e359
chore: bump version to 0.43.0 for spec-kit v0.4.x alignment (#455)
djm81 Mar 27, 2026
eec640e
fix(packaging): remove workflow prompts from core wheel (packaging-02…
djm81 Mar 27, 2026
f7fefdd
Potential fix for pull request finding 'Empty except'
djm81 Mar 28, 2026
280d158
Merge branch 'main' into dev
djm81 Mar 28, 2026
0cc2c3c
Fix changelog version
djm81 Mar 28, 2026
c1c2e47
docs: unify core docs portal UX (#459)
djm81 Mar 28, 2026
ce49cd5
Harden docs home URL test assertion
djm81 Mar 28, 2026
cb08cbb
Merge branch 'main' into dev
djm81 Mar 29, 2026
715d472
feat: doc frontmatter validation, v0.43.2 review JSON gate, and pre-c…
djm81 Mar 29, 2026
edc89a7
docs: archive doc-frontmatter-schema openspec change
djm81 Mar 29, 2026
85572f2
Apply suggestions from code review
djm81 Mar 29, 2026
117d568
fix: restore protocol stubs for type checking
djm81 Mar 29, 2026
582a53c
Add frontamtter check
djm81 Mar 29, 2026
4c4ef24
fix: harden protocol stubs for code quality
djm81 Mar 29, 2026
52ee695
Add PR test hardening change
djm81 Mar 29, 2026
644474a
fix: remediate review findings and harden review gates
djm81 Mar 30, 2026
3eff782
fix: rebuild review report model for pydantic
djm81 Mar 30, 2026
e44f15a
Merge branch 'main' into dev
djm81 Mar 30, 2026
93ff11e
Add story and onboarding change
djm81 Mar 30, 2026
506679e
Update change tracking
djm81 Mar 30, 2026
f84aa39
Improve scope for ci/cd requirements
djm81 Mar 30, 2026
11391c9
docs: sharpen first-contact story and onboarding (#467)
djm81 Mar 30, 2026
0fc5f1f
fix: harden review blockers and bump patch version
djm81 Mar 30, 2026
ab42fd0
test: harden modules docs url assertions
djm81 Mar 30, 2026
93b6dee
Merge branch 'main' into dev
djm81 Mar 30, 2026
c5efee3
fix: harden trustworthy green checks (#469)
djm81 Mar 30, 2026
30c70f3
fix: address CodeRabbit review findings for ci-02 (#471)
djm81 Mar 30, 2026
7709718
fix: propagate docker actionlint exit code instead of masking failure…
djm81 Mar 30, 2026
1ffdace
fix: assert hook id stability and cd to repo root for local actionlin…
djm81 Mar 30, 2026
4dcf207
Merge branch 'main' into dev
djm81 Mar 30, 2026
9dbe9d4
feat: clean-code-01-principle-gates — 7-principle charter gates, v0.4…
djm81 Mar 31, 2026
9855d35
feat: archive completed openspec changes and update main specs
djm81 Mar 31, 2026
e9e75d4
Merge branch 'main' into dev
djm81 Mar 31, 2026
6663324
Add new user onboarding change
djm81 Apr 1, 2026
b4a7ecf
docs & tooling: new user onboarding + smart-test and pre-commit revie…
djm81 Apr 2, 2026
e87058b
fix: code-review gate (Typer params), typer<0.24 vs semgrep, module u…
djm81 Apr 3, 2026
9696489
docs: restructure README for star conversion (#480)
djm81 Apr 3, 2026
8fe4a26
Merge branch 'main' into dev
djm81 Apr 3, 2026
903b131
Merge branch 'main' into dev
djm81 Apr 5, 2026
f1f1919
archived implemented changes
djm81 Apr 5, 2026
17ac397
Archive and remove outdated changes
djm81 Apr 5, 2026
9900b72
Split and refactor change proposals between both repos
djm81 Apr 8, 2026
2a73434
Merge remote-tracking branch 'origin/main' into dev
djm81 Apr 8, 2026
e8c3848
Archive alignment change
djm81 Apr 8, 2026
98cf86e
Merge branch 'main' into dev
djm81 Apr 8, 2026
5b5bac7
Add changes and github hierarchy scripts
djm81 Apr 9, 2026
280ac57
feat: add GitHub hierarchy cache sync (#492)
djm81 Apr 9, 2026
1b314a1
[codex] Compact agent governance loading (#493)
djm81 Apr 10, 2026
647ce0c
Archived github hierarchy change
djm81 Apr 10, 2026
338aa92
Update from dev
djm81 Apr 10, 2026
c5083cf
Update rules for openspec archive
djm81 Apr 10, 2026
74c566b
Potential fix for pull request finding 'Unused local variable'
djm81 Apr 10, 2026
685bd4e
Add wiki update notes
djm81 Apr 10, 2026
fdcc51a
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Apr 10, 2026
6c9f03b
Archive governance-03 change, format markdown, add wiki instructions …
djm81 Apr 10, 2026
de48d48
Fix review findings
djm81 Apr 10, 2026
186120e
Fix type errors
djm81 Apr 10, 2026
73b8f48
Merge branch 'main' into dev
djm81 Apr 10, 2026
951f3ae
fix: safe VS Code settings merge and project artifact writes (#490) (…
djm81 Apr 12, 2026
14f3b41
Fix review findings (#498)
djm81 Apr 12, 2026
6096c3c
feat(openspec): add marketplace-06-ci-module-signing change proposal
djm81 Apr 13, 2026
448328b
chore(pre-commit): modular hooks + branch-aware module verify (#501)
djm81 Apr 14, 2026
f7e3fd2
apply code review fixes
djm81 Apr 14, 2026
96879a9
apply code review fixes
djm81 Apr 14, 2026
cdf7e4d
merge: integrate origin/dev with local PyPI pre-commit and type-check…
djm81 Apr 14, 2026
29fdca8
merge: integrate origin/main into dev (conflicts resolved favoring dev)
djm81 Apr 14, 2026
3ffec56
fix(pre-commit): include staged deletions in staged_files() for Block 2
djm81 Apr 14, 2026
95ccde3
Fix review findings
djm81 Apr 14, 2026
c8a1116
Fix code review findings
djm81 Apr 14, 2026
b9b8691
feat(ci): module signing on PR approval and manual workflow_dispatch …
djm81 Apr 14, 2026
01e7351
Feature/ci module sign on approval (#504)
djm81 Apr 14, 2026
b2cc72f
feat(ci): workflow_dispatch for sign-modules-on-approval (#505)
djm81 Apr 14, 2026
a1dda6d
fix(ci): module signing workflows, PyPI version check, and review gate
djm81 Apr 14, 2026
85e7b5a
fix(modules): bump init to 0.1.28 for enforce-version-bump on dev
djm81 Apr 14, 2026
e7efd7d
Merge branch 'main' into dev
djm81 Apr 14, 2026
e61a8a2
chore(release): v0.46.2 — require signatures on all PRs to main
djm81 Apr 14, 2026
1ceddab
sign changed package
djm81 Apr 14, 2026
48ea131
fix(modules): bump init to 0.1.29 for dev→main PR version gate
djm81 Apr 14, 2026
7e9504e
Signed modules and bumped version
djm81 Apr 14, 2026
b34f9fb
Signed modules and bumped version
djm81 Apr 14, 2026
55c4c97
Fix sign flow
djm81 Apr 14, 2026
7091747
Merge branch 'main' into dev
djm81 Apr 15, 2026
5d0d82f
feat: dep-security-cleanup (license gate, pycg, commentjson, review e…
djm81 Apr 16, 2026
01d1bb1
apply review findings
djm81 Apr 16, 2026
5125725
Fix publish module and security gate findings
djm81 Apr 16, 2026
4df303c
Fix findings and publish bug
djm81 Apr 16, 2026
bbea309
Fix review findings and publish modules flow
djm81 Apr 16, 2026
1c1624d
Update publish and sign flows
djm81 Apr 16, 2026
e69ea29
Update publish and sign flows
djm81 Apr 16, 2026
ef07858
chore(modules): auto-sign bundled manifests [skip ci] (#510)
github-actions[bot] Apr 16, 2026
daa73c6
Apply code review findings
djm81 Apr 16, 2026
e62d223
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Apr 16, 2026
1e255e5
Fix failed tests
djm81 Apr 16, 2026
ce3bbb4
[codex] Add five-pillar governance OpenSpec wave (#531)
djm81 Apr 19, 2026
f48b156
[codex] stabilize module install and init state (#535)
djm81 Apr 28, 2026
0200ba5
chore(modules): auto-sign bundled manifests [skip ci] (#536)
github-actions[bot] Apr 28, 2026
b6505f4
Merge branch 'main' into dev
djm81 Apr 28, 2026
d0eb4a4
fix: remove unused checksum tuple in verifier
djm81 Apr 28, 2026
be171d3
chore: reduce low-signal coderabbit review noise
djm81 Apr 28, 2026
73741e4
fix: address codex review findings
djm81 Apr 28, 2026
d209150
fix: tighten local gate scope and module verification
djm81 Apr 28, 2026
01702e6
Merge branch 'main' into dev
djm81 Apr 28, 2026
9b7d968
Make `specfact upgrade` install-method-aware (uv/uvx support, pipx/pi…
djm81 May 3, 2026
3f349fc
chore(modules): auto-sign bundled manifests [skip ci] (#540)
github-actions[bot] May 3, 2026
7179e77
fix(upgrade): prefer pipx before uv tool detection
djm81 May 3, 2026
6e65c7d
fix(upgrade): address PR 541 review findings
djm81 May 3, 2026
88f3d90
fix(cli,upgrade): address PR 541 critical findings
djm81 May 3, 2026
082dc06
Update module manifest from main
djm81 May 3, 2026
990d1e8
chore(modules): auto-sign bundled manifests [skip ci] (#546)
github-actions[bot] May 3, 2026
cb00a4b
Fix module upgrade signature and version bump
djm81 May 3, 2026
27afdb5
Fix signature
djm81 May 3, 2026
d470837
chore(modules): auto-sign bundled manifests [skip ci] (#548)
github-actions[bot] May 3, 2026
86e7e70
fix(ci): terminate module publish output list
djm81 May 3, 2026
8a0aa0d
Merge branch 'main' into dev
djm81 May 3, 2026
bed4721
fix(cli): forward bare lazy subcommands (#549)
djm81 May 3, 2026
11a5e1e
Merge branch 'main' into dev
djm81 May 3, 2026
7724ea6
chore(openspec): park 21 deferred proposals + simplify CHANGE_ORDER (…
djm81 May 6, 2026
197c0d1
Ignore claude settings.json
djm81 May 6, 2026
8000f06
docs: refine telemetry change to active opt-in (#555)
djm81 May 6, 2026
a7a5336
Merge branch 'main' into dev
djm81 May 6, 2026
469af46
fix runtime module discovery reliability (#558)
djm81 May 7, 2026
fab4fa6
chore(modules): auto-sign bundled manifests [skip ci] (#559)
github-actions[bot] May 7, 2026
694fdb2
Merge branch 'main' into dev
djm81 May 8, 2026
abc2db1
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 May 8, 2026
a021c53
Merge branch 'main' into dev
djm81 May 8, 2026
4f38ece
[codex] Add module scope version diagnostics (#566)
djm81 May 14, 2026
0c25c8a
chore(modules): auto-sign bundled manifests [skip ci] (#567)
github-actions[bot] May 14, 2026
4322275
fix: address module dependency review findings
djm81 May 17, 2026
3b0f198
fix: address dependency review follow-ups
djm81 May 17, 2026
59be197
Fix dependency resolver bounds and bundle dependency validation
djm81 May 17, 2026
f32da81
Merge branch 'main' into dev
djm81 May 17, 2026
3b13b54
Fix bundled module publish summary quoting
djm81 May 17, 2026
09e3c25
Merge branch 'main' into dev
djm81 May 20, 2026
3f74602
fix(upgrade): suppress benign pipx spaced-home warning (#574)
djm81 May 20, 2026
4ccb2d0
chore(bundled-modules): snapshot from dev@3f74602 (#576)
github-actions[bot] May 20, 2026
5394186
chore(modules): auto-sign bundled manifests [skip ci] (#575)
github-actions[bot] May 20, 2026
717c74d
fix(upgrade): tolerate undecodable child output
djm81 May 20, 2026
15b507c
chore(modules): auto-sign bundled manifests [skip ci] (#578)
github-actions[bot] May 20, 2026
e7b13db
chore(bundled-modules): snapshot from dev@717c74d (#579)
github-actions[bot] May 20, 2026
7d88cb6
Fix registry
djm81 May 20, 2026
b58f924
fix: keep core bundled registry URLs scoped (#580)
djm81 May 20, 2026
edc9651
chore(release): prepare core cli 0.46.28 (#582)
djm81 May 21, 2026
5d5ce89
Merge branch 'main' into dev
djm81 May 21, 2026
03b742f
Merge branch 'main' into dev
djm81 May 21, 2026
47f8e19
Harden CLI command reliability gates (#595)
djm81 Jun 1, 2026
8118ff2
chore(modules): auto-sign bundled manifests [skip ci] (#596)
github-actions[bot] Jun 1, 2026
c6b57a8
chore(bundled-modules): snapshot from dev@47f8e19 (#597)
github-actions[bot] Jun 1, 2026
a711057
fix: align release command validation with modules dev
djm81 Jun 1, 2026
06afb70
fix: tolerate code import alias help ambiguity
djm81 Jun 1, 2026
7e5b1c2
chore(fix): Fix code review findings and PR failure
djm81 Jun 2, 2026
82ed1ba
chore: fix PR 598 validation failures
djm81 Jun 2, 2026
9837a13
chore(modules): auto-sign bundled manifests [skip ci] (#599)
github-actions[bot] Jun 2, 2026
ed37663
chore(bundled-modules): snapshot from dev@82ed1ba (#600)
github-actions[bot] Jun 2, 2026
c4fd804
Merge branch 'main' into dev
djm81 Jun 2, 2026
b298fc1
docs: position SpecFact as AI-bloat defense CLI (#601)
djm81 Jun 2, 2026
dcc5a03
chore: archive completed docs OpenSpec change (#603)
djm81 Jun 2, 2026
c3d6c68
Archive upgrade-01 change
djm81 Jun 2, 2026
c8faa8f
Merge branch 'main' into dev
djm81 Jun 2, 2026
89df5ec
Fix conflict
Jun 6, 2026
9266fa9
add cli fix change
Jun 9, 2026
913f089
Ignore agent skills meant for local only
Jun 12, 2026
65608b4
Fix merge conflict
Jun 12, 2026
0e3c4d3
fix: replace stale flat command references and guard llms.txt freshne…
djm81 Jun 12, 2026
5308d1e
Don't ignore openspec workflow rules
Jun 12, 2026
da416b9
Tighten CI gates and module verification (#609)
djm81 Jun 13, 2026
09e95cf
Merge branch 'main' into dev
djm81 Jun 13, 2026
0a5f8d9
: use checked-in semgrep sast config
djm81 Jun 13, 2026
65dfe70
fix: harden pr gate remediation
djm81 Jun 13, 2026
10dda75
chore(modules): auto-sign bundled manifests (#611)
github-actions[bot] Jun 13, 2026
8fa6886
chore(modules): auto-sign bundled manifests (#613)
github-actions[bot] Jun 13, 2026
8b5fd59
chore(bundled-modules): snapshot from dev@8fa6886 (#615)
github-actions[bot] Jun 13, 2026
3154509
fix: refresh module consoles before install tests
djm81 Jun 13, 2026
66bca99
chore(modules): auto-sign bundled manifests (#616)
github-actions[bot] Jun 13, 2026
d568987
chore(bundled-modules): snapshot from dev@3154509 (#617)
github-actions[bot] Jun 13, 2026
ed2e2b7
chore(modules): auto-sign bundled manifests (#618)
github-actions[bot] Jun 13, 2026
30971b6
chore(bundled-modules): snapshot from dev@ed2e2b7 (#619)
github-actions[bot] Jun 13, 2026
519a599
test: avoid brittle bundle install capture
djm81 Jun 14, 2026
0853fde
chore(modules): auto-sign bundled manifests (#620)
github-actions[bot] Jun 14, 2026
ee041a9
chore(bundled-modules): snapshot from dev@519a599 (#621)
github-actions[bot] Jun 14, 2026
7705853
chore(modules): auto-sign bundled manifests (#622)
github-actions[bot] Jun 14, 2026
ead57ea
chore(bundled-modules): snapshot from dev@7705853 (#623)
github-actions[bot] Jun 14, 2026
890a5c9
feat(init): add validation profile layering (#624)
djm81 Jul 6, 2026
1ba3499
docs: add agent behavioral defaults
djm81 Jul 6, 2026
624b4ca
chore(modules): auto-sign bundled manifests (#625)
github-actions[bot] Jul 6, 2026
0d3b889
chore(bundled-modules): snapshot from dev@890a5c9 (#626)
github-actions[bot] Jul 6, 2026
625917e
chore(modules): auto-sign bundled manifests (#627)
github-actions[bot] Jul 6, 2026
f3d3ea5
chore(bundled-modules): snapshot from dev@625917e (#628)
github-actions[bot] Jul 6, 2026
d3a55a3
Merge branch 'main' into dev
djm81 Jul 7, 2026
c7b6719
Add requirements evidence input model (#630)
djm81 Jul 7, 2026
3803860
fix: address promotion review feedback
djm81 Jul 7, 2026
b3db513
chore: bump version after promotion fix
djm81 Jul 7, 2026
e034d40
docs: address requirements spec review
djm81 Jul 7, 2026
c630133
feat: add requirements context adapter (#632)
djm81 Jul 8, 2026
f80a769
docs: align use-case claims with validation-evidence positioning (#633)
djm81 Jul 8, 2026
35592a1
fix: address release review feedback
djm81 Jul 8, 2026
a2723c4
Merge remote-tracking branch 'origin/main' into dev
djm81 Jul 8, 2026
17d8964
fix: finalize release review cleanup
djm81 Jul 8, 2026
95e327a
chore: bump release to 0.50.1
djm81 Jul 8, 2026
1647522
docs: address release review scope comments
djm81 Jul 8, 2026
d647b9a
Merge branch 'main' into dev
djm81 Jul 8, 2026
b75f524
fix: mount requirements module command
djm81 Jul 8, 2026
ae93405
fix: include requirements in init bundles
djm81 Jul 8, 2026
754eca5
docs: document requirements marketplace bundle
djm81 Jul 8, 2026
cd797a4
chore(modules): auto-sign bundled manifests (#636)
github-actions[bot] Jul 8, 2026
05467e5
chore(bundled-modules): snapshot from dev@ae93405 (#637)
github-actions[bot] Jul 8, 2026
1d0d15a
chore(modules): auto-sign bundled manifests (#638)
github-actions[bot] Jul 8, 2026
813c54b
chore(bundled-modules): snapshot from dev@1d0d15a (#640)
github-actions[bot] Jul 8, 2026
dc05112
Merge branch 'main' into dev
djm81 Jul 9, 2026
53f0c70
feat(validation): complete evidence trace core (#641)
djm81 Jul 9, 2026
a264d81
fix(validation): harden evidence contracts
djm81 Jul 9, 2026
8cd5a32
fix(docs): enforce module accountability (#644)
djm81 Jul 10, 2026
825c159
Potential fix for pull request finding 'Statement has no effect'
djm81 Jul 10, 2026
a227abd
Merge branch 'main' into dev
djm81 Jul 10, 2026
9eee6c8
fix(test): skip missing modules fixture
djm81 Jul 10, 2026
314b7db
fix(docs): harden accountability checks
djm81 Jul 10, 2026
06b0b8a
Merge branch 'main' into dev
djm81 Jul 10, 2026
43eab1f
docs(openspec): rescope openspec-01 to import-first requirement evidence
djm81 Jul 13, 2026
1adab92
docs(openspec): fold profile-resolution fix into openspec-01 scope
djm81 Jul 13, 2026
8570d71
feat(requirements): import upstream evidence (#646)
djm81 Jul 13, 2026
d751a2d
fix(requirements): harden import evidence
djm81 Jul 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,48 @@ All notable changes to this project will be documented in this file.

---

## [0.52.3] - 2026-07-14

### Fixed

- **Upstream evidence review remediation**: preserve wrapped OpenSpec scenario
clauses, report malformed Spec Kit requirement entries, and tolerate invalid
UTF-8 in optional profile configuration.

---

## [0.52.2] - 2026-07-13

### Fixed

- **OpenSpec schema import resilience**: reject invalid UTF-8 configuration
with the standard fail-closed source-schema diagnostic instead of crashing.

---

## [0.52.1] - 2026-07-13

### Fixed

- **Import evidence review hardening**: reject malformed OpenSpec schema
declarations, preserve unique deterministic requirement identities, resolve
relative source locators from the project root, and tolerate unreadable
optional profile configuration.

---

## [0.52.0] - 2026-07-13

### Added

- **Upstream requirements evidence import**: normalize native OpenSpec and
Spec Kit requirement sources into deterministic, auditable records, with
source hashes, import gates, layered profile mappings, and required-field
advisories. Unsupported or customized source schemas now fail closed without
emitting partial records.

---

## [0.51.2] - 2026-07-10

### Fixed
Expand Down
62 changes: 61 additions & 1 deletion docs/reference/requirements-context-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ expertise_level: [advanced]
doc_owner: specfact-cli
tracks:
- src/specfact_cli/requirements/context.py
- src/specfact_cli/requirements/importers.py
- tests/unit/requirements/test_context_adapter.py
last_reviewed: 2026-07-08
- tests/unit/requirements/test_upstream_evidence_imports.py
last_reviewed: 2026-07-13
exempt: false
exempt_reason: ""
---
Expand All @@ -26,6 +28,10 @@ requirements authoring workflow.

- `normalize_requirement_records(...)` converts source-attributed mappings or
`RequirementInput` objects into normalized records and bounded diagnostics.
- `import_openspec_change(...)` reads a native OpenSpec change folder and
derives deterministic, source-attributed requirement records.
- `import_speckit_feature(...)` reads a native Spec Kit feature folder through
the existing scanner and derives deterministic requirement records.
- `attach_requirements_to_bundle(...)` stores normalized records under the
existing `requirements.inputs` `ProjectBundle` extension.
- `load_requirements_from_bundle(...)` reads that extension back into
Expand All @@ -38,6 +44,49 @@ requirements authoring workflow.
callers supply `known_targets`, it also returns deterministic stale-link drift
findings for evidence consumers.

Both native import helpers are read-only. They derive stable IDs, preserve
Given/When/Then scenarios as business rules, and record the parsed artifact's
`sha256:` revision. Re-running unchanged input produces the same records.

## Source Compatibility Boundary

Imports are deliberately fail-closed. The core supports only fixture-backed
default Markdown profiles: OpenSpec `spec-driven` (or no declared schema) with
native `Requirement` and `Scenario` headings, and the default Spec Kit
`Feature Specification`/`FR-` template. A custom OpenSpec schema, a Spec Kit
template override/preset/extension root, or unknown required heading produces
an error `unsupported-source-schema` diagnostic and no records from that
source.

The adapter does not infer an upstream CLI version from Markdown or fetch a
live schema during import: native artifacts do not consistently carry a tool
version, and network-dependent parsing would make CI non-reproducible. To add
an upstream format, add a pinned representative fixture, extend the core
profile, and pass its compatibility test before release.

## Import Validation Gates

For OpenSpec and Spec Kit records, `validate_requirement_context(...)` emits
machine-readable findings for:

- `scenario-unverified`: a derived scenario has no test or validation link.
- `stale-import`: an artifact's current bytes no longer match its imported
`sha256:` revision.
- `source-missing`: an imported artifact is no longer available.
- `ambiguous-mapping`: different imported sources claim the same derived ID.

An error-severity finding makes the paired `requirements validate` command
exit non-zero; the module runtime owns terminal formatting and command flags.
The core helper also preserves `missing-evidence` as a stable, machine-readable
finding code.

When no profile is passed, validation resolves the layered profile from the
organization, repository, and developer-local configuration. The adapter maps
only evidence-backed required fields: `id`, `title`, `acceptance`, and
`trace_links`. Other profile fields are surfaced as
`unsupported-profile-field` advisories rather than requiring OpenSpec or Spec
Kit authors to add SpecFact metadata.

```python
from specfact_cli.models.requirements import RequirementInput, RequirementSourceReference
from specfact_cli.requirements.context import (
Expand Down Expand Up @@ -70,6 +119,17 @@ The `requirements` command group is owned by the requirements module runtime.
Runtime commands should call the core helpers instead of parsing provider
payloads directly inside root CLI code.

After this core change ships, the paired module change will add
`requirements import --from-openspec` and `--from-speckit`; those flags will
delegate entirely to these core helpers.
`requirements import --from-file` remains the generic fallback for records
outside the supported native profiles.

The currently released requirements module does not expose those native-import
flags yet. It remains compatible because it uses only `--from-file`; the paired
module release for #168 will declare a `0.52.0` core compatibility floor before
exposing `--from-openspec` or `--from-speckit`.

## Compatibility Notes

- Requirement inputs must include `schema_version` and at least one source
Expand Down
13 changes: 8 additions & 5 deletions openspec/CHANGE_ORDER.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ planning workflows.
|---:|---|---|---|---|
| 1 | `requirements-01-data-model` | [#238](https://github.com/nold-ai/specfact-cli/issues/238) | Normalized requirements-input records for evidence | arch-07 |
| 2 | `requirements-02-module-commands` | [#239](https://github.com/nold-ai/specfact-cli/issues/239) | Import and normalize existing requirement context | requirements-01 |
| 3 | `requirements-03-backlog-sync` | [#244](https://github.com/nold-ai/specfact-cli/issues/244) | Read-first drift evidence; no write-back critical path | requirements-02; modules `sync-01` |
| 3 | `openspec-01-intent-trace` | [#350](https://github.com/nold-ai/specfact-cli/issues/350) | Import-first OpenSpec and Spec Kit requirement evidence with pass/fail gates (rescoped 2026-07-13) | requirements-01/02 |
| 4 | `architecture-01-solution-layer` | [#240](https://github.com/nold-ai/specfact-cli/issues/240) | Architecture-boundary records and drift validation | requirements input contracts |
| 5 | `openspec-01-intent-trace` | [#350](https://github.com/nold-ai/specfact-cli/issues/350) | Optional OpenSpec and Spec Kit evidence adapter | requirements-01/02 |
| Parked | `requirements-03-backlog-sync` | [#244](https://github.com/nold-ai/specfact-cli/issues/244) | Read-first drift evidence; no write-back critical path. Deprioritized 2026-07-13 behind openspec-01 | requirements-02; modules `sync-01` |
| Gated | `architecture-02-well-architected-review` | [#524](https://github.com/nold-ai/specfact-cli/issues/524) | Architecture-boundary review findings | architecture-01 shipped plus one usage cycle |
| Gated | `telemetry-01-opentelemetry-default-on` | [#518](https://github.com/nold-ai/specfact-cli/issues/518) | Opt-in validation outcome telemetry only | governance-01 evidence fields |

Expand All @@ -111,7 +111,7 @@ Update each proposal first, then run strict OpenSpec validation.
| `requirements-02-module-commands` | Drop requirement authoring as a flagship path. Keep import, normalization, validation, and coverage inspection. |
| `requirements-03-backlog-sync` | Make drift detection/read-first import the product value. Keep write-back preview out of the critical path. |
| `architecture-01-solution-layer` | Reduce to architecture-boundary validation and drift evidence. Do not generate architecture. |
| `openspec-01-intent-trace` | Rewrite as an optional adapter that consumes OpenSpec and Spec Kit artifacts. |
| `openspec-01-intent-trace` | Done 2026-07-13: rescoped to import-first adapter consuming native OpenSpec and Spec Kit artifacts with deterministic pass/fail gates. |
| `dogfooding-01-full-chain-e2e-proof` | Rewrite proof around real PR review, JSON evidence, AI-bloat findings, remediation packets, rerun proof. |
| `ai-integration-01-agent-skill` | Teach agents to run SpecFact validation and interpret evidence. |
| `ai-integration-03-instruction-files` | Generate lightweight validation aliases only. |
Expand Down Expand Up @@ -155,9 +155,12 @@ Update each proposal first, then run strict OpenSpec validation.

### Wave 5 - Optional adapters and later extensions

- `requirements-01/02/03` only as validation input adapters.
- `requirements-01/02` only as validation input adapters (shipped);
`requirements-03` parked 2026-07-13.
- `architecture-01` only as architecture-boundary validation input.
- `openspec-01` as optional OpenSpec and Spec Kit evidence adapter.
- `openspec-01` as import-first OpenSpec and Spec Kit requirement evidence
adapter with deterministic gates; pulled forward to Track C order 3 on
2026-07-13 (rescoped, no longer positioned as optional-only).
- `architecture-02`, `telemetry-01`, and `ai-integration-02` only after pull
from the validation loop exists.

Expand Down
Loading
Loading