Files
jakub 6a667d8deb Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
2026-10-13 22:52:53 +02:00

29 lines
5.6 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from pathlib import Path
import json,hashlib
R=Path('/home/jakub/devel/escapistsrereintroduced');B=Path('/tmp/erri-crash-root-1852');load=lambda p:json.loads(p.read_text());sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest()
suite=load(B/'suite-result.json');native=load(B/'native-summary.json');assert suite['exit']==0 and suite['regression_programs']==307 and suite['inputs_unchanged']
crash=native['crash-start-nearby'];prison=native['crash-prison-default'];assert all(v['completions']==1 and v['script_failures']==0 for v in [crash,prison])
updates={}
name='docs/current-status.md';old=(R/name).read_text();first,rest=old.split('\n',1)
addition=f'''**3 October 2026 — independent crash aftermath start implemented:** Prison remains the default. Administrators can save Prison or Crash for the next round through Settings or `/esc mission start set prison|crash`. The server freezes and replicates that choice before site preparation. Crash creates a successor-owned static wreck scene, admits ordinary one-life survivors on foot and enters the existing intel → radio defence → extraction loop directly. The original finite supplies and shared field map are retained; the measured full wreck footprint and starting area are surveyed before placement.
The strengthened scripted crash route completes **{crash['assertions']} assertions and one round**; the default prison route completes **{prison['assertions']} assertions and one round**, both with zero script/runtime failures with unchanged inputs in each accepted run. The crash snapshot predates two unrelated terrain Game Master edits from the user’s other task; the repeated default route checks a frozen copy of the resulting source. The crash check also observes native activation of retained original clue defenders after the scripted approach, without an activation override. All **307 registered regression programs pass** on an unchanged frozen snapshot; the recorded documentation update follows those checks.
An initial crash fixture wrongly required every distant enemy to be currently active. Its failure remains archived; the corrected Workbench-only probe checks prison-hold release separately from native activation. Native AI behavior was not changed. The first default run completed but was rejected by the source guard because of the concurrent terrain edits; its raw evidence is retained and the default check was repeated against a frozen copy. A complete suite run also detected a concurrent peer edit; all 307 programs were then rerun on the frozen inputs. Each successful run still retains **13 engine errors**. These hidden, muted fixtures protect and teleport the participant, shorten radio defence and move the extraction vehicle: they do not qualify manual play, real flying, remote clients, twelve-player multiplayer or FPS. Static aftermath does not implement an animated helicopter crash or hideout start. Original missions and prior sealed packages are unchanged; a fresh package is still pending. [Controls and limits](mission-starts.md) · [Exact evidence and source](evidence/crash-start-2026-10-03/README.md).
'''
updates[name]=first+'\n\n'+addition+rest.lstrip('\n')
name='docs/mission-starts.md';old=(R/name).read_text();prefix=old.split('The [native geometry run]',1)[0]
updates[name]=prefix+f'''The [native geometry run](evidence/native-2026-10-03-crash-geometry/report.json) measured the static wreck and verified probe cleanup (32 assertions). The [strengthened crash route](evidence/native-2026-10-03-crash-start-nearby/report.json) completes {crash['assertions']} assertions, including generated placement, native preload/admission, current finite direct bag stock, no gate/guards at the start, released prison holds, nearby original clue-defender activation, physical intel recovery, interrupted/restarted radio defence and scripted extraction victory. The [default prison route](evidence/native-2026-10-03-crash-prison-default/report.json) completes {prison['assertions']} assertions after two independent terrain Game Master edits from the user’s other task; the crash run predates those two files and its exact delta is recorded. Both finish one round with no script/runtime failures; each retains 13 engine errors.
All 307 registered regression programs pass. The native routes use protected actors, scripted relocation and a shortened defence; they do not prove ordinary input, real flying, rendered administrator UI, remote replication, twelve-player multiplayer or FPS. Hideout starts and animated helicopter crashes remain absent. The first overbroad AI-state fixture failure is preserved in the [checkpoint](evidence/crash-start-2026-10-03/README.md). No refreshed package or clean release qualification is claimed.
'''
name='docs/original-feature-coverage.json';data=load(R/name);feature=next(x for x in data['features'] if x['id']=='alternate_starts');feature['remaining']='Independent static on-foot crash aftermath and persisted next-round Prison/Crash choice are implemented and complete a scripted native escape route. Human play, rendered admin UI, remote multiplayer and FPS remain unqualified. Hideout starts and animated helicopter crashes remain absent; no equivalence to protected original crash logic is claimed.';updates[name]=json.dumps(data,indent=2)+'\n'
records={};inputs=load(B/'suite-inputs.json')
for name,text in updates.items():
assert sha(R/name)==inputs[name],name
records[name]={'before_sha256':sha(R/name),'after_sha256':hashlib.sha256(text.encode()).hexdigest()}
(R/name).write_text(text)
(B/'post-suite-docs.json').write_text(json.dumps(records,indent=2)+'\n')
print('Updated3 documentation files after full pass; exact prose deltas recorded')