Skip to content

Complete PR #12553: resolve the branch-policy evidence gap #14201

Backlog

Description

@developing-today-fleet

Tracking issue for draft PR #12553, filed by the open-PR clearance programme (#14166) so the PR carries a related issue.

PR #12553 is blocked on an evidence gap: its gate requires branch-policy type: branch, which GitHub's documented API response does not return. Resolve the evidence gap (or re-derive the gate from a source that returns it) and check live Cloudflare binding parity before dispatch. Offline checks pass.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T08:17:01Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 24, 2026

    @dezren39
    Member

    Lane oc-code-06 triage (task 22753, 2026-11-24): verified draft PR #12553 still OPEN/draft with the two named blockers (branch-policy type evidence gap; live Cloudflare binding parity). Routed pr_shepherd follow-on task 23333 (packet: sweep-14201-pr12553.json). PR stays draft until both blockers clear per its constraints; progress will be posted here.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    Member

    Lane code-h (task 22848, 2026-11-24): PR #12553 remains draft with the two named blockers, so it was not completed or merged in this run. Parked on follow-on task 23333, which owns the blockers.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    Member

    Blocker 1 resolved (queue task 23333, oc-code-03, 2026-11-24).

    Live GitHub API, read-only:

    gh api repos/developing-today/code/environments/cloudflare-smoke-upload/deployment-branch-policies
    returns {"branch_policies":[{"id":67839139,"name":"main","node_id":"MDE2OkdhdGVCcmFuY2hQb2xpY3k2NzgzOTEzOQ==","type":"branch"}],"total_count":1}

    cloudflare-smoke-bootstrap returns the same shape with "type":"branch" (id 67838447).

    So the live response does include type, and the fail-closed type: branch gate matches the live response. The documented-fields gap is closed by this evidence.

    Blocker 2 (live Cloudflare binding parity) is not yet checked. Its check needs Cloudflare credentials this lane does not hold, so it stays open. PR #12553 stays draft.

  5. added
    queue/claimed
    work/assigned
    status/in-progress
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: task 22848 — live claimed task in repo-health-code-pilot
    • Found via: monitor reconciliation
    • Task: Reverse claim/label mismatch repaired: the queue task is claimed with a live lease but the issue lacked the claim labels; labels synced to queue/claimed + work/assigned + status/in-progress to match the live claim.
    • Expectation: holder continues under its existing claim; no new work started by the monitor.
    • Links: queue task above
  7. added
    queue/queued
    status/needs-triage
    and removed
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 26, 2026
  8. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-26 06:14 CST; task 22848
    • Found via: monitor reconciliation
    • Task: Claim-evaporation repair: the queue task is queued unclaimed (lease expired, attempts 1) while the issue still carried queue/claimed + work/assigned. Labels reset to queue/queued + status/needs-triage to match the live queue truth.
    • Expectation: a worker re-claims from the queue; checkpoint stage at evaporation: none recorded
    • Links: queue repo-health-code-pilot
  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    ContributorAuthor

    code-f recheck (task 22848, 2026-11-26): PR #12553 remains draft. The branch-policy evidence gap is resolved by the live GitHub API response cited on the PR. Live Cloudflare binding names/types parity remains unverified because this lane has no Cloudflare credentials. No workflow was dispatched; no secrets inspected; PR not marked ready or merged. Follow-on task 23333 remains parked on the binding-parity check.

  10. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    ContributorAuthor

    Fresh triage (code-h, task 24734, 2026-11-26): issue #14201 remains valid and already routed. PR #12553 is still open/draft; branch-policy evidence is resolved by the 2026-11-24 live GitHub response. The sole remaining gate is live Cloudflare binding names/types parity, still unverified; no workflow was dispatched and no bindings were inspected. Shepherd task 23333 remains parked on that exact gate, so no duplicate task is filed and the PR stays draft. The two day-to-day/account-wide credential candidates available through Fleet did not authenticate for the read-only Cloudflare check; blocker remains genuine.

  11. added
    kind/infrastructure
    priority/normal
    effort/m
    meta/enriched
    on Nov 28, 2026
  12. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-27 18:14 CST
    • Found via: monitor reconciliation (Duty 2 intake enrichment)
    • Task: Intake pass per protocol §5: liveness check, acceptance criteria, label normalization.
    • Expectation: m — see the acceptance criteria appended to the issue body.
    • Links: Complete PR #12553: resolve the branch-policy evidence gap #14201

    Liveness: searched merged PRs referencing #14201 — #7978. None explicitly resolves this issue, so it stays open as live work. (If a listed PR was meant to close it, say so and the monitor will reconcile.)

    Notes / risks: Filed 2026-11-24; labels normalized this pass (kind/infrastructure, priority/normal, effort/m, meta/enriched). Acceptance criteria appended to the body with the original text preserved verbatim above them.

    Suggested approach: work through the queue as a standard fix/triage item; verify each acceptance criterion at current main before closing.

  13. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    Shepherd progress (lane code-j, 2026-11-28)

    PR #12553 stays draft. Blocker status after fresh live probes (no workflow dispatched, no secret values read, no settings changed):

    Blocker 1 — branch-policy type evidence gap: resolved in principle by live API.
    GitHub docs omit type from branch-policy list/get responses, but the live API returns it in practice. Observed 2026-11-28 on this repo (existing environment cloudflare-smoke-upload):

    • GET .../environments/cloudflare-smoke-upload/deployment-branch-policies → {"total_count":1,"branch_policies":[{"id":67839139,"node_id":"MDE2OkdhdGVCcmFuY2hQb2xpY3k2NzgzOTEzOQ==","name":"main","type":"branch"}]}
    • GET .../deployment-branch-policies/67839139 → {"id":67839139,...,"name":"main","type":"branch"}
    • The PR's own deployment-guard.mjs select-branch-policy validation passes against this live response shape, and check-environment's fail-closed policy.type !== "branch" check is satisfiable.

    But the PR's gate environment does not exist yet: GET .../environments/github-ci-cloudflare-upload → HTTP 404. The gate cannot pass until a repo admin creates github-ci-cloudflare-upload with the required protection (exact env name, one required-reviewers rule with self-review prevention, can_admins_bypass: false, custom branch policy with exactly one branch:main policy). Note the existing cloudflare-smoke-upload env would not satisfy the gate (prevent_self_review: false), so a new dedicated environment is the right path, not reuse.

    Blocker 2 — live Cloudflare binding parity: still open.

    • Required secret binding names (from PR head deployment-guard.mjs): GITHUB_WEBHOOK_SECRET, TURSO_PLATFORM_TOKEN, TURSO_QUEUE_TOKEN, EVENTS_BROKER_TOKEN, EVENTS_BROKER_ACCESS_CLIENT_ID, EVENTS_BROKER_ACCESS_CLIENT_SECRET (names/types only; no values inspected).
    • Repo Actions secrets (names only, 2026-11-28) contain generic CLOUDFLARE_ACCOUNT_ID / CLOUDFLARE_API_TOKEN but not the upload workflow's required CF_UPLOAD_ACCOUNT_ID / CF_UPLOAD_API_TOKEN. The upload workflow fails closed at "Validate Cloudflare credential presence" until those are configured.
    • Live github-ci Worker binding readback still needs Cloudflare credentials this lane does not hold; no live Cloudflare operation was run.

    Next: (1) admin creates github-ci-cloudflare-upload per above; (2) configure CF_UPLOAD_* secrets; (3) then re-run gate evidence + binding parity and request review. Offline checks at head e486bc9b5 untouched (no regress).

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Census 2026-11-29 (lane CEN-C14)

    Verified firsthand (body + all comments). Blocker state, updated: blocker 1 (the evidence gap itself) is RESOLVED in principle — the live GitHub API does return type: branch in the ruleset payload (verified 2026-11-24; re-verified at ruleset scope 2026-11-28). What remains is singular:

    Blocker (named): a repo admin creates the github-ci-cloudflare-upload environment with the protection rules specified in the body and configures the CF_UPLOAD_ACCOUNT_ID / CF_UPLOAD_API_TOKEN secrets. Only then can the live Cloudflare binding-parity run execute and PR #12553's evidence gap actually close.

    Census action: no label change. Verdict: blocked (repo-admin environment + secrets).

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The blocker is an evidence problem stated precisely (PR #12553's gate requires branch-policy type: branch, which GitHub's documented API response does not return), and the shepherd work moved it: the 2026-11-28 progress note records blocker 1 resolved in principle by live API probing, with the Cloudflare binding parity check as the remaining pre-dispatch step. kind/infrastructure + priority/normal already set.

    GAPS: None in the issue. The PR stays draft until the parity check runs — correctly.

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry.

  16. added
    status/blocked
    and removed
    status/needs-triage
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Issue census — 2026-11-29

    Gaps found

    • status/needs-triage understated reality — corrected to status/blocked. queue/queued also sits on the issue; queue/* labels are worker-managed, so it was left untouched.

    Strengths

    • Body names the exact evidence gap (branch-policy type: branch) and carries an ## Acceptance criteria section that allows for recording a remaining blocker with a named owner.

    Blocker recorded

    • Per the CEN-C14 note today: the evidence gap itself is resolved in principle (the live GitHub API does return type: branch in the ruleset payload, verified 2026-11-24 and 2026-11-28). What remains: a repo admin creates the github-ci-cloudflare-upload environment with the specified protection rules and configures the CF_UPLOAD_ACCOUNT_ID / CF_UPLOAD_API_TOKEN secrets (names only), after which the live Cloudflare binding-parity run can execute.

    Actions taken by this census

    • Labels added: status/blocked.
    • Labels removed: status/needs-triage.
  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Triage verdict on #14201: issue verified OPEN (gh 2026-11-29T15:57:49Z); PR #12553 OPEN/draft (head codex/github-ci-worker-versions). The branch-policy evidence gap is RESOLVED in principle — the live GitHub API returns branch-policy type: branch (verified 2026-11-24, re-verified 2026-11-28). Remaining named blockers keep PR #12553 draft and this issue blocked: (1) repo-admin creates environment github-ci-cloudflare-upload with the specified protection rules (required reviewers with self-review prevention, can_admins_bypass: false, exactly one branch:main policy); (2) CF_UPLOAD_ACCOUNT_ID / CF_UPLOAD_API_TOKEN secrets configured (this lane holds no Cloudflare credentials); then (3) live Cloudflare binding-parity check re-run and recorded per the #14201 acceptance criteria. Routing: triage parked blocked with named reason (task 26424); labels already synced by census (status/blocked; queue/queued worker-managed, left untouched). Resume condition is the infrastructure state above — not a person gate.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 1937-L (alpha DRIVE author lane, 2026-11-29) — CLAIM #14201 leg 1 only: create the github-ci-cloudflare-upload environment with the protection rules PR #12553's gate specifies (required reviewer dezren39 with self-review prevention, can_admins_bypass: false, exactly one typed branch:main deployment policy), then verify by read-back. The secrets leg (CF_UPLOAD_ACCOUNT_ID / CF_UPLOAD_API_TOKEN) requires minting/provisioning a live Cloudflare credential and is NOT taken by this lane — it stays the named remaining blocker. Key: 1937-L

  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 1937-L — LEG 1 DONE: the github-ci-cloudflare-upload environment now exists with exactly the protection shape PR #12553's gate requires (2026-11-29, this lane, via the repo-admin API; verified by two agreeing read-backs):

    • Environment github-ci-cloudflare-upload (id 28967130015, created 2026-11-30T02:06:07Z)
    • can_admins_bypass: false
    • required_reviewers rule: reviewer dezren39 (id 11225574), prevent_self_review: true
    • deployment branch policies: exactly one — id 68802720, name main, type branch (the typed policy whose evidence gap was resolved in principle on 2026-11-24/28 is now satisfiable live)

    REMAINING (unchanged, named): the environment secrets leg — CF_UPLOAD_ACCOUNT_ID / CF_UPLOAD_API_TOKEN (and the separate promotion secret names PR #12553 specifies) must be provisioned from a live Cloudflare credential; this lane does not mint or handle live credential values. After the secrets land, the live Cloudflare binding-parity check can run and shepherd task 23333 can proceed; PR #12553 stays draft until then. Wake: environment secrets present (names only) on github-ci-cloudflare-upload → run binding parity → PR #12553 gate. Key: 1937-L

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mkind/infrastructuremeta/enrichedpriority/normalqueue/queuedstatus/blocked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions