@productbrain/cli 0.1.0-beta.11494 → 0.1.0-beta.11506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/__tests__/adapters.test.js +3 -3
- package/dist/__tests__/adapters.test.js.map +1 -1
- package/dist/__tests__/help-no-ids.test.d.ts +2 -0
- package/dist/__tests__/help-no-ids.test.d.ts.map +1 -0
- package/dist/__tests__/help-no-ids.test.js +54 -0
- package/dist/__tests__/help-no-ids.test.js.map +1 -0
- package/dist/__tests__/session-close-conversation.test.js +0 -1
- package/dist/__tests__/session-close-conversation.test.js.map +1 -1
- package/dist/__tests__/session-close-loop.test.js +0 -1
- package/dist/__tests__/session-close-loop.test.js.map +1 -1
- package/dist/__tests__/session-list-show.test.js +0 -1
- package/dist/__tests__/session-list-show.test.js.map +1 -1
- package/dist/__tests__/session-resume-backstop.test.js +0 -1
- package/dist/__tests__/session-resume-backstop.test.js.map +1 -1
- package/dist/__tests__/session-role-name-sanitize.test.js +0 -1
- package/dist/__tests__/session-role-name-sanitize.test.js.map +1 -1
- package/dist/__tests__/session-switch.test.js +0 -1
- package/dist/__tests__/session-switch.test.js.map +1 -1
- package/dist/__tests__/session.test.js +0 -3
- package/dist/__tests__/session.test.js.map +1 -1
- package/dist/commands/accept-policy.js +1 -1
- package/dist/commands/accept-policy.js.map +1 -1
- package/dist/commands/admin/index.js +1 -1
- package/dist/commands/admin/index.js.map +1 -1
- package/dist/commands/admin/manage.js +3 -3
- package/dist/commands/admin/manage.js.map +1 -1
- package/dist/commands/admin/seed.js +2 -2
- package/dist/commands/admin/seed.js.map +1 -1
- package/dist/commands/conflicts.js +1 -1
- package/dist/commands/conflicts.js.map +1 -1
- package/dist/commands/direction.js +1 -1
- package/dist/commands/direction.js.map +1 -1
- package/dist/commands/orient.js +1 -1
- package/dist/commands/orient.js.map +1 -1
- package/dist/commands/questions.js +2 -2
- package/dist/commands/questions.js.map +1 -1
- package/dist/commands/scoreboard.d.ts +2 -5
- package/dist/commands/scoreboard.d.ts.map +1 -1
- package/dist/commands/scoreboard.js +3 -8
- package/dist/commands/scoreboard.js.map +1 -1
- package/dist/commands/session-hook.js +7 -7
- package/dist/commands/session-hook.js.map +1 -1
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js +1 -9
- package/dist/formatters/__tests__/orient-plannedWorkCut.test.js.map +1 -1
- package/dist/formatters/scoreboard.d.ts.map +1 -1
- package/dist/formatters/scoreboard.js +0 -1
- package/dist/formatters/scoreboard.js.map +1 -1
- package/dist/formatters/scoreboard.test.js +2 -3
- package/dist/formatters/scoreboard.test.js.map +1 -1
- package/dist/generators/adapters.d.ts +3 -3
- package/dist/generators/adapters.d.ts.map +1 -1
- package/dist/generators/adapters.js +8 -11
- package/dist/generators/adapters.js.map +1 -1
- package/dist/generators/adapters.test.js +2 -1
- package/dist/generators/adapters.test.js.map +1 -1
- package/dist/generators/briefing-projections.test.js +5 -30
- package/dist/generators/briefing-projections.test.js.map +1 -1
- package/dist/generators/region.d.ts +1 -1
- package/dist/generators/region.d.ts.map +1 -1
- package/dist/generators/region.js +4 -4
- package/dist/generators/region.js.map +1 -1
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/lib/productbrain-files.js +5 -5
- package/dist/lib/productbrain-files.js.map +1 -1
- package/dist/lib/projectConfig.d.ts +2 -2
- package/dist/lib/projectConfig.js +2 -2
- package/dist/lib/ruleListRender.d.ts +2 -2
- package/dist/lib/ruleListRender.js +2 -2
- package/dist/lib/sessionNotices.d.ts.map +1 -1
- package/dist/lib/sessionNotices.js +0 -4
- package/dist/lib/sessionNotices.js.map +1 -1
- package/dist/lib/workspaceVocabCache.d.ts +2 -2
- package/dist/lib/workspaceVocabCache.js +2 -2
- package/dist/lib/writePerimeter.d.ts +2 -2
- package/dist/lib/writePerimeter.js +2 -2
- package/dist/registerEntryCommands.js +16 -16
- package/dist/registerEntryCommands.js.map +1 -1
- package/dist/registerOutcomeCommands.js +1 -1
- package/dist/registerOutcomeCommands.js.map +1 -1
- package/dist/registerRoleCommands.js +2 -2
- package/dist/registerRoleCommands.js.map +1 -1
- package/dist/registerTensionsCommands.js +1 -1
- package/dist/registerTensionsCommands.js.map +1 -1
- package/dist/scoreboard/diagnose.d.ts +3 -33
- package/dist/scoreboard/diagnose.d.ts.map +1 -1
- package/dist/scoreboard/diagnose.js +10 -137
- package/dist/scoreboard/diagnose.js.map +1 -1
- package/dist/scoreboard/diagnose.test.d.ts +2 -2
- package/dist/scoreboard/diagnose.test.js +5 -102
- package/dist/scoreboard/diagnose.test.js.map +1 -1
- package/dist/scoreboard/floors.d.ts +3 -8
- package/dist/scoreboard/floors.d.ts.map +1 -1
- package/dist/scoreboard/floors.js +0 -17
- package/dist/scoreboard/floors.js.map +1 -1
- package/dist/served-doors.test.d.ts +2 -0
- package/dist/served-doors.test.d.ts.map +1 -0
- package/dist/served-doors.test.js +186 -0
- package/dist/served-doors.test.js.map +1 -0
- package/dist/surfaces/adapters/claude.js +2 -2
- package/package.json +1 -1
- package/dist/commands/handshakeCursorSkillCleanup.d.ts +0 -36
- package/dist/commands/handshakeCursorSkillCleanup.d.ts.map +0 -1
- package/dist/commands/handshakeCursorSkillCleanup.js +0 -110
- package/dist/commands/handshakeCursorSkillCleanup.js.map +0 -1
- package/dist/commands/handshakeDriftClassification.d.ts +0 -33
- package/dist/commands/handshakeDriftClassification.d.ts.map +0 -1
- package/dist/commands/handshakeDriftClassification.js +0 -62
- package/dist/commands/handshakeDriftClassification.js.map +0 -1
- package/dist/formatters/handshake.d.ts +0 -80
- package/dist/formatters/handshake.d.ts.map +0 -1
- package/dist/formatters/handshake.js +0 -217
- package/dist/formatters/handshake.js.map +0 -1
- package/dist/generators/briefing-md.d.ts +0 -8
- package/dist/generators/briefing-md.d.ts.map +0 -1
- package/dist/generators/briefing-md.js +0 -51
- package/dist/generators/briefing-md.js.map +0 -1
- package/dist/generators/context-md.d.ts +0 -13
- package/dist/generators/context-md.d.ts.map +0 -1
- package/dist/generators/context-md.js +0 -95
- package/dist/generators/context-md.js.map +0 -1
- package/dist/generators/everyone-rules-md.d.ts +0 -9
- package/dist/generators/everyone-rules-md.d.ts.map +0 -1
- package/dist/generators/everyone-rules-md.js +0 -21
- package/dist/generators/everyone-rules-md.js.map +0 -1
- package/dist/generators/retired-projections.d.ts +0 -12
- package/dist/generators/retired-projections.d.ts.map +0 -1
- package/dist/generators/retired-projections.js +0 -75
- package/dist/generators/retired-projections.js.map +0 -1
- package/dist/generators/retired-projections.test.d.ts +0 -2
- package/dist/generators/retired-projections.test.d.ts.map +0 -1
- package/dist/generators/retired-projections.test.js +0 -64
- package/dist/generators/retired-projections.test.js.map +0 -1
- package/dist/scoreboard/localDrift.d.ts +0 -23
- package/dist/scoreboard/localDrift.d.ts.map +0 -1
- package/dist/scoreboard/localDrift.js +0 -111
- package/dist/scoreboard/localDrift.js.map +0 -1
- package/dist/scoreboard/localDrift.test.d.ts +0 -9
- package/dist/scoreboard/localDrift.test.d.ts.map +0 -1
- package/dist/scoreboard/localDrift.test.js +0 -82
- package/dist/scoreboard/localDrift.test.js.map +0 -1
|
@@ -11,28 +11,28 @@ const SPINE_LINKS_HELP = `\nThe spine links, child to parent:\n${SPINE_RUNG_LINE
|
|
|
11
11
|
export function registerEntryCommands(program) {
|
|
12
12
|
const entryCmd = program
|
|
13
13
|
.command('entry')
|
|
14
|
-
.description('Entry-lifecycle commands
|
|
14
|
+
.description('Entry-lifecycle commands (propose | accept | discard | resolve | tick)');
|
|
15
15
|
entryCmd
|
|
16
16
|
.command('preflight')
|
|
17
17
|
.description('Read structural requirements before composing an entry; saves nothing')
|
|
18
18
|
.requiredOption('-c, --collection <slug>', 'Collection to inspect')
|
|
19
19
|
.option('--canonical-key <key>', 'Explicit semantic type')
|
|
20
|
-
.option('-l, --link <type:entry-id>', 'Selected context (repeatable); e.g. validates
|
|
20
|
+
.option('-l, --link <type:entry-id>', 'Selected context (repeatable); e.g. validates:<entry-id>', (value, previous) => [...previous, value], [])
|
|
21
21
|
.option('-t, --link-type <type>', 'Type for any --link supplied as a bare entry ID')
|
|
22
22
|
.addHelpText('after', SPINE_LINKS_HELP)
|
|
23
23
|
.action(runEntryPreflight);
|
|
24
24
|
entryCmd
|
|
25
25
|
.command('propose [text...]')
|
|
26
|
-
.description('Propose (capture) a new draft entry — same draft door as `pb capture`
|
|
26
|
+
.description('Propose (capture) a new draft entry — same draft door as `pb capture`')
|
|
27
27
|
.option('-n, --name <name>', 'Entry name (defaults to capture text)')
|
|
28
28
|
.option('-d, --description <desc>', 'Entry description, in Markdown (defaults to capture text)')
|
|
29
29
|
.option('-c, --collection <slug>', 'Explicit collection (skip auto-classification)')
|
|
30
30
|
.option('-f, --field <key=value>', 'Set a data field (repeatable; checklist: -f doneWhen="a" -f doneWhen="b", one item per flag)', (val, prev) => [...prev, val], [])
|
|
31
31
|
.option('-l, --link <entry-id>', 'Link to an existing entry by id or name (repeatable; pairs with the -t in the same position)', (val, prev) => [...prev, val], [])
|
|
32
|
-
.option('-t, --link-type <relation-type>', 'Relation type for the -l in the same position; one per --link, no default
|
|
33
|
-
.option('--source-ref <ref>', 'Source reference URI
|
|
34
|
-
.option('--source-excerpt <text>', 'Verbatim source excerpt
|
|
35
|
-
.option('--draft', 'Force the entry to draft regardless of workspace governance mode
|
|
32
|
+
.option('-t, --link-type <relation-type>', 'Relation type for the -l in the same position; one per --link, no default', (val, prev) => [...prev, val], [])
|
|
33
|
+
.option('--source-ref <ref>', 'Source reference URI')
|
|
34
|
+
.option('--source-excerpt <text>', 'Verbatim source excerpt')
|
|
35
|
+
.option('--draft', 'Force the entry to draft regardless of workspace governance mode')
|
|
36
36
|
.option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
|
|
37
37
|
// WP-640 SWEEP (#653 review): `propose` is advertised as the same draft door as
|
|
38
38
|
// `pb capture` (DEC-1583), but this rung-2 ownership option was never registered or
|
|
@@ -41,8 +41,8 @@ export function registerEntryCommands(program) {
|
|
|
41
41
|
// WP-753 O1b (DEC-1715): --owner-team is deleted — an unnamed create resolves a default
|
|
42
42
|
// owner itself (the session's acting role, else the nearest Team Lead); --owner-role
|
|
43
43
|
// survives as the explicit override, its team the one you hold the role in (root first, else the shallowest).
|
|
44
|
-
.option('--owner-role <entry-id>', 'Existing Role entry ID to create AS OWNER of (
|
|
45
|
-
.option('--team <team-ref>', 'For a role: the team it is born in. For a team: its parent. Defaults to the root team
|
|
44
|
+
.option('--owner-role <entry-id>', 'Existing Role entry ID to create AS OWNER of (you must hold it, and its team is the one you hold it in: root first, else the shallowest)')
|
|
45
|
+
.option('--team <team-ref>', 'For a role: the team it is born in. For a team: its parent. Defaults to the root team')
|
|
46
46
|
.action(async (textParts = [], opts) => {
|
|
47
47
|
const text = textParts.join(' ').trim();
|
|
48
48
|
if (!text && !opts.name) {
|
|
@@ -58,20 +58,20 @@ export function registerEntryCommands(program) {
|
|
|
58
58
|
});
|
|
59
59
|
entryCmd
|
|
60
60
|
.command('accept <entry-ids...>')
|
|
61
|
-
.description('Accept one or more draft entries onto the Chain
|
|
61
|
+
.description('Accept one or more draft entries onto the Chain. Batch: a single failure does not abort the rest.')
|
|
62
62
|
.option('-m, --message <text>', 'Commit message (applied to every entry in the batch)')
|
|
63
63
|
.option('--override-reason <text>', 'Why (≥12 chars) to clear a steering coherency block or accept a text its quality checklist failed — recorded as an override with who wrote it')
|
|
64
|
-
.option('--acknowledge <response>', 'Respond to a coherency challenge: linked | accepted-fix | diverged
|
|
64
|
+
.option('--acknowledge <response>', 'Respond to a coherency challenge: linked | accepted-fix | diverged')
|
|
65
65
|
.option('--ack-entry <entry-id>', 'Authorizing entry for --acknowledge linked / accepted-fix')
|
|
66
66
|
.option('--ack-reason <text>', 'Divergence rationale (≥12 chars) for --acknowledge diverged')
|
|
67
|
-
.option('--replaces <entry-id>', 'The accepted entry this one replaces: it is archived and what hangs on it moves here
|
|
67
|
+
.option('--replaces <entry-id>', 'The accepted entry this one replaces: it is archived and what hangs on it moves here')
|
|
68
68
|
.action(async (entryIds, opts) => {
|
|
69
69
|
const { message, overrideReason, acknowledge, ackEntry, ackReason, replaces } = opts;
|
|
70
70
|
await runEntryAccept({ entryIds, message, overrideReason, acknowledge, ackEntry, ackReason, replaces });
|
|
71
71
|
});
|
|
72
72
|
entryCmd
|
|
73
73
|
.command('discard <entry-id>')
|
|
74
|
-
.description('Discard a draft or current entry: it moves to the collection\'s Discarded word
|
|
74
|
+
.description('Discard a draft or current entry: it moves to the collection\'s Discarded word')
|
|
75
75
|
.option('--reason <text>', 'Free text recorded in the history note')
|
|
76
76
|
.option('--note <text>', 'Change note for history')
|
|
77
77
|
.action(async (entryId, opts) => {
|
|
@@ -79,7 +79,7 @@ export function registerEntryCommands(program) {
|
|
|
79
79
|
});
|
|
80
80
|
entryCmd
|
|
81
81
|
.command('resolve <entry-id>')
|
|
82
|
-
.description('Resolve a current entry: it moves to the collection\'s Past archive word
|
|
82
|
+
.description('Resolve a current entry: it moves to the collection\'s Past archive word')
|
|
83
83
|
.option('--reason <text>', 'Free text recorded in the history note')
|
|
84
84
|
.option('--note <text>', 'Change note for history')
|
|
85
85
|
.action(async (entryId, opts) => {
|
|
@@ -98,7 +98,7 @@ export function registerEntryCommands(program) {
|
|
|
98
98
|
// unowned; reassignment is the only way ownership changes).
|
|
99
99
|
entryCmd
|
|
100
100
|
.command('own <entry-id>')
|
|
101
|
-
.description('Assign an entry to one exact team and role
|
|
101
|
+
.description('Assign an entry to one exact team and role')
|
|
102
102
|
.requiredOption('--team <team-id>', 'Existing Team entry ID')
|
|
103
103
|
.requiredOption('--role <role-id>', 'Existing Role entry ID')
|
|
104
104
|
.action(async (entryId, opts) => {
|
|
@@ -114,7 +114,7 @@ export function registerRelateCommands(program) {
|
|
|
114
114
|
.command('relate <from-id> <type> <to-id>')
|
|
115
115
|
.description('Add a typed relation between two entries (requires active session)')
|
|
116
116
|
.option('--if-missing', 'Only create relation if it does not already exist')
|
|
117
|
-
.option('--dry-run', 'Preview the write (advisories, wouldBlock) without creating the relation
|
|
117
|
+
.option('--dry-run', 'Preview the write (advisories, wouldBlock) without creating the relation')
|
|
118
118
|
.addHelpText('after', SPINE_LINKS_HELP)
|
|
119
119
|
.action(async (fromId, type, toId, opts) => {
|
|
120
120
|
await runRelate({ fromId, type, toId, ifMissing: opts.ifMissing, dryRun: opts.dryRun });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerEntryCommands.js","sourceRoot":"","sources":["../src/registerEntryCommands.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,yHAAyH;AACzH,MAAM,gBAAgB,GAAG,wCAAwC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAE5H,MAAM,UAAU,qBAAqB,CAAC,OAAgB;IACpD,MAAM,QAAQ,GAAG,OAAO;SACrB,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"registerEntryCommands.js","sourceRoot":"","sources":["../src/registerEntryCommands.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,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eShow } from './commands/out
|
|
|
2
2
|
export function registerOutcomeCommands(program) {
|
|
3
3
|
const outcomeCmd = program
|
|
4
4
|
.command('outcome')
|
|
5
|
-
.description('Key-result outcomes — record and read the measured readings behind a number
|
|
5
|
+
.description('Key-result outcomes — record and read the measured readings behind a number');
|
|
6
6
|
outcomeCmd
|
|
7
7
|
.command('record <entry-id> <value>')
|
|
8
8
|
.description('Record a reading — evidence, not a verdict; any connector may record one')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerOutcomeCommands.js","sourceRoot":"","sources":["../src/registerOutcomeCommands.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEzF,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACvD,MAAM,UAAU,GAAG,OAAO;SACxB,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"registerOutcomeCommands.js","sourceRoot":"","sources":["../src/registerOutcomeCommands.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEzF,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACvD,MAAM,UAAU,GAAG,OAAO;SACxB,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,6EAA6E,CAAC,CAAC;IAE7F,UAAU;SACR,OAAO,CAAC,2BAA2B,CAAC;SACpC,WAAW,CAAC,0EAA0E,CAAC;SACvF,MAAM,CAAC,gBAAgB,EAAE,yGAAyG,CAAC;SACnI,MAAM,CAAC,eAAe,EAAE,4DAA4D,CAAC;SACrF,MAAM,CAAC,yBAAyB,EAAE,wGAAwG,CAAC;SAC3I,MAAM,CAAC,qBAAqB,EAAE,uFAAuF,CAAC;SACtH,MAAM,CAAC,eAAe,EAAE,0CAA0C,CAAC;SACnE,MAAM,CAAC,iBAAiB,EAAE,+DAA+D,CAAC;SAC1F,MAAM,CAAC,qBAAqB,EAAE,6FAA6F,CAAC;SAC5H,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAE3B,UAAU;SACR,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,0FAA0F,CAAC;SACvG,MAAM,CAAC,aAAa,EAAE,8CAA8C,CAAC;SACrE,MAAM,CAAC,cAAc,CAAC,CAAC;IAEzB,UAAU;SACR,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,uHAAuH,CAAC;SACpI,MAAM,CAAC,cAAc,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -6,7 +6,7 @@ export function registerRoleCommands(program) {
|
|
|
6
6
|
.description('Roles — who is accountable for what, and who holds them');
|
|
7
7
|
roleCmd
|
|
8
8
|
.command('list')
|
|
9
|
-
.description('Roles in the workspace with their id, name, team and holder count; draft roles are not listed
|
|
9
|
+
.description('Roles in the workspace with their id, name, team and holder count; draft roles are not listed')
|
|
10
10
|
.action(runRoleList);
|
|
11
11
|
roleCmd
|
|
12
12
|
.command('accountable <role-id>')
|
|
@@ -18,7 +18,7 @@ export function registerRoleCommands(program) {
|
|
|
18
18
|
roleCmd
|
|
19
19
|
.command('seat <role-id>')
|
|
20
20
|
.description('Put a person in this role, in its home team; their other roles there stay\n'
|
|
21
|
-
+ 'Example: pb role seat
|
|
21
|
+
+ 'Example: pb role seat <role-id> --new-person "Jan Jansen"')
|
|
22
22
|
.option('--person <id-or-email>', 'An existing person, by person id or exact email')
|
|
23
23
|
.option('--new-person <name>', 'A person with no login yet: the same exact name twice is one placeholder; a name that belongs to someone with an account is refused')
|
|
24
24
|
.option('--team <team-id>', 'Only for Team Lead, which is held in every team')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRoleCommands.js","sourceRoot":"","sources":["../src/registerRoleCommands.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,EAA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AiD,CAAC;SAC7E,MAAM,CAAC,mBAAmB,EAAE,sGAAsG,CAAC;SACnI,MAAM,CAAC,WAAW,CAAC,CAAC;IAEtB,OAAO;SACL,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,kHAAkH,CAAC;SAC/H,cAAc,CAAC,wBAAwB,EAAE,yCAAyC,CAAC;SACnF,MAAM,CAAC,kBAAkB,EAAE,iDAAiD,CAAC;SAC7E,MAAM,CAAC,aAAa,CAAC,CAAC;IAExB,OAAO;SACL,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,0BAA0B,CAAC;SACvC,OAAO,CAAC,oBAAoB,CAAC;SAC7B,WAAW,CAAC,qHAAqH;UAC/H,+DAA+D,CAAC;SAClE,cAAc,CAAC,iBAAiB,EAAE,2BAA2B,CAAC;SAC9D,MAAM,CAAC,eAAe,EAAE,yDAAyD,CAAC;SAClF,MAAM,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { runTensionsList } from './commands/tensionsList.js';
|
|
|
2
2
|
export function registerTensionsCommands(program) {
|
|
3
3
|
const tensionsCmd = program
|
|
4
4
|
.command('tensions')
|
|
5
|
-
.description('Tension-scoped commands
|
|
5
|
+
.description('Tension-scoped commands');
|
|
6
6
|
tensionsCmd
|
|
7
7
|
.command('list')
|
|
8
8
|
.description('List tensions — collection-scoped, status-filtered, cursor-paged (replaces the always-zero tensionCount in `pb brief confidence`)')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerTensionsCommands.js","sourceRoot":"","sources":["../src/registerTensionsCommands.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACvD,MAAM,WAAW,GAAG,OAAO;SACxB,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"registerTensionsCommands.js","sourceRoot":"","sources":["../src/registerTensionsCommands.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACvD,MAAM,WAAW,GAAG,OAAO;SACxB,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAE1C,WAAW;SACR,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,mIAAmI,CAAC;SAChJ,MAAM,CAAC,+BAA+B,EAAE,oEAAoE,CAAC;SAC7G,MAAM,CAAC,kBAAkB,EAAE,4DAA4D,CAAC;SACxF,MAAM,CAAC,KAAK,EAAE,IAA0C,EAAE,EAAE;QAC3D,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/** A metric's diagnosis status. */
|
|
10
10
|
export type DiagnosisStatus = 'ok' | 'degraded' | 'awaiting' | 'unmeasured';
|
|
11
11
|
export interface MetricDiagnosis {
|
|
12
|
-
/** The metric id (M3
|
|
12
|
+
/** The metric id (M3, M4, MOAT) + a short human label. M1 is retired (DEC-1829). */
|
|
13
13
|
metric: string;
|
|
14
14
|
label: string;
|
|
15
15
|
status: DiagnosisStatus;
|
|
@@ -127,17 +127,6 @@ export interface ScoreboardPayload {
|
|
|
127
127
|
materialization: MaterializationPayload;
|
|
128
128
|
coherence: CoherencePayload;
|
|
129
129
|
}
|
|
130
|
-
/**
|
|
131
|
-
* The CLI-computed M5 local-pull drift (A5). Produced by computeLocalDrift() (NOT the data layer
|
|
132
|
-
* — DEC-1284). `null` fields mean local/server data was unavailable; fails soft to `awaiting`.
|
|
133
|
-
*/
|
|
134
|
-
export interface LocalDriftM5 {
|
|
135
|
-
localProjectionMtime: number | null;
|
|
136
|
-
serverMaterializedAt: number | null;
|
|
137
|
-
localLagMs: number | null;
|
|
138
|
-
localAgeMs: number | null;
|
|
139
|
-
unavailableReason?: string;
|
|
140
|
-
}
|
|
141
130
|
/**
|
|
142
131
|
* M3 — draft-to-SSOT rate. The in-session-ratify floor (ASM-45 rolling-20 window) is PINNED
|
|
143
132
|
* per DEC-1513 (`M3_IN_SESSION_FLOOR`) — a determinable reading renders a real `ok`/`degraded`
|
|
@@ -151,21 +140,6 @@ export declare function diagnoseM3(m3: M3Payload): MetricDiagnosis;
|
|
|
151
140
|
* `unmeasured` with nothing served; `awaiting` otherwise (no floor pinned yet).
|
|
152
141
|
*/
|
|
153
142
|
export declare function diagnoseM4(m4: M4Payload): MetricDiagnosis;
|
|
154
|
-
/**
|
|
155
|
-
* M5 — projection staleness, computed as LOCAL-PULL drift at the CLI (DEC-1284). The staleness-age
|
|
156
|
-
* floor is PINNED per DEC-1513 (`M5_LOCAL_AGE_FLOOR_DAYS`) — a determinable reading renders a real
|
|
157
|
-
* `ok`/`degraded` verdict. Unavailable local/server data → `unmeasured` with the reason, fail-soft.
|
|
158
|
-
*/
|
|
159
|
-
export declare function diagnoseM5(m5: LocalDriftM5): MetricDiagnosis;
|
|
160
|
-
/**
|
|
161
|
-
* M5 (server view) — the Cortex page has NO local filesystem, so it cannot compute the spec's
|
|
162
|
-
* local-pull drift (DEC-1284). It reads only the server-side projection-generation building block
|
|
163
|
-
* (`materialization.latestMaterializedAt` / age) — adding NO new truth (spec §2d). Deliberately a
|
|
164
|
-
* DIFFERENT, HONEST framing from `diagnoseM5`: SERVER-generation age, never local-pull staleness.
|
|
165
|
-
* The staleness-age floor is PINNED per DEC-1513 (`M5_SERVER_AGE_FLOOR_DAYS`); `unmeasured` when
|
|
166
|
-
* the workspace has never materialized.
|
|
167
|
-
*/
|
|
168
|
-
export declare function diagnoseM5FromServer(materialization: MaterializationPayload): MetricDiagnosis;
|
|
169
143
|
/** The STANDING coaching/moat-quality `unmeasured` line (TEN-2377) — a permanent honesty marker
|
|
170
144
|
* so four green tiles are never read as "the moat is healthy". */
|
|
171
145
|
export declare function diagnoseCoachingMoat(): MetricDiagnosis;
|
|
@@ -173,13 +147,9 @@ export declare function diagnoseCoachingMoat(): MetricDiagnosis;
|
|
|
173
147
|
export interface ScoreboardDiagnosis {
|
|
174
148
|
m3: MetricDiagnosis;
|
|
175
149
|
m4: MetricDiagnosis;
|
|
176
|
-
m5: MetricDiagnosis;
|
|
177
150
|
/** Standing honesty marker — coaching/moat quality is unmeasured. */
|
|
178
151
|
moat: MetricDiagnosis;
|
|
179
152
|
}
|
|
180
|
-
/** diagnose — data-layer payload
|
|
181
|
-
export declare function diagnose(payload: ScoreboardPayload
|
|
182
|
-
/** diagnoseFromServer — Cortex has NO local fs, so M5 uses `diagnoseM5FromServer`'s
|
|
183
|
-
* server-generation-age view instead of local-pull drift. Otherwise identical to `diagnose`. */
|
|
184
|
-
export declare function diagnoseFromServer(payload: ScoreboardPayload): ScoreboardDiagnosis;
|
|
153
|
+
/** diagnose — data-layer payload → per-metric diagnoses. Pure. */
|
|
154
|
+
export declare function diagnose(payload: ScoreboardPayload): ScoreboardDiagnosis;
|
|
185
155
|
//# sourceMappingURL=diagnose.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnose.d.ts","sourceRoot":"","sources":["../../src/scoreboard/diagnose.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"diagnose.d.ts","sourceRoot":"","sources":["../../src/scoreboard/diagnose.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsCH,mCAAmC;AACnC,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;AAE5E,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,KAAK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M,CAAC,CAAC,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAC9G,yBAAyB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;CAC/G;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,SAAS,CAAC;IACd,EAAE,EAAE,SAAS,CAAC;IACd,eAAe,EAAE,sBAAsB,CAAC;IACxC,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAoBD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,eAAe,CAoCzD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,eAAe,CA2BzD;AAED;mEACmE;AACnE,wBAAgB,oBAAoB,IAAI,eAAe,CAUtD;AAED,mEAAmE;AACnE,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,eAAe,CAAC;IACpB,EAAE,EAAE,eAAe,CAAC;IACpB,qEAAqE;IACrE,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,kEAAkE;AAClE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,mBAAmB,CAMxE"}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*
|
|
12
12
|
* This is the layer that turns a raw number into the agent closing the loop. It is a PURE
|
|
13
13
|
* mapping (no I/O — no fs, no node, no Convex runtime) from the data-layer payload
|
|
14
|
-
* (M3/M4/materialization, from the internal `scoreboard` action — M1 is retired, DEC-1829
|
|
15
|
-
*
|
|
16
|
-
* nextAction }`.
|
|
14
|
+
* (M3/M4/materialization, from the internal `scoreboard` action — M1 is retired, DEC-1829; M5,
|
|
15
|
+
* projection staleness, left with the projection files, DEC-2098) to per-metric diagnoses:
|
|
16
|
+
* `{ status, reading, cause, nextAction }`.
|
|
17
17
|
*
|
|
18
18
|
* WHY THIS LIVES IN ITS OWN WORKSPACE PACKAGE (`@product-brain/scoreboard-core`): canonical SSOT
|
|
19
19
|
* for the `pb` CLI's scoreboard diagnosis (pretty + --json) — the CLI cannot import across the
|
|
@@ -22,17 +22,13 @@
|
|
|
22
22
|
* `convex/lib/flags_core.ts` → `src/flags.ts`). The Cortex scoreboard page that used to share
|
|
23
23
|
* this package is deleted at WP-772 T1, root `package.json` dependency removed with it.
|
|
24
24
|
*
|
|
25
|
-
* NOTHING HERE TOUCHES fs/node/Convex
|
|
26
|
-
* `.productbrain/`) stays in `packages/cli/src/scoreboard/localDrift.ts`. `diagnoseM5` itself is
|
|
27
|
-
* pure (it maps a LocalDriftM5 → diagnosis) and lives here; only the fs *collection* of that
|
|
28
|
-
* LocalDriftM5 is CLI-only.
|
|
25
|
+
* NOTHING HERE TOUCHES fs/node/Convex.
|
|
29
26
|
*
|
|
30
27
|
* HONESTY OVER FLATTERY (spec §0, §2c). The hard rules this layer encodes:
|
|
31
28
|
* - Most flip thresholds remain UNPINNED (DEC-1282): `awaiting`, NEVER an invented number;
|
|
32
29
|
* the RAW reading is always shown. **Exception (DEC-1513, 2026-07-26):** M3's in-session
|
|
33
|
-
* floor
|
|
34
|
-
*
|
|
35
|
-
* advisory-never-blocking semantics still hold — a pinned floor only changes `status`.
|
|
30
|
+
* floor IS pinned (`./floors.ts`) — `diagnoseM3` renders a real `ok`/`degraded` verdict.
|
|
31
|
+
* DEC-1282's advisory-never-blocking semantics still hold — a pinned floor only changes `status`.
|
|
36
32
|
* - M4 (WP-487 Slice 2, FEAT-1374: the organic rework meter) is now IN the data payload —
|
|
37
33
|
* raw distribution only, `unmeasured` with nothing served yet, `awaiting` otherwise (no
|
|
38
34
|
* first-time-good floor is pinned), NEVER a fake green, NEVER a causality claim.
|
|
@@ -43,30 +39,17 @@
|
|
|
43
39
|
* Pure + exported so the diagnosis unit tests assert the awaiting/unmeasured/degraded mapping
|
|
44
40
|
* without any network or filesystem.
|
|
45
41
|
*/
|
|
46
|
-
import { M3_IN_SESSION_FLOOR
|
|
42
|
+
import { M3_IN_SESSION_FLOOR } from './floors.js';
|
|
47
43
|
// User-facing copy carries NO raw Chain IDs (chain-id-leak guard) — the CLI prints `cause`/
|
|
48
44
|
// `nextAction`/`reading` verbatim to any tenant's terminal; IDs are cited in comments only.
|
|
49
45
|
const UNPINNED = 'threshold unpinned — pin against the live distribution';
|
|
50
|
-
// DEC-1513 (2026-07-26) pinned M3's
|
|
51
|
-
// how-to-tune. VISIBILITY GAP (carried from WP-527): reaches the `pb scoreboard` CLI but NOT
|
|
52
|
-
// Cortex (+page.svelte:171 renders only tile.reading) — disclosed follow-up, out of scope here.
|
|
53
|
-
const DAY_MS = 1000 * 60 * 60 * 24;
|
|
46
|
+
// DEC-1513 (2026-07-26) pinned M3's floor — see ./floors.ts for value/rationale/how-to-tune.
|
|
54
47
|
function isDeterminate(n) {
|
|
55
48
|
return typeof n === 'number' && Number.isFinite(n);
|
|
56
49
|
}
|
|
57
50
|
function pct(n) {
|
|
58
51
|
return isDeterminate(n) ? `${(n * 100).toFixed(0)}%` : 'n/a';
|
|
59
52
|
}
|
|
60
|
-
function ms(n) {
|
|
61
|
-
if (!isDeterminate(n))
|
|
62
|
-
return 'n/a';
|
|
63
|
-
const h = n / (1000 * 60 * 60);
|
|
64
|
-
if (h < 1)
|
|
65
|
-
return `${(n / (1000 * 60)).toFixed(0)}m`;
|
|
66
|
-
if (h < 48)
|
|
67
|
-
return `${h.toFixed(1)}h`;
|
|
68
|
-
return `${(h / 24).toFixed(1)}d`;
|
|
69
|
-
}
|
|
70
53
|
function pctPrecise(n, floorValue) {
|
|
71
54
|
if (!isDeterminate(n))
|
|
72
55
|
return 'n/a';
|
|
@@ -148,105 +131,6 @@ export function diagnoseM4(m4) {
|
|
|
148
131
|
nextAction: 'pin the first-time-good floor once a predeclared observation window completes (WP-C spec §9); if false-attribution stays high, the pb-reported signal may be missing real rework events a CI/git signal would catch (spec §6 tripwire)',
|
|
149
132
|
};
|
|
150
133
|
}
|
|
151
|
-
/**
|
|
152
|
-
* M5 — projection staleness, computed as LOCAL-PULL drift at the CLI (DEC-1284). The staleness-age
|
|
153
|
-
* floor is PINNED per DEC-1513 (`M5_LOCAL_AGE_FLOOR_DAYS`) — a determinable reading renders a real
|
|
154
|
-
* `ok`/`degraded` verdict. Unavailable local/server data → `unmeasured` with the reason, fail-soft.
|
|
155
|
-
*/
|
|
156
|
-
export function diagnoseM5(m5) {
|
|
157
|
-
if (m5.unavailableReason || !isDeterminate(m5.localProjectionMtime)) {
|
|
158
|
-
return {
|
|
159
|
-
metric: 'M5',
|
|
160
|
-
label: 'Projection staleness (local-pull drift)',
|
|
161
|
-
status: 'unmeasured',
|
|
162
|
-
reading: m5.unavailableReason ?? 'local .productbrain/ projection not found',
|
|
163
|
-
cause: 'cannot stat the local projection — local-pull drift is undeterminable here',
|
|
164
|
-
nextAction: 'run from a worktree with a materialized .productbrain/ (pb handshake), then re-read',
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
// No server materialization → the local-pull DRIFT (server−local) is undeterminable —
|
|
168
|
-
// `unmeasured`, not `awaiting` with a misleading local-lag=n/a. local-age is still surfaced.
|
|
169
|
-
if (!isDeterminate(m5.serverMaterializedAt) || !isDeterminate(m5.localLagMs)) {
|
|
170
|
-
return {
|
|
171
|
-
metric: 'M5',
|
|
172
|
-
label: 'Projection staleness (local-pull drift)',
|
|
173
|
-
status: 'unmeasured',
|
|
174
|
-
reading: `local-age=${ms(m5.localAgeMs)} · server materialization: none (drift undeterminable)`,
|
|
175
|
-
cause: 'no server materialization to diff against — local-pull drift (server−local) cannot be computed',
|
|
176
|
-
nextAction: 'materialize the projection server-side (pb handshake), then re-read to measure drift',
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
const lag = m5.localLagMs;
|
|
180
|
-
const age = m5.localAgeMs;
|
|
181
|
-
const reading = `local-lag=${ms(lag)} (server−local) · local-age=${ms(age)}`;
|
|
182
|
-
if (!isDeterminate(age)) {
|
|
183
|
-
// Type-level fail-soft — undeterminable, never a fake ok/degraded.
|
|
184
|
-
return {
|
|
185
|
-
metric: 'M5',
|
|
186
|
-
label: 'Projection staleness (local-pull drift)',
|
|
187
|
-
status: 'awaiting',
|
|
188
|
-
reading,
|
|
189
|
-
cause: `local-age undeterminable — pinned staleness floor ${M5_LOCAL_AGE_FLOOR_DAYS.value}d cannot be compared`,
|
|
190
|
-
nextAction: 're-run pb handshake to re-pull the projection, then re-read',
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
const ageDays = age / DAY_MS;
|
|
194
|
-
const meets = ageDays <= M5_LOCAL_AGE_FLOOR_DAYS.value;
|
|
195
|
-
return {
|
|
196
|
-
metric: 'M5',
|
|
197
|
-
label: 'Projection staleness (local-pull drift)',
|
|
198
|
-
status: meets ? 'ok' : 'degraded',
|
|
199
|
-
reading,
|
|
200
|
-
cause: meets
|
|
201
|
-
? `local-age ${ms(age)} is at/under the pinned staleness floor ${M5_LOCAL_AGE_FLOOR_DAYS.value}d`
|
|
202
|
-
: `local-age ${ms(age)} exceeds the pinned staleness floor ${M5_LOCAL_AGE_FLOOR_DAYS.value}d — this is the one metric where PB can be staler than the never-drifting CLAUDE.md file`,
|
|
203
|
-
nextAction: meets ? '' : 're-run pb handshake to re-pull the projection',
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* M5 (server view) — the Cortex page has NO local filesystem, so it cannot compute the spec's
|
|
208
|
-
* local-pull drift (DEC-1284). It reads only the server-side projection-generation building block
|
|
209
|
-
* (`materialization.latestMaterializedAt` / age) — adding NO new truth (spec §2d). Deliberately a
|
|
210
|
-
* DIFFERENT, HONEST framing from `diagnoseM5`: SERVER-generation age, never local-pull staleness.
|
|
211
|
-
* The staleness-age floor is PINNED per DEC-1513 (`M5_SERVER_AGE_FLOOR_DAYS`); `unmeasured` when
|
|
212
|
-
* the workspace has never materialized.
|
|
213
|
-
*/
|
|
214
|
-
export function diagnoseM5FromServer(materialization) {
|
|
215
|
-
if (!isDeterminate(materialization.latestMaterializedAt)) {
|
|
216
|
-
return {
|
|
217
|
-
metric: 'M5',
|
|
218
|
-
label: 'Projection staleness (server generation age)',
|
|
219
|
-
status: 'unmeasured',
|
|
220
|
-
reading: 'no materialization receipt yet — the projection has never been generated server-side',
|
|
221
|
-
cause: 'nothing to age — the workspace has not materialized its projection',
|
|
222
|
-
nextAction: 'run pb handshake to materialize the projection, then re-read',
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
const age = materialization.materializationAgeMs;
|
|
226
|
-
if (!isDeterminate(age)) {
|
|
227
|
-
// Type-level fail-soft — undeterminable, never a fake ok/degraded.
|
|
228
|
-
return {
|
|
229
|
-
metric: 'M5',
|
|
230
|
-
label: 'Projection staleness (server generation age)',
|
|
231
|
-
status: 'awaiting',
|
|
232
|
-
reading: 'server-generation age=n/a (browser view: local-pull drift is CLI-only)',
|
|
233
|
-
cause: `server-generation age undeterminable — pinned staleness floor ${M5_SERVER_AGE_FLOOR_DAYS.value}d cannot be compared`,
|
|
234
|
-
nextAction: 're-run pb handshake to re-generate the projection, then re-read',
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
const ageDays = age / DAY_MS;
|
|
238
|
-
const meets = ageDays <= M5_SERVER_AGE_FLOOR_DAYS.value;
|
|
239
|
-
return {
|
|
240
|
-
metric: 'M5',
|
|
241
|
-
label: 'Projection staleness (server generation age)',
|
|
242
|
-
status: meets ? 'ok' : 'degraded',
|
|
243
|
-
reading: `server-generation age=${ms(age)} (browser view: local-pull drift is CLI-only)`,
|
|
244
|
-
cause: meets
|
|
245
|
-
? `server-generation age ${ms(age)} is at/under the pinned staleness floor ${M5_SERVER_AGE_FLOOR_DAYS.value}d`
|
|
246
|
-
: `server-generation age ${ms(age)} exceeds the pinned staleness floor ${M5_SERVER_AGE_FLOOR_DAYS.value}d — this is the one metric where PB can be staler than the never-drifting CLAUDE.md file`,
|
|
247
|
-
nextAction: meets ? '' : 're-run pb handshake to re-generate the projection',
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
134
|
/** The STANDING coaching/moat-quality `unmeasured` line (TEN-2377) — a permanent honesty marker
|
|
251
135
|
* so four green tiles are never read as "the moat is healthy". */
|
|
252
136
|
export function diagnoseCoachingMoat() {
|
|
@@ -260,22 +144,11 @@ export function diagnoseCoachingMoat() {
|
|
|
260
144
|
nextAction: 'do NOT read four green tiles as a healthy moat; the real instrument is the blind-padding-rate test',
|
|
261
145
|
};
|
|
262
146
|
}
|
|
263
|
-
/** diagnose — data-layer payload
|
|
264
|
-
export function diagnose(payload
|
|
265
|
-
return {
|
|
266
|
-
m3: diagnoseM3(payload.m3),
|
|
267
|
-
m4: diagnoseM4(payload.m4),
|
|
268
|
-
m5: diagnoseM5(m5),
|
|
269
|
-
moat: diagnoseCoachingMoat(),
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
/** diagnoseFromServer — Cortex has NO local fs, so M5 uses `diagnoseM5FromServer`'s
|
|
273
|
-
* server-generation-age view instead of local-pull drift. Otherwise identical to `diagnose`. */
|
|
274
|
-
export function diagnoseFromServer(payload) {
|
|
147
|
+
/** diagnose — data-layer payload → per-metric diagnoses. Pure. */
|
|
148
|
+
export function diagnose(payload) {
|
|
275
149
|
return {
|
|
276
150
|
m3: diagnoseM3(payload.m3),
|
|
277
151
|
m4: diagnoseM4(payload.m4),
|
|
278
|
-
m5: diagnoseM5FromServer(payload.materialization),
|
|
279
152
|
moat: diagnoseCoachingMoat(),
|
|
280
153
|
};
|
|
281
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnose.js","sourceRoot":"","sources":["../../src/scoreboard/diagnose.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH
|
|
1
|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AyB;QAChC,MAAM,EAAE,YAAY;QACpB,wEAAwE;QACxE,OAAO,EAAE,yBAAyB;QAClC,KAAK,EAAE,0GAA0G;QACjH,UAAU,EAAE,oGAAoG;KACjH,CAAC;AACJ,CAAC;AAUD,kEAAkE;AAClE,MAAM,UAAU,QAAQ,CAAC,OAA0B;IACjD,OAAO;QACL,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1B,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1B,IAAI,EAAE,oBAAoB,EAAE;KAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Asserts the pure metric→{status,reading,cause,nextAction} mapping, with explicit coverage of
|
|
5
5
|
* the awaiting / unmeasured / degraded / ok states and the honesty invariants:
|
|
6
6
|
* - Most flip thresholds remain unpinned (DEC-1282) → judged readings are `awaiting`, never an
|
|
7
|
-
* invented number, and the raw reading is always present. M3's in-session-ratify floor
|
|
8
|
-
*
|
|
7
|
+
* invented number, and the raw reading is always present. M3's in-session-ratify floor is
|
|
8
|
+
* the pinned exception (DEC-1513, WP-525) — see below.
|
|
9
9
|
* - M4 (WP-487 Slice 2, FEAT-1374: the organic rework meter) reports raw distribution only —
|
|
10
10
|
* `unmeasured` with nothing served yet, `awaiting` otherwise, never a fake green, never a
|
|
11
11
|
* causality claim.
|