bokken 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bokken-1.0.0/.claude/commands/opsx/apply.md +184 -0
- bokken-1.0.0/.claude/commands/opsx/archive.md +225 -0
- bokken-1.0.0/.claude/commands/opsx/explore.md +196 -0
- bokken-1.0.0/.claude/commands/opsx/propose.md +145 -0
- bokken-1.0.0/.claude/commands/opsx/sync.md +258 -0
- bokken-1.0.0/.claude/commands/opsx/update.md +87 -0
- bokken-1.0.0/.claude/skills/openspec-apply-change/SKILL.md +188 -0
- bokken-1.0.0/.claude/skills/openspec-archive-change/SKILL.md +182 -0
- bokken-1.0.0/.claude/skills/openspec-explore/SKILL.md +311 -0
- bokken-1.0.0/.claude/skills/openspec-propose/SKILL.md +149 -0
- bokken-1.0.0/.claude/skills/openspec-sync-specs/SKILL.md +262 -0
- bokken-1.0.0/.claude/skills/openspec-update-change/SKILL.md +91 -0
- bokken-1.0.0/.editorconfig +12 -0
- bokken-1.0.0/.github/ISSUE_TEMPLATE/bug.md +15 -0
- bokken-1.0.0/.github/ISSUE_TEMPLATE/feature.md +12 -0
- bokken-1.0.0/.github/ISSUE_TEMPLATE/run-feedback.md +20 -0
- bokken-1.0.0/.github/workflows/publish.yml +52 -0
- bokken-1.0.0/.gitignore +34 -0
- bokken-1.0.0/CLAUDE.md +50 -0
- bokken-1.0.0/CONTRIBUTING.md +59 -0
- bokken-1.0.0/LICENSE +202 -0
- bokken-1.0.0/Makefile +22 -0
- bokken-1.0.0/NOTICE +8 -0
- bokken-1.0.0/PKG-INFO +284 -0
- bokken-1.0.0/README.md +249 -0
- bokken-1.0.0/docs/agents.md +47 -0
- bokken-1.0.0/docs/architecture.md +150 -0
- bokken-1.0.0/docs/events.md +148 -0
- bokken-1.0.0/docs/handoff.md +100 -0
- bokken-1.0.0/docs/index.html +811 -0
- bokken-1.0.0/docs/mcp.md +265 -0
- bokken-1.0.0/docs/operating.md +257 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-cli-surface/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-cli-surface/design.md +34 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-cli-surface/proposal.md +34 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-cli-surface/specs/cli/spec.md +81 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-cli-surface/tasks.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dossier-generator/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dossier-generator/design.md +37 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dossier-generator/proposal.md +30 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dossier-generator/specs/dossier/spec.md +91 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dossier-generator/tasks.md +18 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dt-orchestrator/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dt-orchestrator/design.md +37 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dt-orchestrator/proposal.md +30 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dt-orchestrator/specs/kata/spec.md +53 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dt-orchestrator/specs/orchestrator/spec.md +100 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-dt-orchestrator/tasks.md +29 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-input-sources/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-input-sources/design.md +35 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-input-sources/proposal.md +27 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-input-sources/specs/panel/spec.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-input-sources/tasks.md +11 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-journal-ledger/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-journal-ledger/design.md +39 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-journal-ledger/proposal.md +29 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-journal-ledger/specs/journal/spec.md +117 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-journal-ledger/tasks.md +24 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-mcp-server/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-mcp-server/design.md +35 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-mcp-server/proposal.md +28 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-mcp-server/specs/mcp-server/spec.md +86 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-mcp-server/tasks.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/design.md +38 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/proposal.md +31 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/specs/cli/spec.md +17 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/specs/handoff/spec.md +72 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/specs/mcp-server/spec.md +17 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-spec-handoff/tasks.md +17 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-stage-engines/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-stage-engines/design.md +40 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-stage-engines/proposal.md +33 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-stage-engines/specs/models/spec.md +71 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-stage-engines/specs/stages/spec.md +111 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-stage-engines/tasks.md +39 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-synthetic-panel/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-synthetic-panel/design.md +38 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-synthetic-panel/proposal.md +29 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-synthetic-panel/specs/panel/spec.md +87 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-add-synthetic-panel/tasks.md +23 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-fix-input-aware-rework/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-fix-input-aware-rework/design.md +20 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-fix-input-aware-rework/proposal.md +27 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-fix-input-aware-rework/specs/orchestrator/spec.md +27 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-fix-input-aware-rework/specs/stages/spec.md +32 -0
- bokken-1.0.0/openspec/changes/archive/2026-08-31-fix-input-aware-rework/tasks.md +8 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-concept-research/proposal.md +44 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-concept-research/specs/cli/spec.md +14 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-concept-research/specs/models/spec.md +21 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-concept-research/specs/report/spec.md +17 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-concept-research/specs/stages/spec.md +32 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-concept-research/tasks.md +19 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-cost-telemetry/proposal.md +28 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-cost-telemetry/specs/cli/spec.md +17 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-cost-telemetry/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-feature-functional-tests/proposal.md +35 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-feature-functional-tests/specs/report/spec.md +31 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-feature-functional-tests/specs/stages/spec.md +67 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-feature-functional-tests/tasks.md +13 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-fusion-lanes/proposal.md +33 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-fusion-lanes/specs/models/spec.md +78 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-fusion-lanes/tasks.md +7 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-insights-library/proposal.md +28 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-insights-library/specs/cli/spec.md +14 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-insights-library/specs/library/spec.md +23 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-insights-library/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-mcp-report-tools/proposal.md +24 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-mcp-report-tools/specs/mcp-server/spec.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-mcp-report-tools/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ost-view/proposal.md +27 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ost-view/specs/report/spec.md +16 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ost-view/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-report-exports/design.md +31 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-report-exports/proposal.md +40 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-report-exports/specs/cli/spec.md +16 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-report-exports/specs/handoff/spec.md +30 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-report-exports/specs/report/spec.md +77 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-report-exports/tasks.md +23 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-twilio-channel/proposal.md +27 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-twilio-channel/specs/validation/spec.md +17 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-twilio-channel/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ui-walkthrough/design.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ui-walkthrough/proposal.md +46 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ui-walkthrough/specs/cli/spec.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ui-walkthrough/specs/report/spec.md +25 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ui-walkthrough/specs/stages/spec.md +47 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-ui-walkthrough/tasks.md +18 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-validation-interviews/proposal.md +38 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-validation-interviews/specs/cli/spec.md +16 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-validation-interviews/specs/validation/spec.md +43 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-validation-interviews/tasks.md +7 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-wireframe-artifacts/proposal.md +30 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-wireframe-artifacts/specs/stages/spec.md +37 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-add-wireframe-artifacts/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-adopt-market-frameworks/design.md +31 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-adopt-market-frameworks/proposal.md +55 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-adopt-market-frameworks/specs/journal/spec.md +33 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-adopt-market-frameworks/specs/stages/spec.md +128 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-adopt-market-frameworks/tasks.md +27 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-deepen-ui-walkthrough/proposal.md +33 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-deepen-ui-walkthrough/specs/stages/spec.md +52 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-deepen-ui-walkthrough/tasks.md +7 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-cast-and-handoff/proposal.md +32 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-cast-and-handoff/specs/handoff/spec.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-cast-and-handoff/specs/panel/spec.md +22 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-cast-and-handoff/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-report-deliberation/proposal.md +39 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-report-deliberation/specs/report/spec.md +70 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-enrich-report-deliberation/tasks.md +8 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-anatomy-visual/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-anatomy-visual/proposal.md +29 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-anatomy-visual/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-fusion-truncation/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-fusion-truncation/proposal.md +32 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-fusion-truncation/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-test-artifact-selection/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-test-artifact-selection/proposal.md +24 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-fix-test-artifact-selection/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-hardening-and-config/proposal.md +35 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-hardening-and-config/specs/stages/spec.md +72 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-hardening-and-config/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-housekeeping-cleanup/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-housekeeping-cleanup/proposal.md +34 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-housekeeping-cleanup/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-improve-spa-walkthrough/proposal.md +31 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-improve-spa-walkthrough/specs/stages/spec.md +57 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-improve-spa-walkthrough/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-redesign-deck-strategic/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-redesign-deck-strategic/proposal.md +33 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-redesign-deck-strategic/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-restructure-reports/proposal.md +35 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-restructure-reports/specs/report/spec.md +46 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-restructure-reports/tasks.md +7 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-route-execution-to-opus-5/proposal.md +28 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-route-execution-to-opus-5/specs/models/spec.md +44 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-route-execution-to-opus-5/tasks.md +5 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-route-reasoning-to-fable/proposal.md +29 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-route-reasoning-to-fable/specs/models/spec.md +44 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-route-reasoning-to-fable/tasks.md +6 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-upgrade-model-routing/proposal.md +42 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-upgrade-model-routing/specs/models/spec.md +44 -0
- bokken-1.0.0/openspec/changes/archive/2026-09-01-upgrade-model-routing/tasks.md +16 -0
- bokken-1.0.0/openspec/changes/redesign-report-html/.openspec.yaml +2 -0
- bokken-1.0.0/openspec/changes/redesign-report-html/proposal.md +31 -0
- bokken-1.0.0/openspec/changes/redesign-report-html/tasks.md +6 -0
- bokken-1.0.0/openspec/config.yaml +44 -0
- bokken-1.0.0/openspec/specs/cli/spec.md +156 -0
- bokken-1.0.0/openspec/specs/dossier/spec.md +90 -0
- bokken-1.0.0/openspec/specs/handoff/spec.md +89 -0
- bokken-1.0.0/openspec/specs/journal/spec.md +116 -0
- bokken-1.0.0/openspec/specs/kata/spec.md +52 -0
- bokken-1.0.0/openspec/specs/library/spec.md +26 -0
- bokken-1.0.0/openspec/specs/mcp-server/spec.md +104 -0
- bokken-1.0.0/openspec/specs/models/spec.md +147 -0
- bokken-1.0.0/openspec/specs/orchestrator/spec.md +104 -0
- bokken-1.0.0/openspec/specs/panel/spec.md +110 -0
- bokken-1.0.0/openspec/specs/report/spec.md +215 -0
- bokken-1.0.0/openspec/specs/stages/spec.md +190 -0
- bokken-1.0.0/openspec/specs/validation/spec.md +60 -0
- bokken-1.0.0/pyproject.toml +74 -0
- bokken-1.0.0/scripts/.gitkeep +0 -0
- bokken-1.0.0/scripts/smoke_run.py +53 -0
- bokken-1.0.0/src/bokken/__init__.py +6 -0
- bokken-1.0.0/src/bokken/cli/__init__.py +1 -0
- bokken-1.0.0/src/bokken/cli/app.py +591 -0
- bokken-1.0.0/src/bokken/cli/wiring.py +40 -0
- bokken-1.0.0/src/bokken/contract.py +138 -0
- bokken-1.0.0/src/bokken/dossier/__init__.py +57 -0
- bokken-1.0.0/src/bokken/dossier/model.py +436 -0
- bokken-1.0.0/src/bokken/dossier/render.py +135 -0
- bokken-1.0.0/src/bokken/handoff/__init__.py +27 -0
- bokken-1.0.0/src/bokken/handoff/finalize.py +87 -0
- bokken-1.0.0/src/bokken/handoff/generate.py +171 -0
- bokken-1.0.0/src/bokken/handoff/render.py +289 -0
- bokken-1.0.0/src/bokken/handoff/schema.py +49 -0
- bokken-1.0.0/src/bokken/interview/__init__.py +6 -0
- bokken-1.0.0/src/bokken/interview/channels.py +109 -0
- bokken-1.0.0/src/bokken/interview/engine.py +123 -0
- bokken-1.0.0/src/bokken/interview/guide.py +70 -0
- bokken-1.0.0/src/bokken/journal/__init__.py +88 -0
- bokken-1.0.0/src/bokken/journal/query.py +84 -0
- bokken-1.0.0/src/bokken/journal/replay.py +302 -0
- bokken-1.0.0/src/bokken/journal/schema.py +378 -0
- bokken-1.0.0/src/bokken/journal/store.py +156 -0
- bokken-1.0.0/src/bokken/journal/workspace.py +98 -0
- bokken-1.0.0/src/bokken/kata/__init__.py +16 -0
- bokken-1.0.0/src/bokken/kata/moves.py +199 -0
- bokken-1.0.0/src/bokken/kata/registry.py +117 -0
- bokken-1.0.0/src/bokken/kata/render.py +58 -0
- bokken-1.0.0/src/bokken/library.py +98 -0
- bokken-1.0.0/src/bokken/mcp/__init__.py +1 -0
- bokken-1.0.0/src/bokken/mcp/server.py +401 -0
- bokken-1.0.0/src/bokken/models/__init__.py +27 -0
- bokken-1.0.0/src/bokken/models/anthropic_provider.py +102 -0
- bokken-1.0.0/src/bokken/models/prompts.py +343 -0
- bokken-1.0.0/src/bokken/models/router.py +235 -0
- bokken-1.0.0/src/bokken/orchestrator/__init__.py +57 -0
- bokken-1.0.0/src/bokken/orchestrator/machine.py +106 -0
- bokken-1.0.0/src/bokken/orchestrator/runner.py +414 -0
- bokken-1.0.0/src/bokken/panel/__init__.py +65 -0
- bokken-1.0.0/src/bokken/panel/casting.py +196 -0
- bokken-1.0.0/src/bokken/panel/corpus.py +190 -0
- bokken-1.0.0/src/bokken/panel/governance.py +164 -0
- bokken-1.0.0/src/bokken/panel/grounding.py +108 -0
- bokken-1.0.0/src/bokken/report/__init__.py +5 -0
- bokken-1.0.0/src/bokken/report/context.py +414 -0
- bokken-1.0.0/src/bokken/report/deck.py +628 -0
- bokken-1.0.0/src/bokken/report/generate.py +57 -0
- bokken-1.0.0/src/bokken/report/page.py +943 -0
- bokken-1.0.0/src/bokken/stages/__init__.py +47 -0
- bokken-1.0.0/src/bokken/stages/base.py +84 -0
- bokken-1.0.0/src/bokken/stages/define.py +134 -0
- bokken-1.0.0/src/bokken/stages/empathize.py +310 -0
- bokken-1.0.0/src/bokken/stages/ideate.py +312 -0
- bokken-1.0.0/src/bokken/stages/persona_gen.py +60 -0
- bokken-1.0.0/src/bokken/stages/prototype.py +215 -0
- bokken-1.0.0/src/bokken/stages/research.py +147 -0
- bokken-1.0.0/src/bokken/stages/schemas.py +206 -0
- bokken-1.0.0/src/bokken/stages/testing.py +177 -0
- bokken-1.0.0/src/bokken/stages/ui_tests.py +307 -0
- bokken-1.0.0/src/bokken/stages/walkthrough.py +376 -0
- bokken-1.0.0/tests/__init__.py +0 -0
- bokken-1.0.0/tests/cli/__init__.py +0 -0
- bokken-1.0.0/tests/cli/test_cli.py +188 -0
- bokken-1.0.0/tests/dossier/__init__.py +0 -0
- bokken-1.0.0/tests/dossier/test_dossier.py +116 -0
- bokken-1.0.0/tests/handoff/__init__.py +0 -0
- bokken-1.0.0/tests/handoff/test_handoff.py +176 -0
- bokken-1.0.0/tests/interview/__init__.py +0 -0
- bokken-1.0.0/tests/interview/test_library.py +41 -0
- bokken-1.0.0/tests/interview/test_validation.py +134 -0
- bokken-1.0.0/tests/journal/__init__.py +0 -0
- bokken-1.0.0/tests/journal/conftest.py +40 -0
- bokken-1.0.0/tests/journal/test_query.py +66 -0
- bokken-1.0.0/tests/journal/test_replay.py +232 -0
- bokken-1.0.0/tests/journal/test_schema.py +137 -0
- bokken-1.0.0/tests/journal/test_store.py +128 -0
- bokken-1.0.0/tests/kata/__init__.py +0 -0
- bokken-1.0.0/tests/kata/test_kata.py +107 -0
- bokken-1.0.0/tests/mcp/__init__.py +0 -0
- bokken-1.0.0/tests/mcp/test_mcp_server.py +233 -0
- bokken-1.0.0/tests/models/__init__.py +0 -0
- bokken-1.0.0/tests/models/test_anthropic_provider.py +100 -0
- bokken-1.0.0/tests/models/test_router.py +144 -0
- bokken-1.0.0/tests/orchestrator/__init__.py +0 -0
- bokken-1.0.0/tests/orchestrator/fakes.py +190 -0
- bokken-1.0.0/tests/orchestrator/test_machine.py +144 -0
- bokken-1.0.0/tests/orchestrator/test_runner.py +221 -0
- bokken-1.0.0/tests/orchestrator/test_stall_guard.py +34 -0
- bokken-1.0.0/tests/panel/__init__.py +0 -0
- bokken-1.0.0/tests/panel/test_inputs.py +85 -0
- bokken-1.0.0/tests/panel/test_panel.py +259 -0
- bokken-1.0.0/tests/report/__init__.py +0 -0
- bokken-1.0.0/tests/report/test_report.py +131 -0
- bokken-1.0.0/tests/stages/__init__.py +0 -0
- bokken-1.0.0/tests/stages/fake_provider.py +386 -0
- bokken-1.0.0/tests/stages/test_engines_e2e.py +209 -0
- bokken-1.0.0/tests/stages/test_walkthrough.py +299 -0
- bokken-1.0.0/tests/test_package.py +5 -0
- bokken-1.0.0/uv.lock +1958 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "OPSX: Apply"
|
|
3
|
+
description: "Implement tasks from an OpenSpec change (Experimental)"
|
|
4
|
+
allowed-tools: Bash(openspec:*)
|
|
5
|
+
category: "Workflow"
|
|
6
|
+
tags: ["workflow", "artifacts", "experimental"]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Implement tasks from an OpenSpec change.
|
|
10
|
+
|
|
11
|
+
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
|
|
12
|
+
|
|
13
|
+
**Input**: Optionally specify a change name (e.g., `/opsx:apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
14
|
+
|
|
15
|
+
**Steps**
|
|
16
|
+
|
|
17
|
+
1. **Select the change**
|
|
18
|
+
|
|
19
|
+
If a name is provided, use it. Otherwise:
|
|
20
|
+
- Infer from conversation context if the user mentioned a change
|
|
21
|
+
- Auto-select if only one active change exists
|
|
22
|
+
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
|
|
23
|
+
|
|
24
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
|
|
25
|
+
|
|
26
|
+
2. **Check status to understand the schema**
|
|
27
|
+
```bash
|
|
28
|
+
openspec status --change "<name>" --json
|
|
29
|
+
```
|
|
30
|
+
Parse the JSON to understand:
|
|
31
|
+
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
32
|
+
- `planningHome`, `changeRoot`, and `actionContext`: planning scope and edit constraints
|
|
33
|
+
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
34
|
+
|
|
35
|
+
3. **Get apply instructions**
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
openspec instructions apply --change "<name>" --json
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This returns:
|
|
42
|
+
- `contextFiles`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
|
|
43
|
+
- Progress (total, complete, remaining)
|
|
44
|
+
- Task list with status
|
|
45
|
+
- Dynamic instruction based on current state
|
|
46
|
+
- Optional `context`: current required project instruction input from the selected root
|
|
47
|
+
- Optional `operationGuidance`: current advisory guidance for apply
|
|
48
|
+
|
|
49
|
+
**Handle states:**
|
|
50
|
+
- If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx:continue` (if it is not installed, run `openspec status --change "<name>" --json` to see the next artifact and `openspec instructions <artifact-id> --change "<name>" --json` for how to create it)
|
|
51
|
+
- If `state: "all_done"`: congratulate, suggest archive
|
|
52
|
+
- Otherwise: proceed to implementation
|
|
53
|
+
|
|
54
|
+
Treat `context` as a required prompt-level input. Read and consider it, and
|
|
55
|
+
apply relevant project facts, conventions, and constraints while implementing.
|
|
56
|
+
Treat `operationGuidance` as optional additive advice. Read and consider every
|
|
57
|
+
entry, and follow entries that are applicable and compatible with the built-in
|
|
58
|
+
workflow.
|
|
59
|
+
|
|
60
|
+
Keep both fields separate from CLI-returned state, missing artifacts, tasks,
|
|
61
|
+
progress, `contextFiles`, and the built-in `instruction`. They are not
|
|
62
|
+
evidence of task completion, do not replace the built-in instruction, and do
|
|
63
|
+
not permit bypassing a blocked state. If context conflicts with the built-in
|
|
64
|
+
instruction, an explicit user choice, or a CLI-controlled value, report the
|
|
65
|
+
conflict and preserve the controlling value. If guidance is inapplicable or
|
|
66
|
+
conflicts with those controlling inputs, do not follow it and explain why.
|
|
67
|
+
These are prompt-level behavior contracts, not enforceable checks.
|
|
68
|
+
|
|
69
|
+
4. **Read context files**
|
|
70
|
+
|
|
71
|
+
Read every file path listed under `contextFiles` from the apply instructions output.
|
|
72
|
+
The files depend on the schema being used:
|
|
73
|
+
- **spec-driven**: proposal, specs, design, tasks
|
|
74
|
+
- Other schemas: follow the contextFiles from CLI output
|
|
75
|
+
|
|
76
|
+
Do not copy `context` or `operationGuidance` verbatim into implementation
|
|
77
|
+
files or planning artifacts unless the user separately asks for that content.
|
|
78
|
+
|
|
79
|
+
5. **Show current progress**
|
|
80
|
+
|
|
81
|
+
Display:
|
|
82
|
+
- Schema being used
|
|
83
|
+
- Progress: "N/M tasks complete"
|
|
84
|
+
- Remaining tasks overview
|
|
85
|
+
- Dynamic instruction from CLI
|
|
86
|
+
|
|
87
|
+
6. **Implement tasks (loop until done or blocked)**
|
|
88
|
+
|
|
89
|
+
For each pending task:
|
|
90
|
+
- Show which task is being worked on
|
|
91
|
+
- Make the code changes required
|
|
92
|
+
- Keep changes minimal and focused
|
|
93
|
+
- Mark task complete in the tasks file: `- [ ]` → `- [x]`
|
|
94
|
+
- Continue to next task
|
|
95
|
+
|
|
96
|
+
**Pause if:**
|
|
97
|
+
- Task is unclear → ask for clarification
|
|
98
|
+
- Implementation reveals a design issue → suggest updating artifacts
|
|
99
|
+
- A task needs work beyond what the spec and tasks describe, or you are tempted to drop, narrow, defer, or accept exceptions to specified behavior to make it fit → surface the added scope and ask; do not absorb it silently
|
|
100
|
+
- Error or blocker encountered → report and wait for guidance
|
|
101
|
+
- User interrupts
|
|
102
|
+
|
|
103
|
+
7. **On completion or pause, show status**
|
|
104
|
+
|
|
105
|
+
Display:
|
|
106
|
+
- Tasks completed this session
|
|
107
|
+
- Overall progress: "N/M tasks complete"
|
|
108
|
+
- If all done: suggest archive
|
|
109
|
+
- If paused: explain why and wait for guidance
|
|
110
|
+
|
|
111
|
+
**Output During Implementation**
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
## Implementing: <change-name> (schema: <schema-name>)
|
|
115
|
+
|
|
116
|
+
Working on task 3/7: <task description>
|
|
117
|
+
[...implementation happening...]
|
|
118
|
+
✓ Task complete
|
|
119
|
+
|
|
120
|
+
Working on task 4/7: <task description>
|
|
121
|
+
[...implementation happening...]
|
|
122
|
+
✓ Task complete
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Output On Completion**
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
## Implementation Complete
|
|
129
|
+
|
|
130
|
+
**Change:** <change-name>
|
|
131
|
+
**Schema:** <schema-name>
|
|
132
|
+
**Progress:** 7/7 tasks complete ✓
|
|
133
|
+
|
|
134
|
+
### Completed This Session
|
|
135
|
+
- [x] Task 1
|
|
136
|
+
- [x] Task 2
|
|
137
|
+
...
|
|
138
|
+
|
|
139
|
+
All tasks complete! You can archive this change with `/opsx:archive`.
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Output On Pause (Issue Encountered)**
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
## Implementation Paused
|
|
146
|
+
|
|
147
|
+
**Change:** <change-name>
|
|
148
|
+
**Schema:** <schema-name>
|
|
149
|
+
**Progress:** 4/7 tasks complete
|
|
150
|
+
|
|
151
|
+
### Issue Encountered
|
|
152
|
+
<description of the issue>
|
|
153
|
+
|
|
154
|
+
**Options:**
|
|
155
|
+
1. <option 1>
|
|
156
|
+
2. <option 2>
|
|
157
|
+
3. Other approach
|
|
158
|
+
|
|
159
|
+
What would you like to do?
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Guardrails**
|
|
163
|
+
- Keep going through tasks until done or blocked
|
|
164
|
+
- Always read context files before starting (from the apply instructions output)
|
|
165
|
+
- If task is ambiguous, pause and ask before implementing
|
|
166
|
+
- If implementation reveals issues, pause and suggest artifact updates
|
|
167
|
+
- Keep code changes minimal and scoped to each task
|
|
168
|
+
- Update task checkbox immediately after completing each task
|
|
169
|
+
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
170
|
+
- When a task needs work beyond what the spec describes, surface the added scope and pause - never silently narrow, defer, or simplify away specified behavior
|
|
171
|
+
- Only mark a task `- [x]` when its specified behavior is fully implemented, not when it is partially done or deferred
|
|
172
|
+
- Use contextFiles from CLI output, don't assume specific file names
|
|
173
|
+
- Do not use context or operation guidance as proof that a task is complete
|
|
174
|
+
- Apply relevant project context; report conflicts with controlling workflow inputs
|
|
175
|
+
- Consider every guidance entry; explain any inapplicable or conflicting advice
|
|
176
|
+
- Do not copy runtime context or operation guidance into implementation files or planning artifacts
|
|
177
|
+
- Preserve CLI-controlled blocked/ready/all-done behavior and completion criteria
|
|
178
|
+
|
|
179
|
+
**Fluid Workflow Integration**
|
|
180
|
+
|
|
181
|
+
This skill supports the "actions on a change" model:
|
|
182
|
+
|
|
183
|
+
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
184
|
+
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "OPSX: Archive"
|
|
3
|
+
description: "Archive a completed change in the experimental workflow"
|
|
4
|
+
allowed-tools: Bash(openspec:*)
|
|
5
|
+
category: "Workflow"
|
|
6
|
+
tags: ["workflow", "archive", "experimental"]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Archive a completed change in the experimental workflow.
|
|
10
|
+
|
|
11
|
+
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
|
|
12
|
+
|
|
13
|
+
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve the full path from each delta spec when resolving its main spec.
|
|
14
|
+
|
|
15
|
+
**Input**: Optionally specify a change name after `/opsx:archive` (e.g., `/opsx:archive add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
16
|
+
|
|
17
|
+
**Steps**
|
|
18
|
+
|
|
19
|
+
1. **Select the change**
|
|
20
|
+
|
|
21
|
+
If a name is provided, use it. Otherwise:
|
|
22
|
+
- Infer from conversation context if the user mentioned a change
|
|
23
|
+
- Auto-select if only one active change exists
|
|
24
|
+
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
|
|
25
|
+
|
|
26
|
+
When prompting, show only active changes (not already archived).
|
|
27
|
+
Include the schema used for each change if available.
|
|
28
|
+
|
|
29
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:archive <other>`).
|
|
30
|
+
|
|
31
|
+
**Load current archive inputs before the existing archive checks:**
|
|
32
|
+
|
|
33
|
+
After resolving the selected change and planning root, run:
|
|
34
|
+
```bash
|
|
35
|
+
openspec instructions archive --change "<name>" --json
|
|
36
|
+
```
|
|
37
|
+
Keep the same selected-root flags on this command. This lookup is advisory and
|
|
38
|
+
optional: it only supplies extra prompt inputs, so it must never block archiving.
|
|
39
|
+
If it exits non-zero or returns invalid JSON — for example on an older CLI that
|
|
40
|
+
does not support this command yet — continue the archive workflow with no
|
|
41
|
+
context and no operation guidance. Do not report an error and do not stop.
|
|
42
|
+
|
|
43
|
+
A successful response may omit both optional fields. Treat `context` as a
|
|
44
|
+
required prompt-level input: read and consider it, and apply relevant project
|
|
45
|
+
facts, conventions, and constraints. Treat `operationGuidance` as optional
|
|
46
|
+
additive advice: read and consider every entry, and follow entries that are
|
|
47
|
+
applicable and compatible with the built-in archive workflow.
|
|
48
|
+
|
|
49
|
+
Keep both fields separate from built-in steps, explicit user choices, resolved
|
|
50
|
+
paths, CLI checks, and command contracts. If context conflicts with one of those
|
|
51
|
+
controlling inputs, report the conflict and preserve the controlling value. If
|
|
52
|
+
guidance is inapplicable or conflicts with a controlling input, do not follow it
|
|
53
|
+
and explain why. Do not infer replacement paths, skipped prompts, or flags from
|
|
54
|
+
either field, and do not copy their text verbatim into specs, change artifacts,
|
|
55
|
+
or archive summaries unless the user separately asks for it. These are
|
|
56
|
+
prompt-level behavior contracts, not enforceable checks.
|
|
57
|
+
|
|
58
|
+
2. **Check artifact completion status**
|
|
59
|
+
|
|
60
|
+
Run `openspec status --change "<name>" --json` to check artifact completion.
|
|
61
|
+
|
|
62
|
+
Parse the JSON to understand:
|
|
63
|
+
- `schemaName`: The workflow being used
|
|
64
|
+
- `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context
|
|
65
|
+
- `artifacts`: List of artifacts with their status (`done`, `skipped`, or other)
|
|
66
|
+
|
|
67
|
+
**If any artifacts are neither `done` nor `skipped`** (skipped artifacts satisfy the requirement - the change declares skip_specs):
|
|
68
|
+
- Display warning listing incomplete artifacts
|
|
69
|
+
- Prompt user for confirmation to continue
|
|
70
|
+
- Proceed if user confirms
|
|
71
|
+
|
|
72
|
+
3. **Check task completion status**
|
|
73
|
+
|
|
74
|
+
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
|
|
75
|
+
|
|
76
|
+
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
77
|
+
|
|
78
|
+
**If incomplete tasks found:**
|
|
79
|
+
- Display warning showing count of incomplete tasks
|
|
80
|
+
- Prompt user for confirmation to continue
|
|
81
|
+
- Proceed if user confirms
|
|
82
|
+
|
|
83
|
+
**If no tasks file exists:** Proceed without task-related warning.
|
|
84
|
+
|
|
85
|
+
4. **Assess delta spec sync state**
|
|
86
|
+
|
|
87
|
+
Use `artifactPaths.specs.existingOutputPaths` from status JSON as the only
|
|
88
|
+
delta-spec source. If the `specs` entry is missing or
|
|
89
|
+
`existingOutputPaths` is empty, proceed without a sync prompt and do not infer
|
|
90
|
+
delta specs from other artifacts.
|
|
91
|
+
|
|
92
|
+
**If delta specs exist:**
|
|
93
|
+
- Compare each delta spec with its corresponding main spec at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (use the store-aware `planningHome.root` from step 2, not a hardcoded repo path)
|
|
94
|
+
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
95
|
+
- Show a combined summary before prompting
|
|
96
|
+
|
|
97
|
+
**Prompt options:**
|
|
98
|
+
- If changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
99
|
+
- If already synced: "Archive now", "Sync anyway", "Cancel"
|
|
100
|
+
|
|
101
|
+
Route on the answer:
|
|
102
|
+
- "Cancel" — stop, do not archive
|
|
103
|
+
- "Archive without syncing" or "Archive now" — proceed to archive
|
|
104
|
+
- "Sync now" or "Sync anyway" — sync, then verify (below)
|
|
105
|
+
- Anything else — ask again rather than archiving
|
|
106
|
+
|
|
107
|
+
Before a selected sync writes any main spec, run
|
|
108
|
+
`openspec instructions specs --change "<name>" --json` once with the same
|
|
109
|
+
selected-root flags. Require a zero exit status and valid artifact-instruction
|
|
110
|
+
JSON. If the lookup fails or returns invalid JSON, report the error and stop
|
|
111
|
+
before writing any main spec or moving the change. A valid response with omitted
|
|
112
|
+
`rules` is the no-rules case. Apply returned `rules` only to the content and
|
|
113
|
+
form of main specs produced by this merge; do not use them as archive guidance,
|
|
114
|
+
change CLI behavior, or copy the rule text into any output file.
|
|
115
|
+
|
|
116
|
+
Then run the `/opsx:sync` workflow inline (agent-driven intelligent merge) for change '<name>', passing the delta spec analysis and the fetched specs-rule snapshot from above, and wait for it to finish. The inline sync must reuse that snapshot without fetching `specs` instructions again. Do not delegate it to a background task — step 5 would move `changeRoot` out from under a sync that is still reading it, leaving the change archived and the main specs never updated. If your agent can only run it by delegation, delegate synchronously and wait for the result.
|
|
117
|
+
|
|
118
|
+
Then re-run the comparison from the top of this step against every capability that has a delta spec in `artifactPaths.specs.existingOutputPaths` — not only the ones the sync reports it touched. A successful sync leaves nothing left to apply, so each capability must now read as already synced:
|
|
119
|
+
- ADDED requirements present
|
|
120
|
+
- MODIFIED requirements carrying the scenario and description changes named in the delta, with their other scenarios intact
|
|
121
|
+
- REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving `## Requirements` empty), its main spec deleted rather than left empty; a spec the sync deliberately kept and reported is also a match
|
|
122
|
+
- RENAMED requirements present under the new name and absent under the old one
|
|
123
|
+
|
|
124
|
+
If the sync failed, or any capability does not match, report what differs and stop — do not archive. Nothing has moved and `changeRoot` is intact, so the user can fix the mismatch or re-run the sync and start the archive again.
|
|
125
|
+
|
|
126
|
+
5. **Perform the archive**
|
|
127
|
+
|
|
128
|
+
Create an `archive` directory under `planningHome.changesDir` if it doesn't exist:
|
|
129
|
+
```bash
|
|
130
|
+
mkdir -p "<planningHome.changesDir>/archive"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Generate the target name: use the change name as-is when it already starts with a `YYYY-MM-DD-` prefix; otherwise prepend the current date as `YYYY-MM-DD-<change-name>`. Never stack a second date (same rule as `openspec archive`).
|
|
134
|
+
|
|
135
|
+
**Check if target already exists:**
|
|
136
|
+
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
137
|
+
- If no: Move `changeRoot` to the archive directory
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
mv "<changeRoot>" "<planningHome.changesDir>/archive/<target-name>"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
6. **Display summary**
|
|
144
|
+
|
|
145
|
+
Show archive completion summary including:
|
|
146
|
+
- Change name
|
|
147
|
+
- Schema that was used
|
|
148
|
+
- Archive location
|
|
149
|
+
- Spec sync status (synced / sync skipped / no delta specs)
|
|
150
|
+
- Note about any warnings (incomplete artifacts/tasks)
|
|
151
|
+
|
|
152
|
+
**Output On Success**
|
|
153
|
+
|
|
154
|
+
```markdown
|
|
155
|
+
## Archive Complete
|
|
156
|
+
|
|
157
|
+
**Change:** <change-name>
|
|
158
|
+
**Schema:** <schema-name>
|
|
159
|
+
**Archived to:** the archive path derived from `planningHome.changesDir`/<target-name>/
|
|
160
|
+
**Specs:** ✓ Synced to main specs
|
|
161
|
+
|
|
162
|
+
All artifacts complete. All tasks complete.
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Output On Success (No Delta Specs)**
|
|
166
|
+
|
|
167
|
+
```markdown
|
|
168
|
+
## Archive Complete
|
|
169
|
+
|
|
170
|
+
**Change:** <change-name>
|
|
171
|
+
**Schema:** <schema-name>
|
|
172
|
+
**Archived to:** the archive path derived from `planningHome.changesDir`/<target-name>/
|
|
173
|
+
**Specs:** No delta specs
|
|
174
|
+
|
|
175
|
+
All artifacts complete. All tasks complete.
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**Output On Success With Warnings**
|
|
179
|
+
|
|
180
|
+
```markdown
|
|
181
|
+
## Archive Complete (with warnings)
|
|
182
|
+
|
|
183
|
+
**Change:** <change-name>
|
|
184
|
+
**Schema:** <schema-name>
|
|
185
|
+
**Archived to:** the archive path derived from `planningHome.changesDir`/<target-name>/
|
|
186
|
+
**Specs:** Sync skipped (user chose to skip)
|
|
187
|
+
|
|
188
|
+
**Warnings:**
|
|
189
|
+
- Archived with 2 incomplete artifacts
|
|
190
|
+
- Archived with 3 incomplete tasks
|
|
191
|
+
- Delta spec sync was skipped (user chose to skip)
|
|
192
|
+
|
|
193
|
+
Review the archive if this was not intentional.
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Output On Error (Archive Exists)**
|
|
197
|
+
|
|
198
|
+
```markdown
|
|
199
|
+
## Archive Failed
|
|
200
|
+
|
|
201
|
+
**Change:** <change-name>
|
|
202
|
+
**Target:** the archive path derived from `planningHome.changesDir`/<target-name>/
|
|
203
|
+
|
|
204
|
+
Target archive directory already exists.
|
|
205
|
+
|
|
206
|
+
**Options:**
|
|
207
|
+
1. Rename the existing archive
|
|
208
|
+
2. Delete the existing archive if it's a duplicate
|
|
209
|
+
3. Wait until a different date to archive
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Guardrails**
|
|
213
|
+
- Announce the selected change; prompt for selection when it is ambiguous
|
|
214
|
+
- Use artifact graph (openspec status --json) for completion checking
|
|
215
|
+
- Don't block archive on warnings - just inform and confirm
|
|
216
|
+
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
|
|
217
|
+
- Show clear summary of what happened
|
|
218
|
+
- If sync is requested, run the `/opsx:sync` workflow inline (agent-driven)
|
|
219
|
+
- Never archive while a spec sync is still in flight — run the sync inline and verify the main specs before moving `changeRoot`
|
|
220
|
+
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|
|
221
|
+
- Apply relevant runtime context and report conflicts; operation guidance remains advisory
|
|
222
|
+
- Consider every guidance entry and explain any inapplicable or conflicting advice
|
|
223
|
+
- Existing CLI checks, resolved paths, prompts, and command contracts are unchanged
|
|
224
|
+
- Artifact rules constrain only the specs being written and are never operation guidance
|
|
225
|
+
- Never copy runtime context, operation guidance, or artifact-rule text verbatim into output files
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "OPSX: Explore"
|
|
3
|
+
description: "Enter explore mode - think through ideas, investigate problems, clarify requirements"
|
|
4
|
+
allowed-tools: Bash(openspec:*)
|
|
5
|
+
category: "Workflow"
|
|
6
|
+
tags: ["workflow", "explore", "experimental", "thinking"]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
|
|
10
|
+
|
|
11
|
+
**IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, investigate the codebase, and run read-only commands or tools without confirmation, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create or update OpenSpec change artifacts (proposals, designs, specs) within a confirmed scope—that's capturing thinking, not implementing. Answering design or clarifying questions is never consent to write. Before the first write-capable action, name the artifacts or files you would change and what you would do, ask a direct yes/no question, and wait for the user's confirmation in a separate message. Confirmation covers only the scope you described; ask again before expanding it. For a new change, scaffold it first as described below.
|
|
12
|
+
|
|
13
|
+
**This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
|
|
14
|
+
|
|
15
|
+
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
|
|
16
|
+
|
|
17
|
+
**Input**: The argument after `/opsx:explore` is whatever the user wants to think about. Could be:
|
|
18
|
+
- A vague idea: "real-time collaboration"
|
|
19
|
+
- A specific problem: "the auth system is getting unwieldy"
|
|
20
|
+
- A change name: "add-dark-mode" (to explore in context of that change)
|
|
21
|
+
- A comparison: "postgres vs sqlite for this"
|
|
22
|
+
- Nothing (just enter explore mode)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## The Stance
|
|
27
|
+
|
|
28
|
+
- **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
|
|
29
|
+
- **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
|
|
30
|
+
- **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
|
|
31
|
+
- **Adaptive** - Follow interesting threads, pivot when new information emerges
|
|
32
|
+
- **Patient** - Don't rush to conclusions, let the shape of the problem emerge
|
|
33
|
+
- **Grounded** - Explore the actual codebase when relevant, don't just theorize
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## What You Might Do
|
|
38
|
+
|
|
39
|
+
Depending on what the user brings, you might:
|
|
40
|
+
|
|
41
|
+
**Explore the problem space**
|
|
42
|
+
- Ask clarifying questions that emerge from what they said
|
|
43
|
+
- Challenge assumptions
|
|
44
|
+
- Reframe the problem
|
|
45
|
+
- Find analogies
|
|
46
|
+
|
|
47
|
+
**Investigate the codebase**
|
|
48
|
+
- Map existing architecture relevant to the discussion
|
|
49
|
+
- Find integration points
|
|
50
|
+
- Identify patterns already in use
|
|
51
|
+
- Surface hidden complexity
|
|
52
|
+
|
|
53
|
+
**Compare options**
|
|
54
|
+
- Brainstorm multiple approaches
|
|
55
|
+
- Build comparison tables
|
|
56
|
+
- Sketch tradeoffs
|
|
57
|
+
- Recommend a path (if asked)
|
|
58
|
+
|
|
59
|
+
**Visualize**
|
|
60
|
+
```
|
|
61
|
+
+------------------------------------------+
|
|
62
|
+
| Use ASCII diagrams liberally |
|
|
63
|
+
+------------------------------------------+
|
|
64
|
+
| |
|
|
65
|
+
| [State A] -------> [State B] |
|
|
66
|
+
| | |
|
|
67
|
+
| v |
|
|
68
|
+
| [State C] |
|
|
69
|
+
| |
|
|
70
|
+
| System diagrams, state machines, |
|
|
71
|
+
| data flows, architecture sketches, |
|
|
72
|
+
| dependency graphs, comparison tables |
|
|
73
|
+
| |
|
|
74
|
+
+------------------------------------------+
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Draw with plain ASCII only** — borders `+` `-` `|`, arrows `-->` `<--` `^` `v`, markers `*` `x`.
|
|
78
|
+
Unicode diagram glyphs can render at different widths across terminals, fonts, and locales, so padded boxes and aligned tables can drift. Keep every diagram character ASCII.
|
|
79
|
+
|
|
80
|
+
**Surface risks and unknowns**
|
|
81
|
+
- Identify what could go wrong
|
|
82
|
+
- Find gaps in understanding
|
|
83
|
+
- Suggest spikes or investigations
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## OpenSpec Awareness
|
|
88
|
+
|
|
89
|
+
You have full context of the OpenSpec system. Use it naturally, don't force it.
|
|
90
|
+
|
|
91
|
+
### Check for context
|
|
92
|
+
|
|
93
|
+
At the start, quickly check what exists:
|
|
94
|
+
```bash
|
|
95
|
+
openspec list --json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
This tells you:
|
|
99
|
+
- If there are active changes
|
|
100
|
+
- Their names, schemas, and status
|
|
101
|
+
- What the user might be working on
|
|
102
|
+
|
|
103
|
+
Then read the project's own context from the resolved root - `<root.path>/openspec/config.yaml` (or `config.yml`). Use the `root.path` returned above, and skip this if neither file exists:
|
|
104
|
+
- `context`: project background - tech stack, conventions, constraints
|
|
105
|
+
- `rules`: keyed by artifact id - the entries for an artifact apply only when you write that artifact
|
|
106
|
+
|
|
107
|
+
Ground your thinking in these. They are constraints for you to follow, not content to reproduce: do NOT copy them into the conversation or into any artifact you create.
|
|
108
|
+
|
|
109
|
+
If the user mentioned a specific change name, read its artifacts for context.
|
|
110
|
+
|
|
111
|
+
### When no change exists
|
|
112
|
+
|
|
113
|
+
Think freely. When insights crystallize, you might offer:
|
|
114
|
+
|
|
115
|
+
- "This feels solid enough to start a change. Want me to create a proposal?"
|
|
116
|
+
- Or keep exploring - no pressure to formalize
|
|
117
|
+
|
|
118
|
+
If the user asks you to capture the exploration as a new change, transition seamlessly into the requested capture:
|
|
119
|
+
|
|
120
|
+
1. Run `openspec new change "<name>"` (with `--store <id>` when applicable) before creating any artifacts. Never create a new change directory under `openspec/changes/` by hand; the CLI scaffold creates required metadata such as `.openspec.yaml`. Keep the selected `--store <id>` on every applicable follow-up `status` and `instructions` command.
|
|
121
|
+
2. Run `openspec status --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store), then process the requested artifacts in dependency order. For each requested artifact that is `ready`, run `openspec instructions "<artifact-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store). Before creating a requested artifact, evaluate any condition in its own `instruction` against the explored change; record a deliberate skip instead when the condition does not apply. If a requested artifact is blocked by a direct prerequisite the user did not request, run `openspec instructions "<prerequisite-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) for that prerequisite whether it is `ready` or `blocked`. If its own `instruction` states a condition, evaluate that condition against the explored change and record a deliberate skip only when the condition does not apply. If the condition applies, or the prerequisite is not conditional, treat it as a normal prerequisite and ask before expanding the capture. Do not create an unrequested prerequisite unless the user approves.
|
|
122
|
+
3. Follow the returned `template` and `instruction` fields. Read completed dependency files listed in `dependencies`, and apply `context` and `rules` as constraints without copying them into the artifact. If the instruction delegates creation to a specific skill or command, invoke it; otherwise write the artifact to `resolvedOutputPath`, using the instruction to choose a concrete path when it is a glob. Verify that the selected concrete output exists.
|
|
123
|
+
4. After creating each artifact, re-run `openspec status --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) and continue until every requested artifact is `done`, `skipped`, or was deliberately skipped because its own `instruction` stated a condition that did not apply. Tell the user about a deliberate conditional skip, remember it, and do not reconsider it. Dependencies are enablers, not gates: if a requested artifact is still `blocked` only because you deliberately skipped a conditional prerequisite, run `openspec instructions "<artifact-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) despite the blocked status, then create it using step 3 only when those recorded conditional skips are its sole missing dependencies. If a requested artifact is blocked by a prerequisite the user did not ask to capture and cannot be conditionally skipped, explain that dependency and ask before expanding the capture.
|
|
124
|
+
|
|
125
|
+
Capture the artifact(s) the user requested without asking them to invoke another workflow command. If they asked only to start a change, stop after scaffolding and show its status.
|
|
126
|
+
|
|
127
|
+
### When a change exists
|
|
128
|
+
|
|
129
|
+
If the user mentions a change or you detect one is relevant:
|
|
130
|
+
|
|
131
|
+
1. **Resolve and read existing artifacts for context**
|
|
132
|
+
- Run `openspec status --change "<name>" --json`.
|
|
133
|
+
- Use `changeRoot`, `artifactPaths`, and `actionContext` from the status JSON.
|
|
134
|
+
- Read existing files from `artifactPaths.<artifact>.existingOutputPaths`.
|
|
135
|
+
|
|
136
|
+
2. **Reference them naturally in conversation**
|
|
137
|
+
- "Your design mentions using Redis, but we just realized SQLite fits better..."
|
|
138
|
+
- "The proposal scopes this to premium users, but we're now thinking everyone..."
|
|
139
|
+
|
|
140
|
+
3. **Offer to capture when decisions are made**
|
|
141
|
+
|
|
142
|
+
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve an existing capability's full path and follow the project's established organization for new capabilities.
|
|
143
|
+
|
|
144
|
+
| Insight Type | Where to Capture |
|
|
145
|
+
|----------------------------|-------------------------------------|
|
|
146
|
+
| New requirement discovered | `specs/<capability-path>/spec.md` |
|
|
147
|
+
| Requirement changed | `specs/<capability-path>/spec.md` |
|
|
148
|
+
| Design decision made | `design.md` |
|
|
149
|
+
| Scope changed | `proposal.md` |
|
|
150
|
+
| New work identified | `tasks.md` |
|
|
151
|
+
| Assumption invalidated | Relevant artifact |
|
|
152
|
+
|
|
153
|
+
Example offers:
|
|
154
|
+
- "That's a design decision. Capture it in design.md?"
|
|
155
|
+
- "This is a new requirement. Add it to specs?"
|
|
156
|
+
- "This changes scope. Update the proposal?"
|
|
157
|
+
|
|
158
|
+
4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## What You Don't Have To Do
|
|
163
|
+
|
|
164
|
+
- Follow a script
|
|
165
|
+
- Ask the same questions every time
|
|
166
|
+
- Produce a specific artifact
|
|
167
|
+
- Reach a conclusion
|
|
168
|
+
- Stay on topic if a tangent is valuable
|
|
169
|
+
- Be brief (this is thinking time)
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Ending Discovery
|
|
174
|
+
|
|
175
|
+
There's no required ending. Discovery might:
|
|
176
|
+
|
|
177
|
+
- **Flow into a proposal**: "Ready to start? I can create a change proposal."
|
|
178
|
+
- **Result in artifact updates**: "Updated design.md with these decisions"
|
|
179
|
+
- **Just provide clarity**: User has what they need, moves on
|
|
180
|
+
- **Continue later**: "We can pick this up anytime"
|
|
181
|
+
|
|
182
|
+
When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Guardrails
|
|
187
|
+
|
|
188
|
+
- **Don't implement** - Never write code or implement features. Workflow configuration counts too: creating or editing schemas, templates, or `openspec/config.yaml` is a change, not thinking. Creating or updating OpenSpec change artifacts within the confirmed scope is fine, writing anything else is not.
|
|
189
|
+
- **Don't fake understanding** - If something is unclear, dig deeper
|
|
190
|
+
- **Don't rush** - Discovery is thinking time, not task time
|
|
191
|
+
- **Don't force structure** - Let patterns emerge naturally
|
|
192
|
+
- **Don't auto-capture** - Offer to save insights, don't just do it. Read-only commands and tools need no confirmation. Before the first write-capable action—including `openspec new change` or another command that writes files—name the artifacts or files and proposed changes, ask a direct yes/no question, and wait for explicit confirmation in a separate user message. That confirmation covers only the described scope; ask again before expanding it. Answers to design or clarifying questions are never consent to write.
|
|
193
|
+
- **Don't manually scaffold changes** - Never create a new change directory under `openspec/changes/` by hand. Always use `openspec new change "<name>"` (with `--store <id>` when applicable) so required metadata such as `.openspec.yaml` is created before writing artifacts.
|
|
194
|
+
- **Do visualize** - A good diagram is worth many paragraphs
|
|
195
|
+
- **Do explore the codebase** - Ground discussions in reality
|
|
196
|
+
- **Do question assumptions** - Including the user's and your own
|