specplane 0.1.0a3__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.
- specplane-0.1.0a3/.agents/skills/specplane-author/SKILL.md +35 -0
- specplane-0.1.0a3/.agents/skills/specplane-bootstrap/SKILL.md +24 -0
- specplane-0.1.0a3/.agents/skills/specplane-explain/SKILL.md +33 -0
- specplane-0.1.0a3/.agents/skills/specplane-flows/SKILL.md +56 -0
- specplane-0.1.0a3/.agents/skills/specplane-implement/SKILL.md +125 -0
- specplane-0.1.0a3/.agents/skills/specplane-infer/SKILL.md +120 -0
- specplane-0.1.0a3/.agents/skills/specplane-validate/SKILL.md +36 -0
- specplane-0.1.0a3/.cursor/rules/specplane-core.mdc +22 -0
- specplane-0.1.0a3/.cursor/rules/specplane-yaml.mdc +17 -0
- specplane-0.1.0a3/.cursor/skills/specplane-author/SKILL.md +35 -0
- specplane-0.1.0a3/.cursor/skills/specplane-bootstrap/SKILL.md +24 -0
- specplane-0.1.0a3/.cursor/skills/specplane-explain/SKILL.md +33 -0
- specplane-0.1.0a3/.cursor/skills/specplane-flows/SKILL.md +56 -0
- specplane-0.1.0a3/.cursor/skills/specplane-implement/SKILL.md +125 -0
- specplane-0.1.0a3/.cursor/skills/specplane-infer/SKILL.md +120 -0
- specplane-0.1.0a3/.cursor/skills/specplane-validate/SKILL.md +36 -0
- specplane-0.1.0a3/LICENSE +201 -0
- specplane-0.1.0a3/MANIFEST.in +5 -0
- specplane-0.1.0a3/PKG-INFO +31 -0
- specplane-0.1.0a3/PYPI.md +19 -0
- specplane-0.1.0a3/README.md +202 -0
- specplane-0.1.0a3/packaging/build_backend.py +59 -0
- specplane-0.1.0a3/packaging/bundle_kit.py +64 -0
- specplane-0.1.0a3/pyproject.toml +34 -0
- specplane-0.1.0a3/setup.cfg +4 -0
- specplane-0.1.0a3/specplane/README.md +55 -0
- specplane-0.1.0a3/specplane/core_prompt/README_START_HERE.md +13 -0
- specplane-0.1.0a3/specplane/core_prompt/README_v6.1.0.md +90 -0
- specplane-0.1.0a3/specplane/core_prompt/README_v9.1.0.md +133 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/01-philosophy-and-5c.md +93 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/02-file-layout.md +164 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/03-shared-meta.md +72 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/04-capability.md +159 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/05-foundation.md +46 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/06-system-container-component.md +285 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/07-ai-native.md +165 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/08-validation-rules.md +321 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/09-diagrams-and-refs.md +60 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/10-worked-examples.md +283 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/11-guidance-and-checklists.md +194 -0
- specplane-0.1.0a3/specplane/core_prompt/applicable/README.md +58 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/README.md +19 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/specplane_schema_prompt_v5.5.1_balanced.md +1137 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/specplane_schema_prompt_v5.5.5_balanced.md +1347 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/specplane_schema_prompt_v6.0.0_progressive_disclosure.md +1047 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/specplane_schema_prompt_v7_detailed.md +1609 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/specplane_schema_prompt_v8.0.0_progressive_disclosure.md +1301 -0
- specplane-0.1.0a3/specplane/core_prompt/archived/specplane_schema_prompt_v9.0.0_progressive_disclosure.md +1584 -0
- specplane-0.1.0a3/specplane/core_prompt/specplane_schema_prompt_v6.1.0_progressive_disclosure.md +1106 -0
- specplane-0.1.0a3/specplane/core_prompt/specplane_schema_prompt_v9.1.0.md +1715 -0
- specplane-0.1.0a3/specplane/dialect.md +69 -0
- specplane-0.1.0a3/specplane/foundations/foundation.accessibility.yaml +51 -0
- specplane-0.1.0a3/specplane/foundations/foundation.ai_guidelines.yaml +50 -0
- specplane-0.1.0a3/specplane/foundations/foundation.analytics_conventions.yaml +151 -0
- specplane-0.1.0a3/specplane/foundations/foundation.api_conventions.yaml +62 -0
- specplane-0.1.0a3/specplane/foundations/foundation.component_library.yaml +55 -0
- specplane-0.1.0a3/specplane/foundations/foundation.data_model_conventions.yaml +51 -0
- specplane-0.1.0a3/specplane/foundations/foundation.design_system.yaml +58 -0
- specplane-0.1.0a3/specplane/foundations/foundation.error_handling.yaml +56 -0
- specplane-0.1.0a3/specplane/foundations/foundation.eval_standards.yaml +57 -0
- specplane-0.1.0a3/specplane/foundations/foundation.event_schema.yaml +48 -0
- specplane-0.1.0a3/specplane/foundations/foundation.iconography.yaml +44 -0
- specplane-0.1.0a3/specplane/foundations/foundation.internationalization.yaml +52 -0
- specplane-0.1.0a3/specplane/foundations/foundation.logging_conventions.yaml +60 -0
- specplane-0.1.0a3/specplane/foundations/foundation.model_governance.yaml +62 -0
- specplane-0.1.0a3/specplane/foundations/foundation.motion.yaml +48 -0
- specplane-0.1.0a3/specplane/foundations/foundation.observability_standards.yaml +62 -0
- specplane-0.1.0a3/specplane/foundations/foundation.performance_budget.yaml +47 -0
- specplane-0.1.0a3/specplane/foundations/foundation.privacy_consent.yaml +57 -0
- specplane-0.1.0a3/specplane/foundations/foundation.security_baseline.yaml +55 -0
- specplane-0.1.0a3/specplane/supporting_prompts/spec_validation_prompt_examples.md +7 -0
- specplane-0.1.0a3/specplane/supporting_prompts/when_making_changes.md +4 -0
- specplane-0.1.0a3/specplane/supporting_prompts/widget_spec_examples.md +33 -0
- specplane-0.1.0a3/tools/specplane/README.md +103 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/ci_gate.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/cli.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/impact.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/initkit.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/kernel.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/mcp_stdio.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/telemetry.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_activity.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_ci_gate.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_effective_context.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_impact.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_init.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_kernel.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_mcp.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_receipts.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_telemetry.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_validate.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/test_view.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/validate.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/__pycache__/view.cpython-312.pyc +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-author/SKILL.md +35 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-bootstrap/SKILL.md +24 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-explain/SKILL.md +33 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-flows/SKILL.md +56 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-implement/SKILL.md +125 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-infer/SKILL.md +120 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.agents/skills/specplane-validate/SKILL.md +36 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/rules/specplane-core.mdc +22 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/rules/specplane-yaml.mdc +17 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-author/SKILL.md +35 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-bootstrap/SKILL.md +24 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-explain/SKILL.md +33 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-flows/SKILL.md +56 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-implement/SKILL.md +125 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-infer/SKILL.md +120 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/.cursor/skills/specplane-validate/SKILL.md +36 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/__init__.py +1 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/README.md +55 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/README_START_HERE.md +13 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/README_v6.1.0.md +90 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/README_v9.1.0.md +133 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/01-philosophy-and-5c.md +93 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/02-file-layout.md +164 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/03-shared-meta.md +72 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/04-capability.md +159 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/05-foundation.md +46 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/06-system-container-component.md +285 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/07-ai-native.md +165 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/08-validation-rules.md +321 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/09-diagrams-and-refs.md +60 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/10-worked-examples.md +283 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/11-guidance-and-checklists.md +194 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/applicable/README.md +58 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/README.md +19 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/specplane_schema_prompt_v5.5.1_balanced.md +1137 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/specplane_schema_prompt_v5.5.5_balanced.md +1347 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/specplane_schema_prompt_v6.0.0_progressive_disclosure.md +1047 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/specplane_schema_prompt_v7_detailed.md +1609 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/specplane_schema_prompt_v8.0.0_progressive_disclosure.md +1301 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/archived/specplane_schema_prompt_v9.0.0_progressive_disclosure.md +1584 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/specplane_schema_prompt_v6.1.0_progressive_disclosure.md +1106 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/core_prompt/specplane_schema_prompt_v9.1.0.md +1715 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/dialect.md +69 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.accessibility.yaml +51 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.ai_guidelines.yaml +50 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.analytics_conventions.yaml +151 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.api_conventions.yaml +62 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.component_library.yaml +55 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.data_model_conventions.yaml +51 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.design_system.yaml +58 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.error_handling.yaml +56 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.eval_standards.yaml +57 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.event_schema.yaml +48 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.iconography.yaml +44 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.internationalization.yaml +52 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.logging_conventions.yaml +60 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.model_governance.yaml +62 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.motion.yaml +48 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.observability_standards.yaml +62 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.performance_budget.yaml +47 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.privacy_consent.yaml +57 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/foundations/foundation.security_baseline.yaml +55 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/supporting_prompts/spec_validation_prompt_examples.md +7 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/supporting_prompts/when_making_changes.md +4 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/specplane/supporting_prompts/widget_spec_examples.md +33 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/README.md +103 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/ci_gate.py +159 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/cli.py +645 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/drift.py +96 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/impact.py +1138 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/initkit.py +423 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/kernel.py +3107 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/mcp_stdio.py +272 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/requirements.txt +1 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/specplane.config.json.example +6 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/telemetry.py +448 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/validate.py +755 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/view.py +633 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/app.css +869 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/app.js +2399 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/OFL-jetbrains-mono.txt +93 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/OFL-schibsted-grotesk.txt +93 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/jetbrains-mono-400.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/jetbrains-mono-500.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/jetbrains-mono-600.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/schibsted-grotesk-400.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/schibsted-grotesk-500.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/fonts/schibsted-grotesk-600.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/index.html +15 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/vendor/MERMAID_VERSION +1 -0
- specplane-0.1.0a3/tools/specplane/_specplane_kit/tools/specplane/viewer/vendor/mermaid.min.js +2029 -0
- specplane-0.1.0a3/tools/specplane/ci_gate.py +159 -0
- specplane-0.1.0a3/tools/specplane/cli.py +645 -0
- specplane-0.1.0a3/tools/specplane/drift.py +96 -0
- specplane-0.1.0a3/tools/specplane/impact.py +1138 -0
- specplane-0.1.0a3/tools/specplane/initkit.py +423 -0
- specplane-0.1.0a3/tools/specplane/kernel.py +3107 -0
- specplane-0.1.0a3/tools/specplane/mcp_stdio.py +272 -0
- specplane-0.1.0a3/tools/specplane/requirements.txt +1 -0
- specplane-0.1.0a3/tools/specplane/specplane.config.json.example +6 -0
- specplane-0.1.0a3/tools/specplane/specplane.egg-info/PKG-INFO +31 -0
- specplane-0.1.0a3/tools/specplane/specplane.egg-info/SOURCES.txt +269 -0
- specplane-0.1.0a3/tools/specplane/specplane.egg-info/dependency_links.txt +1 -0
- specplane-0.1.0a3/tools/specplane/specplane.egg-info/entry_points.txt +2 -0
- specplane-0.1.0a3/tools/specplane/specplane.egg-info/requires.txt +1 -0
- specplane-0.1.0a3/tools/specplane/specplane.egg-info/top_level.txt +10 -0
- specplane-0.1.0a3/tools/specplane/telemetry.py +448 -0
- specplane-0.1.0a3/tools/specplane/test_activity.py +211 -0
- specplane-0.1.0a3/tools/specplane/test_ci_gate.py +374 -0
- specplane-0.1.0a3/tools/specplane/test_effective_context.py +424 -0
- specplane-0.1.0a3/tools/specplane/test_impact.py +320 -0
- specplane-0.1.0a3/tools/specplane/test_init.py +498 -0
- specplane-0.1.0a3/tools/specplane/test_kernel.py +2049 -0
- specplane-0.1.0a3/tools/specplane/test_mcp.py +187 -0
- specplane-0.1.0a3/tools/specplane/test_receipts.py +147 -0
- specplane-0.1.0a3/tools/specplane/test_telemetry.py +199 -0
- specplane-0.1.0a3/tools/specplane/test_validate.py +55 -0
- specplane-0.1.0a3/tools/specplane/test_view.py +451 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/capabilities/capability.auth_v1.yaml +32 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/capabilities/capability.authentication.yaml +42 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/capabilities/capability.marketing.yaml +36 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/capabilities/capability.orphan.yaml +30 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/changes/add_passkeys/delta.yaml +7 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/changes/add_passkeys/proposal.yaml +7 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/changes/add_passkeys/success.yaml +7 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/changes/no_sensor/proposal.yaml +7 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/components/web_app/component.banner.yaml +30 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/components/web_app/component.login_api.yaml +31 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/components/web_app/component.session_manager.yaml +32 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/components/web_app/component.token_store.yaml +31 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/containers/container.web_app.yaml +30 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/foundations/foundation.security_baseline.yaml +26 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/messy_auth/specs/system.demo.yaml +28 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/capabilities/capability.alpha.yaml +22 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/capabilities/capability.beta.yaml +22 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/capabilities/capability.thin.yaml +18 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/changes/baseline_review/proposal.yaml +8 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/changes/baseline_review/success.yaml +9 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/changes/select_output_folder/proposal.yaml +7 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/changes/select_output_folder/success.yaml +9 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/components/component.other.yaml +20 -0
- specplane-0.1.0a3/tools/specplane/testdata/golden/scoped_coverage/specs/components/component.widget.yaml +20 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/CODEOWNERS +2 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/capabilities/capability.billing.yaml +89 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/capabilities/capability.identity.yaml +32 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/capabilities/capability.ledger.yaml +28 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/changes/billing_retry/proposal.yaml +6 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/components/component.billing_api.yaml +72 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/components/component.invoice_worker.yaml +33 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/components/component.payment_store.yaml +26 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/components/component.unrelated_mailer.yaml +25 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/containers/container.billing.yaml +29 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/foundations/foundation.privacy_consent.yaml +23 -0
- specplane-0.1.0a3/tools/specplane/testdata/impact_billing/specs/system.payments.yaml +26 -0
- specplane-0.1.0a3/tools/specplane/testdata/inferred/specs/capabilities/capability.billing_checkout.yaml +42 -0
- specplane-0.1.0a3/tools/specplane/testdata/inferred/src/checkout.py +5 -0
- specplane-0.1.0a3/tools/specplane/testdata/invalid/specs/capabilities/capability.broken.yaml +8 -0
- specplane-0.1.0a3/tools/specplane/testdata/valid/specs/capabilities/capability.authentication.yaml +38 -0
- specplane-0.1.0a3/tools/specplane/testdata/valid/specs/components/web_app/component.login_form.yaml +39 -0
- specplane-0.1.0a3/tools/specplane/testdata/valid/specs/containers/container.web_app.yaml +23 -0
- specplane-0.1.0a3/tools/specplane/testdata/valid/specs/foundations/foundation.security_baseline.yaml +22 -0
- specplane-0.1.0a3/tools/specplane/testdata/valid/specs/system.demo.yaml +26 -0
- specplane-0.1.0a3/tools/specplane/validate.py +755 -0
- specplane-0.1.0a3/tools/specplane/view.py +633 -0
- specplane-0.1.0a3/tools/specplane/viewer/app.css +869 -0
- specplane-0.1.0a3/tools/specplane/viewer/app.js +2399 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/OFL-jetbrains-mono.txt +93 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/OFL-schibsted-grotesk.txt +93 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/jetbrains-mono-400.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/jetbrains-mono-500.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/jetbrains-mono-600.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/schibsted-grotesk-400.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/schibsted-grotesk-500.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/viewer/fonts/schibsted-grotesk-600.woff2 +0 -0
- specplane-0.1.0a3/tools/specplane/viewer/index.html +15 -0
- specplane-0.1.0a3/tools/specplane/viewer/vendor/MERMAID_VERSION +1 -0
- specplane-0.1.0a3/tools/specplane/viewer/vendor/mermaid.min.js +2029 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-author
|
|
3
|
+
description: Create or expand SpecPlane YAML specs (capability, foundation, system, container, component, AI-native types). Use when the user explicitly asks to write, add, or update a specification file. If they described a product change in natural language, use specplane-implement instead.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Author
|
|
7
|
+
|
|
8
|
+
## Load
|
|
9
|
+
|
|
10
|
+
1. Read `specplane/dialect.md` for the nouns, verbs, and how little YAML is enough.
|
|
11
|
+
2. Read `specplane/core_prompt/applicable/README.md`.
|
|
12
|
+
3. Read `03-shared-meta.md`.
|
|
13
|
+
4. Read **only** the type section:
|
|
14
|
+
- capability → `04-capability.md`
|
|
15
|
+
- foundation → `05-foundation.md` and copy shape from `specplane/foundations/` if starting from boilerplate
|
|
16
|
+
- system / container / component → `06-system-container-component.md`
|
|
17
|
+
- agent / tool / workflow / evaluator / tool_registry / state_store → `06` then `07-ai-native.md`
|
|
18
|
+
5. Skim the matching example in `10-worked-examples.md` if the type is capability or component.
|
|
19
|
+
6. If the user wants journey / lifecycle / information-flow richness or “what’s missing on this flow,” also load `specplane-flows`. String `flows` remain valid; mappings are optional.
|
|
20
|
+
|
|
21
|
+
Do not load `specplane_schema_prompt_v9.1.0.md` unless a field is missing from those sections.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. If this is a **product change** (behavior, or a new promise in natural language), stop and follow `specplane-implement`. Do not write a new capability file until that skill’s intent gate has an answer, unless the human pasted a decided spec. Do not silently patch live YAML.
|
|
26
|
+
2. If `tools/specplane/cli.py` exists and you have an id, `retrieve` it first. Do not slurp `specs/`.
|
|
27
|
+
3. Identify level and (for components) `meta.type` / `meta.domain`.
|
|
28
|
+
4. **Where to write:**
|
|
29
|
+
- The human pasted a decided spec, and there is no live id: Phase 1 live file is OK (`responsibilities`, `flows`, `business_value`, `constraints`).
|
|
30
|
+
- In-flight work or an open change: put ADDED/MODIFIED YAML in `specs/changes/<id>/`, not as a changelog novel on the live file.
|
|
31
|
+
5. Set `meta.id` to the filename without extension. Use snake_case ids.
|
|
32
|
+
6. If adding `implements`, `uses`, or internal dependencies, update the other side of the link in the same change.
|
|
33
|
+
7. Add a `changelog` row and bump `meta.version` only on **live** 5C files. Change-folder YAML (`proposal` / `delta` / `success`) is not 5C meta.
|
|
34
|
+
8. If `tools/specplane/cli.py` exists, run `validate` in this session. Do not add git hooks or CI.
|
|
35
|
+
9. Summarize what was authored and what is still Phase-incomplete. If validate prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. Do not invent a SpecPlane receipt.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-bootstrap
|
|
3
|
+
description: Initialize a SpecPlane specs/ tree (capabilities, foundations, system, containers, components, changes). Use when the user asks to set up SpecPlane, scaffold specs, or start a new spec workspace.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Bootstrap
|
|
7
|
+
|
|
8
|
+
## Load
|
|
9
|
+
|
|
10
|
+
Read `specplane/core_prompt/applicable/02-file-layout.md` and `03-shared-meta.md`, then `specplane/dialect.md` for how little YAML is enough. Do not load the full master prompt.
|
|
11
|
+
|
|
12
|
+
## Procedure
|
|
13
|
+
|
|
14
|
+
1. Create if missing (`cli.py init` may already have empty dirs):
|
|
15
|
+
- `specs/capabilities/`
|
|
16
|
+
- `specs/foundations/`
|
|
17
|
+
- `specs/containers/`
|
|
18
|
+
- `specs/components/`
|
|
19
|
+
- `specs/changes/` (in-flight write path; keep empty until a real change)
|
|
20
|
+
2. Add one `specs/system.<name>.yaml` if none exists.
|
|
21
|
+
3. If the user named capabilities or foundations, create those files; otherwise create one example capability and copy needed files from `specplane/foundations/`.
|
|
22
|
+
4. Every **5C** file: `meta.id` equals filename without extension, semver `version`, `introduced_in`, at least one `changelog` entry. Do not invent fake 5C meta for files under `specs/changes/`.
|
|
23
|
+
5. If `tools/specplane/cli.py` exists, run `validate` in this session; else `validate.py`. Do not add git hooks or CI.
|
|
24
|
+
6. Report the tree. If validate prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. Do not invent a SpecPlane receipt. Next step is usually a Phase 1 capability. Daily product requests after that use `specplane-implement` (see [`docs/golden-journey.md`](../../../docs/golden-journey.md)), not more scaffolding.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-explain
|
|
3
|
+
description: Explain how something works from the specification, the open change, the implementation, and the evidence, kept apart. Use when the user asks how something works, why the code does this, or what the spec says versus the change. Do not use to author a spec or to implement a product change.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Explain
|
|
7
|
+
|
|
8
|
+
Answer how something works. Keep four sources apart. Do not merge them into one story.
|
|
9
|
+
|
|
10
|
+
1. Run `context` on the spec id or the file the user named.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
SPECPLANE_CALLER=cursor_skill python3 tools/specplane/cli.py context <target> --spec-root specs
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Add `--change <slug>` when one open change is the task. Prefer `specplane` if it is on PATH.
|
|
17
|
+
|
|
18
|
+
2. If the command says the file is unmapped, stop. Do not invent a component. Do not parse the file into a spec. Quote the `SpecPlane ·` line.
|
|
19
|
+
|
|
20
|
+
3. Read implementation files only when `context` names a `realization.paths` entry for that component. Do not scan the repository for a match the command did not name.
|
|
21
|
+
|
|
22
|
+
4. Answer with four headings, in this order:
|
|
23
|
+
|
|
24
|
+
- **Specification** — the live text `context` printed (purpose, responsibilities, constraints).
|
|
25
|
+
- **Change** — the open change summaries. That is the implementation context. Canonical synchronization is pending until accept. If there is no open change, say so.
|
|
26
|
+
- **Implementation** — what the named files do. If none are declared, say none are declared.
|
|
27
|
+
- **Evidence** — each sensor's evidence and status. `UNVERIFIED` means no bound check passed. `VERIFIED` means a bound command passed. It does not mean the implementation satisfies the spec. `FAILED` means a bound command failed.
|
|
28
|
+
|
|
29
|
+
If the four disagree, say that in three sentences, one per disagreement. Do not pick a winner.
|
|
30
|
+
|
|
31
|
+
If a command prints a line that starts with `SpecPlane ·`, quote it unchanged. Do not invent a receipt. Do not add `--by` flags. Do not assign owners. Do not write `realized_by`. Components the graph does not name stay unmarked.
|
|
32
|
+
|
|
33
|
+
A readiness warning means implementation is underway and no implementation relationships are declared. Phase 1 stays valid. Do not add `realized_by` to clear the warning.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-flows
|
|
3
|
+
description: >-
|
|
4
|
+
Enhance SpecPlane capability flows with optional journey, object-lifecycle,
|
|
5
|
+
and information-flow richness. Use when the user asks to review, complete,
|
|
6
|
+
or improve user journeys, UX/info flows, object lifecycles, malloc-use-free
|
|
7
|
+
completeness, or what is missing on a flow. Do not invent unanswered behavior.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# SpecPlane Flows
|
|
11
|
+
|
|
12
|
+
Review and enrich `capability.flows`. Do not add a sixth C. Do not require every file to have journey + lifecycle + information.
|
|
13
|
+
|
|
14
|
+
## Load
|
|
15
|
+
|
|
16
|
+
1. `specplane/core_prompt/applicable/README.md`
|
|
17
|
+
2. `specplane/core_prompt/applicable/04-capability.md` (flow mapping + `open_questions`)
|
|
18
|
+
3. If a component realization is in scope: `06-system-container-component.md` (`planning.user_flows` stays a sliver)
|
|
19
|
+
|
|
20
|
+
Do not load the full master prompt.
|
|
21
|
+
|
|
22
|
+
## PRE
|
|
23
|
+
|
|
24
|
+
If `tools/specplane/cli.py` exists and you have a capability id:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
SPECPLANE_CALLER=cursor_skill python3 tools/specplane/cli.py retrieve <id> --spec-root specs
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Do not slurp `specs/`. Open only files the CLI named.
|
|
31
|
+
|
|
32
|
+
If a command prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. If it does not, do not invent a SpecPlane receipt. Do not say SpecPlane caught a bug or revised the code unless that printed line says so.
|
|
33
|
+
|
|
34
|
+
## What to do
|
|
35
|
+
|
|
36
|
+
1. **Keep the string index.** Existing `flows: ["Sign-up", "Login"]` stays valid. Promote a string to a mapping only when this file needs the richness.
|
|
37
|
+
2. **Ask which kinds this file needs** (not all three by default):
|
|
38
|
+
- **journey** — where the person starts, paths, how it ends
|
|
39
|
+
- **lifecycle** — `malloc → use → free` for objects this flow creates
|
|
40
|
+
- **information** — collected, moved, retained, destroyed
|
|
41
|
+
3. **Walk the implied envelope.** For each object: create → use → modify → share → archive? → restore? → delete? → what remains? For each journey: entry, stages, success, abandonment, exceptions, recovery.
|
|
42
|
+
4. **Do not invent answers.** If terminate/recover/ownership/retention is unspecified, write an `open_questions` item (`question`, optional `id` / `raised_from` / `status: open`). Capability-level `open_questions` or component `validation.open_questions` — same slot family; do not add a second key.
|
|
43
|
+
5. **Stories are a lens.** One or two `stories:` rows as evidence is fine. Do not generate a Jira-sized `user_stories` list.
|
|
44
|
+
6. **Cross-capability journeys are composed.** Do not copy a Discover→Cancel saga into every capability. Record the piece this file owns; note other capability ids in `open_questions` or `raised_from` if a hop is missing.
|
|
45
|
+
7. **External guidance is optional.** Web/UX research may be labeled `External guidance` and become questions or suggested spec edits. It is not law. Do not stuff best-practice essays into YAML.
|
|
46
|
+
8. **Components realize pieces.** You may set `planning.user_flows.flow_ref`. Do not copy lifecycle tables onto the component.
|
|
47
|
+
|
|
48
|
+
## Write rules
|
|
49
|
+
|
|
50
|
+
- In-flight work goes in `specs/changes/<slug>/` when this is an evolve of a live capability. New Phase 1 capabilities may take mappings on the live file.
|
|
51
|
+
- Prefer inference → questions → (after a human answers) spec mutation. Resolved questions graduate into the mapping (`lifecycle`, `recovery`, …) and get `status: resolved`.
|
|
52
|
+
- After edits: `python3 tools/specplane/cli.py validate --spec-root specs` when the CLI exists.
|
|
53
|
+
|
|
54
|
+
## Done when
|
|
55
|
+
|
|
56
|
+
The file is more digestible (named pieces + only the kinds it needs), gaps are **questions** not invented requirements, and a string-only neighbor file was left string-only.
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-implement
|
|
3
|
+
description: Run the SpecPlane change ritual when the user describes a product change, bug, experiment, feature, install/docs that state a promise, or asks to implement. PRE: retrieve when a promise might move (if unsure, retrieve). On a miss, wait on interpretations before YAML, then on reuse before code. POST: check_sync --change, then run --change. Typos/renames skip retrieve. Do not use for bootstrap or YAML-only authoring.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Implement
|
|
7
|
+
|
|
8
|
+
The user talks about the product. You run SpecPlane. They should not type `retrieve` or `blast`. Intended chat shape: [`docs/golden-journey.md`](../../../docs/golden-journey.md).
|
|
9
|
+
|
|
10
|
+
Do not slurp `specs/`. Call the kernel CLI. No SpecPlane API key. Do not add git hooks or CI. Do not slurp the tree. Do not parse source in the kernel.
|
|
11
|
+
|
|
12
|
+
## Hard gates (not optional)
|
|
13
|
+
|
|
14
|
+
Developers paste a prompt and expect codegen. You still run SpecPlane **when a product promise might move**. Do not skip because it looks like docs, packaging, README, “just implement,” or “no new capabilities.”
|
|
15
|
+
|
|
16
|
+
**PRE — if the request could reasonably move a promise** (behavior, contracts, events, security, rollout, how the product is obtained: init/install/README CLI claims):
|
|
17
|
+
|
|
18
|
+
1. Guess the capability (or component) id. Call `retrieve`. If none exists, say so. Classify **only after** that retrieve.
|
|
19
|
+
|
|
20
|
+
**Hit** — a live id matches (fix or evolve of that promise). One wait at most. A known-id fix does not get a second gate. A typo is not a wait.
|
|
21
|
+
|
|
22
|
+
- Open `specs/changes/<id>/` and `blast`. Draft the **delta on the existing promise** unless the human said this is new value.
|
|
23
|
+
- Do not recommend a parallel capability or component for the same job. Prefer reuse, extend, or compose of the ids `blast` named. Build last, and only when nothing already owns the job.
|
|
24
|
+
- Ask at most one unresolved consequential question. **Wait**, then implement.
|
|
25
|
+
|
|
26
|
+
**Miss** — no live capability matches. Do not open a change yet.
|
|
27
|
+
|
|
28
|
+
- **Intent gate — before any YAML.** Offer two or three interpretations and the likely flows. **Wait.** A narrower reading (“I only meant a PDF”) may mean no new capability. Do not author a new capability file until this gate has an answer, unless the human pasted a decided spec.
|
|
29
|
+
- Open the change folder. Draft Phase 1 / `delta.yaml` **from the chosen interpretation**, linking existing `implements` / `realized_by` / `uses` where the graph already has them. Use declared `realization.paths` already in hand. Do not invent a stack. Do not mint a component from a class name.
|
|
30
|
+
- `blast` and `impact`.
|
|
31
|
+
- **Realization gate — before code.** Classify reuse, extend, compose, or build (build last). Even **build** (a new component) lists connections, constraints, what blast named, and what not to duplicate. **Wait.** Then implement spec and code.
|
|
32
|
+
|
|
33
|
+
**PRE — skip retrieve** only when it cannot reasonably move a promise: typo, 4px, rename helper, same-behavior refactor. Say “no spec impact.” If unsure, retrieve — do not guess trivial.
|
|
34
|
+
|
|
35
|
+
Guide the spec so the reply can name, in substance:
|
|
36
|
+
|
|
37
|
+
- **Reuse** — mechanisms the graph already has.
|
|
38
|
+
- **Extend** — a flow or responsibility on an existing capability.
|
|
39
|
+
- **Compose** — existing ids joined, with no second stack.
|
|
40
|
+
- **Build** — only the piece nothing owns. Still list connections, constraints, and avoid.
|
|
41
|
+
|
|
42
|
+
A new noun can still be a hit. “Add team invitations” is extend/compose when retrieve already has membership, auth, or notifications — not a parallel capability plus a new mailer. “Users should be able to share a journey” is a miss until the human picks a reading (read-only link, grant a registered user, or collaboration). Infer stays the brownfield walk. If this is a product change, do not switch to authoring a new capability until the intent gate has an answer.
|
|
43
|
+
|
|
44
|
+
**POST — after a non-trivial implement, before claiming done:**
|
|
45
|
+
|
|
46
|
+
1. `validate`.
|
|
47
|
+
2. `check_sync --change <slug> --changed-ids` with every id you retrieved, blasted, or whose realization files you edited. `<slug>` is this request’s `specs/changes/<slug>/` folder. The default changed-set is spec YAML in git, plus component ids whose declared `implementation.realization.paths` match a changed file. `--changed-ids` is an explicit override. An empty default is not a pass if you touched app code or `tools/specplane/`. If a map exists, run `reconcile` or report missing and unmapped paths. Maps are optional: do not require one to implement, and do not copy inferred cites into `realization.paths`. A coverage pass is declared coverage, not behavioral agreement.
|
|
48
|
+
3. `run --change <slug>`. This invokes binds already on that change (`run.argv` or `run.unittest` / `test:`). It does not create tests, exec English `must:` lines, or certify that the implementation satisfies the spec. If this change already has a check, bind it (`run.unittest` or `run.argv`). Do not invent a test so SpecPlane has something to run. Do not parse `test_strategy`. Unbound `must:` is `not_run` on `run`, not a pass and not a certificate. Exit 0 when nothing failed or errored.
|
|
49
|
+
4. Do not silently pick spec vs code. Do not edit live 5C YAML until the user accepts (promote).
|
|
50
|
+
|
|
51
|
+
The kernel does not watch the chat. If you do not call retrieve/check_sync, SpecPlane is silent. Clarifying questions are the coding agent following this skill, not a SpecPlane daemon.
|
|
52
|
+
|
|
53
|
+
If `tools/specplane/cli.py` is missing, say so and stop implementing product behavior.
|
|
54
|
+
|
|
55
|
+
## Load
|
|
56
|
+
|
|
57
|
+
Read `specplane/core_prompt/applicable/README.md`. Nouns, verbs, and the loop: [`specplane/dialect.md`](../../../specplane/dialect.md). When writing code, load `06-system-container-component.md` for contracts. Load `08-validation-rules.md` only if live links/versions will change **at promote**.
|
|
58
|
+
|
|
59
|
+
Do not load the full master prompt.
|
|
60
|
+
|
|
61
|
+
## Kernel
|
|
62
|
+
|
|
63
|
+
Prefer `specplane` if it is on PATH, else `python3 tools/specplane/cli.py`.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
python3 tools/specplane/cli.py retrieve <id> --spec-root specs
|
|
67
|
+
python3 tools/specplane/cli.py blast <id> --spec-root specs
|
|
68
|
+
python3 tools/specplane/cli.py impact <id> --spec-root specs
|
|
69
|
+
python3 tools/specplane/cli.py validate --spec-root specs
|
|
70
|
+
python3 tools/specplane/cli.py check_sync --spec-root specs --change <slug> --changed-ids id1,id2
|
|
71
|
+
python3 tools/specplane/cli.py reconcile --spec-root specs
|
|
72
|
+
python3 tools/specplane/cli.py run --spec-root specs --change <slug>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
When you run the CLI, set `SPECPLANE_CALLER=cursor_skill`. That is the only signal that a skill invoked it. A local event is recorded unless the human has run `usage disable`. Nothing is uploaded. Do not put a path, a spec id, or a secret in `SPECPLANE_CALLER`, `SPECPLANE_RUN_ID`, or `SPECPLANE_SESSION_ID`.
|
|
76
|
+
|
|
77
|
+
If a command prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. If it does not, do not invent a SpecPlane receipt. Do not say SpecPlane caught a bug or revised the code unless that printed line says so.
|
|
78
|
+
|
|
79
|
+
During an open change, the implementation context is that change. Live text and the change stay labeled. Canonical synchronization stays pending until the user accepts. For the file you are editing, run `context <path>`. If it says the file is unmapped, leave it unmapped. Do not invent a component.
|
|
80
|
+
|
|
81
|
+
Do not invent a graph by reading the whole tree. You may open files the CLI already named.
|
|
82
|
+
|
|
83
|
+
## Procedure
|
|
84
|
+
|
|
85
|
+
1. **PRE.** If this could move a promise, guess the capability id and `retrieve` it (or say none exists). Paraphrase as a short human projection. Do not slurp the tree. Do not parse source in the kernel. If it cannot (typo / 4px / rename / same-behavior refactor), say “no spec impact” and do it — no retrieve. If unsure, retrieve.
|
|
86
|
+
|
|
87
|
+
2. **Propose a class** (do not quiz the user on taxonomy):
|
|
88
|
+
- **trivial** — cannot reasonably move a promise (typo, 4px, rename helper, behavior-free refactor). Just do it. State “no spec impact.” Stop here.
|
|
89
|
+
- **fix** — live spec already promises this; it is broken or incomplete.
|
|
90
|
+
- **evolve** — the promise itself changes (including how the product is obtained: install, init, “what the README says the CLI does”).
|
|
91
|
+
- **learn** — experiment; may not become live law.
|
|
92
|
+
|
|
93
|
+
Ceremony follows **semantic consequence**, not diff size. One-line `danger` token change can be evolve. A large internal refactor can be trivial.
|
|
94
|
+
|
|
95
|
+
If the class is obvious, state it and continue. Ask “proceed?” only when it could reasonably be another class. **Wait** for that answer before writing code.
|
|
96
|
+
|
|
97
|
+
3. **Intent gate when retrieve missed.** If no live capability matches, do not open a change yet. Offer two or three interpretations and the likely flows. **Wait.** A narrower reading may mean no new capability.
|
|
98
|
+
|
|
99
|
+
4. **Open a change** unless trivial, and unless that intent gate is still open. Create `specs/changes/<slug>/`:
|
|
100
|
+
- `proposal.yaml` — `kind`, `promise_ids`, `why`
|
|
101
|
+
- `delta.yaml` — ADDED / MODIFIED / REMOVED
|
|
102
|
+
- `success.yaml` — named sensors (`must:` lines are enough), plus acceptance `criteria` for behavior-changing work. Link criteria to checks (`checks:` and/or sensor `criteria:`). If this change already has a check, bind it (`run.unittest` or `run.argv`). Do not invent a test so SpecPlane has something to run. Do not parse `test_strategy`. Unbound `must:` is `not_run` on `run`, not a pass and not a certificate.
|
|
103
|
+
- `proposal.yaml` may set `evidence_contract: exempt` with a reason for typo/cosmetic/no-behavior edits. Otherwise set `evidence_contract: required` for behavior-changing work.
|
|
104
|
+
- `decision.md` — only if a human must choose
|
|
105
|
+
|
|
106
|
+
On a miss, draft from the chosen interpretation and from ids the graph already has (`implements` / `realized_by` / `uses`, declared `realization.paths`). Do not invent a stack. On a hit, draft the delta on the existing promise. Do not add a parallel capability or component for the same job. Do **not** edit live `capability.*.yaml` / `foundation.*.yaml` until promote. New capabilities with no live id: Phase 1 live file **or** ADDED in this folder; prefer a change folder if this request is an evolve of something that exists. Do not mint a component from a class name.
|
|
107
|
+
|
|
108
|
+
5. **Blast** the promise id and components you will touch. On a miss, also run `impact`. Tell the user “likely affected,” not hop-rule homework. Foundations are terminal.
|
|
109
|
+
|
|
110
|
+
6. **Realization, then wait.**
|
|
111
|
+
- Miss: classify reuse, extend, compose, or build (build last). Even a new component lists connections, constraints, what blast named, and what not to duplicate. **Wait** before code.
|
|
112
|
+
- Hit: prefer reuse, extend, or compose of the ids blast named. Ask only one unresolved consequential question. **Wait** once. A known-id fix does not get a second gate.
|
|
113
|
+
- Isolated UI nits are not interruptions; a global foundation/token used by many ids is. Record the answer in `decision.md`.
|
|
114
|
+
|
|
115
|
+
7. **Implement** from the projection: live promise + delta + blast + decisions. Match capabilities, errors, events, and `success.yaml`. If the work needs a check, add **the product’s** check and bind it (`run.unittest` or `run.argv`). If this change already has a check, bind it (`run.unittest` or `run.argv`). English `must:` is enough when there is no check yet. Do not invent a test so SpecPlane has something to run. Do not parse `test_strategy`. Keep bidirectional links if you touch `implements` / `uses` (on files in the change, or at promote).
|
|
116
|
+
|
|
117
|
+
8. **POST reconcile.** Run `validate`, `check_sync --change <slug> --changed-ids` for ids you touched (including realization files), then `run --change <slug>`. If this change already has a check, bind it (`run.unittest` or `run.argv`). Do not invent a test so SpecPlane has something to run. Do not parse `test_strategy`. Unbound `must:` is `not_run` on `run`, not a pass and not a certificate. When `evidence_contract: required`, scoped `check_sync` must pass criteria linkage and evidence-contract checks (or fail visibly). When a component already declares `realization.paths`, also run `reconcile` or report missing / unmapped_changed. Maps are optional. Do not invent one by copying inferred cites. Coverage pass is declared coverage, not behavioral agreement. A `run` pass means bound checks exited 0, not that the implementation satisfies the spec. Optionally `python3 tools/specplane/drift.py --scope changed` as a coarse reminder; `reconcile` is the declared-path check. Do not pick spec vs code when they disagree — report it.
|
|
118
|
+
|
|
119
|
+
9. **Promote only after the user accepts.** Run `specplane promote <slug>`: apply the delta to live YAML, bump `meta.version` + changelog on those live files, move the folder to `specs/changes/_archive/<slug>/`. Retrieve should then show one live graph. Do not `git mv` by hand unless the command is missing.
|
|
120
|
+
|
|
121
|
+
If this repo has no `specs/`, say so and point at bootstrap. Do not copy SpecPlane’s own `specs/` into another app.
|
|
122
|
+
|
|
123
|
+
## Impact perspectives
|
|
124
|
+
|
|
125
|
+
`impact <id>` is one affected subgraph plus projections (system, product, quality, governance, ownership). `blast` stays the bucket tree that `check_sync` uses. Do not invent stakeholder views (`qa_view`, `security_view`, and the like) or ask a model to re-decide blast. Agents may propose missing spec relationships as inferred; they are not the impact engine. Absence of a governed concern or owner is "not represented", never "no security impact" or "no QA required". See [`docs/impact-perspectives.md`](../../../docs/impact-perspectives.md).
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-infer
|
|
3
|
+
description: Map an existing repository into a handful of Phase 1 inferred capability specs. Use when the user says map this, brownfield, what's already here, or infer specs from this repo. Not for an empty tree (use specplane-bootstrap). Never write live specs and never scan source from a CLI.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Infer
|
|
7
|
+
|
|
8
|
+
Brownfield on-ramp. One named root. One shot. A handful of capabilities. Then stop.
|
|
9
|
+
|
|
10
|
+
The coding agent walks the tree. SpecPlane does not. There is no `infer` CLI and no MCP infer. `inferred` is not live.
|
|
11
|
+
|
|
12
|
+
## When
|
|
13
|
+
|
|
14
|
+
- The user has an existing repo and asks to map it, brownfield it, or say what is already here.
|
|
15
|
+
- They may name a path, a service, or "the API". That name is the root. Use the workspace root only when they did not name a smaller one.
|
|
16
|
+
|
|
17
|
+
## When not
|
|
18
|
+
|
|
19
|
+
- Empty `specs/` and they want to start a product: `specplane-bootstrap`. Greenfield init does not infer.
|
|
20
|
+
- They described a product change: `specplane-implement`.
|
|
21
|
+
- They asked to author one spec they already understand: `specplane-author`.
|
|
22
|
+
- Drift, `realization.paths`, or "does this code match the spec": that is not this skill.
|
|
23
|
+
|
|
24
|
+
## Load
|
|
25
|
+
|
|
26
|
+
1. `specplane/core_prompt/applicable/README.md`
|
|
27
|
+
2. `03-shared-meta.md`
|
|
28
|
+
3. `04-capability.md`
|
|
29
|
+
|
|
30
|
+
Do not load the full v9.1.0 reference. Do not invent containers, components, systems, or evaluators.
|
|
31
|
+
|
|
32
|
+
## Walk
|
|
33
|
+
|
|
34
|
+
You already have the tree, the languages, and the configs. Read the README, manifests, and the directories under the named root. Different languages are your problem. Do not ask the kernel to parse `.py`, `.go`, or `.ts`.
|
|
35
|
+
|
|
36
|
+
Write at most **7** capabilities. If the root is larger, say what you left out and stop. Do not boil a monorepo.
|
|
37
|
+
|
|
38
|
+
## Write
|
|
39
|
+
|
|
40
|
+
Phase 1 capability files only, under `specs/capabilities/`. Filename equals `meta.id`.
|
|
41
|
+
|
|
42
|
+
Five questions, in the usual fields:
|
|
43
|
+
|
|
44
|
+
| Question | Field |
|
|
45
|
+
|---|---|
|
|
46
|
+
| Purpose | `meta.purpose` |
|
|
47
|
+
| Contract | `responsibilities` |
|
|
48
|
+
| Failure | `constraints` (what must not happen). A flow name if the failure is a path. Do not invent a `failure:` key. |
|
|
49
|
+
| Constraint | `constraints` |
|
|
50
|
+
| Success | `business_value.user_outcome` |
|
|
51
|
+
|
|
52
|
+
Also required so the file validates: `flows` as string names when you know them, `business_value.objective`, `revenue_dependency`, `strategic_priority`, `constraints.data_classification`, `meta` (`id`, `level: capability`, `version`, `introduced_in`, `status`, `review_state`, `last_updated`), and a `changelog` row.
|
|
53
|
+
|
|
54
|
+
Every file:
|
|
55
|
+
|
|
56
|
+
- `tags` includes `inferred`.
|
|
57
|
+
- `refs` cite repo-relative paths that show why the guess exists. Cites are evidence of the guess. They are not `realization.paths`.
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
meta:
|
|
61
|
+
id: "capability.billing_checkout"
|
|
62
|
+
purpose: "Customer completes paid checkout"
|
|
63
|
+
level: "capability"
|
|
64
|
+
owner: ""
|
|
65
|
+
tags: ["inferred"]
|
|
66
|
+
last_updated: "YYYY-MM-DD"
|
|
67
|
+
status: "planned"
|
|
68
|
+
version: "1.0.0"
|
|
69
|
+
review_state: "unreviewed"
|
|
70
|
+
introduced_in: "1.0.0"
|
|
71
|
+
changelog:
|
|
72
|
+
- date: "YYYY-MM-DD"
|
|
73
|
+
author: "infer"
|
|
74
|
+
summary: "Inferred Phase 1 from the named root"
|
|
75
|
+
breaking: false
|
|
76
|
+
responsibilities:
|
|
77
|
+
- "Accept payment and record the order"
|
|
78
|
+
flows:
|
|
79
|
+
- "Checkout"
|
|
80
|
+
business_value:
|
|
81
|
+
user_outcome: "Customer completes paid checkout"
|
|
82
|
+
objective: "Take payment"
|
|
83
|
+
revenue_dependency: "high"
|
|
84
|
+
strategic_priority: "core"
|
|
85
|
+
constraints:
|
|
86
|
+
security: []
|
|
87
|
+
legal: []
|
|
88
|
+
ux:
|
|
89
|
+
- "Do not confirm the order when payment fails"
|
|
90
|
+
data_classification: "confidential"
|
|
91
|
+
refs:
|
|
92
|
+
- id: "cite_checkout"
|
|
93
|
+
type: "other"
|
|
94
|
+
path: "src/billing/checkout.py"
|
|
95
|
+
title: "Why this guess"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Do not set `realized_by`. Do not omit `inferred`. Do not overwrite a file that is already live (no `inferred` tag).
|
|
99
|
+
|
|
100
|
+
## Stop
|
|
101
|
+
|
|
102
|
+
After the handful, stop. Tell the human the ids and the cites. Ask which ids to accept. Wait.
|
|
103
|
+
|
|
104
|
+
## Accept
|
|
105
|
+
|
|
106
|
+
Only after the human names ids:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
SPECPLANE_CALLER=cursor_skill python3 tools/specplane/cli.py accept --ids id1,id2 --spec-root specs
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
That command drops `inferred` on those files and adds a changelog row. It does not promote unnamed ids. Do not drop the tag yourself.
|
|
113
|
+
|
|
114
|
+
`retrieve` prints `inferred (not live)` until then. `list_gaps` lists `inferred_unpromoted` and stays advisory.
|
|
115
|
+
|
|
116
|
+
If a command prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. If it does not, do not invent a SpecPlane receipt. Do not say SpecPlane caught a bug or revised the code unless that printed line says so.
|
|
117
|
+
|
|
118
|
+
## Again later
|
|
119
|
+
|
|
120
|
+
A later map is a new change folder under `specplane-implement` when a live promise would move. Do not re-infer on a schedule. Do not stamp live to match code.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-validate
|
|
3
|
+
description: Validate SpecPlane YAML and kernel sync (naming, links, changelog, retrieve leftovers, check_sync). Use when the user asks to review, audit, or check specs — not for implementing a product change.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Validate
|
|
7
|
+
|
|
8
|
+
## Load
|
|
9
|
+
|
|
10
|
+
Read `specplane/core_prompt/applicable/08-validation-rules.md` and `11-guidance-and-checklists.md`. Do not load the full master prompt.
|
|
11
|
+
|
|
12
|
+
## Procedure
|
|
13
|
+
|
|
14
|
+
1. Prefer the kernel CLI when present (`--spec-root specs`). Do not add git hooks or CI jobs.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
python3 tools/specplane/cli.py validate --spec-root specs
|
|
18
|
+
python3 tools/specplane/cli.py check_sync --spec-root specs
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`python3 tools/specplane/validate.py` is validate-only. Use `cli.py retrieve <id>` / `blast <id>` when the review is about one promise or impact, not the whole tree.
|
|
22
|
+
|
|
23
|
+
Set `SPECPLANE_CALLER=cursor_skill` on those commands. A local event is recorded unless `usage disable` was run. Nothing is uploaded.
|
|
24
|
+
|
|
25
|
+
If a command prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. If it does not, do not invent a SpecPlane receipt. Do not say SpecPlane caught a bug or revised the code unless that printed line says so.
|
|
26
|
+
|
|
27
|
+
2. Optionally run `python3 tools/specplane/drift.py --scope changed` as a reminder, not as a required gate.
|
|
28
|
+
|
|
29
|
+
3. Read sections 08 and 11 for findings the CLI cannot see (wording, completeness).
|
|
30
|
+
|
|
31
|
+
4. Report by severity:
|
|
32
|
+
- blocker: CLI errors (id/filename, links, semver, changelog, `check_sync` uncovered ids)
|
|
33
|
+
- warn: CLI warnings plus incomplete Phase 2/3; leftover graphs `retrieve` marked replaced
|
|
34
|
+
- info: naming or wording
|
|
35
|
+
|
|
36
|
+
5. Suggest the smallest fix per finding. Do not rewrite unrelated sections. Do not silently pick spec vs code.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: SpecPlane loading contract — never dump the full master prompt
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane
|
|
7
|
+
|
|
8
|
+
Default schema is v9.1.0. Follow `AGENTS.md`.
|
|
9
|
+
|
|
10
|
+
This repo has **two trees**: `specplane/` is the kit (language). `specs/` is the kernel product (what the CLI must do). Do not copy `specs/` into other apps. `design-docs/` is gitignored strategy, not specs.
|
|
11
|
+
|
|
12
|
+
For spec authoring, read `specplane/core_prompt/applicable/README.md` and load only the section for the current task. Do not attach `specplane_schema_prompt_v9.1.0.md` unless the user is changing the schema or explicitly asks for the complete reference.
|
|
13
|
+
|
|
14
|
+
Specs describe what and how well, not how. Keep bidirectional links in sync. Add a changelog entry when bumping `meta.version` on live 5C files.
|
|
15
|
+
|
|
16
|
+
Product requests in natural language use the change ritual in `specplane-implement` ([`docs/golden-journey.md`](docs/golden-journey.md)).
|
|
17
|
+
|
|
18
|
+
**PRE:** If the request could move a promise, `retrieve` before writing. If no live capability matches, do not open a change yet: offer two or three interpretations and the likely flows, and **wait**. Draft the spec from that choice and from ids `blast` already knows. After blast, classify reuse, extend, compose, or build (build last), and **wait** before code. Even a new component lists connections, constraints, and what not to duplicate. If retrieve hit, do not add a parallel capability or component for the same job. Typos/renames: no retrieve. If unsure, retrieve. Do not slurp the tree. Do not parse source in the kernel.
|
|
19
|
+
|
|
20
|
+
**POST:** After non-trivial work, `validate`, `check_sync --change <slug> --changed-ids`, then `run --change <slug>`. If this change already has a check, bind it (`run.unittest` or `run.argv`). Do not invent a test so SpecPlane has something to run. Do not parse `test_strategy`. Unbound `must:` is `not_run` on `run`, not a pass and not a certificate. Default check_sync (spec YAML in git only) is not a pass if you touched `tools/specplane/` or app code. Coverage pass is not behavioral agreement. `run` invokes bound checks only; it does not create tests or certify behavior. The kernel does not watch the chat.
|
|
21
|
+
|
|
22
|
+
Do not slurp `specs/`. Do not edit live YAML for in-flight work.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: SpecPlane YAML authoring — load the applicable schema section for the spec type
|
|
3
|
+
globs: "**/*.yaml"
|
|
4
|
+
alwaysApply: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# SpecPlane YAML
|
|
8
|
+
|
|
9
|
+
When editing SpecPlane YAML (`capability.*`, `foundation.*`, `system.*`, `container.*`, `component.*`):
|
|
10
|
+
|
|
11
|
+
1. Confirm `meta.id` matches the filename without extension.
|
|
12
|
+
2. Load only the applicable section for this spec type from `specplane/core_prompt/applicable/README.md` (03 plus 04–07).
|
|
13
|
+
3. If you add `implements`, `uses`, or `dependencies.internal`, update the reciprocal field in the same change.
|
|
14
|
+
4. Bump `meta.version` and add a `changelog` entry on **live** 5C files. Files under `specs/changes/` are the in-flight write path — not 5C meta, not changelog novels on the live capability.
|
|
15
|
+
5. If this edit is a behavior change, it should already live in an open change folder (`specplane-implement`). Do not silently patch live YAML.
|
|
16
|
+
|
|
17
|
+
Do not load the full v9.1.0 master prompt for a single-file edit.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-author
|
|
3
|
+
description: Create or expand SpecPlane YAML specs (capability, foundation, system, container, component, AI-native types). Use when the user explicitly asks to write, add, or update a specification file. If they described a product change in natural language, use specplane-implement instead.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Author
|
|
7
|
+
|
|
8
|
+
## Load
|
|
9
|
+
|
|
10
|
+
1. Read `specplane/dialect.md` for the nouns, verbs, and how little YAML is enough.
|
|
11
|
+
2. Read `specplane/core_prompt/applicable/README.md`.
|
|
12
|
+
3. Read `03-shared-meta.md`.
|
|
13
|
+
4. Read **only** the type section:
|
|
14
|
+
- capability → `04-capability.md`
|
|
15
|
+
- foundation → `05-foundation.md` and copy shape from `specplane/foundations/` if starting from boilerplate
|
|
16
|
+
- system / container / component → `06-system-container-component.md`
|
|
17
|
+
- agent / tool / workflow / evaluator / tool_registry / state_store → `06` then `07-ai-native.md`
|
|
18
|
+
5. Skim the matching example in `10-worked-examples.md` if the type is capability or component.
|
|
19
|
+
6. If the user wants journey / lifecycle / information-flow richness or “what’s missing on this flow,” also load `specplane-flows`. String `flows` remain valid; mappings are optional.
|
|
20
|
+
|
|
21
|
+
Do not load `specplane_schema_prompt_v9.1.0.md` unless a field is missing from those sections.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. If this is a **product change** (behavior, or a new promise in natural language), stop and follow `specplane-implement`. Do not write a new capability file until that skill’s intent gate has an answer, unless the human pasted a decided spec. Do not silently patch live YAML.
|
|
26
|
+
2. If `tools/specplane/cli.py` exists and you have an id, `retrieve` it first. Do not slurp `specs/`.
|
|
27
|
+
3. Identify level and (for components) `meta.type` / `meta.domain`.
|
|
28
|
+
4. **Where to write:**
|
|
29
|
+
- The human pasted a decided spec, and there is no live id: Phase 1 live file is OK (`responsibilities`, `flows`, `business_value`, `constraints`).
|
|
30
|
+
- In-flight work or an open change: put ADDED/MODIFIED YAML in `specs/changes/<id>/`, not as a changelog novel on the live file.
|
|
31
|
+
5. Set `meta.id` to the filename without extension. Use snake_case ids.
|
|
32
|
+
6. If adding `implements`, `uses`, or internal dependencies, update the other side of the link in the same change.
|
|
33
|
+
7. Add a `changelog` row and bump `meta.version` only on **live** 5C files. Change-folder YAML (`proposal` / `delta` / `success`) is not 5C meta.
|
|
34
|
+
8. If `tools/specplane/cli.py` exists, run `validate` in this session. Do not add git hooks or CI.
|
|
35
|
+
9. Summarize what was authored and what is still Phase-incomplete. If validate prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. Do not invent a SpecPlane receipt.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-bootstrap
|
|
3
|
+
description: Initialize a SpecPlane specs/ tree (capabilities, foundations, system, containers, components, changes). Use when the user asks to set up SpecPlane, scaffold specs, or start a new spec workspace.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Bootstrap
|
|
7
|
+
|
|
8
|
+
## Load
|
|
9
|
+
|
|
10
|
+
Read `specplane/core_prompt/applicable/02-file-layout.md` and `03-shared-meta.md`, then `specplane/dialect.md` for how little YAML is enough. Do not load the full master prompt.
|
|
11
|
+
|
|
12
|
+
## Procedure
|
|
13
|
+
|
|
14
|
+
1. Create if missing (`cli.py init` may already have empty dirs):
|
|
15
|
+
- `specs/capabilities/`
|
|
16
|
+
- `specs/foundations/`
|
|
17
|
+
- `specs/containers/`
|
|
18
|
+
- `specs/components/`
|
|
19
|
+
- `specs/changes/` (in-flight write path; keep empty until a real change)
|
|
20
|
+
2. Add one `specs/system.<name>.yaml` if none exists.
|
|
21
|
+
3. If the user named capabilities or foundations, create those files; otherwise create one example capability and copy needed files from `specplane/foundations/`.
|
|
22
|
+
4. Every **5C** file: `meta.id` equals filename without extension, semver `version`, `introduced_in`, at least one `changelog` entry. Do not invent fake 5C meta for files under `specs/changes/`.
|
|
23
|
+
5. If `tools/specplane/cli.py` exists, run `validate` in this session; else `validate.py`. Do not add git hooks or CI.
|
|
24
|
+
6. Report the tree. If validate prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. Do not invent a SpecPlane receipt. Next step is usually a Phase 1 capability. Daily product requests after that use `specplane-implement` (see [`docs/golden-journey.md`](../../../docs/golden-journey.md)), not more scaffolding.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-explain
|
|
3
|
+
description: Explain how something works from the specification, the open change, the implementation, and the evidence, kept apart. Use when the user asks how something works, why the code does this, or what the spec says versus the change. Do not use to author a spec or to implement a product change.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecPlane Explain
|
|
7
|
+
|
|
8
|
+
Answer how something works. Keep four sources apart. Do not merge them into one story.
|
|
9
|
+
|
|
10
|
+
1. Run `context` on the spec id or the file the user named.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
SPECPLANE_CALLER=cursor_skill python3 tools/specplane/cli.py context <target> --spec-root specs
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Add `--change <slug>` when one open change is the task. Prefer `specplane` if it is on PATH.
|
|
17
|
+
|
|
18
|
+
2. If the command says the file is unmapped, stop. Do not invent a component. Do not parse the file into a spec. Quote the `SpecPlane ·` line.
|
|
19
|
+
|
|
20
|
+
3. Read implementation files only when `context` names a `realization.paths` entry for that component. Do not scan the repository for a match the command did not name.
|
|
21
|
+
|
|
22
|
+
4. Answer with four headings, in this order:
|
|
23
|
+
|
|
24
|
+
- **Specification** — the live text `context` printed (purpose, responsibilities, constraints).
|
|
25
|
+
- **Change** — the open change summaries. That is the implementation context. Canonical synchronization is pending until accept. If there is no open change, say so.
|
|
26
|
+
- **Implementation** — what the named files do. If none are declared, say none are declared.
|
|
27
|
+
- **Evidence** — each sensor's evidence and status. `UNVERIFIED` means no bound check passed. `VERIFIED` means a bound command passed. It does not mean the implementation satisfies the spec. `FAILED` means a bound command failed.
|
|
28
|
+
|
|
29
|
+
If the four disagree, say that in three sentences, one per disagreement. Do not pick a winner.
|
|
30
|
+
|
|
31
|
+
If a command prints a line that starts with `SpecPlane ·`, quote it unchanged. Do not invent a receipt. Do not add `--by` flags. Do not assign owners. Do not write `realized_by`. Components the graph does not name stay unmarked.
|
|
32
|
+
|
|
33
|
+
A readiness warning means implementation is underway and no implementation relationships are declared. Phase 1 stays valid. Do not add `realized_by` to clear the warning.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specplane-flows
|
|
3
|
+
description: >-
|
|
4
|
+
Enhance SpecPlane capability flows with optional journey, object-lifecycle,
|
|
5
|
+
and information-flow richness. Use when the user asks to review, complete,
|
|
6
|
+
or improve user journeys, UX/info flows, object lifecycles, malloc-use-free
|
|
7
|
+
completeness, or what is missing on a flow. Do not invent unanswered behavior.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# SpecPlane Flows
|
|
11
|
+
|
|
12
|
+
Review and enrich `capability.flows`. Do not add a sixth C. Do not require every file to have journey + lifecycle + information.
|
|
13
|
+
|
|
14
|
+
## Load
|
|
15
|
+
|
|
16
|
+
1. `specplane/core_prompt/applicable/README.md`
|
|
17
|
+
2. `specplane/core_prompt/applicable/04-capability.md` (flow mapping + `open_questions`)
|
|
18
|
+
3. If a component realization is in scope: `06-system-container-component.md` (`planning.user_flows` stays a sliver)
|
|
19
|
+
|
|
20
|
+
Do not load the full master prompt.
|
|
21
|
+
|
|
22
|
+
## PRE
|
|
23
|
+
|
|
24
|
+
If `tools/specplane/cli.py` exists and you have a capability id:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
SPECPLANE_CALLER=cursor_skill python3 tools/specplane/cli.py retrieve <id> --spec-root specs
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Do not slurp `specs/`. Open only files the CLI named.
|
|
31
|
+
|
|
32
|
+
If a command prints a line that starts with `SpecPlane ·`, quote that line in the reply the user sees, unchanged. If it does not, do not invent a SpecPlane receipt. Do not say SpecPlane caught a bug or revised the code unless that printed line says so.
|
|
33
|
+
|
|
34
|
+
## What to do
|
|
35
|
+
|
|
36
|
+
1. **Keep the string index.** Existing `flows: ["Sign-up", "Login"]` stays valid. Promote a string to a mapping only when this file needs the richness.
|
|
37
|
+
2. **Ask which kinds this file needs** (not all three by default):
|
|
38
|
+
- **journey** — where the person starts, paths, how it ends
|
|
39
|
+
- **lifecycle** — `malloc → use → free` for objects this flow creates
|
|
40
|
+
- **information** — collected, moved, retained, destroyed
|
|
41
|
+
3. **Walk the implied envelope.** For each object: create → use → modify → share → archive? → restore? → delete? → what remains? For each journey: entry, stages, success, abandonment, exceptions, recovery.
|
|
42
|
+
4. **Do not invent answers.** If terminate/recover/ownership/retention is unspecified, write an `open_questions` item (`question`, optional `id` / `raised_from` / `status: open`). Capability-level `open_questions` or component `validation.open_questions` — same slot family; do not add a second key.
|
|
43
|
+
5. **Stories are a lens.** One or two `stories:` rows as evidence is fine. Do not generate a Jira-sized `user_stories` list.
|
|
44
|
+
6. **Cross-capability journeys are composed.** Do not copy a Discover→Cancel saga into every capability. Record the piece this file owns; note other capability ids in `open_questions` or `raised_from` if a hop is missing.
|
|
45
|
+
7. **External guidance is optional.** Web/UX research may be labeled `External guidance` and become questions or suggested spec edits. It is not law. Do not stuff best-practice essays into YAML.
|
|
46
|
+
8. **Components realize pieces.** You may set `planning.user_flows.flow_ref`. Do not copy lifecycle tables onto the component.
|
|
47
|
+
|
|
48
|
+
## Write rules
|
|
49
|
+
|
|
50
|
+
- In-flight work goes in `specs/changes/<slug>/` when this is an evolve of a live capability. New Phase 1 capabilities may take mappings on the live file.
|
|
51
|
+
- Prefer inference → questions → (after a human answers) spec mutation. Resolved questions graduate into the mapping (`lifecycle`, `recovery`, …) and get `status: resolved`.
|
|
52
|
+
- After edits: `python3 tools/specplane/cli.py validate --spec-root specs` when the CLI exists.
|
|
53
|
+
|
|
54
|
+
## Done when
|
|
55
|
+
|
|
56
|
+
The file is more digestible (named pieces + only the kinds it needs), gaps are **questions** not invented requirements, and a string-only neighbor file was left string-only.
|