Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
2b2c2eb
checkpoint: add official-resolution gate installer
Chrisbryan17 Jul 25, 2026
a673efe
checkpoint: add checksum-bound official outcome bitset
Chrisbryan17 Jul 25, 2026
81b6ff9
checkpoint: add checksum-bound official resolution gate
Chrisbryan17 Jul 25, 2026
b735fde
checkpoint: add source-gate regression coverage
Chrisbryan17 Jul 25, 2026
991827f
checkpoint: back up research workflow
Chrisbryan17 Jul 25, 2026
e414bc8
ci: run official-resolution-gated four-fold research
Chrisbryan17 Jul 25, 2026
3cea959
fix: restore exact regression-test byte identity
Chrisbryan17 Jul 25, 2026
7335ac1
fix: normalize parquet microsecond timestamps before epoch conversion
Chrisbryan17 Jul 25, 2026
5d2c06c
fix: validate official outcomes across full immutable source universe
Chrisbryan17 Jul 25, 2026
df185bb
fix: bind source gate to terminally resolved contract universe
Chrisbryan17 Jul 25, 2026
7a449da
fix: preserve canonical asset across book-registry merge
Chrisbryan17 Jul 25, 2026
63cd0d1
docs: define honest live-readiness research gates
Chrisbryan17 Jul 25, 2026
4a9e842
docs: add live-readiness implementation plan
Chrisbryan17 Jul 25, 2026
d565a93
feat: checkpoint deterministic execution attribution patch
Chrisbryan17 Jul 25, 2026
60656ad
ci: add checksum-pinned execution diagnostics replay
Chrisbryan17 Jul 25, 2026
6f20fcc
ci: trigger diagnostics on isolated pull request
Chrisbryan17 Jul 25, 2026
bac0278
docs: mark observed folds diagnostic and live mode disabled
Chrisbryan17 Jul 25, 2026
f90e2ad
docs: checkpoint diagnostics execution status
Chrisbryan17 Jul 25, 2026
6827eaf
safety: persist live-disabled checkpoint marker
Chrisbryan17 Jul 25, 2026
67eece5
chore: record live-readiness checkpoint sha
Chrisbryan17 Jul 25, 2026
a657fb9
chore: mark diagnostics checkpoint ready for draft PR
Chrisbryan17 Jul 25, 2026
43f82ca
docs: record next operation
Chrisbryan17 Jul 25, 2026
9504e17
chore: terminate file-only checkpoint sequence
Chrisbryan17 Jul 25, 2026
127541b
chore: pin final pre-PR head
Chrisbryan17 Jul 25, 2026
77277f9
research: checkpoint execution bottleneck findings
Chrisbryan17 Jul 25, 2026
be1c2ee
ci: independently verify execution diagnostics artifact
Chrisbryan17 Jul 25, 2026
fc381f8
feat: add explicit book-arrival FOK diagnostic model
Chrisbryan17 Jul 25, 2026
5caea8e
ci: verify candidate semantics with deterministic tolerance
Chrisbryan17 Jul 25, 2026
9878031
ci: compare tape-confirmed and book-arrival fill models
Chrisbryan17 Jul 25, 2026
d0b476d
feat: checkpoint shadow kernel exports
Chrisbryan17 Jul 25, 2026
1e1b8de
feat: checkpoint shadow-only configuration
Chrisbryan17 Jul 25, 2026
9c32967
feat: checkpoint shadow execution types
Chrisbryan17 Jul 25, 2026
9eb825d
feat: checkpoint fail-closed shadow risk kernel
Chrisbryan17 Jul 25, 2026
73a748c
feat: checkpoint zero-network shadow gateway
Chrisbryan17 Jul 25, 2026
252400f
test: checkpoint shadow gateway safety regressions
Chrisbryan17 Jul 25, 2026
12df37e
feat: checkpoint prospective contamination ledger
Chrisbryan17 Jul 25, 2026
ba96e7f
test: checkpoint prospective ledger integrity regressions
Chrisbryan17 Jul 25, 2026
2d70bc1
ci: verify shadow kernel and prospective ledger checkpoint
Chrisbryan17 Jul 25, 2026
28f8d3e
feat: export shadow canary admission report
Chrisbryan17 Jul 25, 2026
2947591
feat: checkpoint shadow canary admission report
Chrisbryan17 Jul 25, 2026
e95fddb
test: checkpoint shadow canary admission gates
Chrisbryan17 Jul 25, 2026
ed6aaf1
ci: verify shadow canary report checkpoint
Chrisbryan17 Jul 25, 2026
6362cc9
feat: export hash-chained shadow report ledger
Chrisbryan17 Jul 25, 2026
1916ff0
feat: checkpoint hash-chained shadow report ledger
Chrisbryan17 Jul 25, 2026
c8a293e
test: checkpoint shadow report chain integrity regressions
Chrisbryan17 Jul 25, 2026
3f304eb
ci: verify hash-chained shadow report checkpoint
Chrisbryan17 Jul 25, 2026
62df830
docs: checkpoint 45-test live-readiness status
Chrisbryan17 Jul 25, 2026
00f55dd
feat: checkpoint credential-free prospective market observer
Chrisbryan17 Jul 25, 2026
062c541
ci: verify credential-free prospective observer checkpoint
Chrisbryan17 Jul 25, 2026
354757a
ci: add credential-free scheduled prospective observer
Chrisbryan17 Jul 25, 2026
c41cdb9
feat: checkpoint public order-book evidence ledger
Chrisbryan17 Jul 25, 2026
3661715
ci: persist public market and order-book evidence
Chrisbryan17 Jul 25, 2026
26e5f53
ci: verify complete public market and book observer source
Chrisbryan17 Jul 25, 2026
e735354
feat: checkpoint non-atomic paired FOK estimator
Chrisbryan17 Jul 25, 2026
b1c96c8
test: checkpoint causal paired FOK estimator regressions
Chrisbryan17 Jul 25, 2026
852f592
refactor: isolate shadow fill simulation source
Chrisbryan17 Jul 25, 2026
cf9a8c5
refactor: isolate shadow fill simulation tests
Chrisbryan17 Jul 25, 2026
ae88d2d
refactor: move shadow fill source to simulation payload
Chrisbryan17 Jul 25, 2026
4163499
refactor: move shadow fill tests to simulation payload
Chrisbryan17 Jul 25, 2026
a927478
ci: verify non-atomic shadow fill simulation
Chrisbryan17 Jul 25, 2026
cde3126
feat: checkpoint public Binance BTC market-state ledger
Chrisbryan17 Jul 25, 2026
f632d08
ci: verify public Binance market-state checkpoint
Chrisbryan17 Jul 25, 2026
b87807f
feat: integrate prospective BTC state observer
Chrisbryan17 Jul 25, 2026
0724fa0
refactor: isolate prospective BTC state observer payload
Chrisbryan17 Jul 25, 2026
574d747
ci: verify prospective Binance state observer integration
Chrisbryan17 Jul 25, 2026
e5ec235
ci: add scheduled public BTC state observer
Chrisbryan17 Jul 25, 2026
0a1d864
feat: checkpoint frozen-policy prospective signal adapter
Chrisbryan17 Jul 25, 2026
58a07e0
ci: verify frozen-policy prospective signal adapter
Chrisbryan17 Jul 25, 2026
de24d1c
ci: freeze immutable prospective surface policy
Chrisbryan17 Jul 25, 2026
cda1160
research: checkpoint deep favorite EDA findings
Chrisbryan17 Jul 25, 2026
f875020
research: freeze diagnostic BTC ETH favorite candidate
Chrisbryan17 Jul 25, 2026
03a5d2d
docs: add deep EDA fresh-chat handoff
Chrisbryan17 Jul 26, 2026
2f6b165
test: add red late-favorite reproducibility contract
Chrisbryan17 Jul 26, 2026
f22d83e
ci: expose red late-favorite contract on PR
Chrisbryan17 Jul 26, 2026
860526b
research: add late-favorite reproducibility module
Chrisbryan17 Jul 26, 2026
aad09ab
test: specify late-favorite transfer behavior
Chrisbryan17 Jul 26, 2026
d0026ec
fix: repair late-favorite audit source serialization
Chrisbryan17 Jul 26, 2026
e68f376
ci: run late-favorite reproducibility audit
Chrisbryan17 Jul 26, 2026
61f5f27
test: require explicit unlabeled-fill accounting
Chrisbryan17 Jul 26, 2026
64784ad
fix: add explicit unlabeled-fill accounting patch
Chrisbryan17 Jul 26, 2026
1191568
fix: account for unlabeled late-favorite fills
Chrisbryan17 Jul 26, 2026
b970a5b
fix: integrate explicit unlabeled-fill accounting
Chrisbryan17 Jul 26, 2026
6230f90
ci: run integrated unlabeled-fill accounting audit
Chrisbryan17 Jul 26, 2026
4893742
chore: remove superseded accounting patch
Chrisbryan17 Jul 26, 2026
1f4eecb
research: checkpoint late-favorite reproducibility audit v2
Chrisbryan17 Jul 26, 2026
7f2986c
research: document late-favorite repro checkpoint v2
Chrisbryan17 Jul 26, 2026
aafaf21
test: define official terminal outcome transfer contract
Chrisbryan17 Jul 26, 2026
c274013
ci: expose red official outcome transfer contract
Chrisbryan17 Jul 26, 2026
d1e393b
research: implement official terminal outcome transfer
Chrisbryan17 Jul 26, 2026
78776a2
fix: harden official transfer evidence serialization
Chrisbryan17 Jul 26, 2026
039c6f2
ci: run hash-bound official outcome transfer
Chrisbryan17 Jul 26, 2026
780c4f2
ci: publish compact official-transfer evidence
Chrisbryan17 Jul 26, 2026
eff6c56
ci: extract compact official-transfer evidence
Chrisbryan17 Jul 26, 2026
4804460
ci: expose compact official evidence on PR
Chrisbryan17 Jul 26, 2026
cedd659
research: reject late-favorite candidate on official outcomes
Chrisbryan17 Jul 26, 2026
963e7b3
test: require fees on unlabeled hypothetical fills
Chrisbryan17 Jul 26, 2026
b517318
ci: isolate late-favorite fee-field regression
Chrisbryan17 Jul 26, 2026
6bc1353
docs: record official late-favorite rejection
Chrisbryan17 Jul 26, 2026
841121e
ci: apply verified late-favorite fee-field fix
Chrisbryan17 Jul 26, 2026
0dd4405
ci: expose verified fee-field patch workflow
Chrisbryan17 Jul 26, 2026
43aa55d
research: classify BTC-only as marginal prospective lead
Chrisbryan17 Jul 26, 2026
4f943b8
fix: record fees for unlabeled hypothetical fills
Jul 26, 2026
bb3a818
research: freeze BTC-only v3 prospective candidate
Chrisbryan17 Jul 26, 2026
0ac9718
research: bind BTC-only v3 prospective freeze
Chrisbryan17 Jul 26, 2026
38b3a5a
chore: remove one-shot fee-field patch workflow
Chrisbryan17 Jul 26, 2026
36de313
ci: verify corrected fee-field ordering
Chrisbryan17 Jul 26, 2026
5552f09
test: specify BTC-only v3 prospective observer
Chrisbryan17 Jul 26, 2026
d165f16
ci: add BTC-only v3 observer contract
Chrisbryan17 Jul 26, 2026
b243d5a
ci: expose BTC-only v3 observer contract
Chrisbryan17 Jul 26, 2026
7445d56
ci: isolate BTC-only v3 observer branch
Chrisbryan17 Jul 26, 2026
f055619
ci: register isolated BTC-only observer workflow
Chrisbryan17 Jul 26, 2026
fbd5de0
ci: expose isolated observer PR checkpoint
Chrisbryan17 Jul 26, 2026
c82d874
ci: enable isolated BTC-only v3 observer PR
Chrisbryan17 Jul 26, 2026
a768d00
ci: trigger isolated observer RED checkpoint
Chrisbryan17 Jul 26, 2026
e2518f4
ci: align isolated observer workflow with base
Chrisbryan17 Jul 26, 2026
cb34d31
test: trigger isolated BTC-only observer RED checkpoint
Chrisbryan17 Jul 26, 2026
7336af3
research: implement BTC-only v3 observer core
Chrisbryan17 Jul 26, 2026
ac6a1a2
research: freeze BTC-only v3 capture policy
Chrisbryan17 Jul 26, 2026
a7ccb90
research: bind BTC-only v3 capture freeze
Chrisbryan17 Jul 26, 2026
92f5f9f
test: specify bounded BTC-only capture semantics
Chrisbryan17 Jul 26, 2026
604cc46
test: isolate capture-policy API boundary
Chrisbryan17 Jul 26, 2026
93e64f2
research: implement BTC-only v3 capture policy
Chrisbryan17 Jul 26, 2026
a921e7d
ci: verify BTC-only v3 observer checkpoint
Chrisbryan17 Jul 26, 2026
3b6410f
ci: cancel obsolete BTC-only v3 checkpoints
Chrisbryan17 Jul 26, 2026
9147063
test: specify credential-free BTC-only public collector
Chrisbryan17 Jul 26, 2026
5a8e292
research: implement credential-free BTC-only collector
Chrisbryan17 Jul 26, 2026
aef3760
ci: verify credential-free BTC-only collector
Chrisbryan17 Jul 26, 2026
189b8aa
test: specify authoritative BTC-only resolution lifecycle
Chrisbryan17 Jul 26, 2026
6b0be31
research: implement authoritative BTC-only resolution
Chrisbryan17 Jul 26, 2026
e9ce0ce
test: bind resolution module boundary
Chrisbryan17 Jul 26, 2026
87d9c3b
ci: verify authoritative BTC-only settlement
Chrisbryan17 Jul 26, 2026
d518bd3
research: checkpoint BTC-only v3 prospective observer
Chrisbryan17 Jul 26, 2026
e88eada
Research: merge BTC-only v3 prospective observer
Chrisbryan17 Jul 26, 2026
4105f9d
test: specify BTC-only v3 one-shot runner
Chrisbryan17 Jul 26, 2026
62b21d5
research: implement BTC-only v3 one-shot runner
Chrisbryan17 Jul 26, 2026
03941cd
test: isolate BTC-only runner contracts
Chrisbryan17 Jul 26, 2026
695ac11
ci: add BTC-only v3 runner checkpoint
Chrisbryan17 Jul 26, 2026
9e79470
Research: merge BTC-only v3 one-shot runner
Chrisbryan17 Jul 26, 2026
4f997d7
docs: checkpoint BTC-only v3 runner readiness
Chrisbryan17 Jul 26, 2026
c9609cf
research: launch first BTC-only v3 prospective observation
Chrisbryan17 Jul 26, 2026
be15337
ci: isolate first BTC-only v3 prospective run
Chrisbryan17 Jul 26, 2026
9d3d1f9
feat: add one-shot BTC-only observer CLI
Chrisbryan17 Jul 26, 2026
aeab379
test: cover one-shot BTC-only CLI lifecycle
Chrisbryan17 Jul 26, 2026
8cddf60
ci: verify one-shot BTC-only observer CLI
Chrisbryan17 Jul 26, 2026
dc599d6
Research: add one-shot BTC-only prospective observer CLI
Chrisbryan17 Jul 26, 2026
d0b13c9
ci: launch first BTC-only prospective observation
Chrisbryan17 Jul 26, 2026
67ae0cb
ci: expose first prospective BTC observation run
Chrisbryan17 Jul 26, 2026
db8352a
ci: enforce exactly one prospective observation run
Chrisbryan17 Jul 26, 2026
2d75675
ci: fix prospective no-signal and checksum verification
Chrisbryan17 Jul 26, 2026
bb07901
ci: preserve capture evidence across delayed resolution
Chrisbryan17 Jul 26, 2026
08f832b
test: require cache-busted Gamma resolution requests
Chrisbryan17 Jul 26, 2026
b4d2340
fix: cache-bust Gamma terminal resolution requests
Chrisbryan17 Jul 26, 2026
257e3b5
ci: run cache-busted prospective resolver
Chrisbryan17 Jul 26, 2026
4143d11
ci: verify cache-busted resolver in observer checkpoint
Chrisbryan17 Jul 26, 2026
7bcd54a
research: freeze first BTC-only prospective checkpoint
Chrisbryan17 Jul 26, 2026
01efab5
research: add prospective run summary
Chrisbryan17 Jul 26, 2026
6183bc8
research: add prospective capture summary
Chrisbryan17 Jul 26, 2026
c294585
research: add prospective verification summary
Chrisbryan17 Jul 26, 2026
f76097e
Research: freeze first BTC-only prospective observation
Chrisbryan17 Jul 26, 2026
c04e0c6
docs: record first BTC-only prospective observation
Chrisbryan17 Jul 26, 2026
230774b
test: specify bounded BTC-only prospective blocks
Chrisbryan17 Jul 26, 2026
a2ba091
feat: add bounded capture-first prospective blocks
Chrisbryan17 Jul 26, 2026
606f39c
ci: verify bounded BTC-only block runner
Chrisbryan17 Jul 26, 2026
e0b4917
Research: add bounded BTC-only prospective block runner
Chrisbryan17 Jul 26, 2026
0a563da
research: freeze first three-market BTC prospective block
Chrisbryan17 Jul 26, 2026
f9d12d9
research: add three-market block summary
Chrisbryan17 Jul 26, 2026
30e4539
research: add block market decisions
Chrisbryan17 Jul 26, 2026
2e90a27
research: add block verification evidence
Chrisbryan17 Jul 26, 2026
a7b38c6
research: update BTC-only prospective admission ledger
Chrisbryan17 Jul 26, 2026
7823ac1
docs: record first complete BTC prospective block
Chrisbryan17 Jul 26, 2026
c6445ff
Research: freeze first complete BTC-only prospective block
Chrisbryan17 Jul 26, 2026
625d1c1
ci: add first BTC-only v3 prospective observation
Chrisbryan17 Jul 27, 2026
e49bd96
ci: expose first prospective run on draft PR
Chrisbryan17 Jul 27, 2026
81a7a4d
ci: add BTC-only prospective block v2 run
Chrisbryan17 Jul 27, 2026
af1d6df
research: freeze BTC-only prospective block v2
Chrisbryan17 Jul 27, 2026
51c05d3
Research: freeze BTC-only prospective block v2
Chrisbryan17 Jul 27, 2026
ff4c24c
ci: add BTC-only prospective block v3 run
Chrisbryan17 Jul 27, 2026
bff0083
research: add BTC-only block v3 checkpoint
Chrisbryan17 Jul 27, 2026
37c3f0f
research: add BTC-only block v3 summary
Chrisbryan17 Jul 27, 2026
6ae0d8a
research: add BTC-only block v3 markets
Chrisbryan17 Jul 27, 2026
cdee0eb
research: add BTC-only block v3 verification
Chrisbryan17 Jul 27, 2026
ec45478
research: update BTC-only admission ledger through block v3
Chrisbryan17 Jul 27, 2026
d5fc750
docs: record BTC-only prospective block v3
Chrisbryan17 Jul 27, 2026
694245e
Research: freeze BTC-only prospective block v3
Chrisbryan17 Jul 27, 2026
2aefe92
ci: add BTC-only prospective block v4 run
Chrisbryan17 Jul 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
205 changes: 205 additions & 0 deletions .github/workflows/btc-only-v3-first-prospective.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
name: BTC-Only v3 First Prospective Observation

on:
push:
branches: [btc-only-v3-first-prospective-20260727]
paths:
- ci_payload/digital-surface-live-readiness/late-favorite-btc-only-v3/FIRST_PROSPECTIVE_TRIGGER.txt
pull_request:
branches: [digital-surface-live-readiness-20260725]
paths:
- ci_payload/digital-surface-live-readiness/late-favorite-btc-only-v3/FIRST_PROSPECTIVE_TRIGGER.txt
workflow_dispatch:

concurrency:
group: btc-only-v3-first-prospective
cancel-in-progress: false

permissions:
contents: read

env:
PYTHONHASHSEED: '17'
PYTHONUNBUFFERED: '1'
ROOT: ci_payload/digital-surface-live-readiness/late-favorite-btc-only-v3
OUT: btc-only-v3-first-prospective

jobs:
capture-and-resolve:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install pinned public client
run: python -m pip install requests==2.32.4

- name: Verify observer source and frozen policy bytes
shell: bash
run: |
set -euo pipefail
export PYTHONPATH="$ROOT/source:$ROOT/collector"
python - <<'PY'
import hashlib
from pathlib import Path
from capture_policy import load_capture_policy
from late_favorite_v3 import load_frozen_policy

root = Path('ci_payload/digital-surface-live-readiness/late-favorite-btc-only-v3')
source_paths = [
root / 'source/late_favorite_v3.py',
root / 'source/capture_policy.py',
root / 'collector/public_collector.py',
root / 'collector/resolution.py',
]
combined = hashlib.sha256()
for path in source_paths:
raw = path.read_bytes()
combined.update(path.name.encode() + b'\0' + raw)
source_sha = combined.hexdigest()
trading = load_frozen_policy(root / 'CANDIDATE_SPEC.json', root / 'FREEZE_MANIFEST.json', source_sha256=source_sha)
capture = load_capture_policy(root / 'CAPTURE_POLICY.json', root / 'CAPTURE_FREEZE_MANIFEST.json')
assert trading.policy_sha256 == '82b923b0d4034d801156b77a213db6084be719f27491478247e5354ea93e92ba'
assert capture.capture_policy_sha256 == '888810ae61a0ab3e067c68850faeba5f2709a57bb69ef0c2ad708e128b311edc'
assert source_sha == 'f2e086bb5e74f0343a4ea29f46ea2bf8e23062952b456303e204c6b5469b6126'
PY

- name: Capture next eligible post-cutoff BTC market
shell: bash
run: |
set -euo pipefail
export PYTHONPATH="$ROOT/source:$ROOT/collector"
python "$ROOT/collector/cli.py" --output-dir "$OUT" capture | tee capture.stdout.json

- name: Derive immutable market identity
id: market
shell: bash
run: |
set -euo pipefail
python - <<'PY'
import json
import os
from pathlib import Path

payload = json.loads(Path('btc-only-v3-first-prospective/last_capture.json').read_text())
condition = str(payload['condition_id'])
opening = int(payload['market_open_epoch_seconds'])
assert opening > 1785094521
assert condition
with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as handle:
handle.write(f'condition_id={condition}\n')
handle.write(f'opening={opening}\n')
print(json.dumps({'condition_id': condition, 'opening': opening, 'capture_decision': payload['decision']}, indent=2))
PY

- name: Wait for terminal resolution window
shell: bash
env:
OPENING: ${{ steps.market.outputs.opening }}
run: |
set -euo pipefail
target=$((OPENING + 330))
now=$(date +%s)
delay=$((target - now))
if [ "$delay" -gt 0 ]; then
sleep "$delay"
fi

- name: Resolve from authoritative Gamma terminal prices
shell: bash
env:
CONDITION_ID: ${{ steps.market.outputs.condition_id }}
run: |
set -euo pipefail
export PYTHONPATH="$ROOT/source:$ROOT/collector"
success=0
for attempt in $(seq 1 40); do
if python "$ROOT/collector/cli.py" --output-dir "$OUT" resolve --condition-id "$CONDITION_ID" | tee resolve.stdout.json; then
success=1
break
fi
echo "resolution not terminal on attempt $attempt"
sleep 15
done
test "$success" -eq 1

- name: Verify complete append-only evidence
shell: bash
run: |
set -euo pipefail
export PYTHONPATH="$ROOT/source:$ROOT/collector"
python - <<'PY'
import hashlib
import json
from pathlib import Path
from capture_policy import CaptureBoundLifecycleLedger, load_capture_policy
from late_favorite_v3 import load_frozen_policy
from public_collector import RawEvidenceStore

root = Path('ci_payload/digital-surface-live-readiness/late-favorite-btc-only-v3')
out = Path('btc-only-v3-first-prospective')
source_paths = [root / 'source/late_favorite_v3.py', root / 'source/capture_policy.py', root / 'collector/public_collector.py', root / 'collector/resolution.py']
combined = hashlib.sha256()
for path in source_paths:
raw = path.read_bytes()
combined.update(path.name.encode() + b'\0' + raw)
trading = load_frozen_policy(root / 'CANDIDATE_SPEC.json', root / 'FREEZE_MANIFEST.json', source_sha256=combined.hexdigest())
capture = load_capture_policy(root / 'CAPTURE_POLICY.json', root / 'CAPTURE_FREEZE_MANIFEST.json')
ledger = CaptureBoundLifecycleLedger(out / 'lifecycle.jsonl', trading, capture)
evidence = RawEvidenceStore(out / 'raw')
assert ledger.records[-1]['event_type'] == 'resolution'
conditions = {row['condition_id'] for row in ledger.records}
assert len(conditions) == 1
assert all(int(row['market_open_epoch_seconds']) > capture.valid_market_open_after_epoch_seconds for row in ledger.records)
allowed = {
('GET', 'gamma-api.polymarket.com'),
('POST', 'clob.polymarket.com'),
}
from urllib.parse import urlparse
for row in evidence.records:
parsed = urlparse(row['url'])
assert (row['method'], parsed.netloc) in allowed
assert parsed.path.startswith('/markets/slug/') or parsed.path == '/books'
resolution = json.loads((out / 'last_resolution.json').read_text())
summary = {
'condition_id': next(iter(conditions)),
'market_open_epoch_seconds': ledger.records[0]['market_open_epoch_seconds'],
'capture_decision': json.loads((out / 'last_capture.json').read_text())['decision'],
'resolution_decision': resolution['decision'],
'official_outcome': resolution['official_outcome'],
'official_won': resolution.get('official_won'),
'pnl_total': resolution.get('pnl_total'),
'lifecycle_records': len(ledger.records),
'raw_responses': len(evidence.records),
'lifecycle_head_sha256': ledger.head_hash,
'evidence_head_sha256': evidence.head_hash,
'candidate_policy_sha256': trading.policy_sha256,
'capture_policy_sha256': capture.capture_policy_sha256,
'historical_admission_credit': 0,
'live_submission': 'physically_absent',
}
(out / 'PROSPECTIVE_SUMMARY.json').write_text(json.dumps(summary, indent=2, sort_keys=True) + '\n')
print(json.dumps(summary, indent=2, sort_keys=True))
PY

- name: Build deterministic prospective artifact
shell: bash
run: |
set -euo pipefail
(cd "$OUT" && find . -type f ! -name SHA256SUMS -print0 | sort -z | xargs -0 sha256sum > SHA256SUMS)
tar --sort=name --mtime='UTC 1970-01-01' --owner=0 --group=0 --numeric-owner \
-czf btc-only-v3-first-prospective-v1.tar.gz "$OUT"
sha256sum btc-only-v3-first-prospective-v1.tar.gz > btc-only-v3-first-prospective-v1.tar.gz.sha256

- uses: actions/upload-artifact@v4
with:
name: btc-only-v3-first-prospective-v1
path: |
btc-only-v3-first-prospective/
btc-only-v3-first-prospective-v1.tar.gz
btc-only-v3-first-prospective-v1.tar.gz.sha256
compression-level: 0
retention-days: 30
Loading
Loading