@blackbelt-technology/pi-dashboard-openspec-workflow 0.8.0 → 0.10.0

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.
@@ -16,7 +16,7 @@ Use when a git worktree lacks the OpenSpec lifecycle skills (`.pi/skills/openspe
16
16
  ```bash
17
17
  pnpm exec openspec init --tools pi --force
18
18
  ```
19
- `pnpm exec` uses the declared local dependency and fails when the binary is absent. In a repository that does not declare the CLI, use the version-pinned scoped package explicitly: `npx @fission-ai/openspec@1.6.0 init --tools pi --force`.
19
+ `pnpm exec` uses the declared local dependency and fails when the binary is absent. In a repository that does not declare the CLI, use the version-pinned scoped package explicitly: `npx @fission-ai/openspec@1.14.3 init --tools pi --force`.
20
20
  5. Verify the CLI reports setup success. Check the lifecycle skills this repository requires by name: `openspec-explore`, `openspec-propose`, `openspec-apply-change`, `openspec-update-change`, and `openspec-archive-change`.
21
21
  6. Check `git status --short`. Generated `openspec-*` skill directories should remain ignored. Review any tracked context-file rewrite before continuing.
22
22
 
@@ -0,0 +1,29 @@
1
+ # Judge prompt (spec-vs-spec fitness)
2
+
3
+ The oracle is an EXISTING ground-truth spec, not the code. Use to score prompt or
4
+ model changes against a held-out set of real specs. Fill {PLACEHOLDERS}. Model: @research.
5
+
6
+ NOT part of the normal generate flow — `auditor.md` is the code-grounded runtime gate.
7
+ This is the offline fitness function behind `docs/research/reverse-spec-from-code.md`.
8
+
9
+ ---
10
+
11
+ Compare a GENERATED OpenSpec spec against the REAL (ground-truth) spec for the
12
+ same capability. Both describe the same code. Judge by MEANING, not wording.
13
+
14
+ REAL spec: {REAL_PATH}
15
+ GENERATED spec: {GEN_PATH}
16
+
17
+ Read both files. Then score how well the generated spec captures the same
18
+ behavioral contract as the real one.
19
+
20
+ Output STRICT JSON ONLY (no prose, no code fence), exactly these keys:
21
+ {
22
+ "capability": "{CAPABILITY}",
23
+ "requirement_coverage": <int 0-100, % of REAL requirements semantically present in GENERATED>,
24
+ "scenario_coverage": <int 0-100, % of REAL scenarios' behaviors covered in GENERATED>,
25
+ "hallucinated_requirements": ["<generated requirements with no basis in the real spec / not supported by code>"],
26
+ "missing_requirements": ["<real requirements absent from generated>"],
27
+ "format_compliance": <int 0-100, adherence to ## Purpose / ## Requirements / ### Requirement / #### Scenario + WHEN/THEN/AND>,
28
+ "notes": "<2-3 sentence diagnosis of the single biggest gap>"
29
+ }
package/README.md CHANGED
@@ -20,7 +20,7 @@ pi -e npm:@blackbelt-technology/pi-dashboard-openspec-workflow
20
20
  | `spec-coherence-check` | Sweep all active proposals for staleness, conflicts, and obsolescence against the current codebase and archived changes. Produces a gap-analysis report + priority queue. |
21
21
  | `pre-scaffold-openspec-coherence-check` | Run before scaffolding a new proposal to catch duplicates of archived work and contradictions with already-shipped architecture. |
22
22
  | `fix-worktree-opsx-skills-not-created` | Repair a git worktree missing the generated `openspec-*` (opsx) skills. Root cause: bare `npx openspec` resolves a squatted registry stub instead of the real CLI. |
23
- | `reverse-spec-from-code` | Reverse-generate `openspec/specs/<cap>/spec.md` from spec-less code, using parallel blind generators + auditors, to enrich the `kb_search` corpus. |
23
+ | `reverse-spec-from-code` | Reverse-generate `openspec/specs/<cap>/spec.md` from spec-less code, using parallel blind generators + auditors, to enrich the `kb_search` corpus. For a rewrite (rule catalog, data model, `file:line` provenance) use `reverse-spec-for-rebuild` in `packages/eng-disciplines`. |
24
24
 
25
25
  Skills load by natural-language trigger, or explicitly via `/skill:<name>`.
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackbelt-technology/pi-dashboard-openspec-workflow",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "OpenSpec-lifecycle helper skills for pi sessions — spec-coherence-check (sweep active proposals for staleness/conflicts/obsolescence), pre-scaffold-openspec-coherence-check (guard before scaffolding a proposal against archived/shipped work), fix-worktree-opsx-skills-not-created (repair worktrees missing the generated opsx skills), reverse-spec-from-code (backfill capability specs from spec-less code). Pure-skill package, no extension.ts. Reusable in any OpenSpec + pi project.",
5
5
  "type": "module",
6
6
  "license": "MIT",