Repository navigation
Make Tabellio provenance local-first and preserve coordinated publication #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2f358b9
Add reproducible pilot policy benchmark and safe setup diagnostics
hudsonaikins 96947b8
Require complete checkpoint evidence and reject ambiguous publication…
719b5de
Keep runner fingerprint reads from refreshing the Git index
fd94512
Share publication and validation test fixture setup
d1ce0da
Install checksum-verified Entire for hosted validation
09d95ad
Fix Entire version check pipe closure
ac1f871
Make provenance local by default
d48c9be
Run portable exact-head checks on GitHub Actions
2727401
Validate private native metadata on the exact hosted candidate
ec698f7
Verify the native evidence loader in workflow regressions
a54c1ff
Expose only allowlisted validator outcomes for hosted diagnosis
4b71768
Scope Git capability probes to the candidate with filtered evidence
d09b600
Measure singleton lineage input before planning JSON inserts
036c957
Share migrated PostgreSQL fixtures without duplicate setup
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
| # Import only native checkpoint history explicitly supplied by the operator. | ||
| # The subsequent product gate still verifies metadata and exact-candidate association. | ||
| checkpoint_ref=refs/heads/entire/checkpoints/v1 | ||
| if [[ -n "${TABELLIO_CHECKPOINT_BUNDLE:-}" ]]; then | ||
| bundle="$TABELLIO_CHECKPOINT_BUNDLE" | ||
| if [[ ! -f "$bundle" ]] || ! git bundle verify "$bundle" >/dev/null 2>&1; then | ||
| echo 'Checkpoint setup blocked: supplied bundle is missing, invalid, or has unavailable prerequisites.' >&2 | ||
| exit 1 | ||
| fi | ||
| if ! git bundle list-heads "$bundle" "$checkpoint_ref" | awk -v ref="$checkpoint_ref" '$2 == ref { found=1 } END { exit !found }'; then | ||
| echo 'Checkpoint setup blocked: bundle does not advertise the native Entire checkpoint ref.' >&2 | ||
| exit 1 | ||
| fi | ||
| # No force: divergent existing history requires explicit operator reconciliation. | ||
| if head -n 4 "$bundle" | grep -q '^@filter='; then | ||
| # Native filtered bundles preserve original object IDs and use promisor packs. | ||
| # Ordinary fetch rejects their intentionally absent transcript/prompt blobs. | ||
| advertised="$(git bundle list-heads "$bundle")" | ||
| imported="$(printf '%s\n' "$advertised" | awk -v ref="$checkpoint_ref" '$2 == ref { print $1 }')" | ||
| if [[ "$(printf '%s\n' "$advertised" | wc -l | tr -d ' ')" != 1 ]] || | ||
| ! git bundle unbundle "$bundle" >/dev/null 2>&1; then | ||
| echo 'Checkpoint setup blocked: filtered native history import failed.' >&2 | ||
| exit 1 | ||
| fi | ||
| current="$(git rev-parse --verify "$checkpoint_ref" 2>/dev/null || true)" | ||
| if [[ -n "$current" ]] && ! git merge-base --is-ancestor "$current" "$imported"; then | ||
| echo 'Checkpoint setup blocked: divergent native history requires operator reconciliation.' >&2 | ||
| exit 1 | ||
| fi | ||
| if ! git update-ref "$checkpoint_ref" "$imported" "$current"; then | ||
| echo 'Checkpoint setup blocked: native history changed during import.' >&2 | ||
| exit 1 | ||
| fi | ||
| elif ! git fetch --no-tags "$bundle" "$checkpoint_ref:$checkpoint_ref" >/dev/null 2>&1; then | ||
| echo 'Checkpoint setup blocked: native checkpoint import failed; reconcile existing history on the trusted worker.' >&2 | ||
| exit 1 | ||
| fi | ||
| fi | ||
| if ! git rev-parse --verify "$checkpoint_ref^{commit}" >/dev/null 2>&1; then | ||
| echo 'Checkpoint setup blocked: use a trusted worker with genuine native Entire history, or supply TABELLIO_CHECKPOINT_BUNDLE from customer-owned private storage. Never upload session records to public CI artifacts.' >&2 | ||
| exit 1 | ||
| fi |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| # Source to retain PATH in Buildkite; GitHub receives it through GITHUB_PATH. | ||
| entire_tools_root="${TABELLIO_ENTIRE_TOOLS_DIR:-${RUNNER_TEMP:-${TMPDIR:-/tmp}}/tabellio-entire-0.7.7}" | ||
| case "$(uname -s)-$(uname -m)" in | ||
| Linux-x86_64) | ||
| entire_archive_name=entire_linux_amd64.tar.gz | ||
| entire_archive_digest=63d89e2ac57fc52307907a15b168a7b0bf7b114993b27f8fa943dfdb4159ad26 | ||
| ;; | ||
| Darwin-arm64) | ||
| entire_archive_name=entire_darwin_arm64.tar.gz | ||
| entire_archive_digest=960f25c18ebd7fa66c00081fc0abff64ce34774ff7ce0c03e3b5d12a4b134568 | ||
| ;; | ||
| *) printf '%s\n' 'Unsupported Entire tool platform.' >&2; exit 1 ;; | ||
| esac | ||
| mkdir -p "$entire_tools_root" | ||
| entire_archive_path="$entire_tools_root/$entire_archive_name" | ||
| if [[ ! -f "$entire_archive_path" ]]; then | ||
| curl --fail --silent --show-error --location --proto '=https' --proto-redir '=https' --tlsv1.2 \ | ||
| --connect-timeout 15 --max-time 120 \ | ||
| "https://github.com/entireio/cli/releases/download/v0.7.7/$entire_archive_name" \ | ||
| --output "$entire_archive_path" | ||
| fi | ||
| node --input-type=module - "$entire_archive_path" "$entire_archive_digest" <<'NODE' | ||
| import { createHash } from 'node:crypto'; | ||
| import { readFileSync } from 'node:fs'; | ||
| const actual = createHash('sha256').update(readFileSync(process.argv[2])).digest('hex'); | ||
| if (actual !== process.argv[3]) throw new Error('Entire archive integrity mismatch.'); | ||
| NODE | ||
| tar -xzf "$entire_archive_path" -C "$entire_tools_root" entire | ||
| export PATH="$entire_tools_root:$PATH" | ||
| entire_version_output="$(entire version)" | ||
| grep -Eq '^Entire CLI v?0\.7\.7([[:space:]]|$)' <<< "$entire_version_output" | ||
| if [[ -n "${GITHUB_PATH:-}" ]]; then | ||
| printf '%s\n' "$entire_tools_root" >> "$GITHUB_PATH" | ||
| fi |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a Buildkite checkout configures
originas the valid canonical formssh://git@github.com/OWNER/REPO.git, this regex does not match, so thenode -ecommand exits nonzero underset -eand product validation aborts before running the gate. The repository's own remote parser accepts this form, so derive the ID through that shared parser or extend this extraction to coverssh://URLs.Useful? React with 👍 / 👎.