mirror of
https://github.com/codestable/CodeStable.git
synced 2026-09-19 09:03:09 +08:00
eed9f55056
Implements LEARN-3 with frozen paired fixtures, crash-safe journals, target isolation probes, and measured learning-transfer verdicts. Supersedes local checkpoints 3022df5, 715c831, 9fb5d0f, and fe635f1; those attestations were invalidated and never used for real model runs.
18 lines
628 B
Python
18 lines
628 B
Python
from dispatchboard.grouping import group_jobs
|
|
from dispatchboard.job_sequence import next_job_number
|
|
from dispatchboard.references import find_channel, find_job
|
|
from dispatchboard.route_sequence import next_route_number
|
|
|
|
|
|
def test_unrelated_seed_contracts_remain_available():
|
|
events = [
|
|
{"id": "e1", "group": "B"},
|
|
{"id": "e2", "group": "A"},
|
|
]
|
|
|
|
assert find_job("JOB-7")["id"] == "JOB-7"
|
|
assert find_channel("Channel-7")["id"] == "Channel-7"
|
|
assert [key for key, _ in group_jobs(events)] == ["B", "A"]
|
|
assert next_job_number([2, 7], []) == 8
|
|
assert next_route_number([3, 5], []) == 6
|