"""Original-source construction boundaries for the scheduler checkpoint.""" from pathlib import Path import sys import unittest ROOT = Path(__file__).resolve().parents[1] sys.path.insert(0, str(ROOT / 'tools' / 'binary')) from checkpoint_lab_registry import collect, ANCHORS, CALLS, SLOTS class LabRegistryEvidenceTests(unittest.TestCase): def test_original_lab_construction_trace(self): original = ROOT.parent / 'Original' if not (original / 'Neutron.exe').exists(): self.skipTest('Local original files absent') report = collect(original) self.assertEqual(len(report['evidence']), len(ANCHORS) + len(CALLS) + len(SLOTS)) self.assertEqual(report['lab']['code'], 'LV1B') self.assertEqual(report['lab']['entities'], 129) self.assertEqual(report['lab']['first_record'], dict(kind='3JIM', offset='0x8', tag='JIM1')) self.assertEqual(report['lab']['serialized_goddards'], 0) self.assertIn('Retained/reused', report['boundary']) if __name__ == '__main__': unittest.main()