Add Strain Hospice for graceful low-win strain retirement.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Archive failed epidemiology strains to museum hospice with SQLite persistence, operator/AI/court triggers, breeding and graft guards, topology museum nodes, and Seer plus oath ledger accountability.
This commit is contained in:
@@ -39,6 +39,18 @@ describe('pathTracerTimeline', () => {
|
||||
expect(pick?.id).toBe('win');
|
||||
});
|
||||
|
||||
it('skips hospice strains for fork-merge parent selection', () => {
|
||||
const hospice = new Set(['#ab88e4']);
|
||||
const pick = pickMergeCandidate(
|
||||
[
|
||||
branch({ id: 'hospice-win', status: 'won', spread_lanes: ['winrm'] }),
|
||||
branch({ id: 'ok-run', status: 'running', spread_lanes: ['docker'] }),
|
||||
],
|
||||
hospice,
|
||||
);
|
||||
expect(pick?.id).toBe('ok-run');
|
||||
});
|
||||
|
||||
it('maps status to CSS class', () => {
|
||||
expect(branchStatusClass('won')).toBe('won');
|
||||
expect(branchStatusClass('running')).toBe('running');
|
||||
|
||||
Reference in New Issue
Block a user