Skip to content

Commit 272b5b1

Browse files
wip v28
1 parent 6979303 commit 272b5b1

35 files changed

Lines changed: 1534 additions & 149 deletions

.v26.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ SUPABASE_JWT_SECRET=YOUR_SUPABASE_JWT_SECRET
2727
SUPABASE_SERVICE_ROLE_KEY=YOUR_SUPABASE_SERVICE_ROLE_KEY
2828
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
2929
NEXT_PUBLIC_SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
30-
SUPABASE_PUBLISHABLE_KEY=sb_publishable_YOUR_KEY
31-
SUPABASE_SECRET_KEY=sb_secret_YOUR_KEY
30+
SUPABASE_PUBLISHABLE_KEY=YOUR_SUPABASE_PUBLISHABLE_KEY
31+
SUPABASE_SECRET_KEY=YOUR_SUPABASE_SECRET_KEY
3232
SUPABASE_AUTH_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID.apps.googleusercontent.com
3333
SUPABASE_AUTH_GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET
3434
SUPABASE_AUTH_GITHUB_CLIENT_ID=YOUR_GITHUB_CLIENT_ID

BITCODE_SPEC_V28.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,13 @@ Acceptance criteria:
351351
root, selected candidate ids, rejected/blocker reasons, proof/measurement
352352
posture, embedding policy, and result state under the execution evidence
353353
tree;
354+
- risk-admission and readiness agents have an evidence-only verification tool,
355+
`bitcode.asset-pack.verification`, that reads back the current depository
356+
search result or reruns search from pipeline input, then returns bounded
357+
proof, measurement, readback, source-binding, selected-candidate, blocker,
358+
warning, query-root, ranking-root, and embedding-policy evidence. The tool
359+
must not mutate state, deliver assets, mint, settle, or expose private
360+
AssetPack source before settlement;
354361
- Fit evidence must include a compact selection trace for operator review:
355362
selected, blocked, and ranked candidates; source binding; use tier; score
356363
channels; selected unit hashes; proof/measurement evidence; provider recall;
@@ -378,6 +385,11 @@ Acceptance criteria:
378385
- SQL readback must show Deposit before Read, Read before Fit, no
379386
`frontier/*` or mock repository leakage, and no ledger/database drift for any
380387
finality that Terminal claims.
388+
- Readback for a gate-closing run must be coherent to the latest deliverable
389+
run, not only aggregate row counts inside a lookback window. A failed latest
390+
run, missing latest-run tool rows, or cross-run-only telemetry must keep the
391+
gate blocked until a fresh complete run writes its own phase, agent,
392+
generation, tool, and settlement evidence.
381393
- Ledger settlement evidence must carry neutral protocol fields:
382394
`settlementAdmissible`, `ownershipBoundary`, `btcFee`, and `readback`.
383395
Depositor ownership, reader fee/license posture, and server-custody state
@@ -427,6 +439,12 @@ The V28 pipeline harness must write a manifest before execution containing:
427439
`deliverable_pipeline_runs`, `deliverable_pipeline_events`,
428440
`deliverable_pipeline_phase_delegations`, `deliverable_pipeline_agent_steps`,
429441
`deliverable_pipeline_generations`, and `deliverable_pipeline_tool_executions`;
442+
- PTRR agent executions must resolve the evidence tools registered by their
443+
parent pipeline execution. A requested evidence tool must either execute and
444+
persist tool telemetry or fail as typed blocked-readiness evidence; missing
445+
registry linkage is not admissible live-pipeline behavior. Artifact stream
446+
events must carry the tool name, input/output/error presence, and ok/error
447+
state so Terminal and SQL readback show which evidence tool ran.
430448
- admissible result states `worthy_fit`, `no_worthy_fit`, and
431449
`blocked_readiness`;
432450
- redacted command-environment names only, never secret values.
@@ -512,6 +530,19 @@ Read/Fit result review remains fail-closed:
512530
still needs a server-side model credential such as `OPENAI_API_KEY`, real
513531
Supabase admin/service-role credentials for telemetry persistence, and a
514532
runtime budget that is shorter than the enclosing Vercel Function window.
533+
- Supabase and Vercel deployments are lane-specific. V28 Read/Fit gate evidence
534+
is staged against the staging-testnet Supabase project
535+
`tkpyosihuouusyaxtbau`, whose Data API origin is
536+
`https://tkpyosihuouusyaxtbau.supabase.co/rest/v1/` and whose DB readback host
537+
is `db.tkpyosihuouusyaxtbau.supabase.co`. The production-mainnet Supabase
538+
project is a separate lane and must not satisfy staging-testnet readback,
539+
telemetry, settlement, or preview-deployment acceptance.
540+
- Vercel preview deployments must be branch-scoped to the staging-testnet lane:
541+
staging previews use the staging-testnet Supabase Data API/admin keys, DB URL,
542+
model credentials, and Sandbox auth; production deployments use the
543+
production-mainnet Supabase project. A preview deployment that combines
544+
staging DB readback with production-mainnet REST keys is invalid even when
545+
one side can read rows.
515546
- a local application deployment may stand in for route/UI implementation QA
516547
when live deployment is explicitly out of scope. In that mode the operator
517548
must run the Terminal application locally with
@@ -523,7 +554,9 @@ Read/Fit result review remains fail-closed:
523554
`DATABASE_URL`, when both are present, must resolve to the same Supabase
524555
project, and anon JWTs must not satisfy admin-key preflight. Mixed REST/DB
525556
project refs are a fail-closed condition because they make telemetry and
526-
ledger settlement readback non-comparable.
557+
ledger settlement readback non-comparable. Local UAPI runs may load a
558+
branch-scoped root env file through `BITCODE_UAPI_ENV_FILE` so placeholder
559+
package-local env files do not override the accepted lane.
527560
Local application deployment evidence can prove route preflight, canonical
528561
stream rendering, artifact streaming, and SQL readback behavior, but it
529562
cannot close a live source-revision settlement/finality gate unless the same

0 commit comments

Comments
 (0)