diff --git a/.github/workflows/current-site.yml b/.github/workflows/current-site.yml index f11db0b71..a5f4fd03b 100644 --- a/.github/workflows/current-site.yml +++ b/.github/workflows/current-site.yml @@ -14,6 +14,8 @@ name: Current research site - 'tests/test_current_site*' - 'tools/node_status_refresh.py' - 'tests/test_node_status_refresh.py' + - 'tests/test_node_status_freshness.py' + - 'cbz/evidence/node-status-freshness/run_mutations.py' - 'tests/fixtures/node_status_refresh/**' - '.github/workflows/current-site.yml' schedule: @@ -56,8 +58,13 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with: persist-credentials: false - - name: Offline freshness tests - run: python3 -B -m unittest tests.test_node_status_refresh + - name: Offline freshness tests and mutation controls + run: | + python3 -B -S -m unittest tests.test_node_status_freshness tests.test_node_status_refresh -v + python3 -B -O -S -m unittest tests.test_node_status_freshness tests.test_node_status_refresh -v + python3 -B -S cbz/evidence/node-status-freshness/run_mutations.py > "$RUNNER_TEMP/node-status-mutations.json" + # Pull requests run only the offline steps above. The live refresh reads the GitHub API, + # so it runs on main pushes, schedules and manual dispatch, never on a pull request. - name: Report-only freshness refresh (read-only GitHub API) if: github.event_name != 'pull_request' env: diff --git a/cbz/evidence/node-status-freshness/README.md b/cbz/evidence/node-status-freshness/README.md new file mode 100644 index 000000000..351763003 --- /dev/null +++ b/cbz/evidence/node-status-freshness/README.md @@ -0,0 +1,91 @@ +## Current source update + +See [parent-binding-20261029](parent-binding-20261029/README.md) for the subsequent +review-driven comment-parent and duplicate-JSON repair, current source hashes, +110 methods/mode (five existing skips), and 22 intended mutation kills. The +following original description and sibling receipts are historical predecessor +evidence, not claims that the updated source was used for the old live observation. + +# Q-9006 bounded engineering repair — candidate, not closure + +Base Main c93cec70223281492709ff74ca84fed5dc6e40e8. No canonical B-003 +surfaces/catalog, production records or published projection changed. + +## Contract and limits + +CLI `cited-object-content-v1` compares each pinned blob/tree's Git type, mode +and object identity with the same path at one HTTPS-observed default HEAD per +repository. Each nonrecursive API tree must identify the requested object, +explicitly be untruncated, and have valid unique entries. Missing paths, +malformed/partial responses, symlinks and gitlinks are unknown/non-green. +Directory identity includes the complete cited subtree. Immutable pins remain +unchanged; unchanged content at different snapshot commits remains fresh. +Mutable discussions require matching object identity and valid timestamps; +newer is stale, earlier than recorded is unknown. Transport failures remain unknown. + +This trusts GitHub HTTPS/API provenance and Git object identity, not a formally +verified network stack or cryptographic replay attestation. Test injection is +not authenticated observation. Report start/end times bound separate Git and +mutable-comment observations; there is no atomic federation snapshot or claim +that heads cannot advance afterwards. The report records heads and individual +source observations; failures are included as refresh_error rows. + +`--check` means **all currently observed cited sources are fresh**, not “every +record's declared status is truthful”. It validates untouched production schema +first, rejects empty/invalid/stale/unknown domains and cannot write. Report-only +exit0 remains explicitly non-certifying. Legacy github_fetch/revision-token +injection remains available for historical callers; the production CLI instead +uses ContentObserver. The previous test expecting an older observed comment +timestamp to count fresh was tightened to unknown, not removed or weakened. + +No original RealRecordTests method is changed. Its five skips remain. In +particular the unconditional live-head test is not called closed. Records +remain unchanged pending genuine current bound observations and source review. +Actual prior read-only object comparisons showed eng.hard-gate's cited directory +changed, so an all-fresh check must fail until a deliberate truthful disposition; +repinning to hide this result is forbidden. This tool certifies no mathematics, +source ownership, kernel result, or whole-federation G5. + +## Tool registry fragment for canonical integrator + +- Tool: tools/node_status_refresh.py, existing report/refresh CLI plus + ContentObserver and strict --check; purpose: eliminate snapshot-vs-last-touch + false freshness and expose non-green source observation results (Q-9006/G8). +- Usage: `python -B -S tools/node_status_refresh.py records/node_status` + (read-only report); append `--check` for strict all-fresh exit status. + Existing `--write` is explicit and incompatible with --check; this delivery + did not run it. Network reads use normal HTTPS trust, optionally GITHUB_TOKEN. +- Verification: commands below; owner none — self-contained, repository owned. +- Mutation experiment: run_mutations.py copies only needed source into a temporary + directory; requires each unmodified designated baseline to pass; accepts only + exit1 + intended named AssertionError, no error/import/syntax failure as kill. + Nine distinct source mutants executed in both modes;18 intended assertion kills. + This bounded engineering experiment is not a Layer-A auditor or proof of soundness. + +## Reproduce + +``` +python -B -S -m unittest tests.test_node_status_freshness tests.test_node_status_refresh tests.test_living_project_validation +python -B -O -S -m unittest tests.test_node_status_freshness tests.test_node_status_refresh tests.test_living_project_validation +python -B -S cbz/evidence/node-status-freshness/run_mutations.py +``` + +Observed108 methods/mode:103 executed,5 existing real-record skips. Within that, +69 refresh/content methods execute,39 living-project methods include the5skips. +Initial RED includes8 explicit missing-feature assertions and unsupported--check +parser error; review RED separately reproduced future-time and schema-normalizing +false greens, both fixed. No claim that an argparse error is a mutation kill. +The broad project suite was not rerun in this bounded lane: previously denied +local browser execution must not be retried and parent owns hosted qualification. +No full G5, remote publish/merge, actual live CLI gate, record reconciliation, +or Q-9006 terminal closure is claimed. + + +Strict input custody: capture a bounded regular-file byte snapshot, validate and +observe exactly that snapshot in a temporary directory, report per-file SHA256, +and reject any final filename/byte drift in the original directory. An actual +adversarial-write RED during head fetch was reproduced then fixed; the9th mutant +removes that refusal. This binds the observed captured records, not future edits, +and assumes the running tool/validator/schema/graph/OS are trusted and not being +maliciously replaced during execution. Snapshot capture is not an atomic filesystem +transaction; cryptographic filesystem adversary resistance is not claimed. diff --git a/cbz/evidence/node-status-freshness/REVIEW.md b/cbz/evidence/node-status-freshness/REVIEW.md new file mode 100644 index 000000000..b97c1b9c1 --- /dev/null +++ b/cbz/evidence/node-status-freshness/REVIEW.md @@ -0,0 +1,25 @@ +# Independent engineering review + +Reviewer: /root/assess_real_record_test_gaps/freshness_review (same-family +engineering review, no scientific independence credit). Read-only local review. + +Final disposition: ACCEPT_SCOPED_ENGINEERING, 2026-10-29 ~21:00 UTC. +Independently replayed108methods/mode,103executed/fiveexisting skips, normal/-O. + +Three actual defects were first reproduced and then fixed: +1. Invalid original source_rev/scientific_effect normalized into strict green. +2. An observed mutable-source timestamp older than recorded counted fresh. +3. Original input files could change during observation yet strict mode returned0. + +Final strict mode validates and observes same captured bytes; bounded original +filename/byte snapshot compared after observation; hashes/drift reported and +nonzero on drift. Immutable sourcepins and kind/mode/blob-or-tree comparisons +preserved. No remaining blocking finding in inspected scope. + +Reviewed tool SHA256: +a9a6f24af9917543bfe2010c530ae4fecc8da532291bfc2565efbbbce5334cd2 +Reviewed new-test SHA256: +7404433c78eed00920d48305a3b774518dbfebec2e7aad701786d6759a75a82c + +This review does not certify an actual network observation, the author's separate +mutation execution, wholeG5, or mathematics. Reviewer made no repository edits. diff --git a/cbz/evidence/node-status-freshness/SHA256SUMS b/cbz/evidence/node-status-freshness/SHA256SUMS new file mode 100644 index 000000000..5e15e11a2 --- /dev/null +++ b/cbz/evidence/node-status-freshness/SHA256SUMS @@ -0,0 +1,4 @@ +a9a6f24af9917543bfe2010c530ae4fecc8da532291bfc2565efbbbce5334cd2 tools/node_status_refresh.py +70700c29887bdad09860e4bdf6dbe5e23d8d1432e4a3aa6e2c4f0632a08bbf51 tests/test_node_status_refresh.py +7404433c78eed00920d48305a3b774518dbfebec2e7aad701786d6759a75a82c tests/test_node_status_freshness.py +a1b8b29a0025dc72a19940b532b848cf2ecb5b7ed33e1f711acfad1fdde1f5fe cbz/evidence/node-status-freshness/run_mutations.py diff --git a/cbz/evidence/node-status-freshness/drift-red.log b/cbz/evidence/node-status-freshness/drift-red.log new file mode 100644 index 000000000..a8ee2d83d --- /dev/null +++ b/cbz/evidence/node-status-freshness/drift-red.log @@ -0,0 +1,13 @@ +F +====================================================================== +FAIL: test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 144, in test_strict_rejects_input_drift_during_observation + self.assertEqual(n.main([tmp,'--check']),1) +AssertionError: 0 != 1 + +---------------------------------------------------------------------- +Ran 1 test in 0.012s + +FAILED (failures=1) diff --git a/cbz/evidence/node-status-freshness/initial-red.log b/cbz/evidence/node-status-freshness/initial-red.log new file mode 100644 index 000000000..1c597f80e --- /dev/null +++ b/cbz/evidence/node-status-freshness/initial-red.log @@ -0,0 +1,113 @@ +FFFFFFusage: python -m unittest [-h] [--write] [records] +python -m unittest: error: unrecognized arguments: --check +EFF +====================================================================== +ERROR: test_strict_empty_non_green (tests.test_node_status_freshness.ContentTests.test_strict_empty_non_green) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 65, in test_strict_empty_non_green + self.assertNotEqual(n.main([tmp,'--check']),0) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tools/node_status_refresh.py", line 346, in main + args = ap.parse_args(argv) + ^^^^^^^^^^^^^^^^^^^ + File "/opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/argparse.py", line 1908, in parse_args + self.error(msg) + File "/opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/argparse.py", line 2650, in error + self.exit(2, _('%(prog)s: error: %(message)s\n') % args) + File "/opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/argparse.py", line 2637, in exit + _sys.exit(status) +SystemExit: 2 + +====================================================================== +FAIL: test_access_error_unknown (tests.test_node_status_freshness.ContentTests.test_access_error_unknown) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 58, in test_access_error_unknown + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 41, in test_changed_blob_is_stale + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_missing_path_unknown (tests.test_node_status_freshness.ContentTests.test_missing_path_unknown) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 52, in test_missing_path_unknown + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 46, in test_mode_change_is_stale + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 49, in test_partial_tree_unknown + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_snapshot_commit_difference_is_not_content_drift (tests.test_node_status_freshness.ContentTests.test_snapshot_commit_difference_is_not_content_drift) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 33, in test_snapshot_commit_difference_is_not_content_drift + obs=self.observer(); out=n.refresh_record(record(),obs,'2026-10-29T20:00:00Z') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_url_kind_mismatch_unknown (tests.test_node_status_freshness.ContentTests.test_url_kind_mismatch_unknown) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 61, in test_url_kind_mismatch_unknown + self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +====================================================================== +FAIL: test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 55, in test_wrong_response_identity_unknown + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + ^^^^^^^^^^^^^^^ + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 30, in observer + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') +AssertionError: False is not true : missing content-bound observer + +---------------------------------------------------------------------- +Ran 9 tests in 0.003s + +FAILED (failures=8, errors=1) diff --git a/cbz/evidence/node-status-freshness/live-20261029/README.md b/cbz/evidence/node-status-freshness/live-20261029/README.md new file mode 100644 index 000000000..72ecf249e --- /dev/null +++ b/cbz/evidence/node-status-freshness/live-20261029/README.md @@ -0,0 +1,60 @@ +# Actual anonymous public-source observation + +Candidate30326e7adc311a04261da6b4c70d48bed6265c35, toolSHA256 + a9a6f24af9917543bfe2010c530ae4fecc8da532291bfc2565efbbbce5334cd2. +One actual --check invocation, no --write; GITHUB_TOKEN/GH_TOKEN explicitly +removed from the process environment. No transport/security overrides or retries +through alternative routes. Public HTTPS calls succeeded without unknown results. + +Observation21:04:47–21:05:33UTC on2026-10-29. Math default-head cut +95eb8daaa02e89be1f816bc7f58eac812dd1b469. Exit1 is CORRECT: +- eng.d0-packet-allowlist-fix: fresh +- eng.hard-gate: stale (record currently says fresh) +- math.lifetime-remainder: fresh +- math.side24-coefficient: fresh + +All11Git-source observations independently matched already-fetched publicGit +objects using git ls-tree at exact pinned/current commits, including kind/mode. +The12th observation is mutable comment6351719961; its updated_at matches the +record and earlier nativeAPI observation2026-10-22T21:28:51Z. It cannot be verified +by Git. No mathematical claim or role ownership follows. + +Input-before identity comes from the strict tool's actual captured-byte manifest, +not a reconstructed claim of a separate pre-launch shell hash command. Allfour +hashes equal post-run files and committed30326e7a bytes; input_drift false. Source +working tree was clean after run. Raw JSON and independent reconciliation retained. + +## Proposed reconciliation — NOT performed + +After review, adopt exactly the observed status disposition, retain all immutable +sources/source_rev, owner:null, next_action/missing_input/stops and NONE scientific +fields. Set hardgate status stale; the other3remain fresh. Use the actual completed +observation cut as observed_at, document its non-atomic interval and retained +source manifest; no claim of freshness beyond that observation. Keep the published +node-status projection byte-for-byte equivalent to the record values via existing +projection/release workflow. Never repin the changed directory to force fresh. + +The original live-fresh test is still unconditional skip. Eventual replacement +must check a NONEMPTY genuine fresh subset against real bound current observations, +reject unknown/error/stale members of that subset, and also retain/check hardgate's +actual stale state. It must bind record snapshot hashes and include complete source +coverage. Cached supplied reports can exercise parsing/binding but cannot masquerade +as live acquisition. Offline tests require a separately bounded hosted live gate +or explicit unexecuted status; absence of network cannot become a green skip. + +Keep --check's stronger all-sources-fresh meaning distinct: it legitimately remains +nonzero for stale hardgate even after truthful data reconciliation. A claim-truth +mode/test would check declared disposition equality and nonempty freshness coverage, +not silently weaken this existing all-fresh exit contract. No fullG5 or Q9006 terminal +closure is claimed by this observation/addendum. + +## Historical observation versus present claim + +Original observed_at is2026-10-22T17:00:35Z for d0/hardgate/SIDE24 and +2026-10-22T21:57:11Z for lifetime. Their fresh labels are dated historical +observations, not evidence of present freshness. This run does not reconstruct +or invalidate those historical observations; it establishes the2026-10-29 cut. +Hardgate's historical fresh value must not be presented as a supported current +fresh claim. Any refreshed projection must carry the newly observed stale status +and actual new observation time while preserving the older source pins. No +claim is made about when between historical and present cuts the directory changed. diff --git a/cbz/evidence/node-status-freshness/live-20261029/SHA256SUMS b/cbz/evidence/node-status-freshness/live-20261029/SHA256SUMS new file mode 100644 index 000000000..af43a0826 --- /dev/null +++ b/cbz/evidence/node-status-freshness/live-20261029/SHA256SUMS @@ -0,0 +1,2 @@ +f9c7152e7d164099c07c1647246054e30c52d096ac2dc10d048d4913d15e85cd cbz/evidence/node-status-freshness/live-20261029/reconciliation.json +33199e57d89adcfed82564135a50c75d595ffa3f44bd3e7336a1dbe0bda33f51 cbz/evidence/node-status-freshness/live-20261029/report.json diff --git a/cbz/evidence/node-status-freshness/live-20261029/reconciliation.json b/cbz/evidence/node-status-freshness/live-20261029/reconciliation.json new file mode 100644 index 000000000..fe028f78d --- /dev/null +++ b/cbz/evidence/node-status-freshness/live-20261029/reconciliation.json @@ -0,0 +1,360 @@ +{ + "source_commit": "30326e7adc311a04261da6b4c70d48bed6265c35", + "cli_exit": 1, + "command": "env -u GITHUB_TOKEN -u GH_TOKEN python -B -S tools/node_status_refresh.py records/node_status --check", + "network_observation": "actual anonymous HTTPS CLI; no transport overrides", + "git_reconciliation": [ + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "pinned_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/patches/d0_packet_allowlist.patch", + "pinned_object": { + "api": [ + "blob", + "100644", + "f09b248b10d6a8f229bd21bb3a53a97ca16525f2" + ], + "git": [ + "blob", + "100644", + "f09b248b10d6a8f229bd21bb3a53a97ca16525f2" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "f09b248b10d6a8f229bd21bb3a53a97ca16525f2" + ], + "git": [ + "blob", + "100644", + "f09b248b10d6a8f229bd21bb3a53a97ca16525f2" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "pinned_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/tree/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925", + "pinned_object": { + "api": [ + "tree", + "040000", + "715449bbe16b471f68c4913d08e72baac903582b" + ], + "git": [ + "tree", + "040000", + "715449bbe16b471f68c4913d08e72baac903582b" + ], + "matches": true + }, + "current_object": { + "api": [ + "tree", + "040000", + "132725157175a85dbbd5a1cfc2c668fc7b518283" + ], + "git": [ + "tree", + "040000", + "132725157175a85dbbd5a1cfc2c668fc7b518283" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/PROOF.md", + "pinned_object": { + "api": [ + "blob", + "100644", + "611cda9cbefcc76c7f5930ec7b628fa183262827" + ], + "git": [ + "blob", + "100644", + "611cda9cbefcc76c7f5930ec7b628fa183262827" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "611cda9cbefcc76c7f5930ec7b628fa183262827" + ], + "git": [ + "blob", + "100644", + "611cda9cbefcc76c7f5930ec7b628fa183262827" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/README.md", + "pinned_object": { + "api": [ + "blob", + "100644", + "bb4664f9db076b5738c8da5d426c8e8662b20507" + ], + "git": [ + "blob", + "100644", + "bb4664f9db076b5738c8da5d426c8e8662b20507" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "bb4664f9db076b5738c8da5d426c8e8662b20507" + ], + "git": [ + "blob", + "100644", + "bb4664f9db076b5738c8da5d426c8e8662b20507" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/SOURCE_MAP.json", + "pinned_object": { + "api": [ + "blob", + "100644", + "666fa6001d33a5c402a8767e564928e4bbfc4de8" + ], + "git": [ + "blob", + "100644", + "666fa6001d33a5c402a8767e564928e4bbfc4de8" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "666fa6001d33a5c402a8767e564928e4bbfc4de8" + ], + "git": [ + "blob", + "100644", + "666fa6001d33a5c402a8767e564928e4bbfc4de8" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/REVIEW.md", + "pinned_object": { + "api": [ + "blob", + "100644", + "1ff82e80174852cfb6fb066080af2dcf9f0e1902" + ], + "git": [ + "blob", + "100644", + "1ff82e80174852cfb6fb066080af2dcf9f0e1902" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "1ff82e80174852cfb6fb066080af2dcf9f0e1902" + ], + "git": [ + "blob", + "100644", + "1ff82e80174852cfb6fb066080af2dcf9f0e1902" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "pinned_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "pinned_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "git": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "matches": true + } + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/coefficients/side24_v1/PROOF.md", + "pinned_object": { + "api": [ + "blob", + "100644", + "44b66f04f89fcd87383b3603fa69f1feb64cdddd" + ], + "git": [ + "blob", + "100644", + "44b66f04f89fcd87383b3603fa69f1feb64cdddd" + ], + "matches": true + }, + "current_object": { + "api": [ + "blob", + "100644", + "44b66f04f89fcd87383b3603fa69f1feb64cdddd" + ], + "git": [ + "blob", + "100644", + "44b66f04f89fcd87383b3603fa69f1feb64cdddd" + ], + "matches": true + } + } + ], + "input_identity": [ + { + "path": "records/node_status/eng.d0-packet-allowlist-fix.json", + "before_sha256": "8a5bfbc046147c5bf4a95e8ff912abcdef5f61761583e5654a7327772c72d3b3", + "after_sha256": "8a5bfbc046147c5bf4a95e8ff912abcdef5f61761583e5654a7327772c72d3b3", + "committed_sha256": "8a5bfbc046147c5bf4a95e8ff912abcdef5f61761583e5654a7327772c72d3b3", + "matches": true + }, + { + "path": "records/node_status/eng.hard-gate.json", + "before_sha256": "0030f9903b68935581241fc1188f4a630399e857209e00023a441bd23f79a72b", + "after_sha256": "0030f9903b68935581241fc1188f4a630399e857209e00023a441bd23f79a72b", + "committed_sha256": "0030f9903b68935581241fc1188f4a630399e857209e00023a441bd23f79a72b", + "matches": true + }, + { + "path": "records/node_status/math.lifetime-remainder.json", + "before_sha256": "5b53d7e717969dced722e080290e500ba0b3cccc1c53779d3e6a7cddd8f406ad", + "after_sha256": "5b53d7e717969dced722e080290e500ba0b3cccc1c53779d3e6a7cddd8f406ad", + "committed_sha256": "5b53d7e717969dced722e080290e500ba0b3cccc1c53779d3e6a7cddd8f406ad", + "matches": true + }, + { + "path": "records/node_status/math.side24-coefficient.json", + "before_sha256": "0cc919fde0c9f57cdaab45d10c6eec8fc7d8d417bc33bafcd00cc53c7b6b2be7", + "after_sha256": "0cc919fde0c9f57cdaab45d10c6eec8fc7d8d417bc33bafcd00cc53c7b6b2be7", + "committed_sha256": "0cc919fde0c9f57cdaab45d10c6eec8fc7d8d417bc33bafcd00cc53c7b6b2be7", + "matches": true + } + ], + "mutable_comment": "Actual CLI updated_at equals earlier native GitHub observation 2026-10-22T21:28:51Z; Git cannot verify mutable comment", + "all_git_matches": true, + "all_input_matches": true +} diff --git a/cbz/evidence/node-status-freshness/live-20261029/report.json b/cbz/evidence/node-status-freshness/live-20261029/report.json new file mode 100644 index 000000000..718276963 --- /dev/null +++ b/cbz/evidence/node-status-freshness/live-20261029/report.json @@ -0,0 +1,207 @@ +{ + "records": "records/node_status", + "report": [ + { + "file": "eng.d0-packet-allowlist-fix.json", + "node_id": "eng.d0-packet-allowlist-fix", + "status": "fresh", + "previous_status": "fresh", + "refresh_error": null + }, + { + "file": "eng.hard-gate.json", + "node_id": "eng.hard-gate", + "status": "stale", + "previous_status": "fresh", + "refresh_error": null + }, + { + "file": "math.lifetime-remainder.json", + "node_id": "math.lifetime-remainder", + "status": "fresh", + "previous_status": "fresh", + "refresh_error": null + }, + { + "file": "math.side24-coefficient.json", + "node_id": "math.side24-coefficient", + "status": "fresh", + "previous_status": "fresh", + "refresh_error": null + } + ], + "scientific_effect": "NONE", + "observation_started_at": "2026-10-29T21:04:47Z", + "observation_finished_at": "2026-10-29T21:05:33Z", + "heads": { + "Math-": "95eb8daaa02e89be1f816bc7f58eac812dd1b469" + }, + "sources": [ + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "current_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/patches/d0_packet_allowlist.patch", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "f09b248b10d6a8f229bd21bb3a53a97ca16525f2" + ], + "current_object": [ + "blob", + "100644", + "f09b248b10d6a8f229bd21bb3a53a97ca16525f2" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "current_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/tree/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "tree", + "040000", + "715449bbe16b471f68c4913d08e72baac903582b" + ], + "current_object": [ + "tree", + "040000", + "132725157175a85dbbd5a1cfc2c668fc7b518283" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/PROOF.md", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "611cda9cbefcc76c7f5930ec7b628fa183262827" + ], + "current_object": [ + "blob", + "100644", + "611cda9cbefcc76c7f5930ec7b628fa183262827" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/README.md", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "bb4664f9db076b5738c8da5d426c8e8662b20507" + ], + "current_object": [ + "blob", + "100644", + "bb4664f9db076b5738c8da5d426c8e8662b20507" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/SOURCE_MAP.json", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "666fa6001d33a5c402a8767e564928e4bbfc4de8" + ], + "current_object": [ + "blob", + "100644", + "666fa6001d33a5c402a8767e564928e4bbfc4de8" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/9f3fb6918b28e6378c034ebc19e76d432f5391cb/frontiers/far_sector_lifetime_refinement_20261022/REVIEW.md", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "1ff82e80174852cfb6fb066080af2dcf9f0e1902" + ], + "current_object": [ + "blob", + "100644", + "1ff82e80174852cfb6fb066080af2dcf9f0e1902" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "current_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/issues/193#issuecomment-6351719961", + "updated_at": "2026-10-22T21:28:51Z" + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/frontiers/downstream_gate_20260925/GRAPH.json", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ], + "current_object": [ + "blob", + "100644", + "220b56867f24c5ef6f55a3cce70490e9777cf3af" + ] + }, + { + "url": "https://github.com/d6g8k5htny-coder/Math-/blob/dbe6c0a1b1a22c7404b0fd173ee0043b98a08cde/coefficients/side24_v1/PROOF.md", + "head": "95eb8daaa02e89be1f816bc7f58eac812dd1b469", + "pinned_object": [ + "blob", + "100644", + "44b66f04f89fcd87383b3603fa69f1feb64cdddd" + ], + "current_object": [ + "blob", + "100644", + "44b66f04f89fcd87383b3603fa69f1feb64cdddd" + ] + } + ], + "input_sha256": { + "eng.d0-packet-allowlist-fix.json": "8a5bfbc046147c5bf4a95e8ff912abcdef5f61761583e5654a7327772c72d3b3", + "eng.hard-gate.json": "0030f9903b68935581241fc1188f4a630399e857209e00023a441bd23f79a72b", + "math.lifetime-remainder.json": "5b53d7e717969dced722e080290e500ba0b3cccc1c53779d3e6a7cddd8f406ad", + "math.side24-coefficient.json": "0cc919fde0c9f57cdaab45d10c6eec8fc7d8d417bc33bafcd00cc53c7b6b2be7" + }, + "input_drift": false, + "contract": "cited-object-content-v1" +} diff --git a/cbz/evidence/node-status-freshness/mutations.json b/cbz/evidence/node-status-freshness/mutations.json new file mode 100644 index 000000000..775bf48ba --- /dev/null +++ b/cbz/evidence/node-status-freshness/mutations.json @@ -0,0 +1,113 @@ +{ + "cases": 18, + "results": [ + { + "name": "object-drift", + "optimized": false, + "killed": true, + "output": "test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 41, in test_changed_blob_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "mode-drift", + "optimized": false, + "killed": true, + "output": "test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 46, in test_mode_change_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.002s\n\nFAILED (failures=1)\n" + }, + { + "name": "truncation", + "optimized": false, + "killed": true, + "output": "test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown) ... FAIL\n\n======================================================================\nFAIL: test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 49, in test_partial_tree_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "tree-identity", + "optimized": false, + "killed": true, + "output": "test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown) ... FAIL\n\n======================================================================\nFAIL: test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 55, in test_wrong_response_identity_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "comment-direction", + "optimized": false, + "killed": true, + "output": "test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown) ... FAIL\n\n======================================================================\nFAIL: test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 111, in test_future_recorded_comment_unknown\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "schema-preflight", + "optimized": false, + "killed": true, + "output": "test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green) ... FAIL\n\n======================================================================\nFAIL: test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 116, in test_strict_invalid_records_never_repaired_to_green\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.012s\n\nFAILED (failures=1)\n" + }, + { + "name": "strict-exit", + "optimized": false, + "killed": true, + "output": "test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) ... \n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale') ... FAIL\n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown') ... FAIL\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 131, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 131, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.024s\n\nFAILED (failures=2)\n" + }, + { + "name": "input-drift", + "optimized": false, + "killed": true, + "output": "test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation) ... FAIL\n\n======================================================================\nFAIL: test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 144, in test_strict_rejects_input_drift_during_observation\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.014s\n\nFAILED (failures=1)\n" + }, + { + "name": "directory-drift", + "optimized": false, + "killed": true, + "output": "test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child) ... FAIL\n\n======================================================================\nFAIL: test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 73, in test_directory_changed_even_unchanged_child\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n" + }, + { + "name": "object-drift", + "optimized": true, + "killed": true, + "output": "test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 41, in test_changed_blob_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "mode-drift", + "optimized": true, + "killed": true, + "output": "test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 46, in test_mode_change_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n" + }, + { + "name": "truncation", + "optimized": true, + "killed": true, + "output": "test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown) ... FAIL\n\n======================================================================\nFAIL: test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 49, in test_partial_tree_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n" + }, + { + "name": "tree-identity", + "optimized": true, + "killed": true, + "output": "test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown) ... FAIL\n\n======================================================================\nFAIL: test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 55, in test_wrong_response_identity_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n" + }, + { + "name": "comment-direction", + "optimized": true, + "killed": true, + "output": "test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown) ... FAIL\n\n======================================================================\nFAIL: test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 111, in test_future_recorded_comment_unknown\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.004s\n\nFAILED (failures=1)\n" + }, + { + "name": "schema-preflight", + "optimized": true, + "killed": true, + "output": "test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green) ... FAIL\n\n======================================================================\nFAIL: test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 116, in test_strict_invalid_records_never_repaired_to_green\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.012s\n\nFAILED (failures=1)\n" + }, + { + "name": "strict-exit", + "optimized": true, + "killed": true, + "output": "test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) ... \n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale') ... FAIL\n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown') ... FAIL\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 131, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 131, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.033s\n\nFAILED (failures=2)\n" + }, + { + "name": "input-drift", + "optimized": true, + "killed": true, + "output": "test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation) ... FAIL\n\n======================================================================\nFAIL: test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 144, in test_strict_rejects_input_drift_during_observation\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.017s\n\nFAILED (failures=1)\n" + }, + { + "name": "directory-drift", + "optimized": true, + "killed": true, + "output": "test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child) ... FAIL\n\n======================================================================\nFAIL: test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpsd3hf5u0/tests/test_node_status_freshness.py\", line 73, in test_directory_changed_even_unchanged_child\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + } + ] +} diff --git a/cbz/evidence/node-status-freshness/normal.log b/cbz/evidence/node-status-freshness/normal.log new file mode 100644 index 000000000..9163a2644 --- /dev/null +++ b/cbz/evidence/node-status-freshness/normal.log @@ -0,0 +1,5 @@ +.................................................................................................ssss.s..... +---------------------------------------------------------------------- +Ran 108 tests in 0.139s + +OK (skipped=5) diff --git a/cbz/evidence/node-status-freshness/optimized.log b/cbz/evidence/node-status-freshness/optimized.log new file mode 100644 index 000000000..fe2066403 --- /dev/null +++ b/cbz/evidence/node-status-freshness/optimized.log @@ -0,0 +1,5 @@ +.................................................................................................ssss.s..... +---------------------------------------------------------------------- +Ran 108 tests in 0.165s + +OK (skipped=5) diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/README.md b/cbz/evidence/node-status-freshness/parent-binding-20261029/README.md new file mode 100644 index 000000000..1fa0dbd98 --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/README.md @@ -0,0 +1,40 @@ +# Parent-bound mutable evidence repair + +Predecessor: Main PR #709 at 5d35ef0700ad88069549cd186d891a3d456c5d61. +Review: https://github.com/d6g8k5htny-coder/main/pull/709#discussion_r4418119091 + +The comment endpoint uses a global comment ID. A cited issue or pull URL also +asserts a parent thread. ContentObserver now requires the exact canonical API +issue_url for the cited repository and issue/PR number. GitHub PR conversation +comments use the issues parent API. Missing, wrong, noncanonical or malformed +parents are unknown, never fresh. API JSON now rejects duplicate names at every +nesting level, preserving the compatible strictness present in PR #700. + +Two new methods first produced 42 intended assertion failures: 40 invalid-parent +cases across both URL forms and both supported repositories, plus two duplicate +JSON cases. After repair, 110 methods per normal/optimized mode passed with five +unchanged real-record skips (105 executed). All original assertions remain; +two old fixtures gained canonical parent fields so their original timestamp and +ID assertions continue exercising those conditions rather than parent rejection. + +The existing nine source mutations remain. Two additional source mutations +remove parent binding and duplicate-JSON refusal. All eleven per mode were killed +by intended named assertions (22 total); positive designated baselines passed. +These finite engineering controls are not proof of auditor or mathematical soundness. + +Reproduce using the commands in ../README.md. The raw logs and this directory's +SHA256SUMS bind the new source. Historical sibling logs, SHA256SUMS, REVIEW.md and +live-20261029 report retain their original bytes and predecessor scope; they are +not current-source verification. No new network observation is claimed. Earlier +strict live observation remains non-green (one changed cited directory). + +No production record, projection, original RealRecordTests method, schema or +workflow changes. No full regression/kernel/CBZ or Q-9006 closure claim. Local +full browser-capable suite was not retried after its earlier sandbox denial; +current-source hosted qualification remains necessary and belongs to the parent. + +PR #700 overlap: its GitSourceState API and tests are separate from ContentObserver. +Its current helper compares type+SHA but discards mode, resolves a head per source, +and has no captured-input --check or backwards-time refusal. Reconcile compatible +helper/test consumers during later composition; neither contribution is wholly +superseded. This repair does not overwrite that branch. diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/REVIEW.md b/cbz/evidence/node-status-freshness/parent-binding-20261029/REVIEW.md new file mode 100644 index 000000000..d67499784 --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/REVIEW.md @@ -0,0 +1,20 @@ +# Independent scoped engineering review + +Reviewer: /root/verify_intake_freshness_candidates/review_parent_binding_repair. +Disposition: ACCEPT_SCOPED_ENGINEERING, 2026-10-29 21:41 UTC. +No blocking defect found in this narrow repair. Same-family engineering; +no scientific independence credit or formal GitHub PR approval. + +Independently executed 110 methods normally and optimized: 105 executed and five +unchanged skips in each mode. All 22 mutation cases were intended assertion kills +with passing designated baselines. Four positive API-route probes and twenty +additional malformed/foreign-parent rejection probes passed. + +Reviewed SHA256: +- tools/node_status_refresh.py: ed018809b290046f9155487c41bbe7ba594dc4fba7941256b7ebb5abff09cac0 +- tests/test_node_status_freshness.py: 8df5de4d25a43f5abeacb388aa5aa1e1b952678e9d8b1c03051d205dd76236c0 +- run_mutations.py: 6dafbd798e99648d64105ec015b946dfad399c9dac0d992efcd323026d3ea026 + +Exact parent binding and nested duplicate JSON rejection confirmed. Original +ID/timestamp/assertions retained. Excludes full regression, hosted qualification, +live network replay, and mathematical certification. Reviewer changed no source. diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/SHA256SUMS b/cbz/evidence/node-status-freshness/parent-binding-20261029/SHA256SUMS new file mode 100644 index 000000000..0d74ae992 --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/SHA256SUMS @@ -0,0 +1,4 @@ +ed018809b290046f9155487c41bbe7ba594dc4fba7941256b7ebb5abff09cac0 tools/node_status_refresh.py +70700c29887bdad09860e4bdf6dbe5e23d8d1432e4a3aa6e2c4f0632a08bbf51 tests/test_node_status_refresh.py +8df5de4d25a43f5abeacb388aa5aa1e1b952678e9d8b1c03051d205dd76236c0 tests/test_node_status_freshness.py +6dafbd798e99648d64105ec015b946dfad399c9dac0d992efcd323026d3ea026 cbz/evidence/node-status-freshness/run_mutations.py diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/mutations.json b/cbz/evidence/node-status-freshness/parent-binding-20261029/mutations.json new file mode 100644 index 000000000..546656480 --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/mutations.json @@ -0,0 +1,137 @@ +{ + "cases": 22, + "results": [ + { + "name": "comment-parent", + "optimized": false, + "killed": true, + "output": "test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) ... \n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.012s\n\nFAILED (failures=40)\n" + }, + { + "name": "api-duplicate-json", + "optimized": false, + "killed": true, + "output": "test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) ... \n test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"id\":13,\"id\":12}') ... FAIL\n test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"tree\":{\"sha\":\"bad\",\"sha\":\"good\"}}') ... FAIL\n\n======================================================================\nFAIL: test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"id\":13,\"id\":12}')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 172, in test_api_duplicate_json_members_rejected\n with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: SourceError not raised\n\n======================================================================\nFAIL: test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"tree\":{\"sha\":\"bad\",\"sha\":\"good\"}}')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 172, in test_api_duplicate_json_members_rejected\n with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: SourceError not raised\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=2)\n" + }, + { + "name": "object-drift", + "optimized": false, + "killed": true, + "output": "test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 42, in test_changed_blob_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "mode-drift", + "optimized": false, + "killed": true, + "output": "test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 47, in test_mode_change_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n" + }, + { + "name": "truncation", + "optimized": false, + "killed": true, + "output": "test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown) ... FAIL\n\n======================================================================\nFAIL: test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 50, in test_partial_tree_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "tree-identity", + "optimized": false, + "killed": true, + "output": "test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown) ... FAIL\n\n======================================================================\nFAIL: test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 56, in test_wrong_response_identity_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "comment-direction", + "optimized": false, + "killed": true, + "output": "test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown) ... FAIL\n\n======================================================================\nFAIL: test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 112, in test_future_recorded_comment_unknown\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.002s\n\nFAILED (failures=1)\n" + }, + { + "name": "schema-preflight", + "optimized": false, + "killed": true, + "output": "test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green) ... FAIL\n\n======================================================================\nFAIL: test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 117, in test_strict_invalid_records_never_repaired_to_green\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.011s\n\nFAILED (failures=1)\n" + }, + { + "name": "strict-exit", + "optimized": false, + "killed": true, + "output": "test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) ... \n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale') ... FAIL\n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown') ... FAIL\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 132, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 132, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.028s\n\nFAILED (failures=2)\n" + }, + { + "name": "input-drift", + "optimized": false, + "killed": true, + "output": "test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation) ... FAIL\n\n======================================================================\nFAIL: test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 145, in test_strict_rejects_input_drift_during_observation\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.013s\n\nFAILED (failures=1)\n" + }, + { + "name": "directory-drift", + "optimized": false, + "killed": true, + "output": "test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child) ... FAIL\n\n======================================================================\nFAIL: test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 74, in test_directory_changed_even_unchanged_child\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "comment-parent", + "optimized": true, + "killed": true, + "output": "test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) ... \n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=None) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9') ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=9) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent={}) ... FAIL\n test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') ... FAIL\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=None)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=9)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent={})\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n======================================================================\nFAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 165, in test_comment_parent_binding\n self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.010s\n\nFAILED (failures=40)\n" + }, + { + "name": "api-duplicate-json", + "optimized": true, + "killed": true, + "output": "test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) ... \n test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"id\":13,\"id\":12}') ... FAIL\n test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"tree\":{\"sha\":\"bad\",\"sha\":\"good\"}}') ... FAIL\n\n======================================================================\nFAIL: test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"id\":13,\"id\":12}')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 172, in test_api_duplicate_json_members_rejected\n with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: SourceError not raised\n\n======================================================================\nFAIL: test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{\"tree\":{\"sha\":\"bad\",\"sha\":\"good\"}}')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 172, in test_api_duplicate_json_members_rejected\n with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: SourceError not raised\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=2)\n" + }, + { + "name": "object-drift", + "optimized": true, + "killed": true, + "output": "test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_changed_blob_is_stale (tests.test_node_status_freshness.ContentTests.test_changed_blob_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 42, in test_changed_blob_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "mode-drift", + "optimized": true, + "killed": true, + "output": "test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale) ... FAIL\n\n======================================================================\nFAIL: test_mode_change_is_stale (tests.test_node_status_freshness.ContentTests.test_mode_change_is_stale)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 47, in test_mode_change_is_stale\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n" + }, + { + "name": "truncation", + "optimized": true, + "killed": true, + "output": "test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown) ... FAIL\n\n======================================================================\nFAIL: test_partial_tree_unknown (tests.test_node_status_freshness.ContentTests.test_partial_tree_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 50, in test_partial_tree_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "tree-identity", + "optimized": true, + "killed": true, + "output": "test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown) ... FAIL\n\n======================================================================\nFAIL: test_wrong_response_identity_unknown (tests.test_node_status_freshness.ContentTests.test_wrong_response_identity_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 56, in test_wrong_response_identity_unknown\n self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + }, + { + "name": "comment-direction", + "optimized": true, + "killed": true, + "output": "test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown) ... FAIL\n\n======================================================================\nFAIL: test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 112, in test_future_recorded_comment_unknown\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown')\nAssertionError: 'fresh' != 'unknown'\n- fresh\n+ unknown\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.005s\n\nFAILED (failures=1)\n" + }, + { + "name": "schema-preflight", + "optimized": true, + "killed": true, + "output": "test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green) ... FAIL\n\n======================================================================\nFAIL: test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 117, in test_strict_invalid_records_never_repaired_to_green\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.015s\n\nFAILED (failures=1)\n" + }, + { + "name": "strict-exit", + "optimized": true, + "killed": true, + "output": "test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) ... \n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale') ... FAIL\n test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown') ... FAIL\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='stale')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 132, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n======================================================================\nFAIL: test_strict_real_refresh_end_to_end (tests.test_node_status_freshness.ContentTests.test_strict_real_refresh_end_to_end) (status='unknown')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 132, in test_strict_real_refresh_end_to_end\n self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.032s\n\nFAILED (failures=2)\n" + }, + { + "name": "input-drift", + "optimized": true, + "killed": true, + "output": "test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation) ... FAIL\n\n======================================================================\nFAIL: test_strict_rejects_input_drift_during_observation (tests.test_node_status_freshness.ContentTests.test_strict_rejects_input_drift_during_observation)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 145, in test_strict_rejects_input_drift_during_observation\n self.assertEqual(n.main([tmp,'--check']),1)\nAssertionError: 0 != 1\n\n----------------------------------------------------------------------\nRan 1 test in 0.018s\n\nFAILED (failures=1)\n" + }, + { + "name": "directory-drift", + "optimized": true, + "killed": true, + "output": "test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child) ... FAIL\n\n======================================================================\nFAIL: test_directory_changed_even_unchanged_child (tests.test_node_status_freshness.ContentTests.test_directory_changed_even_unchanged_child)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/tmp/tmpx49gh36d/tests/test_node_status_freshness.py\", line 74, in test_directory_changed_even_unchanged_child\n self.assertEqual(n.refresh_record(rec,self.observer())['status'],'stale')\nAssertionError: 'fresh' != 'stale'\n- fresh\n+ stale\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n" + } + ] +} diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/normal.log b/cbz/evidence/node-status-freshness/parent-binding-20261029/normal.log new file mode 100644 index 000000000..4d6a9e747 --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/normal.log @@ -0,0 +1,5 @@ +...................................................................................................ssss.s..... +---------------------------------------------------------------------- +Ran 110 tests in 0.160s + +OK (skipped=5) diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/optimized.log b/cbz/evidence/node-status-freshness/parent-binding-20261029/optimized.log new file mode 100644 index 000000000..46d598f07 --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/optimized.log @@ -0,0 +1,5 @@ +...................................................................................................ssss.s..... +---------------------------------------------------------------------- +Ran 110 tests in 0.137s + +OK (skipped=5) diff --git a/cbz/evidence/node-status-freshness/parent-binding-20261029/red.log b/cbz/evidence/node-status-freshness/parent-binding-20261029/red.log new file mode 100644 index 000000000..bcef4488a --- /dev/null +++ b/cbz/evidence/node-status-freshness/parent-binding-20261029/red.log @@ -0,0 +1,463 @@ +FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=None) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent=9) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent={}) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=None) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9/') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/9?x=1') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/issues/10') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/main/pulls/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/main/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent=9) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent={}) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='main', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=None) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent=9) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent={}) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='issues', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=None) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9/') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/9?x=1') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/issues/10') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/Math-/pulls/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/wrong/d6g8k5htny-coder/Math-/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent=9) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent={}) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_comment_parent_binding (tests.test_node_status_freshness.ContentTests.test_comment_parent_binding) (repo='Math-', form='pull', parent='https://api.github.com/repos/d6g8k5htny-coder/other/issues/9') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 165, in test_comment_parent_binding + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{"id":13,"id":12}') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 172, in test_api_duplicate_json_members_rejected + with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AssertionError: SourceError not raised + +====================================================================== +FAIL: test_api_duplicate_json_members_rejected (tests.test_node_status_freshness.ContentTests.test_api_duplicate_json_members_rejected) (raw=b'{"tree":{"sha":"bad","sha":"good"}}') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 172, in test_api_duplicate_json_members_rejected + with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AssertionError: SourceError not raised + +---------------------------------------------------------------------- +Ran 2 tests in 0.011s + +FAILED (failures=42) diff --git a/cbz/evidence/node-status-freshness/review-red.log b/cbz/evidence/node-status-freshness/review-red.log new file mode 100644 index 000000000..75894f701 --- /dev/null +++ b/cbz/evidence/node-status-freshness/review-red.log @@ -0,0 +1,24 @@ +.....F......F... +====================================================================== +FAIL: test_future_recorded_comment_unknown (tests.test_node_status_freshness.ContentTests.test_future_recorded_comment_unknown) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 111, in test_future_recorded_comment_unknown + self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown') +AssertionError: 'fresh' != 'unknown' +- fresh ++ unknown + + +====================================================================== +FAIL: test_strict_invalid_records_never_repaired_to_green (tests.test_node_status_freshness.ContentTests.test_strict_invalid_records_never_repaired_to_green) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/workspace/shared/cbz-recovery/freshness/tests/test_node_status_freshness.py", line 116, in test_strict_invalid_records_never_repaired_to_green + self.assertEqual(n.main([tmp,'--check']),1) +AssertionError: 0 != 1 + +---------------------------------------------------------------------- +Ran 16 tests in 0.009s + +FAILED (failures=2) diff --git a/cbz/evidence/node-status-freshness/run_mutations.py b/cbz/evidence/node-status-freshness/run_mutations.py new file mode 100644 index 000000000..880093773 --- /dev/null +++ b/cbz/evidence/node-status-freshness/run_mutations.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python3 +"""Bounded, non-destructive assertion-only mutation experiment; no math certification.""" +import json +from pathlib import Path +import shutil +import subprocess +import sys +import tempfile + +ROOT=Path(__file__).resolve().parents[3] +CASES=[ + ('comment-parent', 'if value.get("issue_url") != parent:', 'if False:', 'test_comment_parent_binding'), + ('api-duplicate-json', 'return json.load(resp, object_pairs_hook=_unique_pairs)', 'return json.load(resp)', 'test_api_duplicate_json_members_rejected'), + ('object-drift', 'before == after', 'True', 'test_changed_blob_is_stale'), + ('mode-drift', 'before == after', 'before[2] == after[2]', 'test_mode_change_is_stale'), + ('truncation', 'value.get("truncated") is not False', 'False', 'test_partial_tree_unknown'), + ('tree-identity', 'value.get("sha") != sha', 'False', 'test_wrong_response_identity_unknown'), + ('comment-direction', 'if current_z < recorded:', 'if False:', 'test_future_recorded_comment_unknown'), + ('schema-preflight', 'if problems:', 'if False:', 'test_strict_invalid_records_never_repaired_to_green'), + ('strict-exit', 'return 1 if args.check and (drift or not report or any(row["status"] != "fresh" for row in report)) else 0', 'return 0', 'test_strict_real_refresh_end_to_end'), + ('input-drift', 'drift = before != snapshot()', 'drift = False', 'test_strict_rejects_input_drift_during_observation'), + ('directory-drift', 'before == after', 'True', 'test_directory_changed_even_unchanged_child'), +] + +def execute(root, method, optimized): + cmd=[sys.executable,'-B','-S']+(['-O'] if optimized else [])+['-m','unittest','-v','tests.test_node_status_freshness.ContentTests.'+method] + return subprocess.run(cmd,cwd=root,stdout=subprocess.PIPE,stderr=subprocess.STDOUT,text=True,timeout=30) + +def main(): + rows=[] + with tempfile.TemporaryDirectory() as tmp: + dest=Path(tmp) + for directory in ('tools','tests','records/node_status','architecture','docs/site'): + (dest/directory).mkdir(parents=True,exist_ok=True) + for directory in ('tools','tests'): + (dest/directory/'__init__.py').write_text('') + paths=['tools/node_status_refresh.py','tools/validate_node_status.py','tests/test_node_status_freshness.py', + 'architecture/node-status.schema.json','docs/site/current.json'] + paths += [str(p.relative_to(ROOT)) for p in (ROOT/'records/node_status').glob('*.json')] + for path in paths: shutil.copyfile(ROOT/path,dest/path) + module=dest/'tools/node_status_refresh.py'; original=module.read_text() + for optimized in (False,True): + for name,old,new,method in CASES: + if original.count(old)!=1: raise RuntimeError('nonunique mutation: '+name) + module.write_text(original) + baseline=execute(dest,method,optimized) + if baseline.returncode != 0 or 'Ran 1 test' not in baseline.stdout or 'skipped' in baseline.stdout: raise RuntimeError('baseline failed or vacuous: '+baseline.stdout) + module.write_text(original.replace(old,new)) + result=execute(dest,method,optimized) + killed=(result.returncode==1 and 'AssertionError' in result.stdout + and 'FAILED (failures=' in result.stdout and 'errors=' not in result.stdout + and method in result.stdout) + rows.append(dict(name=name,optimized=optimized,killed=killed,output=result.stdout)) + if not killed: raise RuntimeError('not an intended assertion kill: '+result.stdout) + module.write_text(original) + print(json.dumps({'cases':len(rows),'results':rows},indent=2)) + return 0 +if __name__=='__main__': sys.exit(main()) diff --git a/tests/test_node_status_freshness.py b/tests/test_node_status_freshness.py new file mode 100644 index 000000000..f30b74891 --- /dev/null +++ b/tests/test_node_status_freshness.py @@ -0,0 +1,173 @@ +"""Content freshness, not last-touch commit equality; transport is injected offline.""" +import copy +import io +import json +import tempfile +import unittest +from pathlib import Path +from unittest.mock import patch +from tools import node_status_refresh as n + +PIN='1'*40 +HEAD='2'*40 +TREE='3'*40 +BLOB='4'*40 +URL=f'https://github.com/d6g8k5htny-coder/main/blob/{PIN}/file' + +def record(): + return dict(schema_version=0,node_id='x',owner=None,sources=[dict(url=URL,rev=PIN)],source_rev=PIN,status='fresh',scientific_effect='NONE') + +class ContentTests(unittest.TestCase): + def setUp(self): + self.calls=[] + self.responses={ + '/repos/d6g8k5htny-coder/main/commits/HEAD':{'sha':HEAD,'commit':{'tree':{'sha':TREE}}}, + f'/repos/d6g8k5htny-coder/main/git/commits/{PIN}':{'sha':PIN,'tree':{'sha':TREE}}, + f'/repos/d6g8k5htny-coder/main/git/trees/{TREE}':{'sha':TREE,'truncated':False,'tree':[{'path':'file','mode':'100644','type':'blob','sha':BLOB}]}} + def api(self,path): + self.calls.append(path) + return copy.deepcopy(self.responses[path]) + def observer(self): + self.assertTrue(hasattr(n,'ContentObserver'), 'missing content-bound observer') + return n.ContentObserver(self.api) + def test_snapshot_commit_difference_is_not_content_drift(self): + obs=self.observer(); out=n.refresh_record(record(),obs,'2026-10-29T20:00:00Z') + self.assertEqual(out['status'],'fresh'); self.assertEqual(out['source_rev'],PIN) + obs(URL); self.assertEqual(self.calls.count('/repos/d6g8k5htny-coder/main/commits/HEAD'),1) + self.assertEqual(obs.heads,{'main':HEAD}) + def test_changed_blob_is_stale(self): + other='5'*40 + self.responses[f'/repos/d6g8k5htny-coder/main/git/commits/{PIN}']['tree']['sha']=other + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{other}']={'sha':other,'truncated':False,'tree':[{'path':'file','mode':'100644','type':'blob','sha':'6'*40}]} + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale') + def test_mode_change_is_stale(self): + other='5'*40 + self.responses[f'/repos/d6g8k5htny-coder/main/git/commits/{PIN}']['tree']['sha']=other + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{other}']={'sha':other,'truncated':False,'tree':[{'path':'file','mode':'100755','type':'blob','sha':BLOB}]} + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'stale') + def test_partial_tree_unknown(self): + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{TREE}']['truncated']=True + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + def test_missing_path_unknown(self): + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{TREE}']['tree']=[] + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + def test_wrong_response_identity_unknown(self): + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{TREE}']['sha']='9'*40 + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + def test_access_error_unknown(self): + self.responses.clear() + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + def test_url_kind_mismatch_unknown(self): + rec=record(); rec['sources'][0]['url']=URL.replace('/blob/','/tree/') + self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown') + def test_strict_empty_non_green(self): + with tempfile.TemporaryDirectory() as tmp: + with patch('sys.stdout'): + self.assertNotEqual(n.main([tmp,'--check']),0) + + def test_directory_changed_even_unchanged_child(self): + other='5'*40 + self.responses[f'/repos/d6g8k5htny-coder/main/git/commits/{PIN}']['tree']['sha']=other + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{other}']={'sha':other,'truncated':False,'tree':[{'path':'file','mode':'040000','type':'tree','sha':'6'*40}]} + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{TREE}']['tree'][0].update(mode='040000',type='tree') + rec=record();rec['sources'][0]['url']=URL.replace('/blob/','/tree/') + self.assertEqual(n.refresh_record(rec,self.observer())['status'],'stale') + def test_duplicate_and_malformed_tree_entries_unknown(self): + key=f'/repos/d6g8k5htny-coder/main/git/trees/{TREE}' + original=copy.deepcopy(self.responses[key]) + for mutate in (lambda d:d['tree'].append(d['tree'][0]), + lambda d:d.pop('truncated'), + lambda d:d['tree'][0].update(mode='120000'), + lambda d:d['tree'][0].update(sha='no'), + lambda d:d['tree'][0].update(type='tree')): + with self.subTest(mutate=mutate): + self.responses[key]=copy.deepcopy(original);mutate(self.responses[key]) + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + def test_comment_time_and_identity(self): + url='https://github.com/d6g8k5htny-coder/main/issues/9#issuecomment-12' + key='/repos/d6g8k5htny-coder/main/issues/comments/12' + rec=record();rec['sources']=[dict(url=url,rev='2026-10-22T00:00:00Z')];rec['source_rev']=rec['sources'][0]['rev'] + for value,status in (({'id':12,'updated_at':'2026-10-22T00:00:00Z'},'fresh'), + ({'id':12,'updated_at':'2026-10-23T00:00:00Z'},'stale'), + ({'id':13,'updated_at':'2026-10-22T00:00:00Z'},'unknown'), + ({'id':12,'updated_at':'2026-99-22T00:00:00Z'},'unknown')): + self.responses[key]=dict(value,issue_url="https://api.github.com/repos/d6g8k5htny-coder/main/issues/9") + self.assertEqual(n.refresh_record(rec,self.observer())['status'],status) + def test_strict_status_exit_and_report_only_bytes(self): + for status in ('fresh','stale','unknown'): + with self.subTest(status=status), tempfile.TemporaryDirectory() as tmp: + source=Path(__file__).resolve().parents[1]/'records/node_status/eng.hard-gate.json' + path=Path(tmp)/source.name;path.write_bytes(source.read_bytes());before=path.read_bytes() + with patch.object(n,'ContentObserver',return_value=self.observer()), patch.object(n,'refresh_dir',return_value=[{'status':status}]),patch('sys.stdout'): + self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1) + self.assertEqual(path.read_bytes(),before) + def test_same_repo_head_failure_stays_unknown(self): + self.responses['/repos/d6g8k5htny-coder/main/commits/HEAD']['sha']='invalid' + self.assertEqual(n.refresh_record(record(),self.observer())['status'],'unknown') + + def test_future_recorded_comment_unknown(self): + url='https://github.com/d6g8k5htny-coder/main/issues/9#issuecomment-12' + self.responses['/repos/d6g8k5htny-coder/main/issues/comments/12']={'id':12,'updated_at':'2026-10-22T00:00:00Z','issue_url':'https://api.github.com/repos/d6g8k5htny-coder/main/issues/9'} + rec=record();rec['sources']=[dict(url=url,rev='2026-10-23T00:00:00Z')] + self.assertEqual(n.refresh_record(rec,self.observer())['status'],'unknown') + def test_strict_invalid_records_never_repaired_to_green(self): + with tempfile.TemporaryDirectory() as tmp: + (Path(tmp)/'x.json').write_text(json.dumps(record())) + with patch.object(n,'ContentObserver',return_value=self.observer()),patch('sys.stdout'): + self.assertEqual(n.main([tmp,'--check']),1) + + def test_strict_real_refresh_end_to_end(self): + source=Path(__file__).resolve().parents[1]/'records/node_status/eng.hard-gate.json' + for status in ('fresh','stale','unknown'): + with self.subTest(status=status),tempfile.TemporaryDirectory() as tmp: + rec=json.loads(source.read_text());rec['sources']=[dict(url=URL,rev=PIN)];rec['source_rev']=PIN + path=Path(tmp)/source.name;path.write_text(json.dumps(rec));before=path.read_bytes() + if status=='stale': + other='5'*40 + self.responses[f'/repos/d6g8k5htny-coder/main/git/commits/{PIN}']['tree']['sha']=other + self.responses[f'/repos/d6g8k5htny-coder/main/git/trees/{other}']={'sha':other,'truncated':False,'tree':[{'path':'file','mode':'100644','type':'blob','sha':'6'*40}]} + if status=='unknown': + self.responses.clear() + with patch.object(n,'ContentObserver',return_value=self.observer()),patch('sys.stdout'): + self.assertEqual(n.main([tmp,'--check']),0 if status=='fresh' else 1) + self.assertEqual(path.read_bytes(),before) + + def test_strict_rejects_input_drift_during_observation(self): + source=Path(__file__).resolve().parents[1]/'records/node_status/eng.hard-gate.json' + with tempfile.TemporaryDirectory() as tmp: + rec=json.loads(source.read_text());rec['sources']=[dict(url=URL,rev=PIN)];rec['source_rev']=PIN + path=Path(tmp)/source.name;path.write_text(json.dumps(rec)) + def drift(endpoint): + path.write_text('{"scientific_effect":"ACCEPTED"}') + return self.api(endpoint) + obs=n.ContentObserver(drift) + with patch.object(n,'ContentObserver',return_value=obs),patch('sys.stdout'): + self.assertEqual(n.main([tmp,'--check']),1) + + def test_comment_parent_binding(self): + stamp = '2026-10-22T00:00:00Z' + for repo in ('main', 'Math-'): + parent = f'https://api.github.com/repos/d6g8k5htny-coder/{repo}/issues/9' + for form in ('issues', 'pull'): + url = f'https://github.com/d6g8k5htny-coder/{repo}/{form}/9#issuecomment-12' + rec = record() + rec['sources'] = [dict(url=url, rev=stamp)] + rec['source_rev'] = stamp + for candidate in (parent, None, '', parent + '/', parent + '?x=1', + parent.replace('/9', '/10'), parent.replace('/issues/', '/pulls/'), + parent.replace('/repos/', '/wrong/'), 9, {}, + parent.replace('/'+repo+'/', '/other/')): + with self.subTest(repo=repo, form=form, parent=candidate): + value = dict(id=12, updated_at=stamp) + if candidate is not None: + value['issue_url'] = candidate + out = n.refresh_record(rec, n.ContentObserver(lambda path: value)) + self.assertEqual(out['status'], 'fresh' if candidate == parent else 'unknown') + if candidate != parent: + self.assertIn('parent identity mismatch', out['refresh_error']) + + def test_api_duplicate_json_members_rejected(self): + for raw in (b'{"id":13,"id":12}', b'{"tree":{"sha":"bad","sha":"good"}}'): + with self.subTest(raw=raw), patch.object(n.urllib.request, 'urlopen', return_value=io.BytesIO(raw)): + with self.assertRaisesRegex(n.SourceError, 'duplicate JSON key'): + n._api_get('/repos/d6g8k5htny-coder/main/issues/comments/12') diff --git a/tests/test_node_status_refresh.py b/tests/test_node_status_refresh.py index 765b5ea08..c83bc9f64 100644 --- a/tests/test_node_status_refresh.py +++ b/tests/test_node_status_refresh.py @@ -264,7 +264,7 @@ def test_discussion_updated_at_newer_is_stale_and_unfetched_is_unknown(self): comment = load("fresh.json") comment["sources"] = [{"url": comment_url, "rev": "2026-10-15T18:00:00Z"}] older = nsr.refresh_record(comment, offline_fetch, NOW) - self.assertEqual(older["status"], "fresh") + self.assertEqual(older["status"], "unknown") # An observation before the recorded revision cannot certify it. self.assertEqual(older["source_rev"], "2026-10-15T18:00:00Z") missing = load("fresh.json") diff --git a/tools/node_status_refresh.py b/tools/node_status_refresh.py index 8e649827a..5fa7c8b66 100644 --- a/tools/node_status_refresh.py +++ b/tools/node_status_refresh.py @@ -1,28 +1,21 @@ #!/usr/bin/env python3 """Recompute freshness for node-status records (LANES-20261022 Lane 3). -Settled rule: source_rev is sources[0].rev, the primary source. For a pinned -blob or tree on d6g8k5htny-coder/main or Math-, that rev is the 40-hex sha in -the URL. The moving-ref sha is never written into the record. If that moving -ref has moved past source_rev, status is stale. If it cannot be resolved, -status is unknown and refresh_error says why. - -#495 is adding the other three forms this tool already accepts: an updated_at -rev (UTC Z string) for an issue, pull, or comment URL on main or Math-; an -optional refresh_error (string or null); and an optional owner.released_url. -An issue, pull, or comment source is stale when the object's updated_at is -newer than its rev, and unknown when that updated_at cannot be fetched. - -Only status, observed_at, source_rev (set to the primary rev, not a fetched -tip), refresh_error, and that one owner field are written. status is freshness -only, never scientific validity. scientific_effect stays "NONE". Owner identity -is never inferred. - -Rules: - - no source moved past its recorded rev -> "fresh" - - any source moved past its recorded rev -> "stale" - - any source unreachable / not a valid rev -> "unknown" (never "fresh") -Precedence: unknown > stale > fresh. +CLI contract cited-object-content-v1: preserve immutable source pins; capture one +current default-branch commit per repository over GitHub HTTPS; compare cited +Git object type, mode and identity at the pin and observed head. A directory +citation compares the entire tree, not merely a selected child. Unknown or +incomplete responses cannot establish freshness. Discussion revisions compare +validated updated_at timestamps; a newer source is stale, an older observation +is unknown. Git and mutable-discussion observations are not atomic: reports +include start/end times, repository cuts and source observations. + +The injectable refresh_record API and historical github_fetch helper retain +revision-token support for existing offline callers. The CLI uses ContentObserver, +not github_fetch's last-path-commit comparison. Report-only success is not a gate. +--check first validates production records, never writes, and returns nonzero +for empty, invalid, stale or unknown observations. Owner identity is never +inferred and scientific_effect stays NONE. This certifies no mathematics. The default fetcher reads the public GitHub REST API (read-only, optional GITHUB_TOKEN from the workflow). Tests inject an offline fetcher. @@ -33,6 +26,8 @@ import argparse import datetime as _dt import json +import hashlib +import tempfile import os import re import sys @@ -89,7 +84,7 @@ def _api_get(path: str) -> object: req.add_header("Authorization", "Bearer " + token) try: with urllib.request.urlopen(req, timeout=20) as resp: - return json.load(resp) + return json.load(resp, object_pairs_hook=_unique_pairs) except Exception as exc: # network, HTTP, JSON raise SourceError(f"{type(exc).__name__}: {exc}") from exc @@ -149,6 +144,119 @@ def github_fetch(url: str) -> str: raise SourceError(f"unsupported source url: {url}") +class ContentObserver: + """One HTTPS-observed default-head cut per repo; exact Git object identities. + + The injected API is a trust boundary for offline tests, not proof that a + supplied transcript was fetched. Nonrecursive trees must be complete. + Mutable comments are observed during the same run, not atomically with Git. + """ + def __init__(self, api=None): + self.api = _api_get if api is None else api + self.heads = {} + self.roots = {} + self.trees = {} + self.observations = [] + + @staticmethod + def sha(value): + if not isinstance(value, str) or not _SHA.fullmatch(value): + raise SourceError("invalid object identity") + return value + + def root(self, repo, rev): + key = (repo, rev) + if key not in self.roots: + value = self.api(f"/repos/d6g8k5htny-coder/{repo}/git/commits/{rev}") + if not isinstance(value, dict) or value.get("sha") != rev: + raise SourceError("commit response identity mismatch") + self.roots[key] = self.sha(value.get("tree", {}).get("sha")) + return self.roots[key] + + def head(self, repo): + if repo not in self.heads: + value = self.api(f"/repos/d6g8k5htny-coder/{repo}/commits/HEAD") + if not isinstance(value, dict): + raise SourceError("invalid head response") + sha = self.sha(value.get("sha")) + root = self.sha(value.get("commit", {}).get("tree", {}).get("sha")) + self.heads[repo] = sha + self.roots[(repo, sha)] = root + return self.heads[repo] + + def tree(self, repo, sha): + key = (repo, sha) + if key not in self.trees: + value = self.api(f"/repos/d6g8k5htny-coder/{repo}/git/trees/{sha}") + if (not isinstance(value, dict) or value.get("sha") != sha + or value.get("truncated") is not False + or not isinstance(value.get("tree"), list)): + raise SourceError("incomplete or mismatched tree response") + entries = {} + modes = {"100644": "blob", "100755": "blob", "120000": "blob", + "040000": "tree", "160000": "commit"} + for entry in value["tree"]: + if not isinstance(entry, dict): + raise SourceError("invalid tree entry") + name = entry.get("path") + if (not isinstance(name, str) or not name or "/" in name + or name in (".", "..") or name in entries + or modes.get(entry.get("mode")) != entry.get("type")): + raise SourceError("invalid or duplicate tree entry") + entries[name] = (entry["type"], entry["mode"], self.sha(entry.get("sha"))) + self.trees[key] = entries + return self.trees[key] + + def object(self, repo, rev, path, kind): + parts = path.split("/") + if any(part in ("", ".", "..") for part in parts): + raise SourceError("noncanonical source path") + sha = self.root(repo, rev) + for index, part in enumerate(parts): + entry = self.tree(repo, sha).get(part) + if entry is None: + raise SourceError("source path missing") + typ, mode, sha = entry + if index < len(parts) - 1 and typ != "tree": + raise SourceError("source ancestor is not a tree") + if typ != kind or mode not in ("100644", "100755", "040000"): + raise SourceError("source kind mismatch or unsupported link") + return entry + + def __call__(self, url): + kind, match = _classify(url) + if kind == "sha": + repo, pin, path = match.group(1), match.group(3), match.group(4) + current = self.head(repo) + expected_kind = url.split("/")[5] + before = self.object(repo, pin, path, expected_kind) + after = self.object(repo, current, path, expected_kind) + self.observations.append(dict(url=url, head=current, pinned_object=before, + current_object=after)) + return {"object_equal": before == after} + if kind == "time": + repo, discussion, number, comment = match.groups() + suffix = (f"issues/comments/{comment}" if comment else + f"{'pulls' if discussion == 'pull' else 'issues'}/{number}") + value = self.api(f"/repos/d6g8k5htny-coder/{repo}/{suffix}") + if not isinstance(value, dict): + raise SourceError("invalid discussion response") + expected = int(comment or number) + if value.get("id" if comment else "number") != expected: + raise SourceError("discussion response identity mismatch") + if comment: + parent = f"{API}/repos/d6g8k5htny-coder/{repo}/issues/{number}" + if value.get("issue_url") != parent: + raise SourceError("discussion parent identity mismatch") + updated = _as_z(value.get("updated_at")) + if not _UTC.fullmatch(updated): + raise SourceError("invalid discussion timestamp") + _dt.datetime.strptime(updated, "%Y-%m-%dT%H:%M:%SZ") + self.observations.append(dict(url=url, updated_at=updated)) + return updated + raise SourceError("unsupported source url") + + def github_comments(evidence_url: str) -> list[dict]: """Read issue comments for a PICKUP URL. One short page means the read ended.""" m = _COMMENT.fullmatch(evidence_url) @@ -281,6 +389,9 @@ def refresh_record(record: dict, fetch: Fetcher, now: str | None = None, continue current = _current(fetched) if kind == "sha": + if isinstance(current, dict) and set(current) == {"object_equal"} and type(current["object_equal"]) is bool: + changed = changed or not current["object_equal"] + continue if not isinstance(current, str) or not _SHA.fullmatch(current): errors.append(f"{url}: moving ref is not a 40-hex sha") continue @@ -291,7 +402,15 @@ def refresh_record(record: dict, fetch: Fetcher, now: str | None = None, if not _UTC.fullmatch(current_z): errors.append(f"{url}: updated_at is not a UTC Z timestamp") continue - if current_z > recorded: + try: + _dt.datetime.strptime(recorded, "%Y-%m-%dT%H:%M:%SZ") + _dt.datetime.strptime(current_z, "%Y-%m-%dT%H:%M:%SZ") + except ValueError: + errors.append(f"{url}: invalid calendar timestamp") + continue + if current_z < recorded: + errors.append(f"{url}: observed timestamp predates recorded revision") + elif current_z > recorded: changed = True _apply_release(out, record, comments, errors) if primary is not None: @@ -343,15 +462,70 @@ def main(argv: list[str] | None = None) -> int: ap = argparse.ArgumentParser(description=__doc__.splitlines()[0]) ap.add_argument("records", nargs="?", default="records/node_status") ap.add_argument("--write", action="store_true", help="rewrite records (default: report only)") + ap.add_argument("--check", action="store_true", help="fail unless nonempty observed records are all fresh; never writes") args = ap.parse_args(argv) + if args.check and args.write: + ap.error("--check cannot be combined with --write") directory = Path(args.records) if not directory.is_dir(): print(json.dumps({"records": str(directory), "report": [], "note": "no records directory; nothing to refresh", "scientific_effect": "NONE"}, indent=2)) - return 0 - report = refresh_dir(directory, github_fetch, args.write) - print(json.dumps({"records": str(directory), "report": report, "scientific_effect": "NONE"}, indent=2)) - return 0 + return 1 if args.check else 0 + started = _utc_now() + observer = ContentObserver() + input_hashes = None + drift = False + if args.check: + if __package__: + from . import validate_node_status as validator + else: + import validate_node_status as validator + + def snapshot(): + if directory.is_symlink() or not directory.is_dir(): + raise ValueError("records directory missing or symlink") + result = {} + files = list(directory.iterdir()) + if len(files) > validator.MAX_FILES + 1: + raise ValueError("too many node-status records") + for path in files: + if path.is_symlink() or not path.is_file(): + raise ValueError("nonregular record input") + if path.stat().st_size > validator.MAX_BYTES: + raise ValueError("record input too large") + data = path.read_bytes() + if len(data) > validator.MAX_BYTES: + raise ValueError("record input too large") + result[path.name] = data + return result + + try: + before = snapshot() + input_hashes = {name: hashlib.sha256(data).hexdigest() for name, data in sorted(before.items())} + # Validate and observe the SAME captured bytes, not separate mutable reads. + with tempfile.TemporaryDirectory(prefix="node-status-check-") as tmp: + captured = Path(tmp) + for name, data in before.items(): + (captured / name).write_bytes(data) + problems = validator.validate_directory(Path(__file__).resolve().parents[1], captured) + if problems: + print(json.dumps({"records": str(directory), "validation_errors": problems, + "input_sha256": input_hashes, "scientific_effect": "NONE"}, indent=2)) + return 1 + report = refresh_dir(captured, observer, False, now=started) + drift = before != snapshot() + except (OSError, ValueError) as exc: + print(json.dumps({"records": str(directory), "input_error": str(exc), + "input_sha256": input_hashes, "scientific_effect": "NONE"}, indent=2)) + return 1 + else: + report = refresh_dir(directory, observer, args.write, now=started) + print(json.dumps({"records": str(directory), "report": report, "scientific_effect": "NONE", + "observation_started_at": started, "observation_finished_at": _utc_now(), + "heads": observer.heads, "sources": observer.observations, + "input_sha256": input_hashes, "input_drift": drift, + "contract": "cited-object-content-v1"}, indent=2)) + return 1 if args.check and (drift or not report or any(row["status"] != "fresh" for row in report)) else 0 if __name__ == "__main__":