@sentropic/track 0.98.6 → 0.98.7-rc.2
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/dist/focus-vendor/registry/definitions.d.ts +68 -0
- package/dist/focus-vendor/registry/definitions.d.ts.map +1 -0
- package/dist/focus-vendor/registry/definitions.js +501 -0
- package/dist/focus-vendor/registry/definitions.js.map +1 -0
- package/dist/focus-vendor/registry/entries.v1.json +127 -0
- 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 +175 -0
- package/dist/focus-vendor/validation/index.d.ts.map +1 -0
- package/dist/focus-vendor/validation/index.js +485 -0
- package/dist/focus-vendor/validation/index.js.map +1 -0
- 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 +230 -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/package.json +2 -2
- package/skills/present-decision/SKILL.md +89 -95
- package/skills/present-decision/assets/dossier-template.md +27 -40
- package/skills/present-decision/assets/owner-criteria.template.md +11 -16
- package/skills/present-decision/assets/self-audit.md +23 -22
|
@@ -1,101 +1,95 @@
|
|
|
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
|
-
2.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
| 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 total reading-time budget proportional to the stakes. Each question, including its
|
|
32
|
+
context, options and recommendation, must be readable in **2 minutes** (aim for at most 400 words).
|
|
33
|
+
Prefer one question. For several, state their count and total time; make each self-contained.
|
|
34
|
+
Keep supporting evidence separate and optional to read, without hiding a choice or material risk there.
|
|
35
|
+
|
|
36
|
+
## 2. Ground the decision
|
|
37
|
+
|
|
38
|
+
Read the request, applicable repo rules and existing decisions; verify claims against sources.
|
|
39
|
+
When `.track/` exists, read its state using the repo's reporting workflow. Do not edit other repos
|
|
40
|
+
or global rules without authorization.
|
|
41
|
+
|
|
42
|
+
Quote the **literal owner request**, with date/source, and map each demand to the question,
|
|
43
|
+
option or acceptance criterion that addresses it. Quote the relevant passage without paraphrasing;
|
|
44
|
+
link longer context. Flag any departure from the request explicitly.
|
|
45
|
+
Use `assets/owner-criteria.template.md` for applicable criteria.
|
|
46
|
+
|
|
47
|
+
For complex design decisions, obtain independent Codex + Opus reviews before recommending.
|
|
48
|
+
Use the host's available second-opinion tool; surface disagreements. Reviews bound risks and
|
|
49
|
+
check owner intent; they must not inflate the dossier. A missing required review makes it
|
|
50
|
+
**Incomplete**; only reversible preparation may continue, and no final validation is requested.
|
|
51
|
+
|
|
52
|
+
## 3. Write a short, self-contained question
|
|
53
|
+
|
|
54
|
+
Use `assets/dossier-template.md`. In plain words, include:
|
|
55
|
+
|
|
56
|
+
- the exact decision and boundary, the owner's expected benefit and risk;
|
|
57
|
+
- representative context: current behavior, a concrete problem/scenario, affected people,
|
|
58
|
+
constraints, sourced facts, assumptions and unknowns;
|
|
59
|
+
- **2–4 short options**, each with a one-line owner consequence including its main tradeoff,
|
|
60
|
+
cost and rollback; make every implied choice explicit, with **no nested sub-options**;
|
|
61
|
+
- one recommendation and why, its strongest objection and what would overturn it;
|
|
62
|
+
- the smallest answer needed and acceptance criteria tied to the owner's words.
|
|
63
|
+
|
|
64
|
+
Spell out necessary acronyms on first use. Replace opaque codes such as `L06b` with meaningful
|
|
65
|
+
names; keep tracking identifiers in source links. A reader must understand the question without
|
|
66
|
+
opening those links. Separate `[FACT]` (with source) from `[JUDGMENT]` on decisive claims.
|
|
67
|
+
Present each alternative's strongest honest case, including a rejected alternative; avoid padding
|
|
68
|
+
pros to match counts. State presenter convenience separately from owner value, and include a brief
|
|
69
|
+
failure scenario. Integrate these safeguards into the question; no mandatory long appendix.
|
|
70
|
+
|
|
71
|
+
## 4. Audit, present, record
|
|
72
|
+
|
|
73
|
+
Run `assets/self-audit.md`, fix failures and re-check before presenting.
|
|
74
|
+
If a necessary fact, criterion or review is missing, label **Incomplete** and ask for that input,
|
|
75
|
+
not approval of the decision.
|
|
76
|
+
|
|
77
|
+
Present the context and options before one final ask using the host's question tool or numbered
|
|
78
|
+
prose. A bare option menu is insufficient for consequential decisions. Decide-and-trace needs no ask.
|
|
79
|
+
|
|
80
|
+
Record when `.track/` exists or the owner approves tracking:
|
|
81
|
+
|
|
82
|
+
- Create: `track decision new --kind <kind> --title <title> --workspace <workspace> --targets <targets> --context <c> --options-json <json> --recommendation <optionId> --rationale <r>`.
|
|
83
|
+
- Revise or migrate: `track decision dossier <decisionId> --context <c> --options-json <json> --recommendation <optionId> --rationale <r>`.
|
|
84
|
+
JSON contains 2–4 options with `id`, `title`, `summary`; recommendation names one.
|
|
85
|
+
Context-only edits require an already structured dossier.
|
|
86
|
+
- Record the owner's choice: `track decision select <decisionId> <optionId>` (default `go`;
|
|
87
|
+
use `--outcome no-go` for rejection). Defer with `track decision outcome <decisionId> deferred`.
|
|
88
|
+
- Append evidence with `track decision add-artifact`, not a dossier rewrite.
|
|
89
|
+
For a human-facing dossier use `--kind rendered-view --view-ref <stable-id>`
|
|
90
|
+
(optionally `--source-dossier-hash <h>`).
|
|
91
|
+
- Use `--kind h2a-decision-dossier --negotiation-ref <n> --dossier-hash <h>` only for real
|
|
92
|
+
negotiation evidence. Never fabricate `comprehension[]`: a chat reply is not a signed attestation.
|
|
93
|
+
Never record a bridge/relay principal as the human decider.
|
|
94
|
+
|
|
95
|
+
This is the agent's human-facing method; h2a negotiations remain inter-agent. Existing repo methods win.
|
|
@@ -1,49 +1,36 @@
|
|
|
1
|
-
# Decision
|
|
1
|
+
# Decision <subject> — <decision object>
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
3
|
+
> Title: one short line, plain words, no slogan/thesis. HTML `<title>` identical to visible title;
|
|
4
|
+
> small type (at most 1.25rem), thin band, never a hero.
|
|
5
|
+
> Reading budget: <total minutes, proportional to stakes>; <number of questions>.
|
|
6
|
+
> Each question below is self-contained and readable in 2 minutes, including options/recommendation
|
|
7
|
+
> (aim for at most 400 words). Use plain words; explain acronyms; replace opaque codes with names.
|
|
5
8
|
|
|
6
|
-
##
|
|
7
|
-
<one sentence>. Options: `A` <…>, `B` <…>, `C` <…>. Scope: <exact boundary>.
|
|
9
|
+
## Question — <explicit choice and boundary>
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- **Assumptions**: …
|
|
12
|
-
- **Unknowns**: …
|
|
11
|
+
**Owner request (<date>, <source>):** “<literal relevant passage>”
|
|
12
|
+
**What changes for you:** <benefit, risk borne by the owner, why their decision is needed>.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
**Context:** <current behavior and representative problem/scenario; affected people and constraints>.
|
|
15
|
+
**Facts [FACT]:** <decisive evidence with source>. **Assumptions / unknowns:** <what remains uncertain>.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
| Option | Choice | Owner consequence: main benefit and drawback | Cost / rollback |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| A | <plain name> | <one line> | <brief> |
|
|
20
|
+
| B | <plain name> | <one line> | <brief> |
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
| B | | | | | | |
|
|
23
|
-
| C | | | | | | |
|
|
22
|
+
Use 2–4 short options with an honest case for each, including rejected alternatives.
|
|
23
|
+
State every implied choice; no nested sub-options. If another decision is needed, give it its own
|
|
24
|
+
self-contained question within the declared total budget. Explain dependencies between questions.
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
**Recommendation [JUDGMENT]:** <one option and decisive reason>.
|
|
27
|
+
**Strongest objection / what would overturn it:** <brief>.
|
|
28
|
+
**Failure scenario:** <how this could fail and the owner's exposure>.
|
|
29
|
+
**Presenter convenience:** <what helps the agent; any divergence from owner value>.
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
**
|
|
31
|
+
**Request trace / acceptance:** <each demand → option or criterion; explicit gaps/departures>.
|
|
32
|
+
**Answer needed:** <smallest concrete choice>.
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## 7. Attendus (the owner's validation criteria)
|
|
34
|
-
|
|
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): …
|
|
34
|
+
Supporting evidence: <optional links; no choices or material risks hidden here>.
|
|
35
|
+
Required reviews: <independent Codex + Opus findings/disagreement for complex design, if applicable>.
|
|
36
|
+
Run `self-audit.md`; mark **Incomplete** for missing necessary input/review, and request input, not approval.
|
|
@@ -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,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Dossier self-audit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Fix failures and re-check before presenting. Missing necessary evidence, criteria or review means
|
|
4
|
+
**Incomplete**: request the missing 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:** names subject and decision object in plain words; distinguishes this among
|
|
7
|
+
50 dossiers; one short line, no slogan/thesis. HTML `<title>` matches the visible title;
|
|
8
|
+
small type (at most 1.25rem), thin band, no hero.
|
|
9
|
+
- [ ] **Owner interest:** explains what changes for the owner and the risk they bear; preserves
|
|
10
|
+
their intention. No dossier justified only by agent inconvenience or a false technical problem.
|
|
11
|
+
- [ ] **Reading budget:** declared total time fits the stakes; every question, including meaningful
|
|
12
|
+
context, 2–4 short options and recommendation, is readable in 2 minutes (aim: at most 400 words).
|
|
13
|
+
- [ ] **Self-contained:** representative scenario, current behavior, affected people and constraints
|
|
14
|
+
are understandable without links. Plain words; acronyms explained; no opaque codes masking meaning.
|
|
15
|
+
- [ ] **No hidden decisions:** every implied choice is explicit; no nested sub-options. Additional
|
|
16
|
+
questions stand alone, with dependencies stated. Supporting evidence hides no choice or material risk.
|
|
17
|
+
- [ ] **Traceability:** dated/sourced literal owner request quoted; every demand maps to a question,
|
|
18
|
+
option or criterion. Departures are explicit; each criterion is covered or is the decision asked.
|
|
19
|
+
- [ ] **Options and recommendation:** one-line owner consequence and cost/rollback per option;
|
|
20
|
+
strongest honest case for each. Recommendation, strongest objection and overturning condition stated.
|
|
21
|
+
- [ ] **Evidence and bias:** decisive claims marked `[FACT]` with sources or `[JUDGMENT]`;
|
|
22
|
+
assumptions/unknowns separate; brief failure scenario; presenter convenience separate from owner value.
|
|
23
|
+
- [ ] **Reviews:** independent Codex + Opus passes for complex design; disagreements surfaced;
|
|
24
|
+
risk and owner intent checked without adding unnecessary reading.
|
|
25
|
+
- [ ] **Capture:** prose precedes final ask; no fabricated `comprehension[]` or relay recorded as decider.
|