Skip to content

Commit 1d4c99b

Browse files
committed
test: the constant-carried manifest id the new pattern refuses moves to reverse-domain
`protocol.package-publish-audit-rows.test.ts` declared `const PKG = 'pkg_helpdesk'`, which reaches `manifest: { id: PKG, namespace: NS }` on the `registry.getPackage` stub and is refused by `MANIFEST_ID_PATTERN`. The value becomes `com.example.helpdesk`. Every use reads the constant -- the three `toContain(PKG)` assertions included -- so each case keeps its meaning; the sibling assertion on the namespace prefix (`helpdesk_`) is unaffected, since the new value does not contain it. Verified against the BUILT `ManifestSchema.shape.id` after a spec build, with a lit control on the judge: 'pkg_helpdesk' refused, 'com.example.helpdesk' accepted. Claude-Session: https://claude.ai/code/session_012GcsUbuqFGBibkEDMRC1eE Co-authored-by: Claude <noreply@anthropic.com>
1 parent 866c8cf commit 1d4c99b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/metadata-protocol/src/protocol.package-publish-audit-rows.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ const viewBody = (name: string, label: string, extra: Record<string, unknown> =
369369
});
370370

371371
const ORG = 'org_alpha';
372-
const PKG = 'pkg_helpdesk';
372+
const PKG = 'com.example.helpdesk';
373373

374374
/** Audit rows for one operation, in write order. */
375375
const opRows = (h: Harness, operation: string) =>

0 commit comments

Comments
 (0)