instar 1.3.2011 → 1.3.2012

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.
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "generatedFrom": "source-tree",
4
4
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
5
- "packageVersion": "1.3.2011",
5
+ "packageVersion": "1.3.2012",
6
6
  "guards": [
7
7
  {
8
8
  "ref": "docs/audits/phase-b/f10-triage.md",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha256": "ab4478010309a48e24eb1736dbaaf3810b6c1fa592a4fbaee6a9797652877915",
2
+ "sha256": "e5aa5b022b2c4654d0598a9af2564d7bf0b3e9a20d08b49c518b8b4f0154acc8",
3
3
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
4
- "packageVersion": "1.3.2011"
4
+ "packageVersion": "1.3.2012"
5
5
  }
@@ -2,5 +2,5 @@
2
2
  "sha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
3
3
  "articleCount": 102,
4
4
  "generatedFrom": "docs/STANDARDS-REGISTRY.md",
5
- "packageVersion": "1.3.2011"
5
+ "packageVersion": "1.3.2012"
6
6
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.2011",
3
+ "version": "1.3.2012",
4
4
  "description": "Coherence infrastructure for self-evolving AI agents — on the Claude Code or Codex subscription you already have.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-11-24T18:42:14.670Z",
5
- "instarVersion": "1.3.2011",
4
+ "generatedAt": "2026-11-24T19:38:37.015Z",
5
+ "instarVersion": "1.3.2012",
6
6
  "entryCount": 210,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "generatedFrom": "source-tree",
4
4
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
5
- "packageVersion": "1.3.2011",
5
+ "packageVersion": "1.3.2012",
6
6
  "guards": [
7
7
  {
8
8
  "ref": "docs/audits/phase-b/f10-triage.md",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha256": "ab4478010309a48e24eb1736dbaaf3810b6c1fa592a4fbaee6a9797652877915",
2
+ "sha256": "e5aa5b022b2c4654d0598a9af2564d7bf0b3e9a20d08b49c518b8b4f0154acc8",
3
3
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
4
- "packageVersion": "1.3.2011"
4
+ "packageVersion": "1.3.2012"
5
5
  }
@@ -2,5 +2,5 @@
2
2
  "sha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
3
3
  "articleCount": 102,
4
4
  "generatedFrom": "docs/STANDARDS-REGISTRY.md",
5
- "packageVersion": "1.3.2011"
5
+ "packageVersion": "1.3.2012"
6
6
  }
@@ -0,0 +1,22 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ SEC-149. Telegram, Slack, iMessage and the lifeline pass person-supplied text through `escapeTypedPathTags` (`src/core/inboundMedia.ts`), so a typed `[image:/abs/path]` (or `document`, `video`, `voice`, `file`) reaches a session as inert `[typed image: ...]` instead of a live media tag the session reads as a file to open. WhatsApp did not. `wireWhatsAppRouting` (`src/commands/server.ts`) now escapes the message text where it enters, which covers injection into a live session, the bootstrap of a respawned one and a new spawn. It also removes square brackets from the sender's profile name once at entry (live injection already did), so a name like `[image:/path]` cannot become a live tag in a new session's first prompt. WhatsApp's own placeholders `[Image]`, `[Video]`, `[Sticker]` and `[Location]` are unchanged; `[Document: <name>]`, whose file name the sender chooses, now reads `[typed Document: <name>]`.
9
+
10
+ ## What to Tell Your User
11
+
12
+ - **Safer WhatsApp messages**: "A WhatsApp message that just types out a file path can no longer make me open that file. Real photos and documents work as before."
13
+
14
+ ## Summary of New Capabilities
15
+
16
+ | Capability | How to Use |
17
+ |-----------|-----------|
18
+ | Typed path tags in WhatsApp text made inert | Automatic |
19
+
20
+ ## Evidence
21
+
22
+ - `tests/unit/whatsapp-typed-path-tags.test.ts` (new, 2): the WhatsApp routing escapes the text before any session sees it; a typed tag is made inert; WhatsApp's placeholders stay readable.
@@ -0,0 +1,29 @@
1
+ # Side effects: WhatsApp text gets typed path-tag escaping (SEC-149)
2
+
3
+ In plain words: a typed file-path tag in a WhatsApp message is shown to the session as ordinary text, as on the other channels.
4
+
5
+ Tier 1. Size: 1 source file (`src/commands/server.ts`, `wireWhatsAppRouting`), 1 new test file.
6
+
7
+ ## What changes
8
+ - `const text = escapeTypedPathTags(msg.content)` at the start of the WhatsApp handler; every later use (injection, respawn bootstrap, spawn) reads the escaped text.
9
+ - WhatsApp backends never deliver real media as a path tag (Baileys builds `[Image]`, `[Video]`, `[Document: <name>]`, `[Sticker]`, `[Location]`; the Business API forwards only text and captions), so nothing real is lost. The document placeholder becomes `[typed Document: <name>]`, which is correct: its name is sender-chosen.
10
+ - The function is idempotent, so text already escaped elsewhere is unchanged.
11
+ - The sender's profile name is cleaned once at entry (square brackets removed), so the new-spawn bootstrap, which used it raw, matches live injection.
12
+ - Not changed: iMessage sender names, and `MessageBridge`'s copy of WhatsApp text into a Telegram topic (traced only partly by the reviewer); both belong with the injection-hygiene work.
13
+
14
+ ## Signal vs authority
15
+ Escapes untrusted text; refuses nothing.
16
+
17
+ ## Rollback
18
+ Revert the commit.
19
+
20
+ ## Tests
21
+ - `whatsapp-typed-path-tags` (new, 2): pass.
22
+
23
+ ## Second-pass review
24
+
25
+ **Reviewer:** independent Claude reviewer subagent. Round 1 was blocking on one gap in the same function: the new-spawn bootstrap put the sender's profile name in raw. Fixed by cleaning the name once at entry, with a test. The text escaping itself was confirmed to reach live inject, respawn and new spawn, and nothing legitimate breaks.
26
+
27
+
28
+ ## Repair after Local Verify (2026-11-23)
29
+ The full run failed three cases in `tests/e2e/whatsapp-message-routing-e2e.test.ts`. Those cases read only the first 2000 characters of `wireWhatsAppRouting`, and this change's comment block pushed the calls they look for past that window. The cleanup now lives in a small helper, `whatsAppInboundText`, just above the function, and the function calls it in one line. Behaviour is unchanged, and the unit test checks the helper and the call order. The branch was also brought up to date with main.