Skip to content

ci: bootstrap scoped Preloop review (contract blocked) - #1

Draft
ajlennon wants to merge 1 commit into
mainfrom
briar/preloop-ai-lab-testing
Draft

ajlennon wants to merge 1 commit into
mainfrom
briar/preloop-ai-lab-testing

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Description

Draft — do not merge. The live shared-flow result contract is incompatible
with this publisher.
Verified on 18 November 2026:

  • The flow schema has additionalProperties: false and excludes diff_sha256
    and challenge; the publisher requires both inside the captured result.
  • The flow returns pass, changes_requested or error; the publisher accepts
    pass, pass_with_findings or fail.
  • Flow findings use location and problem; the renderer reads file/line
    and uses evidence as the problem, losing the intended location/problem fields.

The official result endpoint returns the captured document, with separate
controller metadata; that is not evidence of the missing review bindings.
No paid review has been started. Resolve the supported contract, retain exact
diff/challenge checks, obtain a replacement exact-source signed service policy,
and complete independent review before recommending bootstrap merge. The
current setup grant does not allow changing the shared flow's schema/prompt.

Bootstrap scoped Preloop PR review for DynamicDevices/ai-lab-testing, using the
existing DD shared review flow rather than another repository-specific flow.

Alex must review and merge this bootstrap before its trusted default-branch
workflows can review the separate badge/hook PR. This PR is not a claim that the
live review pipeline has passed, and it does not authorise an agent merge.

Changes

  • Tool added/modified — trusted controller and publisher, adapted from the pinned working reference
  • Resource added/modified — exact project admission, narrowly scoped CI keys and signed repository-secret policy
  • Documentation updated — bootstrap, custody, expiry, limitations and live acceptance
  • Tests added/updated — offline trigger, workload-identity, complete-diff and publication regressions, wired into CI

The controller never checks out PR-head code with review credentials. It records
a durable intent and owns the execution receipt. The publisher treats a terminal
GitHub status only as a wake-up, validates the authoritative exact-head result and
complete canonical diff, then publishes readable findings and an Actions-backed
check with independent publication read-back. Both jobs fail closed without the
current signed service policy; there is no committed grant fallback.

The result-reader uses a separate read-only key on the same stable principal as
the trigger because native execution reads are principal-owned. The unused
task-created reader principal has been retired. New keys were captured privately
in Bitwarden before installing the repository secrets; no values are in source.

Testing

  • 36 offline regressions passed, including real synthetic RSA workload signatures,
    identity/lifetime denial, stale revisions, altered receipts, skip/draft checks,
    explicit-owned retry selection and complete results above former client limits.
  • Commit hooks passed: whitespace/file checks, YAML, Black, Ruff and mypy.
  • Software-key commit signature verified.
  • Both scoped CI keys authenticated owned-execution reads; no review was launched.
  • The actual publisher verified the exact signed policy and source manifest locally.
  • Existing repository pre-push checks and PR CI are retained; see their actual results.

Not yet proved: native review clone/exact checkout and deadline enforcement, the
real eligible PR execution, current GitHub secret-byte loading, complete readable
findings/no-findings publication and the independently verified exact-head
Preloop review check. Required independent specialist review is not replaced by
these offline tests or by hardware approval.

Activation and limits

The bootstrap cannot be its own already-deployed review gate. Alex retains its
manual review and merge. After merge, the badge/hook branch must be current with
main before its real review; no force-push or fabricated status is authorised.

The signed policy explicitly accepts the native API's fixed-model/approved-flow
configuration contract because native results do not report runtime model
identity. This is not stronger per-result model proof. Source, revision, workload,
receipt and publication checks remain mandatory.

Initial setup authority, service policy and CI keys expire 19 November 2026 at
16:45:53 GMT
. Nothing renews them automatically. Branch protection, existing
CI, unrelated projects and the DD model/provider configuration are unchanged.

Checklist

  • Code follows style guidelines
  • Pre-commit hooks pass
  • Documentation updated
  • Architecture diagram updated — the controller/publisher sequence is documented in prose

(Briar helped draft this)

Add trusted default-branch review orchestration, exact signed publication bindings and offline security regressions. Alex retains bootstrap and development merges.

Assisted-by: Briar

This branch has not been deployed

No deployments
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.

1 participant