mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
feat(evals): planner-side whole-panel reuse and negative receipts
The planner job restores this PR's receipt store once and ships a single filtered set with the plan: a pass or panel receipt with a same-or-newer FAIL for its input identity is dropped, and a panel receipt ships only as a whole PASS panel (re-verified with panelVerdict) from one run. Executors read only that set (no per-slice cache restore or save), so every trial of a panel sees the same receipts; a trial reuses its own record from the panel receipt, keeping a split PASS's failed trial. Trial identities drop the trial index (run-scoped) and bind the panel policy. Executed shards carry their input identity; the report turns a whole fresh PASS panel into a panel receipt and a FAIL panel or failed rule shard into a negative receipt, and marks a panel that mixes reused and fresh trials INCOMPLETE. The report job merges plan, slice and report receipts (newest per file) and saves one store per run. Also fixes two TS2352 casts in browse/test/dia-macos-qualification.test.ts whose diagnostic text drifted with program order (baseline locked, fix only).
This commit is contained in:
1 parent
8622535b90
commit
3bae8e33da
9 files changed
+410
-110
No files matched your search
@@ -1214,7 +1214,7 @@ Binary Images:
|
||||
{ status: 1, stdout: '', stderr: '' }, { status: 0, stdout: '', stderr: '' },
|
||||
{ status: 0, stdout: 'truncated-private-row', stderr: '' },
|
||||
{ status: null, stdout: null, stderr: null, error: new Error('synthetic-private-error') },
|
||||
]) expect(inspectUidProcesses(23456, performance.now() + 10_000, {}, (() => result) as typeof spawnSync)).toEqual({ available: false });
|
||||
]) expect(inspectUidProcesses(23456, performance.now() + 10_000, {}, (() => result) as unknown as typeof spawnSync)).toEqual({ available: false });
|
||||
});
|
||||
|
||||
test('numeric UID process filtering runs through the real global process table', () => {
|
||||
@@ -1251,7 +1251,7 @@ Binary Images:
|
||||
{ status: 113, stdout: '', stderr: 'Could not find domain for user uid: 23456' },
|
||||
{ status: null, stdout: null, stderr: null, error: new Error('synthetic-private-error') },
|
||||
]) {
|
||||
const observation = inspectUserDomain(23456, performance.now() + 10_000, {}, (() => result) as typeof spawnSync);
|
||||
const observation = inspectUserDomain(23456, performance.now() + 10_000, {}, (() => result) as unknown as typeof spawnSync);
|
||||
expect(observation.state).toBe('unavailable');
|
||||
expect(observation.structure).toBeUndefined();
|
||||
expect(JSON.stringify(observation)).not.toContain('synthetic-private');
|
||||
|
||||
Reference in new issue
Block a user