Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
700c360
perf: optimize startup performance with metadata tracking and update …
djm81 Jan 27, 2026
4b167dd
Merge branch 'main' into dev
djm81 Jan 27, 2026
e4782ea
fix: add missing ADO field mappings and assignee display (#145)
djm81 Jan 27, 2026
a2f6ac7
Merge branch 'main' into dev
djm81 Jan 27, 2026
c74a773
fix: mitigate code scanning vulnerabilities (#148)
djm81 Jan 27, 2026
af030dc
fix: detect GitHub remotes using ssh:// and git:// URLs
djm81 Jan 27, 2026
db827a0
chore: bump version to 0.26.9 and update changelog
djm81 Jan 27, 2026
1ade334
Merge branch 'main' into dev
djm81 Jan 27, 2026
5c1cb41
fix: compare GitHub SSH hostnames case-insensitively
djm81 Jan 27, 2026
68cc345
Merge branch 'main' into dev
djm81 Jan 27, 2026
dfeb7ca
Add openspec and workflow commands for transparency
djm81 Jan 27, 2026
9e1f22d
Add specs from openspec
djm81 Jan 27, 2026
115e402
Remove aisp change which wasn't implemented
djm81 Jan 27, 2026
2675361
Fix openspec gitignore pattern
djm81 Jan 27, 2026
573fb7b
Update gitignore
djm81 Jan 27, 2026
907501e
Update contribution standards to use openspec for SDD
djm81 Jan 27, 2026
568000c
Merge branch 'main' into dev
djm81 Jan 27, 2026
fe082f6
Migrate to new opsx openspec commands
djm81 Jan 27, 2026
036afbe
Migrate workflow and openspec config
djm81 Jan 28, 2026
5a1493f
fix: bump version to 0.26.10 for PyPI publish
djm81 Jan 28, 2026
da606a1
Update version and changelog
djm81 Jan 28, 2026
608f317
Add canonical user-friendly workitem url for ado workitems
djm81 Jan 28, 2026
719256c
Update to support OSPX
djm81 Jan 28, 2026
1f94d7c
Merge branch 'main' into dev
djm81 Jan 28, 2026
bbf730a
feat(backlog): implement refine --import-from-tmp and fix type-check …
djm81 Jan 28, 2026
080743a
Merge branch 'main' into dev
djm81 Jan 28, 2026
5ab46a5
Merge branch 'main' into dev
djm81 Jan 28, 2026
1cdfc66
feat: debug logs under ~/.specfact/logs and release 0.26.13 (#159)
djm81 Jan 29, 2026
6bd9d7f
Potential fix for pull request finding 'Empty except'
djm81 Jan 29, 2026
d7d194b
Fix unused variable review
djm81 Jan 29, 2026
39563fc
Fix unused variable review
djm81 Jan 29, 2026
d15485a
Fix type and test errors
djm81 Jan 29, 2026
6c9c9b9
Merge branch 'main' into dev
djm81 Jan 29, 2026
bd9b96a
Finalize change
djm81 Jan 29, 2026
c7e4546
Change for debug logs archived
djm81 Jan 29, 2026
09e8040
Merge branch 'main' into dev
djm81 Jan 29, 2026
642e1a9
fix: improve ADO backlog refine error logging and user-facing error U…
djm81 Jan 29, 2026
64365db
Merge branch 'main' into dev
djm81 Jan 29, 2026
0d0abba
feat: backlog refine --ignore-refined and --id, startup docs (fixes #…
djm81 Jan 30, 2026
aad02cd
Add change proposals for full scrum support
djm81 Jan 30, 2026
a3c3fb4
Merge branch 'main' into dev
djm81 Jan 30, 2026
1f054c5
Add support for systematic, structured issue creation with copilot help
djm81 Jan 30, 2026
899b9c2
feat(backlog): daily standup defaults, iteration/sprint, unassigned i…
djm81 Feb 3, 2026
b596766
Issue 179 resolution (#180)
djm81 Feb 3, 2026
bb7214f
Merge branch 'main' into dev
djm81 Feb 3, 2026
61a820c
fix(backlog): address CodeQL/Codex PR 181 findings
djm81 Feb 3, 2026
10fee30
Update openspec enforcement rules
djm81 Feb 3, 2026
8e770dc
Structure openspec changes
djm81 Feb 3, 2026
5782860
Fix ruff finding
djm81 Feb 3, 2026
05c592d
Fix linter issues with StrEnum and parameters
djm81 Feb 3, 2026
f7e3d0f
Fix tests and depcreation warnings
djm81 Feb 3, 2026
15d710b
Improve sync script
djm81 Feb 3, 2026
b223161
Merge branch 'main' into dev
djm81 Feb 3, 2026
870db6a
Add change for modular command registry
djm81 Feb 3, 2026
5404c18
Fix review finding on dev sync script
djm81 Feb 3, 2026
e4650dd
Update modular change proposal
djm81 Feb 4, 2026
c44013e
feat: CLI modular command registry and lazy load (arch-01) (#196)
djm81 Feb 4, 2026
542183c
docs: document CLI modules design; sync version and cleanup
djm81 Feb 4, 2026
c4b10d8
Archive modular change and specs
djm81 Feb 4, 2026
a7a83c2
Merge branch 'main' into dev
djm81 Feb 4, 2026
2faf547
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Feb 4, 2026
b5d2680
Fix banner display on help screen
djm81 Feb 4, 2026
077ff3f
Improve action runner on main
djm81 Feb 4, 2026
7567149
Merge branch 'main' into dev
djm81 Feb 4, 2026
8a0a38f
Setup claude skills and instructions
djm81 Feb 5, 2026
336efb5
feat: module package separation for command implementations (#200)
djm81 Feb 6, 2026
ad023f5
Merge branch 'main' into dev
djm81 Feb 6, 2026
8b4adcb
fix: address CodeQL and Codex review findings from PR #201
djm81 Feb 6, 2026
b44ce9c
Merge branch 'main' into dev
djm81 Feb 6, 2026
a6b9d32
feat: module lifecycle management, init split, and interactive module…
djm81 Feb 6, 2026
de89bba
archived change for module improvements
djm81 Feb 6, 2026
b4edcfb
Merge branch 'main' into dev
djm81 Feb 6, 2026
bc71080
fix: address review feedback in init and boundary tests
djm81 Feb 6, 2026
e5d7002
Fix test setup for tmpfiles
djm81 Feb 6, 2026
c97080b
Merge branch 'main' into dev
djm81 Feb 6, 2026
46b1357
docs: add openspec change arch-05 bridge registry (#210)
djm81 Feb 8, 2026
20410a6
docs: add openspec change arch-06 manifest security (#211)
djm81 Feb 8, 2026
04aba4b
feat: Core Contracts and Module Interface Formalization (#209)
djm81 Feb 8, 2026
0f492f6
Update specs and archive arch-04 change
djm81 Feb 8, 2026
7656d7c
Fix changelog format
djm81 Feb 8, 2026
b826fb6
docs: align arch-05 scope with protocol migration cleanup (#212)
djm81 Feb 8, 2026
c8ec9bb
docs: add OpenSpec changes for module marketplace phases
djm81 Feb 9, 2026
b6e1fe1
feat: apply arch-05 bridge registry implementation (#216)
djm81 Feb 10, 2026
f10e14e
Archive arch-05 change after implementation
djm81 Feb 10, 2026
285a9ff
Merge branch 'main' into dev
djm81 Feb 10, 2026
5075d0c
fix: address post-merge review findings and restore lazy registration
djm81 Feb 10, 2026
31e6924
fix: refresh project console per invocation in tests
djm81 Feb 10, 2026
d7ca6af
fix: detect runtime interface protocol ops in source scan
djm81 Feb 10, 2026
0e5463f
fix: harden project console refresh and protocol source scan
djm81 Feb 10, 2026
57c729b
fix: refresh import command console for each invocation
djm81 Feb 10, 2026
e270e09
fix: resolve type-check errors and harden protocol scanning
djm81 Feb 10, 2026
7cc1c48
fix: stabilize module protocol scan and project console lifecycle
djm81 Feb 10, 2026
5996a1d
Merge branch 'main' into dev
djm81 Feb 10, 2026
81527a5
Refine pending changes for new modular ecosystem and marketplace inte…
djm81 Feb 10, 2026
6fd151a
fix: update stale spec-delta paths in tasks.md after change renames
djm81 Feb 10, 2026
22640fa
docs: rewrite CHANGE_ORDER.md for module-scoped changes and full depe…
djm81 Feb 10, 2026
e7d69d6
Merge branch 'main' into dev
djm81 Feb 10, 2026
9a7f9f6
feat(backlog): daily/refine comment context, interactive standup post…
djm81 Feb 11, 2026
e61d56b
fix(backlog): satisfy interactive daily adapter typing
djm81 Feb 11, 2026
fff65e9
fix(backlog): bypass default daily limit for issue-window flags
djm81 Feb 11, 2026
b2a8ab5
Merge branch 'main' into dev
djm81 Feb 11, 2026
88ea93c
fix: parse backlog refine writeback fields and refactor refine comman…
djm81 Feb 12, 2026
f3c5759
fix: avoid raw label fallback when description block is missing
djm81 Feb 12, 2026
f9f2fcc
Merge branch 'main' into dev
djm81 Feb 12, 2026
1870cfe
fix: harden backlog refine prompt scaffold and mixed-format parsing (…
djm81 Feb 12, 2026
16db526
Finish change
djm81 Feb 12, 2026
a3e8ff2
chore: bump version to 0.30.4 and update changelog
djm81 Feb 12, 2026
1bdcbc9
Merge branch 'main' into dev
djm81 Feb 12, 2026
998ab59
Add MEMORY.md for claude code
djm81 Feb 12, 2026
bedf75c
Archive backlog writeback field split change
djm81 Feb 12, 2026
6e66806
Archived flask support sidecar change
djm81 Feb 12, 2026
7d6c550
feat: add backlog-core module β€” dependency analysis and command suite…
djm81 Feb 13, 2026
4d1f950
Merge branch 'main' into dev
djm81 Feb 13, 2026
47ea3f4
fix(backlog-core): remove unused module io contract global
djm81 Feb 13, 2026
2509412
Fixed conflict
djm81 Feb 14, 2026
d8d17a5
fix: rename LICENSE.md to LICENSE for GitHub license detection (#233)
djm81 Feb 14, 2026
100c94f
fix: restore standard Apache 2.0 license text for GitHub detection (#…
djm81 Feb 14, 2026
002cf19
Merge branch 'main' into dev
djm81 Feb 14, 2026
ee0b766
Add openspec changes for architecture level enhancement
djm81 Feb 15, 2026
540c96a
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Feb 15, 2026
ea430ab
Merge branch 'main' into dev
djm81 Feb 15, 2026
6dc73ca
Merge branch 'main' into dev
djm81 Feb 16, 2026
d621e91
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Feb 16, 2026
1b06427
feat(ci): attach test and repro log artifacts to PR orchestrator runs…
djm81 Feb 16, 2026
0bc52a5
feat: enhanced module manifest security and integrity (arch-06) (#263)
djm81 Feb 16, 2026
3f09ee7
feat: Schema Extension System for Modular ProjectBundle Extensions (a…
djm81 Feb 16, 2026
e959e61
Merge branch 'main' into dev
djm81 Feb 16, 2026
ba08744
Fix codeql findings
djm81 Feb 16, 2026
a3a3b6a
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Feb 16, 2026
87a499f
Merge branch 'main' into dev
djm81 Feb 17, 2026
faf3b2e
feat(workflow): standardize worktree-first development flow (#268)
djm81 Feb 17, 2026
5c72c9f
Fix review finding
djm81 Feb 17, 2026
c51e96e
Merge branch 'main' into dev
djm81 Feb 17, 2026
deb176a
feat: implement policy-engine-01 unified policy framework (#270)
djm81 Feb 18, 2026
22a19a9
fix: harden policy module imports and snapshot path resolution
djm81 Feb 18, 2026
2724dbd
Merge branch 'main' into dev
djm81 Feb 18, 2026
1970266
Update backlog core change to cover workspace level modules
djm81 Feb 18, 2026
806f765
feat(init): align init module discovery with registry (backlog-core-0…
djm81 Feb 18, 2026
87dafba
feat: add thorough codebase validation (validation-01, #163) (#272)
djm81 Feb 18, 2026
1aac44f
feat: add patch apply (local + --write with confirmation) [#177] (#273)
djm81 Feb 18, 2026
d835ffb
feat: add bundle-mapper module (bundle-mapper-01, #121) (#274)
djm81 Feb 18, 2026
85576de
Archive finished changes
djm81 Feb 18, 2026
94a8ed1
fix: implement verification-01 wave1 delta closure (#277)
djm81 Feb 18, 2026
0f4a77c
Archive delta validation change and update specs
djm81 Feb 18, 2026
e2c93d1
Update patch version
djm81 Feb 18, 2026
c1c41f5
Potential fix for pull request finding 'Empty except'
djm81 Feb 19, 2026
27063ba
apply review fixes
djm81 Feb 19, 2026
6350aa8
Merge branch 'main' into dev
djm81 Feb 19, 2026
767d5b8
Add cli validation changes
djm81 Feb 19, 2026
3f4e1a3
Merge branch 'main' into dev
djm81 Feb 19, 2026
4f4b2ff
feat: launch central module marketplace lifecycle (#287)
djm81 Feb 21, 2026
78ddf06
Merge branch 'main' into dev
djm81 Feb 21, 2026
6772f0a
fix: resolve bundle-mapper review defects with TDD evidence (#290)
djm81 Feb 22, 2026
4529df1
feat:Add architecture review docs and findings to mitigate
djm81 Feb 22, 2026
cc50388
Merge branch 'dev' of https://github.com/nold-ai/specfact-cli into dev
djm81 Feb 22, 2026
53a0fce
feat(backlog): add backlog add for interactive issue creation (#289)
djm81 Feb 22, 2026
c651c42
chore(openspec): archive completed changes and align architecture doc…
djm81 Feb 22, 2026
d7e8199
docs(change): Archive architecture discrepancy remediation change
djm81 Feb 22, 2026
aa4a9fb
fix(codeql): preserve module contract marker and document fallback ex…
djm81 Feb 22, 2026
176cd09
Merge branch 'main' into dev
djm81 Feb 22, 2026
30e2bbe
fix(backlog): restore installed-runtime discovery parity and add back…
djm81 Feb 23, 2026
9f479e4
fix(version): sync manifests to 0.36.1 and archive backlog-core-04 (#…
djm81 Feb 23, 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ docs/internal/
# Ignore specfact-cli prompt templates
.cursor/commands/specfact.*.md
.cursor/commands/opsx-*.md

.cursor/skills/openspec-*/

.github/prompts/specfact.*.md
.github/prompts/opsx-*.md

.claude/commands/opsx/
.claude/commands/specfact.*.md
.claude/skills/openspec-*/
!.claude/skills/openspec-workflows/

Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ All notable changes to this project will be documented in this file.
**Important:** Changes need to be documented below this block as this is the header section. Each section should be separated by a horizontal rule. Newer changelog entries need to be added on top of prior ones to keep the history chronological with most recent changes first.


---

## [0.36.1] - 2026-02-23

### Fixed

- Installed runtime module discovery now includes `cwd/modules` when present, restoring command-surface parity (including `specfact backlog add`) between PyPI-installed and development runtimes when invoked from a repository checkout.
- Added and auto-installed `resources/prompts/specfact.backlog-add.md` via IDE setup command templates (`specfact init ide`) for consistent backlog workflow slash prompts.

---

## [0.36.0] - 2026-02-21
Expand Down
1 change: 1 addition & 0 deletions openspec/CHANGE_ORDER.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ These are derived extensions of the same 2026-02-15 plan and are required to ope
|--------|-------|---------------|----------|------------|
| backlog-core | 01 | backlog-core-01-dependency-analysis-commands βœ… (implemented 2026-02-18; archived) | [#116](https://github.com/nold-ai/specfact-cli/issues/116) | β€” |
| backlog-core | 02 | backlog-core-02-interactive-issue-creation (implemented 2026-02-22; archived) | [#173](https://github.com/nold-ai/specfact-cli/issues/173) | #116 (optional: #176, #177) |
| backlog-core | 04 | backlog-core-04-installed-runtime-discovery-and-add-prompt | TBD | #173 |

### backlog-scrum

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Change Validation Report: backlog-core-04-installed-runtime-discovery-and-add-prompt

## Validation Command

- `openspec validate backlog-core-04-installed-runtime-discovery-and-add-prompt --strict`

## Result

- **Status**: Pass
- **Output**: `Change 'backlog-core-04-installed-runtime-discovery-and-add-prompt' is valid`

## Notes

- OpenSpec telemetry flush reported network/DNS errors in this environment, but validation result completed successfully.
- Validation re-run after implementation remained `Pass`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# TDD Evidence: backlog-core-04-installed-runtime-discovery-and-add-prompt

## Pre-implementation failing run

- **Timestamp**: 2026-02-23T09:25:01+01:00
- **Command**:
- `hatch run pytest tests/unit/specfact_cli/registry/test_module_packages.py::test_get_modules_roots_includes_cwd_modules_when_present tests/unit/utils/test_ide_setup.py::test_specfact_commands_includes_backlog_add_prompt -q`
- **Result**: Failed (expected)
- **Failure summary**:
- `get_modules_roots()` did not include `cwd/modules`.
- `SPECFACT_COMMANDS` did not include `specfact.backlog-add`.

## Post-implementation passing run

- **Timestamp**: 2026-02-23T09:26:02+01:00
- **Command**:
- `hatch run pytest tests/unit/specfact_cli/registry/test_module_packages.py::test_get_modules_roots_includes_cwd_modules_when_present tests/unit/utils/test_ide_setup.py::test_specfact_commands_includes_backlog_add_prompt -q`
- **Result**: Pass
- **Summary**:
- `get_modules_roots()` now includes `cwd/modules` when present.
- IDE setup command list includes `specfact.backlog-add`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Design: Installed Runtime Discovery Parity and Backlog Add Prompt

## Overview

This change addresses two consistency gaps:

1. Installed runtime (`pip`/PyPI) misses workspace modules such as `modules/backlog-core` in some invocation contexts, causing command-surface drift from development runtime.
2. `backlog add` has no dedicated slash prompt while neighboring backlog workflows do.

## Discovery strategy

- Keep existing discovery order:
- packaged modules (`specfact_cli/modules`)
- optional roots from `SPECFACT_MODULES_ROOTS`
- Add a safe fallback root:
- `Path.cwd() / "modules"` when the directory exists
- deduplicated by resolved path, preserving deterministic ordering
- Goal: when users run installed `specfact` from repo root, workspace modules are discoverable without manual env overrides.

## Prompt strategy

- Add `resources/prompts/specfact.backlog-add.md` following current frontmatter + `$ARGUMENTS` pattern.
- Include command purpose, required adapter context, core flags, and execution workflow.
- Register command name in `SPECFACT_COMMANDS` so `specfact init ide` copies it into IDE-specific command folders.

## Risks

- Discovery fallback could include unintended `modules/` folder in unrelated directories.
- Mitigation: only add when directory exists; no behavior change when absent.
- Prompt installation drift across IDE formats.
- Mitigation: reuse existing `SPECFACT_COMMANDS` + template processing path; cover with unit tests.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Change: Backlog Core β€” Installed Runtime Discovery Parity and Backlog Add Prompt

## Why


`specfact backlog add` and related backlog-core commands are available in development (`hatch run specfact`) but can be missing from PyPI-installed runtime command surfaces, even at the same version. This creates a production usability regression where documented commands are unavailable after upgrade.

Additionally, `backlog add` currently lacks a dedicated slash-command prompt in `resources/prompts/`, resulting in inconsistent IDE workflow coverage compared to `backlog refine` and `backlog daily`.

## What Changes


- **MODIFY**: Module discovery root fallback logic so installed runtime can discover workspace-level `modules/` when invoked from a repo checkout, restoring parity with development command surfaces.
- **MODIFY**: Add tests for installed-runtime discovery path behavior and command-surface parity assumptions.
- **NEW**: Add `resources/prompts/specfact.backlog-add.md` slash prompt for the new `backlog add` workflow.
- **MODIFY**: Extend IDE setup command list so the new backlog-add prompt is installed automatically into IDE command folders.
- **MODIFY**: Add/update tests that verify IDE template installation includes backlog-add prompt.

## Capabilities
- **backlog-core** (extended): Installed runtime command-surface parity for workspace module discovery.
- **backlog** (extended): Backlog add slash-command prompt parity with existing backlog prompt workflows.

---

## Source Tracking

<!-- source_repo: nold-ai/specfact-cli -->
- **GitHub Issue**: #295
- **Issue URL**: <https://github.com/nold-ai/specfact-cli/issues/295>
- **Last Synced Status**: proposed
- **Sanitized**: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## ADDED Requirements

### Requirement: Backlog Add Slash Prompt

The system SHALL provide and install a slash prompt for `backlog add` consistent with other backlog workflows.

#### Scenario: Prompt file exists for backlog add

- **GIVEN** prompt templates in `resources/prompts/`
- **WHEN** templates are validated or inspected
- **THEN** `resources/prompts/specfact.backlog-add.md` exists
- **AND** it includes frontmatter description and `$ARGUMENTS` input placeholder.

#### Scenario: IDE setup installs backlog add prompt

- **GIVEN** `specfact init ide` (or equivalent IDE setup path) copies SpecFact templates
- **WHEN** template copying runs for an IDE target
- **THEN** a `specfact.backlog-add` prompt file is created in the IDE-specific destination
- **AND** installation behavior matches existing prompt commands.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## ADDED Requirements

### Requirement: Module Discovery Roots

The system SHALL discover module packages consistently between development and installed runtime contexts when invoked from a repository checkout.

#### Scenario: Installed runtime discovers workspace modules from repo root

- **GIVEN** `specfact` is installed from PyPI/site-packages
- **AND** the current working directory contains `modules/` with valid module packages
- **WHEN** module discovery runs
- **THEN** discovery includes the current working directory `modules/` root
- **AND** commands contributed by those modules are available without requiring `SPECFACT_MODULES_ROOTS`.

#### Scenario: No cwd modules directory keeps existing behavior

- **GIVEN** the current working directory does not contain a `modules/` directory
- **WHEN** module discovery runs
- **THEN** discovery roots remain limited to packaged modules and explicitly configured roots
- **AND** no extra discovery errors are introduced.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Tasks: backlog-core-04-installed-runtime-discovery-and-add-prompt

## TDD / SDD order (enforced)

Per `openspec/config.yaml`, tests before code for behavior changes.

1. Update spec deltas first.
2. Add tests mapped to scenarios.
3. Run tests and capture failing results in `TDD_EVIDENCE.md`.
4. Implement production code.
5. Re-run tests and quality checks; capture passing evidence in `TDD_EVIDENCE.md`.

## 1. Branch and scope

- [x] 1.1 Work on `bugfix/backlog-core-04-installed-runtime-discovery-and-add-prompt` (or active equivalent) before implementation changes.
- [x] 1.2 Confirm scope is limited to runtime module discovery parity and backlog-add prompt installation parity.

## 2. Specs first

- [x] 2.1 Finalize `specs/installed-runtime-module-discovery/spec.md` scenarios for installed runtime discovery fallback.
- [x] 2.2 Finalize `specs/backlog-add-slash-prompt/spec.md` scenarios for prompt file + IDE setup installation behavior.

## 3. Tests first (must fail before implementation)

- [x] 3.1 Add/extend unit tests in `tests/unit/specfact_cli/registry/test_module_packages.py` for installed-runtime fallback discovery behavior.
- [x] 3.2 Add/extend unit tests in `tests/unit/utils/test_ide_setup.py` to require backlog-add prompt installation.
- [x] 3.3 Run targeted tests and record failing results in `TDD_EVIDENCE.md`.

## 4. Implementation

- [x] 4.1 Update `src/specfact_cli/registry/module_packages.py` to include repo-local module root fallback for installed runtime (without requiring `SPECFACT_MODULES_ROOTS`).
- [x] 4.2 Add `resources/prompts/specfact.backlog-add.md` with workflow guidance matching existing prompt style.
- [x] 4.3 Update `src/specfact_cli/utils/ide_setup.py` (`SPECFACT_COMMANDS`) to include `specfact.backlog-add`.

## 5. Validation and docs

- [x] 5.1 Re-run targeted tests and record passing results in `TDD_EVIDENCE.md`.
- [x] 5.2 Run quality gates for touched scope (`hatch run format`, targeted tests, and any required checks for modified files).
- [x] 5.3 Update affected docs if command prompt references changed. (No docs updates required after review; prompt is bundled and auto-installed via IDE setup list.)
- [x] 5.4 Run `openspec validate backlog-core-04-installed-runtime-discovery-and-add-prompt --strict` and update `CHANGE_VALIDATION.md`.

## 6. Delivery

- [x] 6.1 Update `openspec/CHANGE_ORDER.md` status and placement.
- [x] 6.2 Prepare PR with clear runtime parity verification notes (installed vs hatch behavior).
23 changes: 23 additions & 0 deletions openspec/specs/backlog-add-slash-prompt/spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# backlog-add-slash-prompt Specification

## Purpose
TBD - created by archiving change backlog-core-04-installed-runtime-discovery-and-add-prompt. Update Purpose after archive.
## Requirements
### Requirement: Backlog Add Slash Prompt

The system SHALL provide and install a slash prompt for `backlog add` consistent with other backlog workflows.

#### Scenario: Prompt file exists for backlog add

- **GIVEN** prompt templates in `resources/prompts/`
- **WHEN** templates are validated or inspected
- **THEN** `resources/prompts/specfact.backlog-add.md` exists
- **AND** it includes frontmatter description and `$ARGUMENTS` input placeholder.

#### Scenario: IDE setup installs backlog add prompt

- **GIVEN** `specfact init ide` (or equivalent IDE setup path) copies SpecFact templates
- **WHEN** template copying runs for an IDE target
- **THEN** a `specfact.backlog-add` prompt file is created in the IDE-specific destination
- **AND** installation behavior matches existing prompt commands.

24 changes: 24 additions & 0 deletions openspec/specs/installed-runtime-module-discovery/spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# installed-runtime-module-discovery Specification

## Purpose
TBD - created by archiving change backlog-core-04-installed-runtime-discovery-and-add-prompt. Update Purpose after archive.
## Requirements
### Requirement: Module Discovery Roots

The system SHALL discover module packages consistently between development and installed runtime contexts when invoked from a repository checkout.

#### Scenario: Installed runtime discovers workspace modules from repo root

- **GIVEN** `specfact` is installed from PyPI/site-packages
- **AND** the current working directory contains `modules/` with valid module packages
- **WHEN** module discovery runs
- **THEN** discovery includes the current working directory `modules/` root
- **AND** commands contributed by those modules are available without requiring `SPECFACT_MODULES_ROOTS`.

#### Scenario: No cwd modules directory keeps existing behavior

- **GIVEN** the current working directory does not contain a `modules/` directory
- **WHEN** module discovery runs
- **THEN** discovery roots remain limited to packaged modules and explicitly configured roots
- **AND** no extra discovery errors are introduced.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "specfact-cli"
version = "0.36.0"
version = "0.36.1"
description = "The swiss knife CLI for agile DevOps teams. Keep backlog, specs, tests, and code in sync with validation and contract enforcement for new projects and long-lived codebases."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
84 changes: 84 additions & 0 deletions resources/prompts/specfact.backlog-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
description: "Create backlog items with guided interactive flow and hierarchy checks"
---

# SpecFact Backlog Add Command

## User Input

```text
$ARGUMENTS
```

You **MUST** consider the user input before proceeding (if not empty).

## Purpose

Create a new backlog item in GitHub or Azure DevOps using the `specfact backlog add` workflow. The command supports interactive prompts, parent hierarchy validation, DoR checks, and provider-specific fields.

**When to use:** Adding new work items (epic/feature/story/task/bug) with consistent quality and parent-child structure.

**Quick:** `/specfact.backlog-add --adapter github --project-id owner/repo --type story --title "..."`

## Parameters

### Required

- `--adapter ADAPTER` - Backlog adapter (`github`, `ado`)
- `--project-id PROJECT` - Project context
- GitHub: `owner/repo`
- ADO: `org/project`

### Common options

- `--type TYPE` - Backlog item type (provider/template specific)
- `--title TITLE` - Item title
- `--body BODY` - Item body/description
- `--parent PARENT_ID` - Optional parent issue/work item id
- `--non-interactive` - Disable prompt flow and require explicit inputs
- `--check-dor` - Run Definition of Ready checks before create
- `--template TEMPLATE` - Optional backlog template override
- `--custom-config PATH` - Optional mapping/config override file

### Adapter-specific options

- GitHub:
- `--repo-owner OWNER`
- `--repo-name NAME`
- `--github-token TOKEN` (or `GITHUB_TOKEN`)
- Azure DevOps:
- `--ado-org ORG`
- `--ado-project PROJECT`
- `--ado-token TOKEN` (or `AZURE_DEVOPS_TOKEN`)
- `--ado-base-url URL` (optional)

## Workflow

### Step 1: Execute command

Run the CLI command with user arguments:

```bash
specfact backlog add [OPTIONS]
```

### Step 2: Interactive completion (if inputs are missing)

- Prompt for missing required fields.
- Prompt for optional quality fields (acceptance criteria, points, priority) when supported.
- Validate parent selection and allowed hierarchy before create.

### Step 3: Confirm and create

- Show planned create payload summary.
- Execute provider create operation.
- Return created item id/key/url.

## CLI Enforcement

- Always execute `specfact backlog add` for creation.
- Do not create provider issues/work items directly outside CLI unless user explicitly requests a manual path.

## Context

{ARGS}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if __name__ == "__main__":
_setup = setup(
name="specfact-cli",
version="0.36.0",
version="0.36.1",
description=(
"The swiss knife CLI for agile DevOps teams. Keep backlog, specs, tests, and code in sync with "
"validation and contract enforcement for new projects and long-lived codebases."
Expand Down
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""

# Package version: keep in sync with pyproject.toml, setup.py, src/specfact_cli/__init__.py
__version__ = "0.36.0"
__version__ = "0.36.1"
2 changes: 1 addition & 1 deletion src/specfact_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
- Supporting agile ceremonies and team workflows
"""

__version__ = "0.36.0"
__version__ = "0.36.1"

__all__ = ["__version__"]
Loading
Loading