@sentropic/track 0.98.6 → 0.98.7-rc.10

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 (163) hide show
  1. package/README.md +13 -0
  2. package/dist/cli/index.d.ts.map +1 -1
  3. package/dist/cli/index.js +95 -16
  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/editing/anchors.d.ts +20 -0
  13. package/dist/focus-vendor/editing/anchors.d.ts.map +1 -0
  14. package/dist/focus-vendor/editing/anchors.js +113 -0
  15. package/dist/focus-vendor/editing/anchors.js.map +1 -0
  16. package/dist/focus-vendor/editing/codec.d.ts +22 -0
  17. package/dist/focus-vendor/editing/codec.d.ts.map +1 -0
  18. package/dist/focus-vendor/editing/codec.js +143 -0
  19. package/dist/focus-vendor/editing/codec.js.map +1 -0
  20. package/dist/focus-vendor/editing/contract.d.ts +14 -0
  21. package/dist/focus-vendor/editing/contract.d.ts.map +1 -0
  22. package/dist/focus-vendor/editing/contract.js +76 -0
  23. package/dist/focus-vendor/editing/contract.js.map +1 -0
  24. package/dist/focus-vendor/editing/diff.d.ts +17 -0
  25. package/dist/focus-vendor/editing/diff.d.ts.map +1 -0
  26. package/dist/focus-vendor/editing/diff.js +125 -0
  27. package/dist/focus-vendor/editing/diff.js.map +1 -0
  28. package/dist/focus-vendor/editing/digest.d.ts +6 -0
  29. package/dist/focus-vendor/editing/digest.d.ts.map +1 -0
  30. package/dist/focus-vendor/editing/digest.js +56 -0
  31. package/dist/focus-vendor/editing/digest.js.map +1 -0
  32. package/dist/focus-vendor/editing/index.d.ts +7 -0
  33. package/dist/focus-vendor/editing/index.d.ts.map +1 -0
  34. package/dist/focus-vendor/editing/index.js +7 -0
  35. package/dist/focus-vendor/editing/index.js.map +1 -0
  36. package/dist/focus-vendor/editing/reconcile.d.ts +3 -0
  37. package/dist/focus-vendor/editing/reconcile.d.ts.map +1 -0
  38. package/dist/focus-vendor/editing/reconcile.js +167 -0
  39. package/dist/focus-vendor/editing/reconcile.js.map +1 -0
  40. package/dist/focus-vendor/editing/structure.d.ts +16 -0
  41. package/dist/focus-vendor/editing/structure.d.ts.map +1 -0
  42. package/dist/focus-vendor/editing/structure.js +71 -0
  43. package/dist/focus-vendor/editing/structure.js.map +1 -0
  44. package/dist/focus-vendor/index.d.ts +2 -0
  45. package/dist/focus-vendor/index.js +2 -0
  46. package/dist/focus-vendor/index.js.map +1 -1
  47. package/dist/focus-vendor/model.d.ts +1 -1
  48. package/dist/focus-vendor/model.d.ts.map +1 -1
  49. package/dist/focus-vendor/model.js +1 -1
  50. package/dist/focus-vendor/model.js.map +1 -1
  51. package/dist/focus-vendor/registry/definitions.d.ts +68 -0
  52. package/dist/focus-vendor/registry/definitions.d.ts.map +1 -0
  53. package/dist/focus-vendor/registry/definitions.js +509 -0
  54. package/dist/focus-vendor/registry/definitions.js.map +1 -0
  55. package/dist/focus-vendor/registry/entries.v1.json +140 -0
  56. package/dist/focus-vendor/render/evidence.d.ts +9 -0
  57. package/dist/focus-vendor/render/evidence.d.ts.map +1 -0
  58. package/dist/focus-vendor/render/evidence.js +37 -0
  59. package/dist/focus-vendor/render/evidence.js.map +1 -0
  60. package/dist/focus-vendor/render/html.d.ts.map +1 -1
  61. package/dist/focus-vendor/render/html.js +14 -1
  62. package/dist/focus-vendor/render/html.js.map +1 -1
  63. package/dist/focus-vendor/render/md.d.ts.map +1 -1
  64. package/dist/focus-vendor/render/md.js +15 -1
  65. package/dist/focus-vendor/render/md.js.map +1 -1
  66. package/dist/focus-vendor/render/presentation.d.ts +29 -0
  67. package/dist/focus-vendor/render/presentation.d.ts.map +1 -0
  68. package/dist/focus-vendor/render/presentation.js +25 -0
  69. package/dist/focus-vendor/render/presentation.js.map +1 -0
  70. package/dist/focus-vendor/render/terminal.d.ts.map +1 -1
  71. package/dist/focus-vendor/render/terminal.js +15 -1
  72. package/dist/focus-vendor/render/terminal.js.map +1 -1
  73. package/dist/focus-vendor/track/index.d.ts +23 -27
  74. package/dist/focus-vendor/track/index.d.ts.map +1 -1
  75. package/dist/focus-vendor/track/index.js +24 -10
  76. package/dist/focus-vendor/track/index.js.map +1 -1
  77. package/dist/focus-vendor/validation/evidence-bytes.d.ts +5 -0
  78. package/dist/focus-vendor/validation/evidence-bytes.d.ts.map +1 -0
  79. package/dist/focus-vendor/validation/evidence-bytes.js +57 -0
  80. package/dist/focus-vendor/validation/evidence-bytes.js.map +1 -0
  81. package/dist/focus-vendor/validation/evidence-shape.d.ts +11 -0
  82. package/dist/focus-vendor/validation/evidence-shape.d.ts.map +1 -0
  83. package/dist/focus-vendor/validation/evidence-shape.js +54 -0
  84. package/dist/focus-vendor/validation/evidence-shape.js.map +1 -0
  85. package/dist/focus-vendor/validation/evidence-sources.d.ts +6 -0
  86. package/dist/focus-vendor/validation/evidence-sources.d.ts.map +1 -0
  87. package/dist/focus-vendor/validation/evidence-sources.js +56 -0
  88. package/dist/focus-vendor/validation/evidence-sources.js.map +1 -0
  89. package/dist/focus-vendor/validation/evidence.d.ts +3 -0
  90. package/dist/focus-vendor/validation/evidence.d.ts.map +1 -0
  91. package/dist/focus-vendor/validation/evidence.js +131 -0
  92. package/dist/focus-vendor/validation/evidence.js.map +1 -0
  93. package/dist/focus-vendor/validation/index.d.ts +187 -0
  94. package/dist/focus-vendor/validation/index.d.ts.map +1 -0
  95. package/dist/focus-vendor/validation/index.js +500 -0
  96. package/dist/focus-vendor/validation/index.js.map +1 -0
  97. package/dist/focus-vendor/validation/readability.d.ts +22 -0
  98. package/dist/focus-vendor/validation/readability.d.ts.map +1 -0
  99. package/dist/focus-vendor/validation/readability.js +265 -0
  100. package/dist/focus-vendor/validation/readability.js.map +1 -0
  101. package/dist/model/decision.d.ts +19 -0
  102. package/dist/model/decision.d.ts.map +1 -1
  103. package/dist/model/decision.js.map +1 -1
  104. package/dist/model/index.d.ts +1 -0
  105. package/dist/model/index.d.ts.map +1 -1
  106. package/dist/model/index.js +1 -0
  107. package/dist/model/index.js.map +1 -1
  108. package/dist/model/item.d.ts +2 -0
  109. package/dist/model/item.d.ts.map +1 -1
  110. package/dist/model/item.js.map +1 -1
  111. package/dist/model/report-status.d.ts +53 -0
  112. package/dist/model/report-status.d.ts.map +1 -0
  113. package/dist/model/report-status.js +106 -0
  114. package/dist/model/report-status.js.map +1 -0
  115. package/dist/read/commands.d.ts +22 -2
  116. package/dist/read/commands.d.ts.map +1 -1
  117. package/dist/read/commands.js +134 -21
  118. package/dist/read/commands.js.map +1 -1
  119. package/dist/read/contract.d.ts.map +1 -1
  120. package/dist/read/contract.js +3 -1
  121. package/dist/read/contract.js.map +1 -1
  122. package/dist/report/audit.d.ts +68 -0
  123. package/dist/report/audit.d.ts.map +1 -1
  124. package/dist/report/audit.js +116 -0
  125. package/dist/report/audit.js.map +1 -1
  126. package/dist/report/build.d.ts +82 -1
  127. package/dist/report/build.d.ts.map +1 -1
  128. package/dist/report/build.js +85 -3
  129. package/dist/report/build.js.map +1 -1
  130. package/dist/report/directive.d.ts +5 -1
  131. package/dist/report/directive.d.ts.map +1 -1
  132. package/dist/report/directive.js +4 -0
  133. package/dist/report/directive.js.map +1 -1
  134. package/dist/report/format.d.ts +104 -3
  135. package/dist/report/format.d.ts.map +1 -1
  136. package/dist/report/format.js +251 -27
  137. package/dist/report/format.js.map +1 -1
  138. package/dist/report/index.d.ts +5 -2
  139. package/dist/report/index.d.ts.map +1 -1
  140. package/dist/report/index.js +6 -1
  141. package/dist/report/index.js.map +1 -1
  142. package/dist/report/stage-status-lexicon.d.ts +24 -0
  143. package/dist/report/stage-status-lexicon.d.ts.map +1 -0
  144. package/dist/report/stage-status-lexicon.js +96 -0
  145. package/dist/report/stage-status-lexicon.js.map +1 -0
  146. package/dist/report/stage-status.d.ts +31 -0
  147. package/dist/report/stage-status.d.ts.map +1 -0
  148. package/dist/report/stage-status.js +208 -0
  149. package/dist/report/stage-status.js.map +1 -0
  150. package/dist/state/fold.d.ts.map +1 -1
  151. package/dist/state/fold.js +11 -0
  152. package/dist/state/fold.js.map +1 -1
  153. package/dist/track.d.ts +3 -0
  154. package/dist/track.d.ts.map +1 -1
  155. package/dist/track.js +12 -1
  156. package/dist/track.js.map +1 -1
  157. package/package.json +2 -2
  158. package/skills/present-decision/SKILL.md +98 -95
  159. package/skills/present-decision/assets/dossier-template.md +35 -38
  160. package/skills/present-decision/assets/native-questions.md +18 -0
  161. package/skills/present-decision/assets/owner-criteria.template.md +11 -16
  162. package/skills/present-decision/assets/self-audit.md +26 -22
  163. package/skills/propose-workpackages/SKILL.md +20 -1
@@ -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,28 @@
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
+ Missing evidence, criteria or review: **Incomplete**; request input, never final validation.
5
4
 
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.
5
+ - [ ] **Title first:** subject and decision object in plain words; distinguishable among 50 dossiers;
6
+ one short line, no slogan/thesis. HTML `<title>` matches the visible title;
7
+ small type (≤1.25rem), thin band, no hero.
8
+ - [ ] **Owner interest:** owner benefit/risk and intention; no agent inconvenience or false problems.
9
+ - [ ] **Reading budget:** fits the stakes; question, context, 2–4 short options and
10
+ recommendation: 2 minutes, at most 400 words.
11
+ - [ ] **Self-contained:** representative scenario, current behavior, affected people and constraints
12
+ clear without links. Plain words; no opaque codes; acronyms explained.
13
+ - [ ] **No hidden decisions:** every implied choice explicit; no nested sub-options.
14
+ Questions stand alone; dependencies stated. Supporting evidence hides no choice or material risk.
15
+ - [ ] **Traceability:** dated/sourced literal owner request quoted; demands map to
16
+ questions/options/criteria. Departures explicit; each criterion covered or the decision asked.
17
+ - [ ] **Options and recommendation:** one-line owner consequence, cost/rollback and strongest honest case per option.
18
+ Recommendation, strongest objection and overturning condition stated.
19
+ - [ ] **Evidence and bias:** decisive claims: `[FACT]` with sources or `[JUDGMENT]`;
20
+ assumptions/unknowns separate; failure scenario; presenter convenience separate from owner value.
21
+ - [ ] **Reviews:** independent Codex + Opus passes for complex design; disagreements surfaced.
22
+ - [ ] **Delivery/capture:** default `h2a focus build dossier.json -o dossier.html`; portable Focus HTML,
23
+ ecosystem canvas, light/dark, phone pinch zoom; no claude.ai artifact. Dossier with diagram before the native question tool;
24
+ never a bare text question. If unavailable, explain and leave the decision pending.
25
+ Local selections; no fabricated `comprehension[]` or relay as decider.
26
+ - [ ] **Evidence (H1):** original bytes/digests; resolved citations/backlinks; primary summaries,
27
+ separate annex consultation; offline search/download/back. H1 manifest only;
28
+ DS in-canvas controls await H2/H3.
@@ -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.