feat(01-05): complete offline Windows collection agenda and selftests
Prepare all session materials, explicit terminal outcomes and raw-media provenance while retaining open acceptance. Verify the package-free collector on synthetic fixtures without redistributing external tools.
This commit is contained in:
1 parent
c9b9f2eba9
commit
857466568d
4 files changed
+510
-22
No files matched your search
@@ -145,7 +145,7 @@ def prepare_checkpoint(original, original_manifest, packages, output, tooling=Fa
|
||||
for name in MATERIALS:
|
||||
if (PROJECT / name).is_file():
|
||||
_copy_file(PROJECT / name, temporary / name)
|
||||
elif name not in ('tests/fidelity-windows.Tests.ps1', 'docs/evidence/windows-session.md'):
|
||||
else:
|
||||
raise ValueError('Missing collector material: ' + name)
|
||||
_copy_file(original_manifest, temporary / 'protocol/original-manifest.json')
|
||||
for name in ('scenarios.json', 'capabilities.json'):
|
||||
@@ -159,6 +159,25 @@ def prepare_checkpoint(original, original_manifest, packages, output, tooling=Fa
|
||||
for cell in protocol['cells'] for obligation in cell['obligations']]
|
||||
_write_json(temporary / 'protocol/agenda.json', {'schema_version': 1,
|
||||
'runs': agenda, 'acceptance': {'state': 'open', 'required_all_platforms': 120}})
|
||||
_write_json(temporary / 'protocol/settings-template.json', {
|
||||
'schema_version': 1, 'diagnostic': True,
|
||||
'tools': {k: {'source': '', 'version': '', 'settings': ''}
|
||||
for k in ('dxwnd', 'recorder', 'browser', 'media_probe', 'derivation')},
|
||||
'capture': {'source': '', 'monitor': '', 'crop': [], 'aspect': '',
|
||||
'resolution': [], 'frame_rate': '', 'audio_devices': [],
|
||||
'encoder': '', 'container': 'MKV', 'timing_limitations': ''},
|
||||
'preflight': {'original': {'visible_moving_game': False, 'intelligible_game_audio': False,
|
||||
'correct_crop_aspect': False},
|
||||
'port': {'visible_moving_game': False, 'intelligible_game_audio': False,
|
||||
'correct_crop_aspect': False},
|
||||
'browser': {'actual_playback': False, 'seeking': False,
|
||||
'exclusive_audio': False}},
|
||||
'notes': 'Fill actual observed values; false/empty fields remain pending, never acceptance.'})
|
||||
_write_json(temporary / 'protocol/annotation-template.json', {
|
||||
'schema_version': 1, 'status': 'incomplete', 'diagnostic': True,
|
||||
'artifacts': [], 'events': [], 'derivatives': [], 'continuity': {},
|
||||
'limitations': ['Actual media clocks, uncertainty and human review still required'],
|
||||
'notes': 'Use windows-session.md field contract; empty template cannot finalize capture.'})
|
||||
verify_inventory(original, original_manifest)
|
||||
(temporary / 'incomplete.json').unlink()
|
||||
files = identify_tree(temporary)['files']
|
||||
@@ -218,9 +237,11 @@ def preflight(root, dependencies=None):
|
||||
'tools': tools, 'failures': failures, 'acceptance': {'state': 'open'}}
|
||||
|
||||
|
||||
def fixture_result(bundle, run, session_id, case_id, scope, artifacts):
|
||||
def fixture_result(bundle, run, session_id, case_id, scope, artifacts, status='captured'):
|
||||
"""Tooling-only end-to-end importer fixture; cannot mint native evidence."""
|
||||
preflight(bundle)
|
||||
if status not in ('captured', 'failed', 'skipped', 'aborted'):
|
||||
raise ValueError('Unknown fixture result status')
|
||||
_id(session_id)
|
||||
protocol = read_json(Path(bundle) / 'protocol/scenarios.json')
|
||||
if case_id not in {c['id'] for c in protocol['cells']} or scope not in protocol['obligations']:
|
||||
@@ -230,7 +251,7 @@ def fixture_result(bundle, run, session_id, case_id, scope, artifacts):
|
||||
**identify_file(contained_path(run, p))) for p in artifacts]
|
||||
receipt = {'schema_version': 1, 'receipt_id': session_id, 'session_id': session_id,
|
||||
'case_id': case_id, 'obligation_id': scope, 'scope': scope,
|
||||
'evidence_kind': 'synthetic', 'status': 'captured', 'historical': False,
|
||||
'evidence_kind': 'synthetic', 'status': status, 'historical': False,
|
||||
'platform': {'os': 'test', 'execution': 'synthetic'}, 'identity': {},
|
||||
'invocation': {'argv': ['fixture result; no executable launched'], 'cwd': str(run)},
|
||||
'clocks': {'wall_start': utc_now(), 'wall_end': utc_now(),
|
||||
|
||||
Reference in new issue
Block a user