pi-dev 0.2.7 → 0.2.8
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/package.json
CHANGED
|
@@ -9,7 +9,7 @@ description: MAINTAINER-ONLY. Analyse real pi-runtime session telemetry from any
|
|
|
9
9
|
|
|
10
10
|
The pi-dev workflow is not just markdown. It is a layered control system: SKILL.md prose, repo preferences, pi-runtime lifecycle events, tools, commands, TUI surfaces, session persistence, compaction hooks, and extensions. This skill reads what real sessions did across consumer repos, compares that to what the workflow contract said *should* happen, then chooses the lightest effective intervention.
|
|
11
11
|
|
|
12
|
-
The point: **never improve the framework from gut feeling,
|
|
12
|
+
The point: **never improve the framework from gut feeling, never collapse every fix into a "guard", and never append diary-style history.** Edit because session N showed phase P violated predicate Q on M occasions, then decide whether the right response is clearer prose, repo-local preferences, a runtime steer, a custom tool, a command, a TUI affordance, state persistence, compaction/context shaping, or — only when the evidence calls for it — a blocking gate. Every wording change must pay rent: reduce future confusion, replace weaker text, merge duplicate rules, or delete obsolete context.
|
|
13
13
|
|
|
14
14
|
## North star
|
|
15
15
|
|
|
@@ -290,11 +290,14 @@ Ask once: "OK to proceed with these scopes? Reply with row numbers to flip, or `
|
|
|
290
290
|
|
|
291
291
|
### 6 — Propose edits (per-finding, scoped)
|
|
292
292
|
|
|
293
|
-
For each 🔴 / 🟡 finding, draft the smallest possible edit that, **if it had been in place at session time, would have prevented the gap.** The shape of the draft depends on the scope from Step 5.5
|
|
293
|
+
For each 🔴 / 🟡 finding, draft the smallest possible edit that, **if it had been in place at session time, would have prevented the gap.** The shape of the draft depends on the scope from Step 5.5.
|
|
294
|
+
|
|
295
|
+
**Diet rule before any draft:** inspect the target section as a whole and decide whether the change should replace, merge, move, or delete existing text. Do not append a new historical note just because today's audit found a new incident. If the section would become longer without becoming clearer, rewrite the section instead. If two bullets now say the same thing, collapse them. If a rule only explains why a past mistake happened but does not constrain future behavior, delete or compress it into the active rule.
|
|
294
296
|
|
|
295
297
|
**Framework findings (target: pi-dev SKILL.md):**
|
|
296
298
|
|
|
297
299
|
- Edit a **rule** or a **step**, not a flavour sentence. The model must be able to detect the constraint in its own draft output.
|
|
300
|
+
- Prefer **replacement over accumulation**. A good edit often makes the skill shorter; adding lines is justified only when it removes a larger ambiguity.
|
|
298
301
|
- Prefer **explicit anti-pattern strings** ("Do not say 'shall I continue?'") over abstract injunctions ("be decisive"). The hugn-2026-05 audit showed that named anti-patterns work.
|
|
299
302
|
- Prefer **terminal markers** ("the summary's last line must be one of these two literals: …") over qualitative descriptions of "good wrap-up".
|
|
300
303
|
- Update **at most three skills per run.** More than that means findings aren't anchored well enough.
|
|
@@ -397,6 +400,7 @@ audit complete — framework v<X.Y.Z> released, consumer-prefs commit <sha>, nex
|
|
|
397
400
|
- **Do not overfit on guards.** The intervention may be an observability counter, status widget, custom command, context injection, state checkpoint, prompt/compaction shaping, soft steer, confirmation, or block. Pick by evidence and measured failure cost.
|
|
398
401
|
- **Trajectory beats scalar success.** A task that eventually shipped after five corrections is not healthy; use the session trace to find where workflow support was missing.
|
|
399
402
|
- **Refresh external reliability patterns when designing new runtime support.** Current agent-reliability work emphasizes trajectory monitoring, recovery orchestration, and trace-derived textual feedback; use that to challenge pi-flow designs before coding.
|
|
403
|
+
- **Keep the skills lean.** Do not turn audits into append-only history. Prefer section rewrites, merged bullets, and deletion of stale rationale over adding another paragraph. If a skill crosses ~500 lines, treat that as a smell and look for compression before adding more.
|
|
400
404
|
|
|
401
405
|
## Why this skill exists
|
|
402
406
|
|