Repository navigation
Preflight v2: read-only GitHub preflight at a pinned commit - #525
Merged
Merged
Conversation
Rebuilt on master after #524 merged: the same #525 content (bounded GitHub preflight reads, symlink skips, partial-report preservation) rebased onto the squashed preflight v2 base. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
blitzcrieg1
force-pushed
the
feat/preflight-github
branch
from
November 28, 2026 19:40
ce0e750 to
061f3d5
Compare
blitzcrieg1
added a commit
that referenced
this pull request
Nov 28, 2026
Preflight v2 ships as one release: preflight follows referenced scripts (#524), a read-only GitHub preflight at a pinned commit (#525), and preflight correlation with recorded sessions (#526). The canonical event schema moves to 1.3.0 with the additive workspace_sha256 field. Version and changelog move together per the version provenance tests. Generated by Mistral Vibe. Co-authored-by: Mistral Vibe <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 2 of preflight v2: the same inventory for a remote repository, read-only.
agentmetry scan --github OWNER/REPO@SHAwalks the git tree via the GitHub API (no clone, no checkout, nothing executed), parses the same manifests, and follows resolved script references by fetching blobs and reducing them to a SHA-256 plus observation names through the samescript_inspectstep as PR #524. Omit@REFto resolve the default branch HEAD; pin the SHA in CI to scan exactly what was reviewed.Design:
preflight.pyrefactored so path parsing (_script_path) and the one-step inspection (_inspect_referencewith an injected reader) are shared between the local walk and the remote tree lookup; local behavior is unchanged (existing tests still pass unmodified in behavior).GITHUB_TOKEN/GH_TOKENraises the rate limit; unauthenticated works for public repos. Contents are never stored or printed, keeping the local-first / EU residency story.Verification:
blitzcrieg1/agentmetry@aa1303f(v0.18.2 tag): exit 0,tests/conftest.pyinspected with hash prefix only.Stacks on #524. Next: dashboard correlation of preflight findings (repo + SHA) with recorded sessions in that workspace.