Skip to content

Commit aa38661

Browse files
committed
fix(pm): dispatch-gates derives the published-README export gate from the claims a diff takes away
check:published-readme-exports reads the built types of 68 packages through the imports of 129 published documents, so a path net would hand it to nearly every card and --commands never derived it. A new change-kind row reaches it through what the documents claim: a new fenced import or member call in a published document, a manifest field or workspace glob that moves the population or a type entry, or a claimed name a reached package's source declares fewer times than the merge base did. The row names the build the gate needs, so an unbuilt run reads NOT MEASURED. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nVzx9yUpEnQaYZcEg
1 parent 7c523aa commit aa38661

3 files changed

Lines changed: 524 additions & 1 deletion

File tree

‎scripts/pm/dispatch-gates.data.mjs‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,6 +1277,16 @@ export const CHANGE_KIND_ROWS = [
12771277
},
12781278
],
12791279
},
1280+
{
1281+
kind: "takes away a claim a published README makes (a fenced import or member call newly written in a published document, a manifest field or workspace glob that moves the documents or their type entries, or a claimed name a reached package's source stops declaring — read from the DIFF against the merge base)",
1282+
matches: 'published-readme-claim',
1283+
gates: [
1284+
{
1285+
name: 'check:published-readme-exports',
1286+
why: "every name a published README's fenced code imports from this repo's scope, and every member it calls on a value built from one, must exist in the BUILT type entry that import resolves to. So a README edit that writes a new claim moves it, and so does a removed or renamed declaration of a claimed name in the imported package or its workspace dependencies, or a manifest that changes what is published or where the types are. It printed in the artifact-roster block and no card was handed it (#31292, the family #31257 left): its reach is the built types of 68 packages, so a path net would name it for nearly every card. This row reaches it through the names the 129 documents claim, matched against the declarations the diff removes, measured against the gate's own reader (364 claims, none missed; 17 of the last 500 commits on main derive it, against 303 that touched a reached package's TypeScript). ⚠ It needs the packages BUILT: on an unbuilt tree it exits 3, PREREQUISITE NOT MET, and that exit means NOT MEASURED, never green. Build first, exactly as lint.yml does: pnpm exec turbo run build --filter=./packages/* --filter=./packages/*/* (quote the filter values for your shell). Repair the README to name what the package really exports, or keep the export; the baseline is MAINTAINER-ONLY",
1287+
},
1288+
],
1289+
},
12801290
];
12811291

12821292
/**

0 commit comments

Comments
 (0)