@mindrian_os/cli 1.13.1-beta.4 → 1.13.1-beta.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +44 -5
  2. package/README.md +66 -53
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,47 @@
1
+ ## [1.13.1-beta.8] - 2026-06-05
2
+
3
+ First PUBLISHED release of the v1.13.1 "Larry Reaches" work -- consolidates the unreleased beta.5 through beta.7 entries below into one shipped beta (beta.4 was the last version users could install).
4
+
5
+ ### Added
6
+ - Local retrieval spine: getRoomContext() fuses room-home summary + windowed session fragments + graph-ranked neighborhood, seeded by the last ~2 turns; re-exported via the navigation chokepoint; per-turn assembly benchmarked ~1ms against the 1200ms budget. Closes the conversation-to-retrieval loop -- the per-turn hot path no longer forwards userText:null, and the seed stays on the LOCAL lane (Canon Part 8).
7
+ - Capability dial committed to HEAD + the LARRY-04 Hierarchical Navigator doctrine: 5 stable reach ids + 3 stable posture ids (push_forward, hold, pull_back), grounded in the Usher division (the tool reaches; the navigator decides). Framework-led deep research ships as committed doctrine only.
8
+ - FILEVAL read-back filing: typed research/decision evidence files to the local graph and is read-back-validated -- a filing that did not land is surfaced, not swallowed.
9
+ - Sentinel and scout hardening (Phase 140).
10
+
11
+ ### Fixed
12
+ - BUG-01: build-graph-from-sqlite line-53 ReferenceError (lazygraphPath -> roomDbPath); the graph export no longer crashes.
13
+
14
+ ## [1.13.1-beta.7] - 2026-06-05
15
+
16
+ Phase 141 "Larry Reaches" execution step 1: commit the Capability Dial doctrine and the LARRY-04 Hierarchical Navigator to HEAD. This lifts the previously uncommitted dial out of working-tree limbo (D-06 hard ordering) and lays the prompt-layer contract -- 5 reach ids + 3 posture ids -- that Phase 143 keys off. The deep-research reach ships as committed doctrine only (DRSCH-01..04 satisfied at the doctrine level; no executable plumbing). Later Phase 141 plans (getRoomContext, FILEVAL, BUG-01) append to this same entry. Ships as a beta first per release-process.md.
17
+
18
+ ### Added
19
+ - **The Capability Dial is committed to HEAD with `canon_parts: [Part 2, Part 3, Part 8, Part 9]` frontmatter (LARRY-01).** The dial's 5-reach GUIDED-default trigger map (Context Block, contradiction surface, cross-room reach, Brain consult, framework-led deep research) plus Reach rules 1-6 were prose-only in the working tree; they are now tracked doctrine. The deep-research 5th reach row and Reach rule 6 ship as DRSCH doctrine only -- no executable deep-research plumbing in this phase (D-01).
20
+ - **5 stable machine-readable reach ids (LARRY-03, D-05):** `context_block`, `contradiction`, `cross_room`, `brain_consult`, `deep_research`. A drift test (`tests/test-reach-ids-drift.cjs`) asserts the reach bank is EXACTLY these five so the Phase 143 dial-TUI label composer and orchestrator key off a frozen set.
21
+ - **The LARRY-04 Hierarchical Navigator doctrine (D-11/12/13).** A net-new prompt-layer section that grounds both dials in the Usher division -- the tool owns Usher steps 1-2 (perceive + set the stage = the reach = the Capability dial); the human owns steps 3-4 (the act of insight + critical revision). The posture is the bidirectional Usher traversal, encoded as 3 stable posture ids `push_forward` / `hold` / `pull_back` (drift test `tests/test-posture-ids-drift.cjs` asserts exactly three plus the Aronhime quotes). Quotes Prof. Aronhime verbatim ("the insight belongs to you; the reach belongs to the tool"; "reach matters more than raw intelligence"; "restraint is the product working correctly"). Doctrine only in 141; executable sensors (Phase 143) and the navigation engine (Phase 144) defer.
22
+ - **Reach rule 7 (dial arbitration, D-13).** The two dials are two dimensions of ONE decision cycle (CoALA), not two captains: the Capability dial evaluates first, the reach result sets the posture, the Ask-Tell dial sets intensity within it. The user is the only helm (Human-in-Command + AI-in-the-loop). Names the "Reasoning-Action Disconnect" anti-pattern alongside "two captains, one ship"; posture and filing never change silently.
23
+
24
+ ### Changed
25
+ - **Version bumped to 1.13.1-beta.7** in `.claude-plugin/plugin.json` and `package.json` in lockstep with this CHANGELOG entry. The git tag and marketplace publish remain human-gated per release-process.md and are NOT performed by this commit.
26
+
27
+ ## [1.13.1-beta.6] - 2026-06-05
28
+
29
+ Phase 140 sentinel + instrumentation hardening. The five Phase 140 fixes (HARD-01..05) repair the scheduled-scout safety path and the instrumentation surfaces that fed it: the sentinel no longer aborts on a zero-edge snapshot, HSI-to-graph edges now land in a Phase-109-migrated room.db, backup directories stop polluting HSI / reverse-salient results, query-efficiency telemetry records instead of logging 0, and phase deadlines surface as DUE instead of CLEAR. These are user-visible sentinel behavior changes, so they ship in lockstep per release-process.md. Ships as a beta first (release infrastructure always betas before promotion).
30
+
31
+ ### Fixed
32
+ - **HARD-01: sentinel-health-check no longer aborts under `set -euo pipefail` on a zero-edge snapshot.** A `grep -c` returning a two-line `0\n0` (or empty) numeric capture was fed straight into `$(( ))`, tripping the strict-mode arithmetic abort and killing the scheduled scout before it ran. A `sanitize_int` helper (`head -1` + `tr -dc '0-9'` + default 0) now coerces every numeric capture to a single-line integer before arithmetic, so a zero-edge room can no longer take down the sentinel.
33
+ - **HARD-02: HSI-to-graph node inserts now land in a Phase-109-migrated room.db.** Four bare three-column node-write sites violated the Phase-109 nodes-provenance NOT NULL contract (`source_path` / `created_by` / `created_at` / `last_seen_at`), so edges failed with `NOT NULL constraint failed: nodes.source_path`. All four sites now route through one shared NOT-NULL-safe helper (`lib/core/node-insert.cjs::insertNode`) that detects the live schema via `PRAGMA table_info(nodes)` and is safe on both the migrated and un-migrated schema.
34
+ - **HARD-03: HSI and reverse-salient scanners now exclude `.heal-backup/`.** Both independent walkers (`compute-hsi.py` and `rs-engine.py`) crawled the heal backup directory, so backup-dir duplicates polluted HSI and reverse-salient results. `.heal-backup` is now in both independent `SKIP_DIRS` sets. Per the locked decision D-04, only `.heal-backup` was added; no general dot-dir ignore-list was introduced.
35
+ - **HARD-04: query-efficiency telemetry now records all turns instead of logging 0.** The PostToolUse hook (`scripts/query-efficiency-telemetry.cjs`) early-returned on any turn that did not carry a `/mos:` command context, but nothing in the repo ever set that signal, so the telemetry JSONL logged 0 events. The hook now writes a JSONL line for every Read/Grep/Glob turn in a resolvable room; the tool, room, and tokens-used gates are unchanged. The eight-field event shape is preserved (`command` defaults to `''`), so the Canon Part 8 scalar-only invariant holds with no new field and no network surface.
36
+ - **HARD-05: deadline monitor now reads `.planning/STATE.md` phase deadlines.** The monitor scanned only `funding/` and `opportunity-bank/`, so phase deadlines always read CLEAR. It now also scans `.planning/STATE.md` (resolved via a `PLANNING_STATE_FILE` env seam, else repo root), reusing the existing `portable_date_to_epoch` parser and the `epoch == 0` skip guard, and pushes a distinct `phase`-source alert through the existing report path.
37
+
38
+ ### Changed
39
+ - **The scout HSI-to-graph step no longer swallows write failures** (D-03). The previous `2>/dev/null || true` masked a failed graph write; it is replaced by an `if/fi` that surfaces stderr and prints a degraded-step advisory while staying non-fatal, so a silent edge-write failure can no longer hide.
40
+ - **The scout telemetry aggregator gained a `--mos-only` population filter** (D-01a). The published "up to 57x" efficiency claim is defined against the `/mos:` command population; relaxing the telemetry gate to all turns (HARD-04) changes the denominator, so `scripts/scout-telemetry-aggregator.cjs --mos-only` restricts the median / top-5 / threshold-status to `/mos:` turns while the default reports the honest all-turns view. `RELEASE_GATE_THRESHOLD_X` is unchanged at 40; both views always coexist so the published number is never silently redefined.
41
+
42
+ ### Release-gate note (57x claim)
43
+ - **The release gate MUST run `node scripts/scout-telemetry-aggregator.cjs --mos-only` when consuming the "up to 57x" claim before tagging.** Reading the bare all-turns median (relaxed by HARD-04) as the claim's evidence would understate efficiency and could trigger a spurious RETUNE; the claim's denominator is the `/mos:` command population. The claim language itself ("up to 57x") does not change as a result of the gate relaxation -- it remains `/mos:`-specific and measurable via `--mos-only`. Any README / CHANGELOG copy rewrite is a deferred release-process follow-up (140-57X-CLAIM-RECONCILIATION.md), not performed here.
44
+
1
45
  ## [1.13.1-beta.4] - 2026-06-04
2
46
 
3
47
  Phase 139 doctor hotfix: stop doctor from scaffolding room artifacts in the wrong directory, and convert its frozen Phase-95 check roster into a version-accumulative engine skeleton. Proven end-to-end by shipping Umbilical Cord as the first registered module. Ships as a beta first per release-process.md (release infrastructure always betas before promotion).
@@ -17,11 +61,6 @@ Phase 139 doctor hotfix: stop doctor from scaffolding room artifacts in the wron
17
61
  ### Changed
18
62
  - **`ALLOWED_EDGE_TYPES` gains `AFFILIATED_WITH`** (additive; the floor test asserts all prior members are preserved and the set stays frozen).
19
63
 
20
- ## [Unreleased] -- v1.13.1-beta.5 (in progress)
21
-
22
- ### Added
23
- -
24
-
25
64
  ## [1.13.1-beta.2] - 2026-06-02
26
65
 
27
66
  ### Fixed (release: marketplace catalog advertised the dev next-bump)
package/README.md CHANGED
@@ -3,17 +3,19 @@
3
3
 
4
4
  # MindrianOS
5
5
 
6
- **When you are walking through a problem worth solving and you cannot yet name what is missing, MindrianOS is the thinking partner that walks beside you.**
6
+ **A thinking partner that sits above your AI.**
7
+
8
+ When you are working a problem worth solving and cannot yet name what is missing, MindrianOS sequences the right method at the right moment, pushes back when your reasoning has gaps, and remembers every decision across sessions.
7
9
 
8
10
  Powered by PWS (Problems Worth Solving), an innovation methodology built and tested through 20 years of teaching by Prof. Lawrence Aronhime.
9
11
  Engineered by Jonathan Sagir.
10
12
 
11
- [![Version](https://img.shields.io/badge/v1.13.0-The_Closed_Loop-1E3A6E)](CHANGELOG.md)
13
+ [![Version](https://img.shields.io/badge/version-1.13.1--beta-1E3A6E)](CHANGELOG.md)
12
14
  [![License](https://img.shields.io/badge/license-BSL_1.1-C8A43C)](LICENSE)
13
15
  [![Works on](https://img.shields.io/badge/CLI_+_Desktop_+_Cowork-2D6B4A)](#three-surfaces)
14
16
 
15
- [Website](https://mindrianos-jsagirs-projects.vercel.app) ·
16
- [Marketplace](https://github.com/jsagir/mindrian-marketplace) ·
17
+ [Website](https://mindrianos-jsagirs-projects.vercel.app) ·
18
+ [Marketplace](https://github.com/jsagir/mindrian-marketplace) ·
17
19
  [Brain Access](https://mindrianos-jsagirs-projects.vercel.app/brain-access)
18
20
  </div>
19
21
 
@@ -21,13 +23,22 @@
21
23
 
22
24
  ## The answer first
23
25
 
24
- > When you talk to Larry about what you are working on, MindrianOS turns the conversation into a structured room, remembers your decisions across sessions, and surfaces the contradictions you would otherwise miss.
26
+ > A structured method layer that sits above the model. You talk to Larry about what you are working on. MindrianOS turns the conversation into a structured room, sequences the right framework for where you are, pushes back when your confidence outruns your evidence, and remembers every decision so nothing you learned is lost.
25
27
 
26
28
  You do not learn a tool. You talk. The room takes shape underneath the conversation. Whatever you said yesterday is still working for you today.
27
29
 
28
30
  ---
29
31
 
30
- ## How it works (in three pieces)
32
+ ## Four jobs it does for you
33
+
34
+ - **Find the problem.** Larry reframes what you are working on before you try to solve it, so you spend your effort on the real problem, not the first one you saw.
35
+ - **Show what you missed.** Every new entry is compared against everything already in the room. Contradictions, gaps, and cross-project connections surface on their own.
36
+ - **Build what you could not alone.** The right framework at the right stage, chained intelligently, across more domains than one mind can hold at once.
37
+ - **Defend what you decided.** Every decision and the reason behind it becomes working memory you can stand behind weeks later.
38
+
39
+ ---
40
+
41
+ ## How it works (three pieces)
31
42
 
32
43
  ### Larry is the thinking partner
33
44
 
@@ -39,23 +50,43 @@ Every conversation, every meeting, every decision lands in a folder structure or
39
50
 
40
51
  ### The room surfaces what you cannot see
41
52
 
42
- Every time you add something new, the system compares it against everything already there. Larry tells you what just changed. What contradicts what. What connects to what. What is now missing. What you stopped checking weeks ago.
43
-
44
- You decide: APPROVE, REJECT (with a reason), or DEFER. The reason becomes part of the room. The next scan is smarter.
53
+ Every time you add something new, the system compares it against everything already there. Larry tells you what just changed, what contradicts what, what connects to what, and what is now missing. You decide: APPROVE, REJECT (with a reason), or DEFER. The reason becomes part of the room. The next scan is smarter.
45
54
 
46
55
  ---
47
56
 
48
- ## What v1.13.0 changed (The Closed Loop)
57
+ ## Install
58
+
59
+ Built for people who have never opened a terminal. Full walkthrough at [the install guide](https://mindrianos-jsagirs-projects.vercel.app/docs/install).
60
+
61
+ ### npm (one line, recommended)
62
+
63
+ ```bash
64
+ npx @mindrian_os/cli
65
+ ```
49
66
 
50
- Before this release, MindrianOS could file your work and surface intelligence, but the loop did not always close. You would say something, the system would react, and nothing carried forward. v1.13.0 closes the loop:
67
+ ### Plugin marketplace
51
68
 
52
- - **Larry leads turn one.** The first thing you see is a conversation, not a command menu.
53
- - **Your first sentence becomes a room.** Type a venture sentence, get a 30-second brief and a populated room before you have to commit anything else.
54
- - **Tensions persist across sessions.** Larry remembers what was unresolved and brings it back when relevant.
55
- - **Every conversation produces an artifact.** A first session leaves you with a real room, not an empty wizard.
56
- - **Decisions teach the system.** Your approvals, your rejections, your reasons become part of the room's working memory.
69
+ ```bash
70
+ claude plugin marketplace add jsagir/mindrian-marketplace
71
+ claude plugin install mos@mindrian-marketplace
72
+ ```
57
73
 
58
- Currently shipping as `v1.13.0-beta.19`. Final `v1.13.0` is imminent.
74
+ ### Shell
75
+
76
+ ```bash
77
+ curl -sL https://raw.githubusercontent.com/jsagir/mindrian-os-plugin/main/install.sh | bash
78
+ ```
79
+
80
+ Restart Claude Code. Larry starts talking.
81
+
82
+ ### Update or repair an install
83
+
84
+ ```bash
85
+ mindrian-os update # marketplace + plugin update
86
+ mindrian-os doctor --all # diagnose drift, suggest fixes
87
+ ```
88
+
89
+ A note on install prompts: Claude Code asks you to approve each shell command. 10+ prompts is normal. Pick "always allow" the first time you see one you are happy with; the rest will not re-prompt.
59
90
 
60
91
  ---
61
92
 
@@ -82,59 +113,39 @@ You do not have to memorize these. Describe what you are trying to do. Larry rou
82
113
 
83
114
  Most tools get messier the more you put in. Search ranks worse. Folders bloat. The AI forgets what you told it last session. MindrianOS goes the other way.
84
115
 
85
- The mechanism is plain. Everything you say to Larry, every meeting you file, every decision you make and reason you give becomes part of your room. The room is searchable, structured, and remembered. Every NEW entry compares against everything already there.
116
+ Everything you say to Larry, every meeting you file, every decision you make and reason you give becomes part of your room. The room is searchable, structured, and remembered, and every new entry compares against everything already there.
86
117
 
87
- Day one, you have a folder.
88
-
89
- Day thirty, you have a folder that catches the contradiction between yesterday's strategy call and last week's customer interview, because nothing about either was forgotten. Larry brings back the assumption you made in week two when you are about to make a decision in week eight that depends on it. The room finds the connection between two meetings that happened a month apart that nobody remembers being related.
118
+ Day one, you have a folder. Day thirty, you have a folder that catches the contradiction between yesterday's strategy call and last week's customer interview, brings back the assumption you made in week two when you are about to make a decision in week eight that depends on it, and finds the connection between two meetings a month apart that nobody remembers being related.
90
119
 
91
120
  Nothing forgets. Everything compares. Your own past work works for you.
92
121
 
93
122
  ---
94
123
 
95
- ## Install
96
-
97
- ### npm (one line, recommended)
98
-
99
- ```bash
100
- npx @mindrian_os/cli
101
- ```
102
-
103
- ### Plugin marketplace
124
+ ## Three surfaces
104
125
 
105
- ```bash
106
- claude plugin marketplace add jsagir/mindrian-marketplace
107
- claude plugin install mos@mindrian-marketplace
108
- ```
126
+ MindrianOS works wherever Claude works.
109
127
 
110
- ### Shell
128
+ | Surface | What it gives you |
129
+ |---------|-------------------|
130
+ | **Claude Code CLI** | Full power. Hooks fire, scripts run, the room is on disk, Larry teaches with visible structure. |
131
+ | **Claude Desktop** | Same Larry, conversational. The Data Room shows up as inline panels (dashboard, wiki, knowledge graph). |
132
+ | **Cowork** | Same plugin, shared room. Daily briefings, persistent perspectives, multi-user. |
111
133
 
112
- ```bash
113
- curl -sL https://raw.githubusercontent.com/jsagir/mindrian-os-plugin/main/install.sh | bash
114
- ```
134
+ ---
115
135
 
116
- Restart Claude Code. Larry starts talking.
136
+ ## The Brain (optional)
117
137
 
118
- ### Update or repair an install
138
+ The Brain is a shared teaching graph that connects your findings across projects. It holds two stores: one for connections, one for meanings. Connecting it makes Larry sharper. Not connecting it is fine; the system still teaches you.
119
139
 
120
- ```bash
121
- mindrian-os update # marketplace + plugin update
122
- mindrian-os doctor --all # diagnose drift, suggest fixes
123
- ```
140
+ The Brain never sees your room. Brain queries carry methodology questions only, never your notes, never your decisions, never your meetings.
124
141
 
125
- A note on install prompts: Claude Code asks you to approve each shell command. 10+ prompts is normal. Pick "always allow" the first time you see one you are happy with; the rest will not re-prompt.
142
+ Request access: [mindrianos-jsagirs-projects.vercel.app/brain-access](https://mindrianos-jsagirs-projects.vercel.app/brain-access)
126
143
 
127
144
  ---
128
145
 
129
- ## Three surfaces
146
+ ## Pricing
130
147
 
131
- MindrianOS works wherever Claude works.
132
-
133
- | Surface | What it gives you |
134
- |---------|-------------------|
135
- | **Claude Code CLI** | Full power. Hooks fire, scripts run, the room is on disk, Larry teaches with visible structure. |
136
- | **Claude Desktop** | Same Larry, conversational. The Data Room shows up as inline panels (dashboard, wiki, knowledge graph). |
137
- | **Cowork** | Same plugin, shared room. Daily briefings, persistent perspectives, multi-user. |
148
+ Free plugin. It requires a paid Claude plan (Claude Pro, $20/mo, or higher) because it runs on top of Claude. The Brain is an optional add-on.
138
149
 
139
150
  ---
140
151
 
@@ -165,6 +176,8 @@ Larry is the personality that delivers PWS in your terminal. The teaching is int
165
176
 
166
177
  ---
167
178
 
179
+ Install MindrianOS. Start thinking with Larry.
180
+
168
181
  ## License
169
182
 
170
183
  Source-available (BSL 1.1), not open source. Copyright Jonathan Sagir and PWS / Mindrian.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindrian_os/cli",
3
- "version": "1.13.1-beta.4",
3
+ "version": "1.13.1-beta.8",
4
4
  "description": "Install MindrianOS into Claude Code with one command -- `npx @mindrian_os/install`. Ships the MindrianOS plugin (Larry + PWS methodology + Data Room) plus a setup/diagnostics CLI (install/doctor/update).",
5
5
  "scripts": {
6
6
  "mcp": "node bin/mindrian-mcp-server.cjs",