@sentropic/track 0.98.7-rc.1 → 0.98.7-rc.3

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 (82) hide show
  1. package/README.md +10 -0
  2. package/dist/cli/index.d.ts.map +1 -1
  3. package/dist/cli/index.js +34 -11
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/cli/install-skills.d.ts.map +1 -1
  6. package/dist/cli/install-skills.js +9 -3
  7. package/dist/cli/install-skills.js.map +1 -1
  8. package/dist/events/types.d.ts +1 -1
  9. package/dist/events/types.d.ts.map +1 -1
  10. package/dist/events/types.js +1 -0
  11. package/dist/events/types.js.map +1 -1
  12. package/dist/focus-vendor/registry/entries.v1.json +4 -4
  13. package/dist/focus-vendor/render/html.d.ts.map +1 -1
  14. package/dist/focus-vendor/render/html.js +12 -1
  15. package/dist/focus-vendor/render/html.js.map +1 -1
  16. package/dist/focus-vendor/render/md.d.ts.map +1 -1
  17. package/dist/focus-vendor/render/md.js +12 -1
  18. package/dist/focus-vendor/render/md.js.map +1 -1
  19. package/dist/focus-vendor/render/presentation.d.ts +13 -0
  20. package/dist/focus-vendor/render/presentation.d.ts.map +1 -0
  21. package/dist/focus-vendor/render/presentation.js +25 -0
  22. package/dist/focus-vendor/render/presentation.js.map +1 -0
  23. package/dist/focus-vendor/render/terminal.d.ts.map +1 -1
  24. package/dist/focus-vendor/render/terminal.js +12 -1
  25. package/dist/focus-vendor/render/terminal.js.map +1 -1
  26. package/dist/focus-vendor/track/index.d.ts +23 -27
  27. package/dist/focus-vendor/track/index.d.ts.map +1 -1
  28. package/dist/focus-vendor/track/index.js +24 -10
  29. package/dist/focus-vendor/track/index.js.map +1 -1
  30. package/dist/focus-vendor/validation/index.d.ts +87 -19
  31. package/dist/focus-vendor/validation/index.d.ts.map +1 -1
  32. package/dist/focus-vendor/validation/index.js +95 -10
  33. package/dist/focus-vendor/validation/index.js.map +1 -1
  34. package/dist/focus-vendor/validation/readability.d.ts +22 -0
  35. package/dist/focus-vendor/validation/readability.d.ts.map +1 -0
  36. package/dist/focus-vendor/validation/readability.js +244 -0
  37. package/dist/focus-vendor/validation/readability.js.map +1 -0
  38. package/dist/model/decision.d.ts +19 -0
  39. package/dist/model/decision.d.ts.map +1 -1
  40. package/dist/model/decision.js.map +1 -1
  41. package/dist/model/index.d.ts +1 -0
  42. package/dist/model/index.d.ts.map +1 -1
  43. package/dist/model/index.js +1 -0
  44. package/dist/model/index.js.map +1 -1
  45. package/dist/model/item.d.ts +2 -0
  46. package/dist/model/item.d.ts.map +1 -1
  47. package/dist/model/item.js.map +1 -1
  48. package/dist/model/report-status.d.ts +32 -0
  49. package/dist/model/report-status.d.ts.map +1 -0
  50. package/dist/model/report-status.js +60 -0
  51. package/dist/model/report-status.js.map +1 -0
  52. package/dist/read/commands.d.ts +2 -2
  53. package/dist/read/commands.d.ts.map +1 -1
  54. package/dist/read/commands.js +7 -3
  55. package/dist/read/commands.js.map +1 -1
  56. package/dist/report/directive.d.ts +5 -1
  57. package/dist/report/directive.d.ts.map +1 -1
  58. package/dist/report/directive.js +4 -0
  59. package/dist/report/directive.js.map +1 -1
  60. package/dist/report/format.d.ts +10 -1
  61. package/dist/report/format.d.ts.map +1 -1
  62. package/dist/report/format.js +21 -2
  63. package/dist/report/format.js.map +1 -1
  64. package/dist/report/status-table.d.ts +46 -0
  65. package/dist/report/status-table.d.ts.map +1 -0
  66. package/dist/report/status-table.js +211 -0
  67. package/dist/report/status-table.js.map +1 -0
  68. package/dist/state/fold.d.ts.map +1 -1
  69. package/dist/state/fold.js +6 -0
  70. package/dist/state/fold.js.map +1 -1
  71. package/dist/track.d.ts +3 -0
  72. package/dist/track.d.ts.map +1 -1
  73. package/dist/track.js +8 -0
  74. package/dist/track.js.map +1 -1
  75. package/package.json +1 -1
  76. package/skills/present-decision/SKILL.md +92 -95
  77. package/skills/present-decision/assets/dossier-template.md +35 -38
  78. package/skills/present-decision/assets/native-questions.md +18 -0
  79. package/skills/present-decision/assets/owner-criteria.template.md +11 -16
  80. package/skills/present-decision/assets/self-audit.md +24 -22
  81. package/skills/propose-workpackages/SKILL.md +20 -1
  82. package/skills/track-report/SKILL.md +137 -0
@@ -1,101 +1,98 @@
1
1
  ---
2
2
  name: present-decision
3
- description: Use when an agent must present a complex, irreversible, cross-owner, security/contract-affecting, costly, or genuinely balanced decision to a human owner — or must choose between decide-and-trace, a quick ask, and a full decision dossier. The agent presents at the level of the stakes, never sells its preferred option, and records the decision in track. This is agent→human; it is NOT h2a (h2a ATTENTION is the inter-agent presenter).
3
+ description: Present consequential human decisions with a readable dossier, or choose decide-and-trace or a quick ask for smaller stakes. Covers irreversible, costly, security, contract, cross-owner and genuinely balanced choices; records the outcome in track. Agent-to-human, not h2a inter-agent negotiation.
4
4
  ---
5
5
 
6
6
  # Present Decision
7
7
 
8
- Present human decisions **at the level of the stakes**. Do not sell your preferred option. Do not outsource this to h2a — h2a ATTENTION/MANDATAIRE is the *inter-agent* neutral presenter in a negotiation; this skill is the agent's own *agent→human* working method.
9
-
10
- This skill is **tool-neutral**. Where it names a capability ("your code-search tool", "your modal-ask tool", "your second-opinion agent"), use your host's equivalent — see **Per-agent mapping** at the end.
11
-
12
- ## Step 1 — Calibrate (the trigger scorecard)
13
-
14
- Score the decision *before* asking anything. Pick exactly one path.
15
-
16
- **Decide + trace** — when ALL are true: local scope, reversible in ≤ one focused work block, no security/privacy/data-loss/frozen-contract/cross-owner impact, an existing repo pattern is clear, and no genuine equipoise. → Decide, state the reversible assumption out loud, keep moving. (Optionally record via track.) **Do not** stage a complaisant menu for a call you can reverse.
17
-
18
- **Quick ask** — when exactly one owner preference is missing, there are 2–3 clear options, rollback is cheap, and no hard trigger below applies. → Use your modal-ask tool with one-sentence impact per option.
19
-
20
- **Full dossier** — when ANY hard trigger applies:
21
- - irreversible, or rollback > one focused work block
22
- - public / frozen contract; event / read / write schema
23
- - auth / security / privacy / IAM
24
- - migration / data retention
25
- - cross-repo / cross-owner / cross-agent
26
- - meaningful cost / timeline / workpackage impact; high blast radius
27
- - strong reviewer disagreement; genuine equipoise
28
- - unknown owner validation criteria that could change the outcome
29
- - the owner asks for validation at stake level
30
-
31
- Two *medium* triggers (moderate cost, partial reversibility, one repo but a shared module, mild reviewer disagreement) also mean **dossier**. When in doubt, escalate the path, not the ceremony — a dossier can be short, but it must be honest.
32
-
33
- ## Step 2 — Gather inputs (full-dossier path)
34
-
35
- 1. **Local context first.** User request; repo entrypoints (`AGENTS.md`, then the host-specific pointer); applicable repo rules; existing track state when `.track/` exists; and **`track report`** (default table: fait / à-faire %·WP / attendus) when track is available. When showing that report to the human, preserve the table verbatim in a fenced code block. Use your code-search tool to ground claims in the actual code, not memory.
36
- 2. **The double-instruction (standing rule).** For a complex *design* decision, get **independent Codex + Opus passes** via your second-opinion tool before recommending. **Synthesize — do not blend away disagreements.** If a hard-trigger decision lacks the second pass, mark the dossier **Incomplete** and ask whether to wait or proceed provisionally; only reversible prep may continue meanwhile.
37
- 3. **Owner criteria.** Seed from `assets/owner-criteria.template.md`; source the live criteria from the request, repo rules, prior owner decisions, existing track decisions/dossiers, and the `track report` attendus.
38
-
39
- ## Step 3 — Build the 8-section dossier
40
-
41
- Use `assets/dossier-template.md`. In order, no ornamental sections:
42
-
43
- 1. **Decision asked** — one sentence, option IDs, exact scope.
44
- 2. **Context** — facts, assumptions, and unknowns kept separate.
45
- 3. **Stakes** — why this is dossier-level; affected repos / WPs / contracts / users.
46
- 4. **Options** — table: `id · choice · strongest case FOR · strongest case AGAINST · cost · reversibility · what would make it win`. One row per option, including rejected ones.
47
- 5. **Recommendation + rationale** — one recommended option (or "defer"), with the decisive judgment.
48
- 6. **Reversibility / cost** — rollback path, sunk cost, migration / cleanup cost, time estimate.
49
- 7. **Attendus** (the human's validation criteria) — checklist `criterion · source · covered by · gap`.
50
- 8. **What I need from you** — the smallest valid decision or the one missing criterion.
51
-
52
- ## Step 4 — SELF-AUDIT GATE (loop before presenting)
53
-
54
- Run `assets/self-audit.md` as a checklist. **Do not present a dossier as complete until every item passes.** If any item fails, fix the dossier and re-run the gate — loop, don't ship.
55
-
56
- - **FACT / JUDGMENT tags** — every load-bearing claim is tagged `[FACT]` (verifiable, with a source) or `[JUDGMENT]` (your read). No untagged assertions.
57
- - **Count-symmetry on pros** — each option has roughly as many genuine "case FOR" points as the others; you have not starved alternatives to flatter your pick. Steelman every option, including rejected ones.
58
- - **Strongest case AGAINST my recommendation** — a required, non-empty section. Make it the best version, not a strawman.
59
- - **What would overturn it** — what would have to be true for the owner to reject your recommendation.
60
- - **Pre-mortem** — one paragraph: "six months later this failed because…".
61
- - **Agent-interest disclosure** — name what is easiest / faster / less risky *for you, the presenter*, and flag any place the recommendation benefits you more than the owner. State the owner interest (value, integrity, risk, future optionality, cost) separately.
62
-
63
- If any item cannot be honestly completed, label the dossier **Incomplete** and ask for the missing fact/criterion — never ask for validation of an incomplete dossier.
64
-
65
- ## Step 5 — Present, then capture the choice
66
-
67
- - **Decide + trace:** no question — state the assumption and proceed.
68
- - **Quick ask:** your modal-ask tool is the right surface.
69
- - **Full dossier:** present the dossier as **prose first**, scannable. **Then** end with ONE modal-ask whose options carry IDs (e.g. *approve recommendation / choose B / defer*) to capture the decision. **Never present a chip/option menu alone for a complex decision** — prose then a final ask, not a bare menu.
70
-
71
- ## Step 6 — Record in track
72
-
73
- Record when `.track/` exists or the owner approves tracking. **Never fabricate evidence.**
74
-
75
- - Use `track decision dossier <decisionId> --context <c>` for structured dossier prep.
76
- - After presentation/validation, append artifact evidence with **`track decision add-artifact`** — never rewrite the whole dossier just to append:
77
- - **h2a negotiation dossier:** `--kind h2a-decision-dossier --negotiation-ref <n> --dossier-hash <h>` — only with a *real* negotiationRef + dossierHash (and real comprehension evidence recorded via the h2a/ingest seam, never minted here).
78
- - **agent↔human text/view dossier** (before a DS renderer exists): `--kind rendered-view --view-ref <stable-id> [--source-dossier-hash <h>]`.
79
- - **Do NOT fake `comprehension[]`.** A chat reply is validation *context*, not a signed h2a attestation. The CLI does not let you mint one — and you must not.
80
- - **Do NOT record the bridge/relay principal as the human decider.** The attester (who comprehended) is distinct from the channel that relayed the write.
81
-
82
- ## DON'T
83
-
84
- - A 4-option chip menu on an irreversible / cross-repo / security / frozen-contract call (the exact mistake this skill exists to prevent).
85
- - "Which do you prefer?" with no stakes, costs, recommendation, or attendus.
86
- - Selling the preferred option by weakening alternatives.
87
- - False neutrality when you should just decide a reversible choice.
88
- - Hiding presenter convenience as owner value.
89
- - Faking `comprehension[]`, or recording a bridge principal as the decider.
90
- - Initializing or editing another repo, global rules, or entrypoints without explicit owner approval. When invoked in a repo, insert gracefully into that repo's existing methods and *recommend* tracking via track — never impose a global standard.
91
-
92
- ## Per-agent mapping (tool-neutral)
93
-
94
- | Capability | Claude | Codex | Gemini-agy |
95
- | --- | --- | --- | --- |
96
- | skill entrypoint | `~/.claude/skills/present-decision/SKILL.md` | `~/.codex/skills/present-decision/SKILL.md` (project entry `AGENTS.md`) | `~/.gemini/commands/present-decision.toml` (project entry `GEMINI.md`) |
97
- | modal-ask tool | `AskUserQuestion` | a numbered prose Q/R | a numbered prose Q/R |
98
- | code-search tool | Grep / Glob / Read | ripgrep / read | ripgrep / read |
99
- | second-opinion tool | sub-agent / `codex` + `opus` CLIs | `opus` CLI | second-model CLI |
100
-
101
- `AGENTS.md` is the canonical entrypoint; `CLAUDE.md` / `GEMINI.md` point back to it. Existing repo methods win on conflict.
8
+ ## Titles first
9
+
10
+ Name the subject and decision object in plain words, short enough to distinguish 50 dossiers.
11
+ Example: **Décision CI/CD Sentropic — sélection des tests et graphe des dépendances**.
12
+ Use one line; no slogan or thesis sentence. In HTML, the visible title and `<title>` must be identical.
13
+ Render it in small type in a thin band (at most 1.25rem), never a hero or a large heading occupying the screen.
14
+
15
+ ## 1. Choose the right effort
16
+
17
+ Start with what changes for the owner and what risk they bear. Keep their intention central;
18
+ an agent's technical inconvenience alone does not justify a dossier.
19
+
20
+ - **Decide + trace:** local, readily reversible, clear existing pattern, no meaningful security,
21
+ privacy, data-loss, frozen-contract or cross-owner impact, no genuinely balanced alternatives.
22
+ State the assumption and proceed within existing authorization.
23
+ - **Quick ask:** one missing owner preference, 2–3 clear options, cheap rollback, no hard trigger.
24
+ Give each option a one-line consequence.
25
+ - **Dossier:** irreversible or costly rollback; public/frozen contract or data-schema change;
26
+ security, privacy, access control, migration or retention; cross-repo/owner/agent impact;
27
+ meaningful cost, schedule or scope impact; strong disagreement or balanced alternatives;
28
+ unknown validation criteria that could change the outcome; or explicit owner request.
29
+ Two moderate triggers also qualify. Explain the concrete owner impact, not just the trigger.
30
+
31
+ Declare a reading budget proportional to the stakes. Each self-contained question, context,
32
+ options and recommendation must fit **2 minutes** (aim: 400 words). State question count and total time;
33
+ no choice or material risk hidden in optional evidence.
34
+
35
+ ## 2. Ground the decision
36
+
37
+ Read the request, repo rules, existing decisions and `.track/` via the repo reporting workflow.
38
+ Verify claims against sources. Do not edit other repos or global rules without authorization.
39
+
40
+ Quote the **literal owner request**, with date/source. Map demands to questions, options or
41
+ acceptance criteria; flag departures. Use `assets/owner-criteria.template.md`.
42
+
43
+ Complex design requires independent Codex + Opus reviews; surface disagreements. Missing required
44
+ review means **Incomplete**: only reversible preparation continues, no final validation.
45
+
46
+ ## 3. Write a short, self-contained question
47
+
48
+ Use `assets/dossier-template.md` for content. In plain words, include:
49
+
50
+ - the exact decision and boundary, the owner's expected benefit and risk;
51
+ - representative context: current behavior, a concrete problem/scenario, affected people,
52
+ constraints, sourced facts, assumptions and unknowns;
53
+ - **2–4 short options**, each with a one-line owner consequence including its main tradeoff,
54
+ cost and rollback; make every implied choice explicit, with **no nested sub-options**;
55
+ - one recommendation and why, its strongest objection and what would overturn it;
56
+ - the smallest answer needed and acceptance criteria tied to the owner's words.
57
+
58
+ Explain acronyms; replace opaque codes with meaningful names and source links. Distinguish
59
+ `[FACT]` (sourced) from `[JUDGMENT]`. Steelman alternatives. Separate presenter convenience from
60
+ owner value; include a brief failure scenario, no mandatory long appendix.
61
+
62
+ ## 4. Audit, present, record
63
+
64
+ Run `assets/self-audit.md`, fix failures and re-check before presenting.
65
+ If a necessary fact, criterion or review is missing, label **Incomplete** and ask for that input,
66
+ not approval of the decision.
67
+
68
+ **Default dossier output: portable Focus design-system HTML, never a claude.ai artifact.**
69
+ Run `h2a focus template -o dossier.json`; replace the example with a `DecisionDossierDocument`,
70
+ including the literal request, readable options and ecosystem diagrams (`source: "ecosystem:overview"`;
71
+ also `models`, `knowledge`, `interfaces`). Then run exactly:
72
+
73
+ ```sh
74
+ h2a focus build dossier.json -o dossier.html
75
+ ```
76
+
77
+ The builder refuses schema/readability failures before output. Deliver/link the single HTML file;
78
+ check offline phone reading, light/dark, cards and pinch zoom. See `docs/focus/portable-dossiers.md`.
79
+ Cards only prepare a local answer; they never record approval.
80
+ Before asking, read `assets/native-questions.md`: use the exposed native question tool after a decision
81
+ dossier with a diagram. If unavailable, leave consequential decisions pending. Decide-and-trace needs no ask.
82
+
83
+ Record when `.track/` exists or the owner approves tracking:
84
+
85
+ - Create: `track decision new --kind <kind> --title <title> --workspace <workspace> --targets <targets> --context <c> --options-json <json> --recommendation <optionId> --rationale <r>`.
86
+ - Revise or migrate: `track decision dossier <decisionId> --context <c> --options-json <json> --recommendation <optionId> --rationale <r>`.
87
+ JSON contains 2–4 options with `id`, `title`, `summary`; recommendation names one.
88
+ Context-only edits require an already structured dossier.
89
+ - Record the owner's choice: `track decision select <decisionId> <optionId>` (default `go`;
90
+ use `--outcome no-go` for rejection). Defer with `track decision outcome <decisionId> deferred`.
91
+ - Append evidence with `track decision add-artifact`, not a dossier rewrite.
92
+ For a human-facing dossier use `--kind rendered-view --view-ref <stable-id>`
93
+ (optionally `--source-dossier-hash <h>`).
94
+ - Use `--kind h2a-decision-dossier --negotiation-ref <n> --dossier-hash <h>` only for real
95
+ negotiation evidence. Never fabricate `comprehension[]`: a chat reply is not a signed attestation.
96
+ Never record a bridge/relay principal as the human decider.
97
+
98
+ This is the agent's human-facing method; h2a negotiations remain inter-agent. Existing repo methods win.
@@ -1,49 +1,46 @@
1
- # Decision dossier — <one-line title>
1
+ # Decision <subject> — <decision object>
2
2
 
3
- > Fill every section. Tag claims `[FACT]` (verifiable, cite source) vs `[JUDGMENT]` (your read).
4
- > Run `self-audit.md` before presenting. Label the dossier **Incomplete** if any item can't be honestly filled.
3
+ Default delivery: Focus design-system portable HTML, never a claude.ai artifact.
4
+ Create `dossier.json` with `h2a focus template -o dossier.json`; replace every example, then
5
+ run `h2a focus build dossier.json -o dossier.html`. Include a relevant ecosystem diagram
6
+ (`ecosystem:overview`, `ecosystem:models`, `ecosystem:knowledge`, `ecosystem:interfaces`).
7
+ Use the following as the content checklist for the document sections, not an alternative renderer.
5
8
 
6
- ## 1. Decision asked
7
- <one sentence>. Options: `A` <…>, `B` <…>, `C` <…>. Scope: <exact boundary>.
9
+ > Title: one short line, plain words, no slogan/thesis. HTML `<title>` identical to visible title;
10
+ > small type (at most 1.25rem), thin band, never a hero.
11
+ > Reading budget: <total minutes, proportional to stakes>; <number of questions>.
12
+ > Each question below is self-contained and readable in 2 minutes, including options/recommendation
13
+ > (aim for at most 400 words). Use plain words; explain acronyms; replace opaque codes with names.
8
14
 
9
- ## 2. Context
10
- - **Facts** `[FACT]`: …
11
- - **Assumptions**: …
12
- - **Unknowns**: …
15
+ ## Question — <explicit choice and boundary>
13
16
 
14
- ## 3. Stakes
15
- Why this is dossier-level (which hard trigger). Affected: repos / WPs / contracts / users.
17
+ **Owner request (<date>, <source>):** “<literal relevant passage>”
18
+ **What changes for you:** <benefit, risk borne by the owner, why their decision is needed>.
16
19
 
17
- ## 4. Options
20
+ **Context:** <current behavior and representative problem/scenario; affected people and constraints>.
21
+ **Facts [FACT]:** <decisive evidence with source>. **Assumptions / unknowns:** <what remains uncertain>.
18
22
 
19
- | id | choice | strongest case FOR | strongest case AGAINST | cost | reversibility | what would make it win |
20
- |----|--------|--------------------|------------------------|------|---------------|------------------------|
21
- | A | | | | | | |
22
- | B | | | | | | |
23
- | C | | | | | | |
23
+ **Diagram:** <show the decision's flow, options or consequences before calling the native question tool>.
24
24
 
25
- (One row per option, including rejected ones. Count-symmetry: no option starved of genuine FOR points.)
25
+ | Option | Choice | Owner consequence: main benefit and drawback | Cost / rollback |
26
+ | --- | --- | --- | --- |
27
+ | A | <plain name> | <one line> | <brief> |
28
+ | B | <plain name> | <one line> | <brief> |
26
29
 
27
- ## 5. Recommendation + rationale
28
- **Recommend: <id | defer>.** Decisive judgment `[JUDGMENT]`: …
30
+ Use 2–4 short options with an honest case for each, including rejected alternatives.
31
+ State every implied choice; no nested sub-options. If another decision is needed, give it its own
32
+ self-contained question within the declared total budget. Explain dependencies between questions.
29
33
 
30
- ## 6. Reversibility / cost
31
- Rollback path · sunk cost · migration / cleanup cost · time estimate.
34
+ **Recommendation [JUDGMENT]:** <one option and decisive reason>.
35
+ **Strongest objection / what would overturn it:** <brief>.
36
+ **Failure scenario:** <how this could fail and the owner's exposure>.
37
+ **Presenter convenience:** <what helps the agent; any divergence from owner value>.
32
38
 
33
- ## 7. Attendus (the owner's validation criteria)
39
+ **Request trace / acceptance:** <each demand → option or criterion; explicit gaps/departures>.
40
+ **Answer needed:** <smallest concrete choice>.
41
+ Use the exposed native question tool after presenting this dossier; never a bare text question.
42
+ If unavailable, explain the limitation and leave the decision pending.
34
43
 
35
- | criterion | source | covered by | gap |
36
- |-----------|--------|------------|-----|
37
- | | | | |
38
-
39
- ## 8. What I need from you
40
- The smallest valid decision, or the one missing criterion.
41
-
42
- ---
43
-
44
- ### Anti-bias appendix (from the self-audit gate)
45
- - **Strongest case AGAINST my recommendation:** …
46
- - **What would overturn it:** …
47
- - **Pre-mortem** ("six months later this failed because…"): …
48
- - **Agent interest** (easiest/faster/less risky for me): … — **where it diverges from owner value:** …
49
- - **Owner interest** (value · integrity · risk · future optionality · cost): …
44
+ Supporting evidence: <optional links; no choices or material risks hidden here>.
45
+ Required reviews: <independent Codex + Opus findings/disagreement for complex design, if applicable>.
46
+ Run `self-audit.md`; mark **Incomplete** for missing necessary input/review, and request input, not approval.
@@ -0,0 +1,18 @@
1
+ ## Questions for the human
2
+
3
+ When a useful clarification needs a human answer, use the native structured-question tool exposed in the current mode of the current host:
4
+
5
+ | Host | Native question tool |
6
+ | --- | --- |
7
+ | claude | `AskUserQuestion` |
8
+ | codex | `request_user_input` |
9
+ | muse | `request_user_input` |
10
+ | agy | `ask_question` |
11
+ | gemini | `ask_user` |
12
+ | vibe | `ask_user_question` |
13
+
14
+ Codex may expose `request_user_input_async` instead; use the variant actually available. Gemini disallows `ask_user` in non-interactive mode; Muse removes `request_user_input` in `--yolo` or when disabled. For other hosts, use their exposed native question tool without guessing its name.
15
+
16
+ Offer clear choices and preserve native free-text input. Do not change modes or permissions to obtain a tool. A preference is not authorization; existing authorization remains valid. Continue independent work when the mode allows.
17
+
18
+ For a decision with stakes, present a decision dossier with a diagram before the native question; never a bare text question or an unexplained option menu. If the native tool is unavailable, explain the limitation and leave the decision pending. Plain text is acceptable only for a low-stakes clarification when no native question tool is available.
@@ -1,19 +1,14 @@
1
- # Owner validation criteria — seed checklist
1
+ # Owner criteria — per decision
2
2
 
3
- > Per-decision, not a global standard. Source the live criteria from the request, repo rules,
4
- > prior owner decisions, existing track decisions/dossiers, and `track report` attendus.
5
- > Persist per decision/dossier; never edit repo rules unless the owner explicitly asks.
3
+ Source live criteria from the literal request (quote with date/source), applicable rules and prior
4
+ owner decisions. Include only requirements about the subject being decided: intended benefit,
5
+ acceptable risk, cost, rollback or affected people, when sourced. Do not invent owner approval.
6
+ Check dossier presentation separately with `self-audit.md`; do not copy its rules into this table.
6
7
 
7
- | criterion | source | covered by | gap |
8
- |-----------|--------|------------|-----|
9
- | **Reversibility** — is the change reversible, and is the rollback path stated? | standing rule | | |
10
- | **Cross-repo owners** — are all affected repos / owners identified and consulted? | standing rule | | |
11
- | **UAT before merge** — are the user-acceptance tests defined and green *before* merge? | standing rule | | |
12
- | **Language** — discussion in FR; artifacts (code, SKILL.md, commits) in EN. | standing rule (FR-conv / EN-artifacts) | | |
13
- | <decision-specific criterion> | | | |
8
+ | Owner criterion | Request/source | Addressed by | Gap or departure |
9
+ | --- | --- | --- | --- |
10
+ | <specific demand, quoted literally> | <date/source> | | |
14
11
 
15
- ## How to use
16
- 1. Copy this table into the dossier's **§7 Attendus**.
17
- 2. Drop seed rows that don't apply; add decision-specific rows.
18
- 3. Fill `covered by` from the dossier; any non-empty `gap` blocks "complete".
19
- 4. If criteria are genuinely uncertain, ask "what am I missing?" — otherwise ask for the concrete decision.
12
+ Map every demand to its question, option or acceptance check. Explain any departure explicitly.
13
+ An unresolved gap blocks completion unless it is the explicit decision asked. Keep discussion in the
14
+ owner's language and repository artifacts in the repository's language. Never edit global rules here.
@@ -1,24 +1,26 @@
1
- # SELF-AUDIT GATE — run before presenting any full dossier
1
+ # Dossier self-audit
2
2
 
3
- Loop: run the checklist → if any item fails, FIX the dossier → re-run. Do not present until every box is checked.
4
- If an item cannot be honestly completed, label the dossier **Incomplete** and ask for the missing fact/criterion — never ask for validation of an incomplete dossier.
3
+ Fix failures. Missing evidence, criteria or review means
4
+ **Incomplete**: request input, never final validation.
5
5
 
6
- ## Checklist
7
-
8
- - [ ] **FACT / JUDGMENT tags** — every load-bearing claim is tagged `[FACT]` (verifiable, source cited) or `[JUDGMENT]` (my read). No untagged assertions.
9
- - [ ] **Count-symmetry on pros** — each option (incl. rejected) has roughly as many genuine "case FOR" points as the others. I have not starved alternatives to flatter my pick.
10
- - [ ] **Strongest case AGAINST my recommendation** — present, non-empty, and the *best* version (not a strawman).
11
- - [ ] **What would overturn it** — what would have to be true for the owner to reject my recommendation.
12
- - [ ] **Pre-mortem** — one paragraph: "six months later this failed because…".
13
- - [ ] **Agent-interest disclosure** — I named what is easiest / faster / less risky *for me, the presenter*, and flagged any place the recommendation benefits me more than the owner.
14
- - [ ] **Owner interest stated separately** — value · integrity · risk · future optionality · cost.
15
- - [ ] **Attendus covered** — every owner criterion has a `covered by`; no open `gap` (or the gap is the explicit decision asked).
16
- - [ ] **Double-instruction** — for a complex design decision, independent Codex + Opus passes were obtained and synthesized (disagreements surfaced, not blended away). If absent on a hard-trigger call: dossier marked **Incomplete**.
17
- - [ ] **No fabricated evidence** — no faked `comprehension[]`; no bridge principal recorded as the decider.
18
-
19
- ## Red flags — STOP and rebuild the dossier
20
- - The "case AGAINST" reads weaker than the "case FOR" for the same option.
21
- - One option has visibly fewer FOR points and I can't justify why.
22
- - A claim I'm leaning on has no source and isn't tagged `[JUDGMENT]`.
23
- - The recommendation happens to be the cheapest path *for me* and I haven't said so.
24
- - I'm about to present a chip/option menu with no prose, stakes, or attendus.
6
+ - [ ] **Title first:** subject and decision object in plain words; distinguishable among
7
+ 50 dossiers; one short line, no slogan/thesis. HTML `<title>` matches the visible title;
8
+ small type (≤1.25rem), thin band, no hero.
9
+ - [ ] **Owner interest:** states owner benefit/risk and intention; never justifies by agent inconvenience or false problems.
10
+ - [ ] **Reading budget:** declared total time fits the stakes; every question, including
11
+ context, 2–4 short options and recommendation, is readable in 2 minutes (aim: at most 400 words).
12
+ - [ ] **Self-contained:** representative scenario, current behavior, affected people and constraints
13
+ are understandable without links. Plain words; acronyms explained; no opaque codes masking meaning.
14
+ - [ ] **No hidden decisions:** every implied choice is explicit; no nested sub-options. Additional
15
+ questions stand alone, with dependencies stated. Supporting evidence hides no choice or material risk.
16
+ - [ ] **Traceability:** dated/sourced literal owner request quoted; every demand maps to a question,
17
+ option or criterion. Departures are explicit; each criterion is covered or is the decision asked.
18
+ - [ ] **Options and recommendation:** one-line owner consequence, cost/rollback and strongest honest case per option.
19
+ Recommendation, strongest objection and overturning condition stated.
20
+ - [ ] **Evidence and bias:** decisive claims marked `[FACT]` with sources or `[JUDGMENT]`;
21
+ assumptions/unknowns separate; brief failure scenario; presenter convenience separate from owner value.
22
+ - [ ] **Reviews:** independent Codex + Opus passes for complex design; disagreements surfaced.
23
+ - [ ] **Delivery/capture:** default `h2a focus build dossier.json -o dossier.html`; portable Focus HTML,
24
+ ecosystem canvas, light/dark, phone pinch zoom; no claude.ai artifact. Dossier with diagram before the native question tool;
25
+ never a bare text question. If unavailable, explain and leave the decision pending.
26
+ Local selections; no fabricated `comprehension[]` or relay as decider.
@@ -141,10 +141,29 @@ reversible prep (drafting the next proposal) may continue meanwhile.
141
141
  | Capability | Claude | Codex | Gemini-agy |
142
142
  | --- | --- | --- | --- |
143
143
  | skill entrypoint | `~/.claude/skills/propose-workpackages/SKILL.md` | `~/.codex/skills/propose-workpackages/SKILL.md` (project entry `AGENTS.md`) | `~/.gemini/commands/propose-workpackages.toml` (project entry `GEMINI.md`) |
144
- | modal-ask tool | `AskUserQuestion` | a numbered prose Q/R | a numbered prose Q/R |
144
+ | modal-ask tool | See native question mapping below | See native question mapping below | See native question mapping below |
145
145
  | code-search tool | Grep / Glob / Read | ripgrep / read | ripgrep / read |
146
146
  | second-opinion tool | sub-agent / `codex` + `opus` CLIs | `opus` CLI | second-model CLI |
147
147
  | decision presenter | compose `present-decision` | compose `present-decision` | compose `present-decision` |
148
148
 
149
149
  `AGENTS.md` is the canonical entrypoint; `CLAUDE.md` / `GEMINI.md` point back to it. Existing repo methods
150
150
  win on conflict.
151
+
152
+ ## Questions for the human
153
+
154
+ When a useful clarification needs a human answer, use the native structured-question tool exposed in the current mode of the current host:
155
+
156
+ | Host | Native question tool |
157
+ | --- | --- |
158
+ | claude | `AskUserQuestion` |
159
+ | codex | `request_user_input` |
160
+ | muse | `request_user_input` |
161
+ | agy | `ask_question` |
162
+ | gemini | `ask_user` |
163
+ | vibe | `ask_user_question` |
164
+
165
+ Codex may expose `request_user_input_async` instead; use the variant actually available. Gemini disallows `ask_user` in non-interactive mode; Muse removes `request_user_input` in `--yolo` or when disabled. For other hosts, use their exposed native question tool without guessing its name.
166
+
167
+ Offer clear choices and preserve native free-text input. Do not change modes or permissions to obtain a tool. A preference is not authorization; existing authorization remains valid. Continue independent work when the mode allows.
168
+
169
+ For a decision with stakes, present a decision dossier with a diagram before the native question; never a bare text question or an unexplained option menu. If the native tool is unavailable, explain the limitation and leave the decision pending. Plain text is acceptable only for a low-stakes clarification when no native question tool is available.
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: track-report
3
+ description: Render owner requests as the five-column Track status table, preserving decision questions, consequences and dossier links.
4
+ ---
5
+
6
+ # Owner status report
7
+
8
+ Use the fresh binary built in this checkout, never an installed h2a executable:
9
+
10
+ ```bash
11
+ npm ci
12
+ npm run build -w @sentropic/track
13
+ track_bin="$(pwd -P)/packages/track/dist/cli/bin.js"
14
+ node "$track_bin" report --status-table --format md
15
+ node "$track_bin" report --status-table --format json
16
+ node "$track_bin" decision ls --outcome pending --format json
17
+ ```
18
+
19
+ All three reads are local, deterministic projections of the log. No model, gateway or native host is
20
+ consulted. `--track-dir <directory-containing-events.jsonl>` redirects reads AND writes; only use read
21
+ verbs on an owner's register. `--scope <container-id|code|label>` selects a subtree, including nested
22
+ requests and their pending decisions, in text, Markdown or JSON. Capture the journal head and acceptance
23
+ baseline. A selected period labels the evidence window; the status table always shows current requests,
24
+ including completed and suspended requests. It does not silently omit an old request.
25
+
26
+ The owner report now uses `--status-table`. The earlier default four-section conductor remains available
27
+ for compatibility. This view replaces its FAIT / À-FAIRE activity tables with DEMANDES and retains
28
+ **DÉCISIONS** (including exact alternatives and recommendation) and **RECOMMANDATION**. Never remove the
29
+ decision expectations to make the table shorter. `--flat`, `--inline`, `--width`, `--raw`, `--level`
30
+ and `--active-roster` cannot be combined with this view. Resolve its `#` with
31
+ `report --status-table --resolve <number>` using the same scope, baseline and journal revision. The
32
+ machine resolution block maps these exact numbers, including completed requests. Numbers are positional
33
+ for this report; JSON row `id` is the durable action identity. Legacy reports keep their `[n.m]` handles.
34
+
35
+ ## Exactly five columns
36
+
37
+ | # | Ta demande | Étape | Statut | Où ça en est / prochaine action |
38
+ | --- | --- | --- | --- | --- |
39
+ | 1 | Je veux retrouver mes agents (PR #42) | dev | 🔴 | La recette de reconnexion échoue. Proposition : corriger la résolution et rejouer cette recette. Ensuite : ouvrir le correctif. |
40
+
41
+ - **#**: active requests before closed requests; then blocked, owner decision, unforeseen issue,
42
+ progressing. Within a class, apply canonical urgency to every request, then priority and stable item id,
43
+ including requests outside a WP or backed by an engagement. Do not reorder by version.
44
+ - **Ta demande**: the owner's purpose in their words. Prefer the event's `ownerRequest`, then the linked
45
+ demand's immutable `raw.text`, then an explicitly labelled `Phrase owner : « … »`, `Phrases owner :
46
+ « … »` or `Phrase(s) owner : « … »` quote, including parenthesized date/relay qualifiers. Use the first
47
+ nonblank quote, trimming its outer whitespace. Otherwise keep the historical title and flag
48
+ its provenance in the action cell; investigate the actual quote before serving a contextual report.
49
+ A version is never a subject. Versions and PR numbers support a purpose **in parentheses**. The
50
+ renderer flags version/reference-only subjects `version-only-subject`; do not replace them with a
51
+ fabricated purpose. Do not promote a delivery version into a new owner concern.
52
+ - **Étape**: only `spec`, `dev`, `PR`, `mergé`, `déployé`, as defined below. It is independent of color.
53
+ - **Statut**: exactly one of the four colors below, with no fifth color for waiting or suspension.
54
+ - **Où ça en est / prochaine action**: verified recorded facts first, then **« Ensuite : … »** naming
55
+ the concrete next gesture. Include the observed commit, CI result and reviewer verdict only when
56
+ actually checked; cite their evidence. `waitingOn` renders “En attente de …”; `suspended` renders
57
+ “Suspendu : …” here. A lane wait uses the actual underlying color: blocked if it prevents progress,
58
+ progressing if the planned wait is conforming; owner arbitration uses blue. Suspension is not a color.
59
+
60
+ ## Étape is evidence, not a synonym for completion
61
+
62
+ | Étape | Meaning and derivation |
63
+ | --- | --- |
64
+ | spec | Request/specification work, no recorded implementation start or stronger structured evidence. `item.created`, spec transitions and a to-do realization stay here; “specified” alone does not mean dev. |
65
+ | dev | Implementation started (`realization.transition` to `in-progress`) or recorded done without delivery evidence. Done does not prove a PR, merge or deployment. A reopening returns old delivery evidence to dev until re-established. |
66
+ | PR | PR observed open; explicit stage event with evidence, or an item link with kind `pr-open`. A generic `pr` URL alone proves no state. |
67
+ | mergé | PR observed merged; explicit stage event with merge evidence, or item link kind `pr-merged`. CI success alone does not prove merge. |
68
+ | déployé | Deployment observed in a named target environment; explicit stage event with deployment receipt, or item link kind `deployed`. A release/tag/npm publication alone proves no deployment. |
69
+
70
+ `stage: {value, evidence}` on the latest `item.report-updated` overrides older creation links; evidence
71
+ is mandatory for PR/mergé/déployé. Otherwise the strongest explicit link kind wins, then realization.
72
+ `release` and `release-published` are supporting references only. Verify PR state through its provider
73
+ and deployment through its receipt before recording either; include state, commit/environment and
74
+ observation time in the evidence locator/description. Track records these assertions and their event
75
+ `at`/`by`; it never visits the URL or attests the external state. Old advanced-stage evidence preceding
76
+ a reopening is flagged and falls back to dev. Stage links are item-specific, never inherited from a WP.
77
+
78
+ ## Exactly four colors
79
+
80
+ | Color | Meaning / obligation |
81
+ | --- | --- |
82
+ | 🟢 | Progressing and conforming, explicitly recorded as `progressing`; also a cancelled/rejected request with no live gate, whose withdrawal is recorded. Absence of a blocker does not establish conformity for active or done requests. |
83
+ | 🟠 | Unforeseen issue (`unforeseen`); name the issue and its treatment. Legacy missing classification is a documentary issue: “statut de conformité non renseigné”, then verify and record it. |
84
+ | 🔴 | Blocked (`blocked`); **a concrete proposal is mandatory**. A missing proposal is flagged in the row and JSON (`missing-proposal`), never accepted as a conforming report. |
85
+ | 🔵 | Owner decision awaited (`decision-awaited`); exact question, options with each consequence, ≤2 minute reading summary, and clickable dossier link. |
86
+
87
+ Effective dependency/manual blockers or failed acceptance force red even over stale declared green.
88
+ Reopening invalidates every old report status, fact, action, proposal, wait, suspension and expectation;
89
+ the owner request remains. Show the reopening reason and require renewed qualification
90
+ (`status-predates-reopening`). A fresh report without an explicit stage uses dev instead of reviving old
91
+ delivery links; a fresh evidenced stage can establish delivery again.
92
+ Pending or deferred linked decisions force blue unless a separate blocker/failed acceptance forces red. Conflicts
93
+ are visibly flagged. Expectations for pending native decisions use the current dossier's subject/title,
94
+ options' titles/summaries, `readability.readingBudgetMinutes` and latest rendered-view artifact (or `dossier`
95
+ link). If absent, explicit expectations may fill the gap **only when question/options match** that decision.
96
+ With multiple unresolved decisions, one supplied summary must match at least one; it cannot fill the others.
97
+ The live
98
+ dossier wins; a settled dossier cannot remain a blue decision. Never infer options from prose context.
99
+
100
+ Every blue row must be answerable in two minutes: state the exact question, at least two distinct options,
101
+ the consequence of each, and the dossier link. `readingMinutes` must be >0 and ≤2, with a maximum of 400
102
+ summary words. This is a size/budget check, not proof of human comprehension. Missing presentation is
103
+ flagged `missing-decision-expectations`; complete the dossier before asking “ton GO”. Preserve the
104
+ existing **DÉCISIONS/attendus** and recorded recommendations; never turn a technical next action into an
105
+ owner decision. A blue row has “Ensuite : ton GO …”; execution waits for the actual answer.
106
+
107
+ ## Persisting the new fields
108
+
109
+ Use `node "$track_bin" item report-set <item-id> --json '<object>'` only on a register you are authorized
110
+ to write. It appends **one `item.report-updated` event** on the existing item, preserving the integrity
111
+ chain. The event is a **full replacement**, not a patch: omitted fields clear prior report metadata;
112
+ `{}` resets metadata. It changes no realization, acceptance, priority or decision outcome. Supported keys:
113
+
114
+ ```json
115
+ {
116
+ "ownerRequest": "Je veux retrouver mes agents (PR #42)",
117
+ "stage": {"value": "PR", "evidence": "PR #42 observed OPEN at commit abc, 2026-10-17; https://example.test/pr/42"},
118
+ "status": "decision-awaited",
119
+ "facts": "Le partage est à décider avant de finaliser la connexion.",
120
+ "proposal": "Reprendre la connexion après le choix du propriétaire.",
121
+ "decisionExpectations": {
122
+ "question": "Partager ou isoler les connexions ?",
123
+ "options": [{"label": "Partager", "consequence": "Une connexion commune."}, {"label": "Isoler", "consequence": "Une connexion par session."}],
124
+ "dossier": "https://example.test/dossier/42",
125
+ "readingMinutes": 2
126
+ },
127
+ "nextAction": "Ouvrir le correctif de connexion.",
128
+ "waitingOn": "la piste de transport",
129
+ "suspended": "reprise après arbitrage de capacité"
130
+ }
131
+ ```
132
+
133
+ Historical events and hashes remain untouched; old items have no `report` field. Invalid declarations,
134
+ missing proposals, missing decision expectations and version-only purposes stay visible in text,
135
+ Markdown and JSON `statusTable.rows[].issues`. A renderer flag is an instruction to repair the report,
136
+ not a valid owner decision or permission to invent a fact. The skill's contextual synthesis adds only
137
+ facts it has independently checked, with provenance; it cannot claim a deterministic check verified prose.