pi-braid 0.43.37 → 0.43.38

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/CHANGELOG.md CHANGED
@@ -96,6 +96,26 @@ record; the tag scheme above applies unchanged.
96
96
  note that a clean disable releases it, because a refusal an operator cannot act on
97
97
  is a support ticket.
98
98
 
99
+ ## Skills — 0.2.6 / Core 0.43.38
100
+
101
+ - **The whisper in an exported session was JSON, not prose.** A context-lifecycle proposal was stored as a
102
+ content array of two text parts, and pi-core's export template falls back to `JSON.stringify` for a
103
+ non-string custom message, so an exported HTML showed `[{"type":"text",…},{"type":"text","text":"[braid-whisper-end]"}]`
104
+ where the reader expected a suggestion. The channel now stores text, envelope first and marker last, which
105
+ is also exactly what the agent reads on resume.
106
+ (2026-11-09: a landing page is a set of mechanisms and a set of refusals)
107
+
108
+ - **`landing-page` joins the pack.** The family-tree landing was rebuilt against a professional reference
109
+ and the knowledge that made it safe existed only in that wave's report: the rail-and-panel switcher whose
110
+ no-script form is jump links, the timeline drawn as a line with stops, price tiers on shared rows, the
111
+ header action that survives 320px, and the rule that a form with no endpoint is a lie.
112
+ - **The refusals are the load-bearing half.** A page whose promise is that every fact has a source cannot
113
+ open with a testimonial from a client nobody served, an invented number, or a contact nobody answers. The
114
+ skill states that before it states any technique.
115
+ - **It names the gate that text checks cannot replace**: a headless browser at 320, 375, 768 and 1280 asking
116
+ whether the document is wider than its viewport, and whether any element's box crosses an edge from
117
+ outside every clipping ancestor.
118
+
99
119
  ## Core — 0.43.37 (2026-11-08: the shapes were rare, and the instrument policed the wrong text)
100
120
 
101
121
  - **Measured over the shipped corpus, the seven sentence shapes fired in 8 of 61 files.** 21 hits in
package/build-info.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "pi-braid",
3
- "version": "0.43.37",
4
- "sha": "7f456b784fa2259feec41d77d6c81c4bb7e64de9",
5
- "shaShort": "7f456b78",
3
+ "version": "0.43.38",
4
+ "sha": "46a4e6d6fdd50ba65eddc36b58424c08022fefa5",
5
+ "shaShort": "46a4e6d6",
6
6
  "branch": "detached",
7
7
  "dirty": false,
8
- "packedAt": "2026-11-08T21:09:34.250Z"
8
+ "packedAt": "2026-11-09T12:26:34.508Z"
9
9
  }
@@ -411,7 +411,12 @@ async function queueProposal(evaluated, pi, ctx, branchLength) {
411
411
  // measured deliveries). The source must be the TRUE family, so the
412
412
  // envelope says context-lifecycle.
413
413
  applyWhisperEnvelope(proposalContent, "context-lifecycle/proposal");
414
- sm?.appendCustomMessageEntry?.(PROPOSAL_CUSTOM_TYPE, proposalContent, true, proposal);
414
+ // A custom message rendered into an exported session prints its content
415
+ // as JSON when the content is an array of parts (pi-core's export template
416
+ // falls back to JSON.stringify for a non-string). The proposal is text, so
417
+ // it is stored as text: one string, envelope first and marker last, which
418
+ // is also what the agent reads on resume.
419
+ sm?.appendCustomMessageEntry?.(PROPOSAL_CUSTOM_TYPE, proposalContent.map((part) => part.text).join("\n"), true, proposal);
415
420
  // Record the suggestion class so a repeat re-fire is suppressed while
416
421
  // this one is still actionable (gate + dedupe rely on this map).
417
422
  state(ctx).proposalKeys.set(proposalKeyFor(proposal.message, proposal.suggested_action), Date.now());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-braid",
3
- "version": "0.43.37",
3
+ "version": "0.43.38",
4
4
  "description": "🥨 Braid - Metacognitive extension suite for pi coding agent: Adds memory, plan tracking, structured cognitive signals and completion checks on top of pi core loop, so long sessions keep their context and stop claiming unfinished work.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -573,7 +573,17 @@ async function queueProposal(
573
573
  // measured deliveries). The source must be the TRUE family, so the
574
574
  // envelope says context-lifecycle.
575
575
  applyWhisperEnvelope(proposalContent, "context-lifecycle/proposal");
576
- sm?.appendCustomMessageEntry?.(PROPOSAL_CUSTOM_TYPE, proposalContent, true, proposal);
576
+ // A custom message rendered into an exported session prints its content
577
+ // as JSON when the content is an array of parts (pi-core's export template
578
+ // falls back to JSON.stringify for a non-string). The proposal is text, so
579
+ // it is stored as text: one string, envelope first and marker last, which
580
+ // is also what the agent reads on resume.
581
+ sm?.appendCustomMessageEntry?.(
582
+ PROPOSAL_CUSTOM_TYPE,
583
+ proposalContent.map((part) => part.text).join("\n"),
584
+ true,
585
+ proposal,
586
+ );
577
587
  // Record the suggestion class so a repeat re-fire is suppressed while
578
588
  // this one is still actionable (gate + dedupe rely on this map).
579
589
  state(ctx).proposalKeys.set(