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

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 (50) hide show
  1. package/README.md +8 -5
  2. package/dist/cli/index.d.ts.map +1 -1
  3. package/dist/cli/index.js +72 -16
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/model/report-status.d.ts +23 -2
  6. package/dist/model/report-status.d.ts.map +1 -1
  7. package/dist/model/report-status.js +50 -4
  8. package/dist/model/report-status.js.map +1 -1
  9. package/dist/read/commands.d.ts +22 -2
  10. package/dist/read/commands.d.ts.map +1 -1
  11. package/dist/read/commands.js +134 -25
  12. package/dist/read/commands.js.map +1 -1
  13. package/dist/read/contract.d.ts.map +1 -1
  14. package/dist/read/contract.js +3 -1
  15. package/dist/read/contract.js.map +1 -1
  16. package/dist/report/audit.d.ts +68 -0
  17. package/dist/report/audit.d.ts.map +1 -1
  18. package/dist/report/audit.js +116 -0
  19. package/dist/report/audit.js.map +1 -1
  20. package/dist/report/build.d.ts +82 -1
  21. package/dist/report/build.d.ts.map +1 -1
  22. package/dist/report/build.js +85 -3
  23. package/dist/report/build.js.map +1 -1
  24. package/dist/report/format.d.ts +94 -2
  25. package/dist/report/format.d.ts.map +1 -1
  26. package/dist/report/format.js +230 -25
  27. package/dist/report/format.js.map +1 -1
  28. package/dist/report/index.d.ts +5 -2
  29. package/dist/report/index.d.ts.map +1 -1
  30. package/dist/report/index.js +6 -1
  31. package/dist/report/index.js.map +1 -1
  32. package/dist/report/stage-status-lexicon.d.ts +24 -0
  33. package/dist/report/stage-status-lexicon.d.ts.map +1 -0
  34. package/dist/report/stage-status-lexicon.js +96 -0
  35. package/dist/report/stage-status-lexicon.js.map +1 -0
  36. package/dist/report/stage-status.d.ts +31 -0
  37. package/dist/report/stage-status.d.ts.map +1 -0
  38. package/dist/report/stage-status.js +208 -0
  39. package/dist/report/stage-status.js.map +1 -0
  40. package/dist/state/fold.js +7 -2
  41. package/dist/state/fold.js.map +1 -1
  42. package/dist/track.d.ts.map +1 -1
  43. package/dist/track.js +4 -1
  44. package/dist/track.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/report/status-table.d.ts +0 -46
  47. package/dist/report/status-table.d.ts.map +0 -1
  48. package/dist/report/status-table.js +0 -211
  49. package/dist/report/status-table.js.map +0 -1
  50. package/skills/track-report/SKILL.md +0 -137
@@ -1,46 +0,0 @@
1
- import type { TrackEvent } from '../events/types.js';
2
- import { type DecisionExpectations, type ReportStage } from '../model/report-status.js';
3
- import type { Report, ReportOptions } from './build.js';
4
- import { type Format, type ConductorMeta, type ReportView } from './format.js';
5
- declare const COLUMNS: readonly [{
6
- readonly id: "n";
7
- readonly label: "#";
8
- }, {
9
- readonly id: "request";
10
- readonly label: "Ta demande";
11
- }, {
12
- readonly id: "stage";
13
- readonly label: "Étape";
14
- }, {
15
- readonly id: "status";
16
- readonly label: "Statut";
17
- }, {
18
- readonly id: "action";
19
- readonly label: "Où ça en est / prochaine action";
20
- }];
21
- /** References may support a purpose, but cannot BE that purpose. No invented replacement prose. */
22
- export declare function versionOnlySubject(value: string): boolean;
23
- export interface StatusTableRow {
24
- id: string;
25
- n: string;
26
- request: string;
27
- requestSource: 'report-event' | 'demand' | 'owner-quote' | 'legacy-title';
28
- stage: ReportStage;
29
- stageEvidence?: string;
30
- status: string;
31
- action: string;
32
- issues: string[];
33
- expectations: DecisionExpectations[];
34
- dossierRefs: string[];
35
- }
36
- export interface StatusTable {
37
- columns: typeof COLUMNS;
38
- rows: StatusTableRow[];
39
- order: string;
40
- }
41
- export declare function buildStatusTable(events: readonly TrackEvent[], report: Report, options: ReportOptions): StatusTable;
42
- /** Keep the existing DÉCISIONS/attendus and recommendation, replacing only the activity tables. */
43
- export declare function buildStatusTableView(statusTable: StatusTable, report: Report, meta: ConductorMeta): ReportView;
44
- export declare function renderStatusTable(statusTable: StatusTable, report: Report, format: Format, meta: ConductorMeta): string;
45
- export {};
46
- //# sourceMappingURL=status-table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-table.d.ts","sourceRoot":"","sources":["../../src/report/status-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,EAAsD,KAAK,oBAAoB,EAAyB,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAA;AAIrL,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAGvD,OAAO,EAA4D,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;AAMxI,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;EAGH,CAAA;AAEV,mGAAmG;AACnG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGzD;AAaD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,cAAc,GAAG,QAAQ,GAAG,aAAa,GAAG,cAAc,CAAA;IACzE,KAAK,EAAE,WAAW,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,EAAE,oBAAoB,EAAE,CAAA;IACpC,WAAW,EAAE,MAAM,EAAE,CAAA;CACtB;AACD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,IAAI,EAAE,cAAc,EAAE,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,WAAW,CA0FnH;AAwBD,mGAAmG;AACnG,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,UAAU,CAgC9G;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,MAAM,CAIvH"}
@@ -1,211 +0,0 @@
1
- import { acceptanceStatus } from '../accept/status.js';
2
- import { assertDecisionExpectations, assertItemReportStatus } from '../model/report-status.js';
3
- import { isSettled } from '../model/decision.js';
4
- import { fold } from '../state/fold.js';
5
- import { effectiveOpenBlockersForItem } from './blocker-status.js';
6
- import { canonicalLeafUrgency } from './directive.js';
7
- import { buildWpConductorView, redactOwnerTable, renderReportView } from './format.js';
8
- const COLORS = { progressing: '🟢', unforeseen: '🟠', blocked: '🔴', 'decision-awaited': '🔵' };
9
- const URGENCY = { blocked: 0, 'decision-awaited': 1, unforeseen: 2, progressing: 3 };
10
- const LINK_STAGES = { 'pr-open': 'PR', 'pr-merged': 'mergé', deployed: 'déployé' };
11
- const STAGES = ['spec', 'dev', 'PR', 'mergé', 'déployé'];
12
- const COLUMNS = [
13
- { id: 'n', label: '#' }, { id: 'request', label: 'Ta demande' }, { id: 'stage', label: 'Étape' },
14
- { id: 'status', label: 'Statut' }, { id: 'action', label: 'Où ça en est / prochaine action' },
15
- ];
16
- /** References may support a purpose, but cannot BE that purpose. No invented replacement prose. */
17
- export function versionOnlySubject(value) {
18
- return value.replace(/https?:\/\/\S+/giu, '').replace(/\bv?\d+\.\d+(?:\.\d+)?(?:-[\w.]+)?\b/giu, '')
19
- .replace(/\b(?:version|release|publication|PR)\b/giu, '').replace(/#\d+/gu, '').replace(/[\s()[\]{}.,:;—–\-·/]/gu, '') === '';
20
- }
21
- function nativeExpectations(d) {
22
- const artifact = d.dossier.artifacts?.filter(a => a.kind === 'rendered-view').at(-1);
23
- const dossier = artifact?.kind === 'rendered-view' ? artifact.viewRef : d.links?.find(l => l.kind === 'dossier')?.locator;
24
- const value = {
25
- question: d.dossier.subject ?? d.title,
26
- options: d.dossier.options.map(o => ({ label: o.title, consequence: o.summary })),
27
- dossier, readingMinutes: d.dossier.readability?.readingBudgetMinutes,
28
- };
29
- try {
30
- assertDecisionExpectations(value);
31
- return value;
32
- }
33
- catch {
34
- return undefined;
35
- }
36
- }
37
- export function buildStatusTable(events, report, options) {
38
- const state = fold(events);
39
- const sourceRows = Object.values(report.buckets).flat();
40
- const lastReopenById = new Map();
41
- const lastReportById = new Map();
42
- events.forEach((e, i) => {
43
- if (e.type === 'realization.reopened')
44
- lastReopenById.set(e.aggregateId, i);
45
- if (e.type === 'item.report-updated')
46
- lastReportById.set(e.aggregateId, i);
47
- });
48
- const entries = sourceRows.map(source => {
49
- const item = state.items.get(source.id);
50
- const issues = [];
51
- let info = item.report ?? {};
52
- try {
53
- assertItemReportStatus(info);
54
- }
55
- catch {
56
- issues.push('invalid-report-event');
57
- info = {};
58
- }
59
- const lastReopen = lastReopenById.get(item.id) ?? -1;
60
- const lastReport = lastReportById.get(item.id) ?? -1;
61
- const staleReport = lastReopen > lastReport;
62
- const recordedStage = info.stage;
63
- if (staleReport) {
64
- issues.push('status-predates-reopening');
65
- // The request remains the owner's request; lifecycle assertions need fresh qualification.
66
- info = info.ownerRequest === undefined ? {} : { ownerRequest: info.ownerRequest };
67
- }
68
- const demand = item.demandId === undefined ? undefined : state.demands.get(item.demandId);
69
- const quote = [...(item.body ?? '').matchAll(/Phrase(?:s|\(s\))?\s+owner\s*(?:\([^)]*\)\s*)?:\s*«([^»]*)»/giu)]
70
- .map(match => match[1].trim()).find(text => text.length > 0);
71
- const request = info.ownerRequest ?? demand?.raw.text ?? quote ?? item.title;
72
- const requestSource = info.ownerRequest ? 'report-event' : demand ? 'demand' : quote ? 'owner-quote' : 'legacy-title';
73
- if (versionOnlySubject(request))
74
- issues.push('version-only-subject');
75
- const blockers = effectiveOpenBlockersForItem(state, item.id, options.baselineCommit);
76
- const linked = [...state.decisions.values()].filter(d => d.targets.includes(item.id));
77
- const pending = linked.filter(d => !isSettled(d.outcome));
78
- const failed = acceptanceStatus(state, item.id, options.baselineCommit) === 'fail';
79
- const dropped = source.bucket === 'DROPPED';
80
- let status = info.status ?? (dropped ? 'progressing' : 'unforeseen');
81
- if (info.status === undefined && !staleReport && !dropped && blockers.length === 0 && !failed)
82
- issues.push('unrecorded-status');
83
- if (pending.length > 0 && status !== 'blocked')
84
- status = 'decision-awaited';
85
- if (blockers.some(b => b.kind !== 'decision') || failed)
86
- status = 'blocked';
87
- if (info.status === 'progressing' && status !== 'progressing')
88
- issues.push('status-contradicts-live-gate');
89
- if (info.status === 'decision-awaited' && linked.length > 0 && pending.length === 0) {
90
- if (status !== 'blocked')
91
- status = 'unforeseen';
92
- issues.push('settled-decision-expectations');
93
- }
94
- if (status === 'blocked' && !info.proposal)
95
- issues.push('missing-proposal');
96
- const expectations = [];
97
- if (status === 'decision-awaited') {
98
- if (pending.length === 0 && info.decisionExpectations)
99
- expectations.push(info.decisionExpectations);
100
- const supplied = info.decisionExpectations;
101
- const matches = (d) => supplied !== undefined && supplied.question === (d.dossier.subject ?? d.title) &&
102
- supplied.options.length === d.dossier.options.length && supplied.options.every((o, i) => o.label === d.dossier.options[i].title && o.consequence === d.dossier.options[i].summary);
103
- if (supplied && pending.length > 0 && !pending.some(matches))
104
- issues.push('decision-expectations-conflict');
105
- for (const d of pending) {
106
- const native = nativeExpectations(d);
107
- if (native)
108
- expectations.push(native);
109
- else if (supplied && matches(d))
110
- expectations.push(supplied);
111
- }
112
- if (expectations.length < Math.max(1, pending.length))
113
- issues.push('missing-decision-expectations');
114
- }
115
- const derived = deriveStage(item);
116
- let stage = info.stage?.value ?? derived.value;
117
- let evidence = info.stage === undefined ? derived.evidence : info.stage.evidence;
118
- if (lastReopen >= 0 && (staleReport || info.stage === undefined) && STAGES.indexOf(recordedStage?.value ?? derived.value) > 1) {
119
- stage = 'dev';
120
- evidence = undefined;
121
- if (staleReport)
122
- issues.push('stage-predates-reopening');
123
- }
124
- const facts = [
125
- item.reopenings?.at(-1) ? `Réouverture : ${item.reopenings.at(-1).reason}.` : undefined,
126
- info.facts, `État enregistré : ${item.realization}.`,
127
- evidence ? `Preuve ${stage} : ${evidence}.` : undefined,
128
- ...blockers.map(b => `Attente enregistrée : ${b.reason}.`),
129
- failed ? 'Recette en échec.' : undefined,
130
- requestSource === 'legacy-title' ? 'Formulation issue du titre historique ; citation propriétaire non reliée.' : undefined,
131
- info.status ? `Statut déclaré : ${info.status}.` : undefined,
132
- info.waitingOn ? `En attente de ${info.waitingOn}.` : undefined,
133
- info.suspended ? `Suspendu : ${info.suspended}.` : undefined,
134
- info.proposal ? `Proposition : ${info.proposal}` : undefined,
135
- ...pending.map(d => `Décision : ${d.dossier.subject ?? d.title}.`),
136
- ...expectations.map(e => `Question : ${e.question} Options : ${e.options.map(o => `${o.label} → ${o.consequence}`).join(' ; ')}. Lecture : ${e.readingMinutes} min.`),
137
- ...issues.map(issueText),
138
- ].filter(Boolean);
139
- const next = status === 'decision-awaited' ? (issues.includes('missing-decision-expectations') ? 'compléter les attendus et le lien du dossier avant de demander ton GO.' : 'ton GO sur la question et les options ci-dessus.')
140
- : status === 'blocked' ? info.nextAction ?? info.proposal ?? 'rédiger une proposition de déblocage.'
141
- : info.nextAction ?? (issues.some(i => i === 'unrecorded-status' || i === 'status-predates-reopening') ? 'vérifier puis renseigner le statut de conformité.' : dropped ? 'aucune action : demande retirée.' : 'renseigner la prochaine action vérifiée.');
142
- const row = { id: item.id, n: '', request, requestSource, stage, ...(evidence ? { stageEvidence: evidence } : {}), status: COLORS[status], action: `${facts.join(' ')} Ensuite : ${next}`, issues: [...new Set(issues)], expectations, dossierRefs: expectations.map(e => e.dossier) };
143
- const terminal = (source.bucket === 'DONE' || dropped) && blockers.length === 0 && !['fail', 'stale'].includes(source.acceptance);
144
- const canonical = canonicalLeafUrgency({ realization: item.realization, acceptance: source.acceptance, specStatus: item.specStatus ?? 'n/a', openBlockers: blockers.map(b => ({ ...b, blockerId: b.id })) });
145
- return { row, terminal: Number(terminal), urgency: URGENCY[status], priority: source.priority ?? -Infinity, canonical };
146
- });
147
- entries.sort((a, b) => a.terminal - b.terminal || a.urgency - b.urgency || a.canonical - b.canonical || b.priority - a.priority || a.row.id.localeCompare(b.row.id));
148
- return { columns: COLUMNS, rows: entries.map(({ row }, i) => ({ ...row, n: String(i + 1) })), order: 'demandes actives avant clôturées ; blocage, décision propriétaire, imprévu, progression ; puis urgence canonique, priorité, identifiant' };
149
- }
150
- function deriveStage(item) {
151
- const links = (item.links ?? []).filter(l => LINK_STAGES[l.kind] && l.locator.trim())
152
- .sort((a, b) => STAGES.indexOf(LINK_STAGES[b.kind]) - STAGES.indexOf(LINK_STAGES[a.kind]));
153
- const link = links[0];
154
- if (link)
155
- return { value: LINK_STAGES[link.kind], evidence: link.locator };
156
- return { value: item.realization === 'in-progress' || item.realization === 'done' ? 'dev' : 'spec' };
157
- }
158
- function issueText(issue) {
159
- const labels = {
160
- 'missing-proposal': 'proposition obligatoire', 'version-only-subject': 'finalité propriétaire manquante',
161
- 'missing-decision-expectations': 'question, options avec conséquences, budget ≤2 min et lien du dossier requis',
162
- 'unrecorded-status': 'statut de conformité non renseigné', 'invalid-report-event': 'événement de rapport invalide',
163
- 'status-contradicts-live-gate': 'statut déclaré contredit par un blocage actif',
164
- 'settled-decision-expectations': 'attendus périmés : décision déjà rendue',
165
- 'decision-expectations-conflict': 'attendus différents du dossier de décision courant',
166
- 'stage-predates-reopening': 'preuve d’étape antérieure à la réouverture',
167
- 'status-predates-reopening': 'conformité à requalifier après la réouverture',
168
- };
169
- return `NON CONFORME : ${labels[issue] ?? issue}.`;
170
- }
171
- /** Keep the existing DÉCISIONS/attendus and recommendation, replacing only the activity tables. */
172
- export function buildStatusTableView(statusTable, report, meta) {
173
- // Deferred decisions still await settlement. Keep legacy rendering unchanged outside this opt-in view.
174
- const decisionsForView = (report.decisions ?? []).map(d => d.outcome === 'deferred' ? { ...d, outcome: 'pending' } : d);
175
- const view = buildWpConductorView(report.wpTree ?? [], decisionsForView, report.outsideRollup, meta.scopeProjection?.label ?? 'global', meta);
176
- const decisions = view.tables.find(t => t.id === 'decisions');
177
- const pendingCount = report.decisions?.filter(d => !isSettled(d.outcome)).length ?? 0;
178
- const omitted = (report.decisions ?? []).filter(d => isSettled(d.outcome)).map(d => ({ label: d.title, reason: 'décision déjà tranchée' }));
179
- const count = statusTable.rows.length + pendingCount + omitted.length;
180
- const coverage = { projected: count, rendered: count - omitted.length, omitted, aggregated: [] };
181
- const recommendation = {
182
- id: 'recommendation', title: 'RECOMMANDATION', render: 'prose', columns: [], rows: [],
183
- lines: [
184
- 'Traiter les lignes dans l’ordre indiqué ; toute NON CONFORME demande une vérification ou un complément avant action.',
185
- '🔴 : instruire la proposition de déblocage. 🔵 : Réponds à la question avec l’option choisie après lecture du dossier ; aucun GO implicite.',
186
- ...(report.decisions ?? []).filter(d => !isSettled(d.outcome) && !d.structured).map(d => `À structurer : ${d.title} — enregistrer les options, leurs conséquences et une recommandation avant de demander une réponse.`),
187
- ...view.tables.find(t => t.id === 'recommendation').lines.filter(line => /^D\d+ /u.test(line)),
188
- ],
189
- };
190
- const requests = redactOwnerTable({
191
- id: 'requests', title: 'DEMANDES', render: 'pipe', columns: COLUMNS,
192
- rows: statusTable.rows.map(row => Object.fromEntries(COLUMNS.map(c => [c.id, row[c.id]]))),
193
- lines: [`ordre : ${statusTable.order} ; ${statusTable.rows.length} demandes, aucune omission.`],
194
- links: statusTable.rows.flatMap((row, index) => row.dossierRefs.map(destination => ({ row: index, column: 'action', label: 'dossier', destination }))),
195
- });
196
- const handles = [
197
- ...statusTable.rows.map(row => ({ handle: row.n, kind: 'item', id: row.id, title: row.request })),
198
- ...view.handles.filter(h => h.kind === 'decision'),
199
- ];
200
- return { ...view, handles, coverage, header: { ...view.header, coverage,
201
- handleCommand: view.header.handleCommand.replace('track report', 'track report --status-table'),
202
- sources: [...view.header.sources, 'track report --status-table ; étapes et statuts enregistrés, sans vérification réseau'],
203
- }, tables: [requests, decisions, redactOwnerTable(recommendation)] };
204
- }
205
- export function renderStatusTable(statusTable, report, format, meta) {
206
- const view = buildStatusTableView(statusTable, report, meta);
207
- if (format === 'json')
208
- return `${JSON.stringify({ ...report, statusTable, view }, null, 2)}\n`;
209
- return renderReportView(view, format);
210
- }
211
- //# sourceMappingURL=status-table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-table.js","sourceRoot":"","sources":["../../src/report/status-table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAyF,MAAM,2BAA2B,CAAA;AACrL,OAAO,EAAE,SAAS,EAAsB,MAAM,sBAAsB,CAAA;AAEpE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAoD,MAAM,aAAa,CAAA;AAExI,MAAM,MAAM,GAAiC,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAA;AAC7H,MAAM,OAAO,GAAiC,EAAE,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,CAAA;AAClH,MAAM,WAAW,GAAgC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAA;AAC/G,MAAM,MAAM,GAAkB,CAAC,MAAM,EAAE,KAAK,EA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AC,OAAO,EAAE,CAAC,CAAC;QAC1G,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC;KACnD,CAAA;IACD,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ;YACrE,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,EAAE,6BAA6B,CAAC;YAC/F,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,uFAAuF,CAAC;SAC3H,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,EAAE,CAAA;AACtE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAwB,EAAE,MAAc,EAAE,MAAc,EAAE,IAAmB;IAC7G,MAAM,IAAI,GAAG,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IAC5D,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAA;IAC9F,OAAO,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;AACvC,CAAC"}
@@ -1,137 +0,0 @@
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.