@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.
- package/README.md +10 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +34 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/install-skills.d.ts.map +1 -1
- package/dist/cli/install-skills.js +9 -3
- package/dist/cli/install-skills.js.map +1 -1
- package/dist/events/types.d.ts +1 -1
- package/dist/events/types.d.ts.map +1 -1
- package/dist/events/types.js +1 -0
- package/dist/events/types.js.map +1 -1
- package/dist/focus-vendor/registry/entries.v1.json +4 -4
- package/dist/focus-vendor/render/html.d.ts.map +1 -1
- package/dist/focus-vendor/render/html.js +12 -1
- package/dist/focus-vendor/render/html.js.map +1 -1
- package/dist/focus-vendor/render/md.d.ts.map +1 -1
- package/dist/focus-vendor/render/md.js +12 -1
- package/dist/focus-vendor/render/md.js.map +1 -1
- package/dist/focus-vendor/render/presentation.d.ts +13 -0
- package/dist/focus-vendor/render/presentation.d.ts.map +1 -0
- package/dist/focus-vendor/render/presentation.js +25 -0
- package/dist/focus-vendor/render/presentation.js.map +1 -0
- package/dist/focus-vendor/render/terminal.d.ts.map +1 -1
- package/dist/focus-vendor/render/terminal.js +12 -1
- package/dist/focus-vendor/render/terminal.js.map +1 -1
- package/dist/focus-vendor/track/index.d.ts +23 -27
- package/dist/focus-vendor/track/index.d.ts.map +1 -1
- package/dist/focus-vendor/track/index.js +24 -10
- package/dist/focus-vendor/track/index.js.map +1 -1
- package/dist/focus-vendor/validation/index.d.ts +87 -19
- package/dist/focus-vendor/validation/index.d.ts.map +1 -1
- package/dist/focus-vendor/validation/index.js +95 -10
- package/dist/focus-vendor/validation/index.js.map +1 -1
- package/dist/focus-vendor/validation/readability.d.ts +22 -0
- package/dist/focus-vendor/validation/readability.d.ts.map +1 -0
- package/dist/focus-vendor/validation/readability.js +244 -0
- package/dist/focus-vendor/validation/readability.js.map +1 -0
- package/dist/model/decision.d.ts +19 -0
- package/dist/model/decision.d.ts.map +1 -1
- package/dist/model/decision.js.map +1 -1
- package/dist/model/index.d.ts +1 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/index.js +1 -0
- package/dist/model/index.js.map +1 -1
- package/dist/model/item.d.ts +2 -0
- package/dist/model/item.d.ts.map +1 -1
- package/dist/model/item.js.map +1 -1
- package/dist/model/report-status.d.ts +32 -0
- package/dist/model/report-status.d.ts.map +1 -0
- package/dist/model/report-status.js +60 -0
- package/dist/model/report-status.js.map +1 -0
- package/dist/read/commands.d.ts +2 -2
- package/dist/read/commands.d.ts.map +1 -1
- package/dist/read/commands.js +7 -3
- package/dist/read/commands.js.map +1 -1
- package/dist/report/directive.d.ts +5 -1
- package/dist/report/directive.d.ts.map +1 -1
- package/dist/report/directive.js +4 -0
- package/dist/report/directive.js.map +1 -1
- package/dist/report/format.d.ts +10 -1
- package/dist/report/format.d.ts.map +1 -1
- package/dist/report/format.js +21 -2
- package/dist/report/format.js.map +1 -1
- package/dist/report/status-table.d.ts +46 -0
- package/dist/report/status-table.d.ts.map +1 -0
- package/dist/report/status-table.js +211 -0
- package/dist/report/status-table.js.map +1 -0
- package/dist/state/fold.d.ts.map +1 -1
- package/dist/state/fold.js +6 -0
- package/dist/state/fold.js.map +1 -1
- package/dist/track.d.ts +3 -0
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +8 -0
- package/dist/track.js.map +1 -1
- package/package.json +1 -1
- package/skills/present-decision/SKILL.md +92 -95
- package/skills/present-decision/assets/dossier-template.md +35 -38
- package/skills/present-decision/assets/native-questions.md +18 -0
- package/skills/present-decision/assets/owner-criteria.template.md +11 -16
- package/skills/present-decision/assets/self-audit.md +24 -22
- package/skills/propose-workpackages/SKILL.md +20 -1
- package/skills/track-report/SKILL.md +137 -0
|
@@ -1,101 +1,98 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: present-decision
|
|
3
|
-
description:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Use `assets/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
|
1
|
+
# Decision <subject> — <decision object>
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
##
|
|
10
|
-
- **Facts** `[FACT]`: …
|
|
11
|
-
- **Assumptions**: …
|
|
12
|
-
- **Unknowns**: …
|
|
15
|
+
## Question — <explicit choice and boundary>
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1
|
+
# Owner criteria — per decision
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 |
|
|
8
|
-
|
|
9
|
-
|
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
#
|
|
1
|
+
# Dossier self-audit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Fix failures. Missing evidence, criteria or review means
|
|
4
|
+
**Incomplete**: request input, never final validation.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- [ ] **
|
|
10
|
-
- [ ] **
|
|
11
|
-
|
|
12
|
-
- [ ] **
|
|
13
|
-
|
|
14
|
-
- [ ] **
|
|
15
|
-
|
|
16
|
-
- [ ] **
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
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 |
|
|
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.
|