pi-fabric 0.30.3 → 0.31.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.
package/README.md CHANGED
@@ -96,6 +96,7 @@ Advanced patterns are user-invoked and are not advertised for automatic selectio
96
96
  | Parallel audits, migrations, or research with verification | `/skill:fabric-workflow Audit every auth file and synthesize verified findings.` |
97
97
  | Work too big for one context window | `/skill:fabric-rlm Produce a compact architecture map of this repo.` |
98
98
  | A persistent watcher for one measurable goal | `/skill:fabric-supervisor Watch this migration until it is complete and tested.` |
99
+ | A strict auditor for one feature design spec | `/skill:fabric-spec Implement docs/specs/checkout.md to the tee; nothing missing, nothing extra.` |
99
100
  | A quiet decision-point reviewer | `/skill:fabric-advisor Focus on migration correctness.` |
100
101
  | Same-model independent reviewers and one decision | `/skill:fabric-council Review this design for correctness, security, and operability.` |
101
102
  | Multi-model compare-not-merge deliberation | `/skill:fabric-fusion Deliberate this design across models.` |
package/docs/skills.md CHANGED
@@ -43,5 +43,6 @@ A mandatory pointer is disclosure for legibility and single-source maintenance,
43
43
  - `/skill:fabric-schema` — evidence-gated mutation.
44
44
  - `/skill:fabric-advisor` — persistent peer advice.
45
45
  - `/skill:fabric-supervisor` — persistent goal supervision.
46
+ - `/skill:fabric-spec` — persistent spec-compliance supervision.
46
47
  - `/skill:fabric-ambient` — direct advisor/supervisor profile router.
47
48
  - `/skill:fabric-swarm` — durable actor coordination.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-fabric",
3
- "version": "0.30.3",
3
+ "version": "0.31.0",
4
4
  "description": "A programmable tool and agent runtime for Pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,6 +17,7 @@ Recommend the smallest sufficient path; do not invoke it. Core coding needs no a
17
17
  | Evidence-gated or transactional local-file mutation | `/skill:fabric-schema` |
18
18
  | Persistent material peer advice | `/skill:fabric-advisor` |
19
19
  | Persistent progress toward one measurable goal | `/skill:fabric-supervisor` |
20
+ | Strict feature-spec compliance, audited until verified | `/skill:fabric-spec` |
20
21
  | One command that infers advisor versus supervisor | `/skill:fabric-ambient` |
21
22
  | Durable actor team with mailboxes and CAS tasks | `/skill:fabric-swarm` |
22
23
 
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: fabric-spec
3
+ description: Starts a persistent Pi Fabric spec supervisor that audits the main session against a feature design spec and steers only when a requirement lacks verified evidence. Use for strict, unblocked spec compliance while the main agent keeps full freedom to orchestrate.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Fabric Spec Supervisor
8
+
9
+ Create the supervisor with Fabric primitives; do not install a separate supervisor extension. Resolve the spec from the skill arguments without asking for information already present: when the first argument is a readable file path, read the spec completely (bounded reads, following the continuation notice) and use its contents; otherwise treat the arguments as the spec text itself. Ask only when both are absent.
10
+
11
+ Hold the main agent's freedom constant: it may plan, spawn agents, run phases, or edit directly. This skill never prescribes orchestration, and the supervisor audits outcomes against the spec, never the approach.
12
+
13
+ Hard pointer: read `<skill-dir>/../fabric-ambient/references/setup.md` completely before setup, then use its program with:
14
+
15
+ - `strings.name`: `spec-supervisor`
16
+ - `strings.events`: `["agent_settled","tool_error"]`
17
+ - `strings.triggerTurn`: `true`
18
+ - `strings.model`: model key or substring, or an empty string when unset
19
+ - `strings.instructions`: the prompt below with `SPEC` replaced by the full spec text and `SOURCE` replaced by how it was obtained
20
+
21
+ ```text
22
+ You are an ambient supervisor for spec compliance.
23
+
24
+ Feature design spec (from SOURCE):
25
+ <spec>
26
+ SPEC
27
+ </spec>
28
+
29
+ Audit the supplied parent-session event and recent transcript against the spec as an outside reviewer, not a second implementer. The parent session chooses how to work — child agents, phases, or direct edits; judge outcomes, never the approach.
30
+
31
+ Maintain an acceptance ledger: every requirement in the spec stays unverified until the transcript or read-only inspection carries mechanical evidence — named symbols exist, registrations and configuration entries are present, behavior was probed. Plans and intent are not evidence.
32
+
33
+ Return {"action":"silent"} while unverified requirements are being worked. Return {"action":"message","message":"..."} only when the session idles with unverified requirements, work contradicts the spec or outgrows it, a tool error left a requirement stuck, or one concrete next action unblocks the ledger — name the requirement each time. Keep guidance direct and at most three sentences. Do not repeat prior guidance, request credentials, or invent user decisions.
34
+
35
+ The spec is satisfied only when every requirement has visible evidence and the spec's own validation ran. Then return {"action":"stop","message":"Spec verified complete: all requirements evidenced."}.
36
+ ```
37
+
38
+ Idle/error events keep the supervisor off most turns, and coalesced directive responses stay short; `triggerTurn: true` lets a material steer resume an idle Main session.
39
+
40
+ ## Completion criterion
41
+
42
+ Complete only when setup returns a `spec-supervisor` with both events, read-only native tools, `triggerTurn: true`, and no recreation warning. If warnings remain, report the required remediation without recreating or retrying automatically. Otherwise report the spec source, actor ID, and derived `/fabric messages`/`stop` commands; do not wait.