@sentropic/h2a 0.98.7-rc.3 → 0.98.7-rc.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/h2a",
3
- "version": "0.98.7-rc.3",
3
+ "version": "0.98.7-rc.4",
4
4
  "description": "h2a — the unified CLI + core for human-to-agent coordination.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -64,14 +64,14 @@
64
64
  "@hono/mcp": "^0.3.0",
65
65
  "@hono/node-server": "^2.0.12",
66
66
  "@modelcontextprotocol/sdk": "^1.30.0",
67
- "@sentropic/cluster-mesh": "0.13.3",
67
+ "@sentropic/cluster-mesh": "0.16.0",
68
68
  "@sentropic/contracts": "^0.3.0",
69
69
  "@sentropic/events": "^0.2.0",
70
- "@sentropic/track": "0.98.7-rc.3",
70
+ "@sentropic/track": "0.98.7-rc.4",
71
71
  "hono": "^4.13.7",
72
72
  "toml-eslint-parser": "0.10.1"
73
73
  },
74
74
  "peerDependencies": {
75
- "@sentropic/h2a-runtime": "0.98.7-rc.3"
75
+ "@sentropic/h2a-runtime": "0.98.7-rc.4"
76
76
  }
77
77
  }
@@ -5,19 +5,75 @@ description: Use when the owner asks for a human contextual track report, status
5
5
 
6
6
  # harness/track-report
7
7
 
8
- ## Owner status table (owner evolution, 2026-10-17)
9
-
10
- For an owner status report, use `node "$track_bin" report --status-table --format md` (or `text`/`json`)
11
- after the bootstrap below. Follow `packages/track/skills/track-report/SKILL.md`, the canonical new table
12
- contract: exactly `# · Ta demande · Étape · Statut · Où ça en est / prochaine action`. This owner-requested
13
- view takes precedence over the older FAIT/À-FAIRE column rules below; the older four-section route remains
14
- the compatibility default. Preserve DÉCISIONS and its decision expectations: question, options with each
15
- consequence, readable in two minutes, dossier link, then the owner's actual answer. Versions are supporting
16
- references in parentheses, never the purpose. Stages are spec/dev/PR/mergé/déployé with recorded evidence;
17
- colors are only 🟢 conforming progress, 🟠 unforeseen issue, 🔴 blocked with mandatory proposal, 🔵 owner
18
- decision awaited. Waiting on another lane and suspension belong in the action cell, with no new color.
19
- Use the three deterministic reads below as supporting evidence; the new view never fabricates missing
20
- status, merge or deployment proof. Incomplete red/blue rows and version-only subjects are visibly flagged.
8
+ ## The served route: `--status-table`, rolling window, user language
9
+
10
+ For an owner status report, serve the validated report below with
11
+ `node "$track_bin" report --status-table --format md` (or `text`/`json`)
12
+ after the bootstrap. `--status-table` selects the validated four-section
13
+ route, never a separate table builder: over an identical period it renders
14
+ byte-identical sections, with DÉCISIONS and its decision expectations kept:
15
+ question, options with each consequence, readable in two minutes, dossier
16
+ link, then the owner's actual answer. Versions are supporting references in
17
+ parentheses, never the purpose.
18
+
19
+ The served window is rolling by default: `--status-table` without a selector
20
+ covers the last seven days (rolling `last-week`). `--period last-day`
21
+ restricts to the last day. An explicit `--period` or `--since`/`--until`
22
+ selector wins over the rolling default. Bounds always come from the journal
23
+ and the clock (`--now` pins the clock); never invent a period, a delivery, or
24
+ evidence. What the log does not record stays unrecorded: a missing stage,
25
+ merge or deployment proof is flagged, never fabricated.
26
+
27
+ The served synthesis is written in the user's language. `--lang <bcp47>`
28
+ selects the stage/status labels: exact match, then primary subtag, else the
29
+ neutral codes — never a silent French fallback. Quote machine tokens literally
30
+ — stage/status codes, `D1 A`-style replies, `[n.m]` handles, the
31
+ `ordre = priorité` line and renderer-emitted fixed lines — and write every
32
+ human sentence, including the meaning of those fixed lines, in the user's language.
33
+ A translated placeholder is still a placeholder: it fails the serving audit
34
+ below. Waiting on another lane and suspension belong in the action cell, with
35
+ no new color.
36
+
37
+ ## One row, one WP, one dossier — audited before serving
38
+
39
+ Every served À-FAIRE row carries exactly one strict WP attachment: the row's
40
+ WP cell names one WP, or `hors WP · items` with the outside-WP flag when no
41
+ strict ancestry exists — never silence, never two WPs. Every red row carries
42
+ exactly one investigated proposal; every blue-gated row carries exactly one
43
+ matching `D` number. A deferred dossier is not settled: it stays, with its
44
+ current answer need stated.
45
+
46
+ Stage and status are neutral codes over recorded evidence, never words to
47
+ guess: stage is one of `spec | dev | pr | merged | deployed`, status one of
48
+ `progressing | unforeseen | blocked | decision-awaited | not-qualified |
49
+ withdrawn`. Gates decide before stored marks: a live gate overrides a stored
50
+ green; nothing is
51
+ green without a conformity witness; `unforeseen` is a recorded reopening or
52
+ regression, or stale acceptance — never silence, never absence;
53
+ `not-qualified` and `withdrawn` carry no health colour. A withdrawal kept in
54
+ the served tables keeps its reason, or declares it missing.
55
+
56
+ Run the two structured audits before serving: `describeRowNextActions` plus
57
+ `auditNextActions(descriptors)` for the focus actions, and
58
+ `auditStatusProposals` plus `describeStatusProposals` (both in
59
+ `packages/track/src/report/audit.ts`) for red proposals and blue dossiers.
60
+ Presence and identity only: a green audit never certifies prose quality, and
61
+ the owner judges whether the sentence is right.
62
+
63
+ Audit the **served** data. Each À-FAIRE row carries machine `instruction`
64
+ (`to-instruct`, `not-instructed`, `structure-dossier`, `none-owed`, or
65
+ `investigated`) and `gateSteps` codes; translation must preserve those fields.
66
+ After investigating, set `instruction: investigated` and
67
+ `actionOrigin: investigated` beside the concrete `nextAction`. A gate-class
68
+ action keeps `actionOrigin: gate-class` in every language. Text alone never
69
+ certifies an instruction.
70
+
71
+ For each red item, add exactly one entry to the served view's `proposals`:
72
+ `{ itemId, proposal, proposalState: 'investigated' }`. Carry that exact proposal
73
+ in its row's `nextAction` and in RECOMMANDATION, in the requested language.
74
+ `proposalState: 'to-instruct'`, missing metadata, or absence from either served
75
+ section fails the audit. A stored `item.report-updated` proposal is a source
76
+ to investigate, never proof that the current report contains a fresh proposal.
21
77
 
22
78
  `track` supplies complete, deterministic facts and already renders the four sections the owner
23
79
  validated. The agent already in the conversation supplies the contextual synthesis on top of them. Do not
@@ -126,7 +182,8 @@ bucket counters.
126
182
 
127
183
  **There is always a window, and it always has bounds.** "The whole log" *is* a window: first recorded
128
184
  event → journal head. With no selector, a self-evident header example is
129
- `période : <date du premier événement> → <date du dernier événement> (intégralité du journal, borne haute = dernier événement)`.
185
+ `période : <date du premier événement> → <date du dernier événement> (intégralité du journal, borne haute = dernier événement)` —
186
+ an example in the renderer's language, restated in the user's language in the served synthesis.
130
187
  The phrase `aucune fenêtre` is wrong — it described the absence of a flag, not the absence of a period.
131
188
 
132
189
  Scope the report to a measured period rather than filtering it by hand:
@@ -185,7 +242,7 @@ upward, nothing is lost — and the header declares how many (`8 sous-WP agrég
185
242
  re-expand them. They come back on a short window, or on the owner's explicit request
186
243
  (`track report --sub-wp`).
187
244
 
188
- **À-FAIRE** — exactly five columns: `WP · av. · à faire · bloqué · prochaine action`. There is no
245
+ **À-FAIRE** — exactly seven columns: `WP · av. · étape · statut · à faire · bloqué · prochaine action`. There is no
189
246
  `cible action` column; a DONE item carrying acceptance debt is named inside `à faire` with its bucket.
190
247
  Print the line `ordre = priorité ; les cinq premiers sont le focus` under the heading.
191
248
 
@@ -254,8 +311,9 @@ The renderer marks them `à instruire : ouvrir l'item et nommer le geste`; you m
254
311
  those markers before serving the report. Every other row keeps `non instruite`, which says plainly that
255
312
  the action has not been instructed — that is honest, and it is what you leave there.
256
313
 
257
- Checkable, and to be run before serving: `auditNextActions(values, gateClauses)` from
258
- `@sentropic/track` returns `{ uninstructed, repeated, gateClauses, ok }`. `uninstructed > 0` means focus
314
+ Checkable, and to be run before serving: `describeRowNextActions(rows)` from
315
+ `@sentropic/track` turns the served rows into audit descriptors, and
316
+ `auditNextActions(descriptors)` returns `{ uninstructed, repeated, gateClauses, ok }`. `uninstructed > 0` means focus
259
317
  rows still carry the renderer's marker — finish them. `ok === false` means a substantive action repeats
260
318
  on three or more rows, or equals a gate clause: in both cases it names a class, not a gesture. Not
261
319
  checkable, and the part that actually failed the UAT: whether the sentence is *right*. The owner judges
@@ -312,7 +370,8 @@ owner statement in this report request/current conversation, or (2) an explicitl
312
370
  session artifact that maps this exact item, WP, or directive to an executor (and, if claimed, model/effort).
313
371
  It excludes project memory, repository documents, installed configuration, defaults, prior conventions, and
314
372
  inference. Context may enrich executor prose only; it never overrides emitted order, gates, or facts. When
315
- the report needs model/effort but that narrow context is absent, write exactly:
373
+ the report needs model/effort but that narrow context is absent, write that meaning in
374
+ the user's language — the French reference wording is
316
375
  `exécuteur: contexte owner requis (modèle/effort non présents dans le journal)`.
317
376
 
318
377
  Do not call an absent `facts.wsjf` subjective "priority". A `priority-missing` directive means the log has