Skip to content

Commit c9ca215

Browse files
committed
fix(pm): the decision listing states its scope — this repository only (#38874 N-f)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CaUYMgihyBHZ33ewFC
1 parent b4c170a commit c9ca215

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎scripts/pm/check-owed-reviews.mjs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ export function renderDecisionReport(rows, { repo, now, gaps }) {
664664
const n = (pred) => rows.filter(pred).length;
665665
const present = n((r) => r.act === DECISION_ACT_PRESENT);
666666
const lines = [
667-
`check-owed-reviews --decisions — ${repo}, ${new Date(now).toISOString().replace(/:\d\d\.\d{3}Z$/, 'Z')}: ${rows.length} open \`${DECISION_INBOX_LABEL}\` card(s); `
667+
`check-owed-reviews --decisions — ${repo}, ${new Date(now).toISOString().replace(/:\d\d\.\d{3}Z$/, 'Z')}: ${rows.length} open \`${DECISION_INBOX_LABEL}\` card(s), this repository only (another repository's box: --repo OWNER/NAME); `
668668
+ `${present} at tier and current (${DECISION_ACT_PRESENT}), ${rows.length - present} to re-run at tier — `
669669
+ `${n((r) => r.state === 'at-tier') - present} at tier but stale, ${n((r) => r.state === 'below-tier')} below tier, ${n((r) => r.state === 'missing')} missing, ${n((r) => r.state === 'unreadable')} unreadable, ${n((r) => r.state === 'unjudged')} unjudged.`,
670670
'',
@@ -827,7 +827,7 @@ const SELF_TEST_BATTERIES = Object.freeze({
827827
'the report: one line per owing PR, TAKE first, exit 0': 5,
828828
'the hold: a live hold on this head holds (b) alone, (a) and (c) still fire; a new head clears it; at 24 hours it is listed, still WAIT': 14,
829829
// The decision box (`--decisions`): the analysis tier read by the record's own parser, its carrier, its currency.
830-
'the decision box: each open needs-user-decision card\'s analysis tier on its newest carrier — at tier, below, missing, unjudged — whether it is still current, and what the seat does with it': 21,
830+
'the decision box: each open needs-user-decision card\'s analysis tier on its newest carrier — at tier, below, missing, unjudged — whether it is still current, and what the seat does with it': 22,
831831
});
832832
const SELF_TEST_BATTERY_FLOOR = 10;
833833
const UNATTRIBUTED_BATTERY = '(no battery open)';
@@ -1118,6 +1118,7 @@ export function selfTest() {
11181118
};
11191119
const out = [];
11201120
const code = main(['--decisions', '--now', '2026-12-01T00:00:00Z'], { get: boxGet, log: (l) => out.push(l) });
1121+
t('the report states its SCOPE — one repository, and how to read another (#38874 N-f)', renderDecisionReport([], { repo: 'objectstack-ai/objectstack', now: Date.parse('2026-12-01T00:00:00Z'), gaps: [] })[0].includes('this repository only'));
11211122
t('the live read: the label listing through the one reader, a PR dropped, a failed thread a GAP and its card unjudged, exit 0', code === EXIT_OK && boxPaths[0].includes(`labels=${encodeURIComponent(DECISION_INBOX_LABEL)}`) && boxPaths[0].includes('state=open') && out.some((l) => l.startsWith('#38700 unjudged')) && out.some((l) => l.includes('sweep INCOMPLETE')) && !out.some((l) => l.startsWith('#1 ')), out.join(' | '));
11221123
t('the report: re-run rows first, the present row last, and the bound on body edits printed', (() => { const i = out.findIndex((l) => l.startsWith('#38700')); const j = out.findIndex((l) => l.startsWith('#38624')); return i > 0 && j > i && out[j].endsWith('A decision') && out[j].includes(DECISION_ACT_PRESENT) && out.some((l) => l.includes('a body edit that writes no stamp is not seen')); })(), out.join(' | '));
11231124
}

0 commit comments

Comments
 (0)