@sentropic/track 0.98.7-rc.1 → 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/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 +89 -9
- 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 +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 +1 -1
- 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
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
export const READABILITY_BUDGETS = { low: 2, medium: 8, high: 30 };
|
|
2
|
+
export const READABILITY_LIMITS = {
|
|
3
|
+
minOwnerRequestQuoteLength: 8,
|
|
4
|
+
minStakesLength: 20,
|
|
5
|
+
minQuestionContextLength: 20,
|
|
6
|
+
minOptionsPerQuestion: 2,
|
|
7
|
+
maxOptionsPerQuestion: 4,
|
|
8
|
+
maxQuestionReadingMinutes: 2,
|
|
9
|
+
maxDossierBudgetMinutes: 30,
|
|
10
|
+
wordsPerMinute: 180,
|
|
11
|
+
maxHeadingLength: 100,
|
|
12
|
+
maxDecisionLineLength: 300,
|
|
13
|
+
maxOptionLabelLength: 100,
|
|
14
|
+
maxConsequenceLength: 160,
|
|
15
|
+
maxOptionBodyLength: 300,
|
|
16
|
+
};
|
|
17
|
+
// Acronyms and opaque codes, including L06b, MH-L3, R5 and CI-4821.
|
|
18
|
+
const CODE_PATTERN = /\b(?:[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+|[A-Z][A-Z0-9]*\d[A-Z0-9]*[a-z]?|[A-Z]{2,})\b/g;
|
|
19
|
+
// Ordinary outcome words and diagram direction syntax, not internal references.
|
|
20
|
+
const PLAIN_TOKENS = new Set(["GO", "NO-GO", "NO", "PENDING", "DEFERRED", "LR", "RL", "TB", "BT", "TD", "UTF-8"]);
|
|
21
|
+
const CHOICE_PATTERN = /\beither\b[\s\S]{0,160}?\bor\b|\bsoit\b[\s\S]{0,160}?\bsoit\b|\b(?:instead of|rather than|plut[oô]t que|versus|vs\.?|choos(?:e|ing) between|choisir entre)\b/i;
|
|
22
|
+
const SUBOPTION_PATTERN = /(?:^|[\n\r\u2028\u2029])\s*(?:[-*+•‣>]|\d+[.)]|[a-z][.)])\s+\S|\([a-z]\)[\s\S]*\([a-z]\)|\b(?:sub[- ]?options?|sous[- ]?options?)\b/i;
|
|
23
|
+
const LINE_BREAK = /[\n\r\u2028\u2029]/;
|
|
24
|
+
const blank = (text) => !text?.trim();
|
|
25
|
+
const minutesFor = (texts) => (texts.join(" ").match(/\S+/gu)?.length ?? 0) / READABILITY_LIMITS.wordsPerMinute;
|
|
26
|
+
/** Check a structurally valid document; use ForPresentation for untrusted input. */
|
|
27
|
+
export const validateDecisionDossierReadability = (doc) => {
|
|
28
|
+
const issues = [];
|
|
29
|
+
const refuse = (path, code, message) => { issues.push({ path, code, message }); };
|
|
30
|
+
const r = doc.readability;
|
|
31
|
+
const quote = r?.ownerRequestQuote?.trim() ?? "";
|
|
32
|
+
if (r?.noOwnerRequest === true) {
|
|
33
|
+
refuse("$.readability.noOwnerRequest", quote ? "conflicting_owner_request" : "presentation_blocked", quote ? "A quoted owner request conflicts with noOwnerRequest: keep the literal request and remove the flag."
|
|
34
|
+
: "No owner request: presentation is blocked until the owner's literal request is quoted.");
|
|
35
|
+
}
|
|
36
|
+
else if (!quote) {
|
|
37
|
+
refuse("$.readability.ownerRequestQuote", "missing_owner_request", "Quote the literal owner request this dossier serves, or set noOwnerRequest to block presentation explicitly.");
|
|
38
|
+
}
|
|
39
|
+
else if (quote.length < READABILITY_LIMITS.minOwnerRequestQuoteLength) {
|
|
40
|
+
refuse("$.readability.ownerRequestQuote", "owner_request_too_short", "Quote the full literal owner request so the owner recognizes their own intention.");
|
|
41
|
+
}
|
|
42
|
+
if (blank(r?.stakes)) {
|
|
43
|
+
refuse("$.readability.stakes", "missing_stakes", "State why the decision matters to the owner, using plain words about cost, time or consequences.");
|
|
44
|
+
}
|
|
45
|
+
else if (r.stakes.trim().length < READABILITY_LIMITS.minStakesLength) {
|
|
46
|
+
refuse("$.readability.stakes", "stakes_too_short", "Explain the actual consequence for the owner in at least 20 characters; an internal label is insufficient.");
|
|
47
|
+
}
|
|
48
|
+
const level = r?.stakesLevel;
|
|
49
|
+
if (!level || !Object.hasOwn(READABILITY_BUDGETS, level)) {
|
|
50
|
+
refuse("$.readability.stakesLevel", "missing_stakes_level", "Declare stakesLevel: low for a small reversible inconvenience, medium for cost/disruption, high for lasting or major impact.");
|
|
51
|
+
}
|
|
52
|
+
const budget = r?.readingBudgetMinutes;
|
|
53
|
+
const budgetValid = budget !== undefined && Number.isFinite(budget) && budget >= 1 && budget <= READABILITY_LIMITS.maxDossierBudgetMinutes;
|
|
54
|
+
if (budget === undefined) {
|
|
55
|
+
refuse("$.readability.readingBudgetMinutes", "missing_reading_budget", "Declare a total reading budget in minutes proportionate to the stakes: low up to 2, medium up to 8, high up to 30.");
|
|
56
|
+
}
|
|
57
|
+
else if (!budgetValid) {
|
|
58
|
+
refuse("$.readability.readingBudgetMinutes", "reading_budget_out_of_range", "The total reading budget must be a finite number between 1 and 30 minutes.");
|
|
59
|
+
}
|
|
60
|
+
else if (level && Object.hasOwn(READABILITY_BUDGETS, level) && budget > READABILITY_BUDGETS[level]) {
|
|
61
|
+
refuse("$.readability.readingBudgetMinutes", "reading_budget_disproportionate", `The ${level} stakes budget is at most ${READABILITY_BUDGETS[level]} minutes; shorten this dossier or justify a different stakes level.`);
|
|
62
|
+
}
|
|
63
|
+
const glossary = new Map();
|
|
64
|
+
r?.glossary?.forEach((entry, i) => {
|
|
65
|
+
if (blank(entry.term) || blank(entry.definition)) {
|
|
66
|
+
refuse(`$.readability.glossary[${i}]`, "empty_glossary_entry", "Give every glossary term a definition in plain words visible to the reader.");
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const term = entry.term.trim();
|
|
70
|
+
if (glossary.has(term) || entry.definition.trim() === term) {
|
|
71
|
+
refuse(`$.readability.glossary[${i}]`, "invalid_glossary_entry", "Use one definition per term and expand its meaning; repeating the code does not explain it.");
|
|
72
|
+
}
|
|
73
|
+
if ((entry.definition.match(CODE_PATTERN) ?? []).some((code) => !PLAIN_TOKENS.has(code))) {
|
|
74
|
+
refuse(`$.readability.glossary[${i}].definition`, "invalid_glossary_entry", "Explain each term independently in plain words, without itself or another code, even one defined elsewhere.");
|
|
75
|
+
}
|
|
76
|
+
glossary.set(term, entry.definition);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const checkCodes = (text, path) => {
|
|
80
|
+
for (const code of new Set(text?.match(CODE_PATTERN) ?? [])) {
|
|
81
|
+
if (!PLAIN_TOKENS.has(code) && !glossary.has(code)) {
|
|
82
|
+
refuse(path, "undefined_code", `Unexpanded code or acronym "${code}": define it in the visible glossary in plain words, or rewrite it.`);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
// Shared reading time includes everything displayed outside question/option blocks.
|
|
87
|
+
const shared = [];
|
|
88
|
+
const visible = (text, path) => {
|
|
89
|
+
checkCodes(text, path);
|
|
90
|
+
if (text)
|
|
91
|
+
shared.push(text);
|
|
92
|
+
};
|
|
93
|
+
for (const field of ["title", "subject"]) {
|
|
94
|
+
visible(doc[field], `$.${field}`);
|
|
95
|
+
if (blank(doc[field]))
|
|
96
|
+
refuse(`$.${field}`, "empty_heading", "Name the subject and decision in a short, non-empty line the owner understands.");
|
|
97
|
+
checkLine(doc[field], `$.${field}`, READABILITY_LIMITS.maxHeadingLength);
|
|
98
|
+
}
|
|
99
|
+
visible(quote, "$.readability.ownerRequestQuote");
|
|
100
|
+
visible(r?.stakes, "$.readability.stakes");
|
|
101
|
+
r?.glossary?.forEach((entry, i) => {
|
|
102
|
+
shared.push(entry.term);
|
|
103
|
+
visible(entry.definition, `$.readability.glossary[${i}].definition`);
|
|
104
|
+
});
|
|
105
|
+
const checkSteps = (steps, path) => {
|
|
106
|
+
steps.forEach((step, i) => {
|
|
107
|
+
visible(step.author, `${path}[${i}].author`);
|
|
108
|
+
visible(step.summary, `${path}[${i}].summary`);
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
checkSteps(doc.amendmentTrace, "$.amendmentTrace");
|
|
112
|
+
doc.interactions.forEach((action, i) => visible(action.label, `$.interactions[${i}].label`));
|
|
113
|
+
const questions = doc.sections.filter((s) => s.kind === "question");
|
|
114
|
+
const questionIds = new Set(questions.map((q) => q.id));
|
|
115
|
+
if (!questions.length)
|
|
116
|
+
refuse("$.sections", "missing_question", "A decision dossier needs an explicit question with context, options and a recommendation.");
|
|
117
|
+
const checkQuestionRef = (questionId, path, required) => {
|
|
118
|
+
if (blank(questionId)) {
|
|
119
|
+
if (required)
|
|
120
|
+
refuse(path, "hidden_decision", "This content implies a choice without an explicit question: set questionId to the question the owner must answer.");
|
|
121
|
+
}
|
|
122
|
+
else if (!questionIds.has(questionId)) {
|
|
123
|
+
refuse(path, "unknown_question_ref", `Question "${questionId}" does not exist in this dossier; link to an explicit question.`);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const optionSets = doc.sections.filter((s) => s.kind === "optionSet");
|
|
127
|
+
let totalQuestionMinutes = 0;
|
|
128
|
+
doc.sections.forEach((section, i) => {
|
|
129
|
+
const path = `$.sections[${i}]`;
|
|
130
|
+
switch (section.kind) {
|
|
131
|
+
case "prose":
|
|
132
|
+
visible(section.markdown, `${path}.markdown`);
|
|
133
|
+
checkQuestionRef(section.questionId, `${path}.questionId`, CHOICE_PATTERN.test(section.markdown));
|
|
134
|
+
break;
|
|
135
|
+
case "outcome":
|
|
136
|
+
visible(section.statement, `${path}.statement`);
|
|
137
|
+
checkQuestionRef(section.questionId, `${path}.questionId`, section.modality !== "comment" || CHOICE_PATTERN.test(section.statement));
|
|
138
|
+
break;
|
|
139
|
+
case "diagram":
|
|
140
|
+
visible(section.alt, `${path}.alt`);
|
|
141
|
+
visible(section.source, `${path}.source`);
|
|
142
|
+
break;
|
|
143
|
+
case "amendmentTrace":
|
|
144
|
+
checkSteps(section.steps, `${path}.steps`);
|
|
145
|
+
break;
|
|
146
|
+
case "optionSet":
|
|
147
|
+
checkQuestionRef(section.questionId, `${path}.questionId`, true);
|
|
148
|
+
checkCodes(section.title, `${path}.title`);
|
|
149
|
+
checkLine(section.title, `${path}.title`, READABILITY_LIMITS.maxHeadingLength);
|
|
150
|
+
section.options.forEach((option, j) => checkOption(option, `${path}.options[${j}]`));
|
|
151
|
+
break;
|
|
152
|
+
case "question": {
|
|
153
|
+
if (blank(section.question))
|
|
154
|
+
refuse(`${path}.question`, "empty_question", "State the explicit decision the owner needs to make in this question.");
|
|
155
|
+
if (blank(section.context)) {
|
|
156
|
+
refuse(`${path}.context`, "missing_question_context", "Add representative context in plain words so the question can be understood on its own.");
|
|
157
|
+
}
|
|
158
|
+
else if (section.context.trim().length < READABILITY_LIMITS.minQuestionContextLength) {
|
|
159
|
+
refuse(`${path}.context`, "question_context_too_short", "Give representative context of at least 20 characters, including what changes for the owner.");
|
|
160
|
+
}
|
|
161
|
+
if (blank(section.recommendedAnswer))
|
|
162
|
+
refuse(`${path}.recommendedAnswer`, "missing_recommendation", "Recommend an option with a short reason that relates to the owner's request and stakes.");
|
|
163
|
+
checkLine(section.question, `${path}.question`, READABILITY_LIMITS.maxDecisionLineLength);
|
|
164
|
+
checkLine(section.recommendedAnswer, `${path}.recommendedAnswer`, READABILITY_LIMITS.maxDecisionLineLength);
|
|
165
|
+
const linked = optionSets.filter((set) => set.questionId === section.id);
|
|
166
|
+
const options = linked.flatMap((set) => set.options);
|
|
167
|
+
if (options.length < 2 || options.length > 4)
|
|
168
|
+
refuse(path, "option_count", `Each question needs 2–4 short options; this question has ${options.length}.`);
|
|
169
|
+
if (!options.some((option) => option.id === section.recommendedOptionId)) {
|
|
170
|
+
refuse(`${path}.recommendedOptionId`, "unknown_recommended_option", "Identify the recommended option by its id among this question's options, with the reason in recommendedAnswer.");
|
|
171
|
+
}
|
|
172
|
+
const texts = [section.question, section.context, section.recommendedAnswer, section.answer,
|
|
173
|
+
options.find((option) => option.id === section.recommendedOptionId)?.label,
|
|
174
|
+
...linked.map((set) => set.title), ...options.flatMap((o) => [o.label, o.consequence, o.body, o.annotationComment])];
|
|
175
|
+
checkCodes(section.question, `${path}.question`);
|
|
176
|
+
checkCodes(section.context, `${path}.context`);
|
|
177
|
+
checkCodes(section.recommendedAnswer, `${path}.recommendedAnswer`);
|
|
178
|
+
checkCodes(section.answer, `${path}.answer`);
|
|
179
|
+
const minutes = section.readingTimeMinutes;
|
|
180
|
+
const minimum = minutesFor(texts);
|
|
181
|
+
if (minutes === undefined) {
|
|
182
|
+
refuse(`${path}.readingTimeMinutes`, "missing_reading_time", "Estimate the time to read this question, context and options in readingTimeMinutes (up to 2 minutes).");
|
|
183
|
+
}
|
|
184
|
+
else if (!Number.isFinite(minutes) || minutes <= 0 || minutes > 2) {
|
|
185
|
+
refuse(`${path}.readingTimeMinutes`, "reading_time_exceeded", "Each question must take a positive finite time of at most 2 minutes; shorten or split it.");
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
if (minutes < minimum)
|
|
189
|
+
refuse(`${path}.readingTimeMinutes`, "reading_time_underestimated", `This question needs at least ${minimum.toFixed(2)} minutes at 180 words/minute; shorten it or correct its estimate (maximum 2 minutes).`);
|
|
190
|
+
totalQuestionMinutes += Math.max(minutes, minimum);
|
|
191
|
+
}
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
if (budgetValid && totalQuestionMinutes + minutesFor(shared) > budget) {
|
|
197
|
+
refuse("$.readability.readingBudgetMinutes", "reading_budget_exceeded", "The questions plus shared context and glossary exceed the declared reading budget; shorten the dossier to match its stakes.");
|
|
198
|
+
}
|
|
199
|
+
return issues;
|
|
200
|
+
function checkLine(text, path, max) {
|
|
201
|
+
if (!text)
|
|
202
|
+
return;
|
|
203
|
+
if (text.trim().length > max || LINE_BREAK.test(text))
|
|
204
|
+
refuse(path, "decision_line_too_long", `Use one short line of at most ${max} characters; put explanation in the question context.`);
|
|
205
|
+
if (SUBOPTION_PATTERN.test(text))
|
|
206
|
+
refuse(path, "nested_suboptions", "Expose sub-choices as separate options or questions, without nested lists or inline branches.");
|
|
207
|
+
}
|
|
208
|
+
function checkOption(option, path) {
|
|
209
|
+
const fields = [
|
|
210
|
+
{ field: "label", text: option.label, max: READABILITY_LIMITS.maxOptionLabelLength, code: "option_too_long" },
|
|
211
|
+
{ field: "consequence", text: option.consequence, max: READABILITY_LIMITS.maxConsequenceLength, code: "consequence_too_long" },
|
|
212
|
+
{ field: "body", text: option.body, max: READABILITY_LIMITS.maxOptionBodyLength, code: "option_too_long" },
|
|
213
|
+
{ field: "annotationComment", text: option.annotationComment, max: READABILITY_LIMITS.maxOptionBodyLength, code: "option_too_long" },
|
|
214
|
+
];
|
|
215
|
+
if (blank(option.label))
|
|
216
|
+
refuse(`${path}.label`, "empty_option_label", "Name this option in a few plain words so the owner can compare it at a glance.");
|
|
217
|
+
if (blank(option.consequence))
|
|
218
|
+
refuse(`${path}.consequence`, "missing_consequence", "Add a one-line consequence: what choosing this option changes for the owner.");
|
|
219
|
+
for (const { field, text, max, code } of fields) {
|
|
220
|
+
if (!text)
|
|
221
|
+
continue;
|
|
222
|
+
checkCodes(text, `${path}.${field}`);
|
|
223
|
+
if (text.trim().length > max || LINE_BREAK.test(text))
|
|
224
|
+
refuse(`${path}.${field}`, code, `Keep this option ${field} to one short line of at most ${max} characters; move necessary context to the question.`);
|
|
225
|
+
if (SUBOPTION_PATTERN.test(text) || CHOICE_PATTERN.test(text))
|
|
226
|
+
refuse(`${path}.${field}`, "nested_suboptions", "This option hides sub-options: expose the choices as separate options or as a separate question.");
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=readability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readability.js","sourceRoot":"","sources":["../../../src/focus-vendor/validation/readability.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,0BAA0B,EAAE,CAAC;IAC7B,eAAe,EAAE,EAAE;IACnB,wBAAwB,EAAE,EAAE;IAC5B,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;IACxB,y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J,CAAC;IACL,CAAC;AACL,CAAC,CAAC"}
|
package/dist/model/decision.d.ts
CHANGED
|
@@ -9,11 +9,16 @@ export interface Option {
|
|
|
9
9
|
summary: string;
|
|
10
10
|
pros?: string[];
|
|
11
11
|
cons?: string[];
|
|
12
|
+
questionId?: string;
|
|
12
13
|
}
|
|
13
14
|
export interface QAEntry {
|
|
14
15
|
id: string;
|
|
15
16
|
question: string;
|
|
16
17
|
answer?: string;
|
|
18
|
+
context?: string;
|
|
19
|
+
readingTimeMinutes?: number;
|
|
20
|
+
recommendedOptionId?: string;
|
|
21
|
+
recommendedAnswer?: string;
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* Record-only evidence of ONE h2a comprehension attestation (M5 §3.1). Track RECORDS it; track
|
|
@@ -54,6 +59,20 @@ export type DossierArtifact = {
|
|
|
54
59
|
/** Typed decision dossier (SPEC §2.7). `outcome` is NOT duplicated here (single source = the Decision). */
|
|
55
60
|
export interface Dossier {
|
|
56
61
|
context: string;
|
|
62
|
+
/** Explicit presentation metadata; absent on historical dossiers. Never inferred. */
|
|
63
|
+
subject?: string;
|
|
64
|
+
questionId?: string;
|
|
65
|
+
readability?: {
|
|
66
|
+
ownerRequestQuote?: string;
|
|
67
|
+
noOwnerRequest?: boolean;
|
|
68
|
+
stakes?: string;
|
|
69
|
+
stakesLevel?: 'low' | 'medium' | 'high';
|
|
70
|
+
readingBudgetMinutes?: number;
|
|
71
|
+
glossary?: {
|
|
72
|
+
term: string;
|
|
73
|
+
definition: string;
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
57
76
|
options: Option[];
|
|
58
77
|
qa: QAEntry[];
|
|
59
78
|
selectedOptionId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../../src/model/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,WAAW,EACjB,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,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE;IAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC9C,IAAI,CAqDN;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAO7D;AAUD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,IAAI,CAI3E;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEnD;AAED,oGAAoG;AACpG,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,eAAe,CAAA;CAC1B;AAkBD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAqDrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.js","sourceRoot":"","sources":["../../src/model/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAKZ,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"decision.js","sourceRoot":"","sources":["../../src/model/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GAKZ,MAAM,WAAW,CAAA;AA4HlB;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAgB,EAChB,UAA6C,EAAE;IAE/C,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,IAAI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AAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxG,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACrE,CAAA;QACH,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;gBAClC,MAAM,IAAI,WAAW,CAAC,sDAAsD,CAAC,CAAA;YAC/E,CAAC;YACD,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC;gBACrB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACrE,CAAA;QACH,CAAC;QACD;YACE,MAAM,IAAI,WAAW,CAAC,iDAAiD,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAA;IAChG,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -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.
|