@zalom/plastic 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/PLASTIC.md +14 -5
  2. package/package.json +1 -1
package/PLASTIC.md CHANGED
@@ -113,9 +113,9 @@ entries stay append-only, newest at the bottom; the prefix only stamps each line
113
113
  which stage, and who.
114
114
 
115
115
  The blessed write path is the `insight-append` helper
116
- (`scripts/insight-append <intent_dir> <text> --stage S --author A`), which formats the prefix,
117
- validates it, and appends at the bottom. Hand-editing `## Insights` is an escape hatch; the
118
- helper is the default so the format cannot drift.
116
+ (`scripts/insight-append <intent_dir> <text> --stage S --author A`), which ships with every
117
+ install and update, formats the prefix, validates it, and appends at the bottom. Hand-editing
118
+ `## Insights` is an escape hatch; the helper is the default so the format cannot drift.
119
119
 
120
120
  Background sessions and dispatched sub-agents do not write the insight themselves. They carry
121
121
  each nugget home in the completion report's `insights:` field, and the orchestrator (or any
@@ -191,6 +191,13 @@ adapter layer that maps Plastic's hooks and model aliases onto each supported ag
191
191
  (Claude, Codex, Hermes) is the cross-harness portability layer; see
192
192
  docs/reference/harness-adapters.md for the adapter contract.
193
193
 
194
+ **Spawn preamble (intent 152).** `scripts/spawn-preamble` emits a live-state block purely from
195
+ filesystem state: the active intent, stage, role/cycle-step, the honor instruction, and the
196
+ report contract. When the intent's code worktree is resolvable and exists on disk, it also
197
+ appends the worktree's absolute path plus a verbatim instruction to `cd` there directly, for
198
+ harnesses whose `EnterWorktree` cannot discover a nested repo from a non-repo launch directory.
199
+ Output is byte-identical when no worktree resolves.
200
+
194
201
  **Orchestrator advisory.** At auto-mode start, the orchestrator recommends once that the user
195
202
  run the main session on the best available thinking model (Fable, Opus, or whatever supersedes
196
203
  them). This is advisory only: it changes no behavior and blocks nothing if ignored, and it
@@ -343,7 +350,7 @@ ALL work flows through intents.
343
350
  3. On completion, capture observations in `## Insights`.
344
351
  4. When done, write `outcome.md` + `## Outcome` summary. Update INDEX.md.
345
352
  5. Researches are intents. No separate folder.
346
- 6. Intents are created only via `plastic-creating-intent`. Never hand-author an intent file. The skill self-verifies the written intent with `scripts/validate-intent` before announcing or committing, so every intent is born complete.
353
+ 6. Intents are created only via `plastic-creating-intent`. Never hand-author an intent file. The skill self-verifies the written intent with `scripts/validate-intent` before announcing or committing, so every intent is born complete. `--intent` text is escaped for double quotes and backslashes before it lands in frontmatter, so free-form text is safe to pass as-is, and a reciprocal `chain:` append preserves the target intent's existing flow- or block-style entries.
347
354
 
348
355
  ## House Style (self-check)
349
356
 
@@ -407,7 +414,9 @@ Each gate guards one thing. All are hard except the retrieval gate:
407
414
  `>` redirect, a `ruby -e` or `python -c` write), so the same rules apply whether an edit goes
408
415
  through the Write tool or a shell. A trailing `# plastic-ok` comment is an auditable escape that
409
416
  lets a deliberate command through, and every use is logged to
410
- `~/.plastic/.cache/gate-escapes.log`.
417
+ `~/.plastic/.cache/gate-escapes.log`. The code gate (Write and Edit) carries the identical
418
+ audited `# plastic-ok` escape, logged to the same file. The escape does not extend to
419
+ `NotebookEdit` or MCP structural edits: they are still gated, just without an escape hatch.
411
420
  - **retrieval-gate** is advisory only (see the Retrieval Gate section): it hints at QMD and never
412
421
  blocks a read or search.
413
422
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalom/plastic",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Intent-driven idea development system for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {