Skip to content

Commit 913e990

Browse files
committed
test: the verb census and the execctx census fake learn the layered read's ambiguity judge
Claude-Session: https://claude.ai/code/session_01FEkQ5o95tvF7A7y85W37iR Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5c5ee14 commit 913e990

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎packages/metadata-protocol/src/protocol.read-verb-canonical-fold.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async function expectSpellingRefusal(run: () => Promise<unknown>) {
210210
}
211211

212212
describe('#9157 — the population, re-derived from the code rather than from the card', () => {
213-
it('every `/meta` request-boundary verb with a required `type` calls the fold — all eighteen', () => {
213+
it('every `/meta` request-boundary verb with a required `type` calls the fold — all nineteen', () => {
214214
// ⭐ The card hand-listed "nine fold, three do not". Hand-listed sets of
215215
// this shape have shipped short before, so the set is DERIVED here and
216216
// the derivation is the pin: a tenth verb arriving unfolded turns this
@@ -326,6 +326,9 @@ describe('#9157 — the population, re-derived from the code rather than from th
326326
// [#20679] The locked-base verdict a second write door asks — it
327327
// takes the type a caller names, so it folds at the producer too.
328328
'packagedBaseRefusal',
329+
// [#28337] The layered view's door refusal for a name several
330+
// packages hold — the door hands it the type the request named.
331+
'packagelessLayeredReadRefusal',
329332
'publishMetaItem',
330333
'rollbackMetaItem',
331334
'saveMetaItem',

‎packages/rest/src/execctx-consumer-census.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ function metaProtocol(doc: any) {
216216
type: doc.type, name: doc.name, code: doc, overlay: null, overlayScope: null, effective: doc,
217217
}));
218218
}
219+
// [#28337] The layered chain's ambiguity judge in its own shape:
220+
// `undefined`, one holder. The generic answer below is a truthy
221+
// non-refusal the chain would throw as a fault (500), so the
222+
// `/layers` row would stop reaching the answer it measures.
223+
if (k === 'packagelessLayeredReadRefusal') return vi.fn(async () => undefined);
219224
return vi.fn(async () => ({ ok: true, rows: [], data: [], items: [doc], total: 1 }));
220225
},
221226
});

0 commit comments

Comments
 (0)