Skip to content

fix: reject foreign result shards and tracked validation output - #307

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/result-provenance-guards
Oct 17, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/result-provenance-guards

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Validation shards can carry absolute paths from another machine. The collectors now exclude such shards with a warning naming the shard and path. The analyze job rejects them before aggregation, so excluding evidence cannot manufacture a successful run. A reusable smoke-gate lint rejects tracked result files using the git index.

Scripts Changed

heart/result_provenance.py, the validate/test_run/script_timing consumers, and reusable smoke/validation workflows; focused provenance and real-git lint tests.

Validation

239 focused tests initially passed. Full suite with GITHUB_WORKSPACE set: 1,265 passed and one historical-local fixture failed; updated that fixture to declare its local runner root, then all 55 affected monitoring/timing/provenance tests passed. Tenant firewall passed. Tests cover prefix siblings, traversal, symlink escape, foreign counts, fail-closed aggregation and tracked versus untracked reports.

Local legacy reports retain their existing behavior when neither PYAUTO_RESULT_ROOT nor GITHUB_WORKSPACE is declared. Full weekly cloud execution remains to be observed.

Heart / authorization

Published Heart state at 2026-10-17 09:00 UTC: STALE — release validation stale: source moved since rehearsal (PyAutoFit, PyAutoGalaxy, PyAutoLens). Development PR only; no release-readiness claim. User requested four linked Mind tasks; one task per PR, stop at human /prm.

Closes #303

@Jammy2211
Jammy2211 merged commit 388439b into main Oct 17, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/result-provenance-guards branch October 17, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: reject foreign validation results and tracked reports

1 participant