Files
TheTree_mock/docs/plans/original-completion-2026-10-02/checkpoints/p04-initial-audit-r01/order-audit.json
T

235 lines
14 KiB
JSON

{
"input_hashes": {
"docs/plans/original-completion-2026-10-02/execution/p04-01-input-r01/ORDER_CONTRACT_DRAFT.md": "c4dd8b907321b8859ba0744b9ae3d1447615d98fbe548983f9bb9fcad2d9d989",
"docs/plans/original-completion-2026-10-02/execution/p04-01-input-r01/input.json": "1286f865656aafb6146c7bcd95c92c53c00b6c706f3f690d96e998d5e45e2b79",
"docs/plans/original-completion-2026-10-02/execution/p04-01-input-r01/historical-audit.json": "90d2dbd3c04aed7ab409afa4f05f884832a4661cc506d28b818c72aadc352950",
"docs/plans/original-completion-2026-10-02/execution/p04-01-input-r01/historical-source-map.json": "df8328ea8b6a7bc400caad8a52f6ead710c01942a726e5a6b530b82411c55da5"
},
"source_pins": {
"autoload/simulation_runtime.gd": {
"expected": "d52a995ae715542bbc550f68d35889540658275d12e04ae0b21ac276f5843f39",
"actual": "d52a995ae715542bbc550f68d35889540658275d12e04ae0b21ac276f5843f39",
"matches": true
},
"scripts/facility/facility_service.gd": {
"expected": "ceb4a3e9224587423f273cdb2b56e6843ab176ac1fc4fe79dd498b5ed5c33b77",
"actual": "ceb4a3e9224587423f273cdb2b56e6843ab176ac1fc4fe79dd498b5ed5c33b77",
"matches": true
},
"scripts/economy/economy_service.gd": {
"expected": "95aedd0a0421c93e8fa39f0f76fa890cd0a46905d9a25c88c8b17c4d6d47728e",
"actual": "95aedd0a0421c93e8fa39f0f76fa890cd0a46905d9a25c88c8b17c4d6d47728e",
"matches": true
},
"scripts/guest/guest_service.gd": {
"expected": "56880410e9a00816f9a95d30821982955532de8dd976980934e12016a9f2b21e",
"actual": "56880410e9a00816f9a95d30821982955532de8dd976980934e12016a9f2b21e",
"matches": true
},
"scripts/staff/staff_service.gd": {
"expected": "355ad5c3c9f85dc4d4ffc3bc4293e36f81078c403d1662512a735b2c8d815fb3",
"actual": "355ad5c3c9f85dc4d4ffc3bc4293e36f81078c403d1662512a735b2c8d815fb3",
"matches": true
},
"scripts/mana/mana_network_service.gd": {
"expected": "96f195cf2a28b0966d12cd7c6fab86d13eae97c8342d07d70f52e598fbf49af9",
"actual": "96f195cf2a28b0966d12cd7c6fab86d13eae97c8342d07d70f52e598fbf49af9",
"matches": true
}
},
"historical_map_entries": 1299,
"differences": [
{
"path": "assets/kenney/tiny_dungeon/Tiled/sampleMap.tmx",
"old_sha256": "fc545787837e2655c9d2078cc1b167df0d9ea2755f6ec3912c7987e8501339e3",
"current_sha256": "3849e083e3d4f6a71dbf725d8473e93fa6ef8cdc9d314368eee15c980cf41775"
},
{
"path": "assets/kenney/tiny_dungeon/Tiled/sampleSheet.tsx",
"old_sha256": "02f1b90cfdb37bcccddc83d074954272aaffd297ed4fabce7bb670f2f3f4be71",
"current_sha256": "a2cca2c5e50b14023ce00f5d4112fb0b8264bfff9407d7a5198656e28d67fa16"
},
{
"path": "assets/kenney/tiny_dungeon/Visit Kenney.url",
"old_sha256": "0dd1a0b295582cd3185547f0c1d92b4d5392c7782b90a428e192944a496052e0",
"current_sha256": "6787defa3ecb6118622e1903b65802c0200628fae5164b51b4fd467f92f3f284"
},
{
"path": "assets/kenney/tiny_dungeon/Visit Patreon.url",
"old_sha256": "84be5ef26b07905fa7e196e943c9807bf84138c3a71d87f51c6fd57b85c48c34",
"current_sha256": "2fcba31333935f4aa35e9de2e74e2b7ba1b1a8011540e08016ff6d81e9dd7490"
},
{
"path": "assets/kenney/tiny_town/Tiny Dungeon (base pack).url",
"old_sha256": "6cf442be20ad3364ba87183461744da9e979b5d4f243c83e2404f2cf884500d9",
"current_sha256": "6d93bb958f9b7d5f21ceb8cbd24c184dc5c9f87aee7c680b336ecba7a89823d8"
},
{
"path": "assets/kenney/tiny_town/Visit Kenney.url",
"old_sha256": "0dd1a0b295582cd3185547f0c1d92b4d5392c7782b90a428e192944a496052e0",
"current_sha256": "6787defa3ecb6118622e1903b65802c0200628fae5164b51b4fd467f92f3f284"
},
{
"path": "assets/kenney/tiny_town/Visit Patreon.url",
"old_sha256": "84be5ef26b07905fa7e196e943c9807bf84138c3a71d87f51c6fd57b85c48c34",
"current_sha256": "2fcba31333935f4aa35e9de2e74e2b7ba1b1a8011540e08016ff6d81e9dd7490"
},
{
"path": "autoload/simulation_runtime.gd",
"old_sha256": "2d7e2cea5424585e9aa4302ab66d1fc4dbaefe743ce4328fccc1efa2f19b82e4",
"current_sha256": "d52a995ae715542bbc550f68d35889540658275d12e04ae0b21ac276f5843f39"
},
{
"path": "scenes/main/main.gd",
"old_sha256": "a7ae44c680eb9b70a117ddc8c6cbf0ca290b8e8d485eac41b4122698fde2a620",
"current_sha256": "a3d7d7ddd08a8df1f987806e60accf51792d728cf71c06e6b822f5a31d8ed3e3"
},
{
"path": "scenes/main/world_preview.gd",
"old_sha256": "3df29be32d3a016d8fb9dc1ee2bd32e2360ac8fad9810293f6be9b58d26046e0",
"current_sha256": "75d5b0bd23204f5a485540512e44b89e1d2a4596b368f70177a238ba078ff42d"
},
{
"path": "scripts/core/performance_budget.gd",
"old_sha256": "79d18e8f0dcc3932801cd02ea8a8ba037af02ef57665387cba8dbe3b3e9af917",
"current_sha256": "0e2278f88d29919a0634fc1b527328a0d0c12d87e2cd612f3eee1526aabdb073"
},
{
"path": "scripts/world/path_service.gd",
"old_sha256": "2e68653e4898387cb5a76402813a10595bd5ca7d5fb841c7ed8c55af77d7a918",
"current_sha256": "447135729a1106639a6eee6754af3195c8a8b458ca26980ae91fa39d80dcfbd4"
},
{
"path": "tests/s1/test_path_service.gd",
"old_sha256": "0f48bb44c27e32f08477b9aed61a0db5c8808219490928f734c3570a07efb251",
"current_sha256": "17d9fd42b35004376bf96e435f53d6bce41e79258ec7f6daf3ab04ae5d8c3e1d"
},
{
"path": "tests/ui/test_pixel_tower.gd",
"old_sha256": "93bdbb195f2ceec07dbe052e0d0a3017d84b56f1e8ec46b87be8d98105ec0f88",
"current_sha256": "f149f4b5507247dadf623e777e90b9bdb81f54324b406a8f55adaf89b649866a"
}
],
"missing_map_paths": [],
"task_id": "P04-01",
"base_commit": "deb1bcb2374eb378b840ca345db952bd8572cb6e",
"status": "blocked",
"original_unit_complete": false,
"counted_units_added": 0,
"tests_executed": false,
"authority": {
"original": "docs/traceability/original/BASELINE.txt:64,67,71,72",
"approved": "A01: ownership-time apportioned upkeep at midnight; retained without reconfirmation",
"pending": "D05: started service after closure, final shift interval at 18:00, unresolved EV/transport stopping/cost/day crossing rules; no invented policy"
},
"phase_order": "scripts/core/simulation_kernel.gd:123-153: APPLY_COMMANDS, clock increment/calendar boundary signals, TIME_BOUNDARIES, MANA, CONSTRUCTION, LOGISTICS, FACILITY_COMPLETION, VITALS_AND_ENVIRONMENT, INCIDENTS_AND_EVENTS, FACILITY_QUEUES, AI_DECISIONS, PUBLISH_SNAPSHOT. Handler IDs sorted lexically within phase at line242.",
"domains": [
{
"domain": "閉店",
"current_functions": [
"simulation_runtime._advance_facilities",
"simulation_runtime._advance_guest_queues",
"simulation_runtime._release_closed_business_queues",
"simulation_runtime._release_closed_business_request"
],
"order": "Facility completion precedes queue closure release; release occurs before patience spending. Started-service closure semantics remain D05 pending.",
"old_evidence": "Historical phases 001/002: business closure/operations; midnight open-service proof cannot establish closure behavior.",
"missing": "Approved started-service closure rule and exact-version boundary raw proof."
},
{
"domain": "停電",
"current_functions": [
"simulation_runtime._advance_mana",
"mana_power_projection.apply",
"FacilityService._prepare_service_for_tick",
"FacilityService._complete_service"
],
"order": "Commands precede MANA power projection, then facility completion. NO_POWER pauses active service and power recovery resumes it.",
"old_evidence": "Draft reports formal 961 stop/962 recovery, fresh Reader A/B, one consume/notification and unchanged economy at 963; raw not supplied.",
"missing": "Exact-source/config/input/environment raw stop/recovery proofs including same reservations and all ledgers."
},
{
"domain": "破壊",
"current_functions": [
"simulation_runtime._process_tick_commands",
"simulation_runtime._advance_defense",
"FacilityService._prepare_service_for_tick",
"FacilityService._fail_service"
],
"order": "Command destruction precedes facility processing; INCIDENTS_AND_EVENTS destruction follows completion. BROKEN fails during service preparation.",
"old_evidence": "Draft reports early failure44/charge0/release once, late destruction after completion45 and next-minute failure for incomplete service.",
"missing": "Verified raw early/late destruction and failed diagnostic history; current infrastructure/path applicability."
},
{
"domain": "退出",
"current_functions": [
"simulation_runtime._execute_leave_facility_queue",
"simulation_runtime._leave_guest_queue_boundary",
"simulation_runtime._advance_guest_queues",
"simulation_runtime._advance_guest_ai_decisions"
],
"order": "Public leave command precedes completion; patience release occurs in queues; AI replanning/planned exit follows. LEAVING despawns only after state-entered minute.",
"old_evidence": "Draft reports public reservation release, automatic45-minute patience and completion-before-exit boundaries.",
"missing": "Exact-version leave/patience and overdue-LEAVING reload proofs, no orphan reservations and replay generation checks."
},
{
"domain": "課金",
"current_functions": [
"FacilityService._complete_service",
"simulation_runtime._complete_service_transaction",
"simulation_runtime._apply_service_transaction",
"EconomyService.post"
],
"order": "Completion callback consumes reservations then posts service.payment.<service_id>; notification scope ends after transaction effects. Static code alone does not prove all boundary rollback paths.",
"old_evidence": "P04-02 and historical full are references only; test counts do not establish P04-01 original acceptance.",
"missing": "Raw ledger/inventory/notification proof for stopped, failed, replay and paid completion paths; closure/shift rule dependent proof."
},
{
"domain": "シフト交代",
"current_functions": [
"simulation_runtime._advance_facilities",
"simulation_runtime._advance_staff_ai",
"StaffService.advance_one_minute",
"simulation_runtime._sync_facility_staffing"
],
"order": "Facility completion precedes staff AI, commute and staffing projection. Final18:00 interval design meaning is D05 pending.",
"old_evidence": "Historical phase083 hardening includes shift-end interruption; draft retains diagnostic1080 predicate failure without claiming original violation.",
"missing": "Approved final-interval rule then exact-version1080 boundary including nonzero cost where required."
},
{
"domain": "00:00決算",
"current_functions": [
"simulation_runtime._advance_facility_upkeep",
"simulation_runtime._advance_operations_time",
"OperationsCoordinator._process_minute_boundaries",
"OperationsCoordinator._process_daily_close",
"simulation_runtime._complete_service_transaction"
],
"order": "TIME_BOUNDARIES weather/upkeep/operations precedes facility completion; prior day[0,1440) accounting differs from sale at1440. A01 upkeep already approved.",
"old_evidence": "Draft reports real settlement/payroll/upkeep once, service25 once, unchanged ledgers/history1441; zero payroll fixture is not proof of nonzero payroll.",
"missing": "Current raw midnight/retry/reload idempotency proof and applicable nonzero payroll boundary; full original conformity review."
}
],
"old_evidence_applicability": {
"raw_available_for_reuse": false,
"assessment": "Only local summaries/maps/draft read; original artifact paths remain provenance. No approved reuse asserted.",
"source": "14 byte differences, zero missing mapped paths; six immutable current pins match.",
"config_input_environment": "Not established by raw local evidence; each required proof must pin these independently.",
"runtime_git": "git log --all lists10 Runtime revisions. Content scan of path history found no blob matching old2d7e2cea. Exact diff unavailable; current called functions inspected but old equivalence not established.",
"known_difference_impact": "Runtime/PathService may alter infrastructure, movement, staffing, guest selection and recovery boundary reachability; UI/main/preview and performance budget changes prevent blanket whole-full reuse. Two changed tests cannot supply old exact-version evidence. Seven additional Kenney metadata/sample byte differences require applicability classification, not product edits."
},
"blockers": [
"No index.json schema or supported raw-proof format/mandatory proof identifiers/authority binding supplied; implementing a passing verifier would invent evidence protocol. tools/check_p04_order_evidence.py not created.",
"Old exact Runtime source unavailable in local Git path history; root must supply verified local raw old source before exact diff analysis.",
"No verified local raw historical proofs/config/input/environment supplied; draft pass claims are not acceptance evidence.",
"D05 remains pending; original unit must not be frozen or completed."
],
"validation_plan": [
"Runner/root supplies index/raw proof format and verified local historical source/proofs; confirm immutable pins and all14 map differences.",
"Compare exact old/current Runtime and actual callees; classify infrastructure/route boundary effects and Kenney metadata differences.",
"After D05 approval verify only affected closure/18:00 boundaries; retain failed diagnostics and approved A01.",
"Verify applicable stop/recovery, early/late destruction, public/patience/overdue exit, midnight/replay/reload evidence with raw hashes and source/config/input/environment pins; request fresh finite proofs only where reuse fails.",
"Runner executes p04-acceptance and independent all-condition review/integration; native Windows conditions individually pending only if applicable. No engine/all-regression run here."
]
}