* fix(#4132): verify durable runtime surface sources * chore(#4132): record PR number in changeset * test(#4132): cover rejected commands source alias * fix(#4132): reject aliased package fallback * test(#4132): cover rejected agents source alias * test(#4132): cover partially aliased marker provider * fix(#4132): reject partially aliased source providers * test(#4132): cover routed source identity probes * fix(#4132): route installed source identity probes * refactor(#4132): tighten installer source metadata * test(#4132): cover corpus trust boundary attacks * fix(#4132): close installed corpus trust gaps * refactor(#4132): keep installer authority private * fix(#4132): preserve private installer fallback * test(#4132): preserve fixture source authority * fix(#4132): reject overlapping source fallback * fix(#4132): avoid redundant installed corpus reads * refactor(#4132): simplify provider resolution * test(#4132): sync install tree fixtures after rebase --------- Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
This commit is contained in:
@@ -39,3 +39,18 @@ describe('#2116 regression: surface.md resolvable require + correct package', ()
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#4132 regression: surface.md uses the state-last public contract', () => {
|
||||
// allow-test-rule: source-text-is-the-product (#4132)
|
||||
const content = fs.readFileSync(SURFACE_MD, 'utf-8');
|
||||
|
||||
test('mutations pass an in-memory candidate without an eager state write', () => {
|
||||
assert.match(content, /surfaceState/);
|
||||
assert.match(content, /publishes the candidate state only after/);
|
||||
assert.doesNotMatch(content, /writeSurface\(runtimeConfigDir, surfaceState\)/);
|
||||
});
|
||||
|
||||
test('reset is represented as an absent-state candidate, not an eager delete', () => {
|
||||
assert.match(content, /surfaceState: null/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user