Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
49 changes: 41 additions & 8 deletions .github/ci/delivery-v13.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Prepared v1.3 delivery: disabled
# Staged v1.3 delivery: disabled

`delivery-v13-policy.json` is **false**. The existing claude-current scope is
unchanged. v1.3 ordinary PR/main CI remains full, and no v1.3 queue is configured
or admitted by this source change. The shadow observer still cannot grant skips,
unchanged. v1.3 ordinary PR/main CI remains full. The separate manual queue is
configured but no member is admitted by this source change. The shadow observer still cannot grant skips,
qualification, admission or merge authority.

## Prepared proof boundary
Expand All @@ -14,8 +14,12 @@ enablement it requires all of:
- P01 #88 at its exact projected head, actually merged into main, with the
frozen required-PostgreSQL workflow/baseline and unchanged foundation files
and empty P01 markers. The original 13 integration jobs are not replaced.
- The exact projected source PR/head/branch, original single P01 parent and
complete regular-file/empty-marker cut. No arbitrary v1.3 PR qualifies.
- The exact projected source PR/head/branch and complete regular-file/empty-marker
cut. The default is one P01 child. An optional trusted `source.commits` list
pins one to three unique full SHAs ending at `source.head`; every commit must
have exactly the previous registered parent, starting at P01, and every
cumulative prefix must obey the same cut. No unpinned fix, merge, reordered
history or temporary off-scope revision qualifies. No arbitrary v1.3 PR qualifies.
- An open, ready, same-repository source targeting current main, with its
dependency independently resolved by the owner. The preparer does not edit,
rebase, retarget or merge lane-owned PRs.
Expand Down Expand Up @@ -45,14 +49,43 @@ admission. Policy/foundation changes after qualification retain full main CI.
This is checked **disabled source preparation**, not a live acceptance receipt.
The full-CI parity caller additionally watches the new validator, policy,
runbook and tests; its jobs and the parameterless complete suite are unchanged.
No release workflow is touched. Mergify configuration is unchanged.
No release workflow is touched. The four existing queues are unchanged.

## Staged manual queue

`openrepotools-sql-register-v13` is manual-only, writer-requested, serial and
limited to at most two members, with no failure splitting or automatic retries.
It uses queue protection injection, not `none` or `merge`. Entry filters require
main-targeted same-repository ready sources, supported P03/P05 v1.3 headers,
test-module/marker paths and app-qualified fast/delivery success. These coarse
filters are NOT exact-head profile acceptance. The trusted source/candidate
verifier still independently checks the registered head, lineage, full cut,
prerequisite, review, fast evidence, live rereads and complete heavy artifacts.
The queue cannot merge without app-qualified `openrepotools-batch-heavy` success.
While the actual delivery flag is false, v1.3 candidate proof refuses.
The false flag blocks qualification and merge through this heavy-held queue,
not a repository writer's ability to request preliminary manual queue entry.
Such a request remains unauthorized during staging. The queue is not claimed
to be mechanically inert; no automatic entry or independent admission-consent
status is introduced or inferred from its coarse filters.

No queue command is authorized by this staged source. Under subsequent reviewed
enablement, the operator must verify fresh owner consent for the exact two
heads, use only this named queue for fast-only sources and keep both members
stable through qualification. The service's batch size/wait alone does not
guarantee an exact two-member selection; live proof must show the actual members
and one accepted heavy run. A fast/delivery check is never direct-merge authority.
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved

Before any future activation: reconcile current owner cuts/plan and P01, require
actual required-engine qualification, review the narrow enablement/manual-queue
configuration, confirm effective protection and service readiness, and obtain
explicit activation/canary authority. A manual queue must hold complete heavy
fresh exact-head owner consent under the approved staged rollout. A manual queue must hold complete heavy
qualification; a fast-only source must never be direct-merged on delivery success.
No queue command is supplied or authorized at this stage.
No queue command is supplied or authorized at this stage. Owner full-CI product
batches are not the efficiency canary and must not be held for it. If such a
batch changes the frozen foundation, efficiency remains full until a separate
reviewed foundation revision and real required-engine qualification; never
silently relax or rehash the freeze to follow main.

Live acceptance must show fast-only source and candidate PR CI, exactly one
complete heavy caller per accepted batch, no duplicate full main run, and matching
Expand Down
6 changes: 2 additions & 4 deletions .github/ci/delivery_v13.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ def cut(root, base, head):
raise ValueError("Unrecognized v1.3 source head")
name, profile = matches[0]
parent = policy["prerequisite"]["head"]
if common.git(root, "show", "-s", "--format=%P", head).decode().split() != [parent]:
raise ValueError("V1.3 source parent differs")
if not projection.source_lineage(root, parent, profile):
raise ValueError("V1.3 source lineage differs")
paths = profile["files"] + [projection.MARKERS + task for task in profile["tasks"]]
common.git(root, "diff", "--quiet", "--no-ext-diff", parent, base, "--", *paths)
if not projection.scoped_diff(root, parent, head, profile):
raise ValueError("V1.3 source diff differs")
return policy, name, profile


Expand Down
3 changes: 3 additions & 0 deletions .github/ci/task-set-delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ separate evidence/authority gates. All other work retains full CI.

The [prepared v1.3 delivery path](delivery-v13.md) is independently **disabled**.
Its source publication grants no v1.3 omission, queue admission or owner-PR edit.
The staged `openrepotools-sql-register-v13` queue holds complete heavy proof;
its existence does not turn on the independent false flag. Exact reviewed
linear fix history may be pinned, never inferred from an owner's moving head.
P01 and owner dependency resolution, reviewed enablement/queue configuration and
separately approved live qualification must precede adoption. Preserve lanes 1–5.

Expand Down
10 changes: 9 additions & 1 deletion .github/ci/v13-shadow.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ This is not an efficiency activation. Ordinary full CI remains required on
every existing event. The parameterless full-CI qualification caller still runs
every original job when these control files change. No delivery router, verifier,
queue or required check consumes the observer's output. Existing claude-current
behavior is unchanged. There is no new queue or permission to omit work.
behavior is unchanged. The observer itself adds no queue or permission to omit
work. A [separate manual v1.3 queue](delivery-v13.md#staged-manual-queue) is now
staged; it does not consume observer output or turn the false delivery flag on.
Its preliminary entry filters and operator-consent boundary are separate from
the trusted heavy qualification required before that queue can merge.

The canonical proposal, design, requirements and implementation checklist live
in the spec leg at `openspec/changes/qualify-v13-taskset-ci/`. This projection is
Expand Down Expand Up @@ -46,6 +50,10 @@ The disabled projections additionally bind the observed real cuts:

Both source heads have exactly one parent: P01's pinned source head. Their
owners' real branches, bases and metadata are not rewritten by this observer.
An explicitly reviewed future `source.commits` binding may pin one to three
linear commits as described in the delivery runbook; every exact parent and
cumulative cut is checked. Missing lineage keeps the original single-child
rule. A new owner commit is never followed automatically.
Coordination for this follow-up is assembly issue165 comment6889436296. These
bindings record provenance, not review acceptance or approved task-set authority.

Expand Down
26 changes: 21 additions & 5 deletions .github/ci/v13_shadow.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,20 @@ def read_policy(root, main):
raise ValueError("Unexpected proposed cuts")
for profile in policy["profiles"].values():
source = profile["source"]
if (set(source) != {"number", "head", "branch"}
if (set(source) not in ({"number", "head", "branch"}, {"number", "head", "branch", "commits"})
or type(source["number"]) is not int or source["number"] < 1
or source["number"] == prerequisite["number"]
or not common.valid_branch(source["branch"])
or not common.source_branch(source["branch"])):
raise ValueError("Invalid source binding")
common.sha(source["head"])
commits = source.get("commits", [source["head"]])
if (not isinstance(commits, list) or not 1 <= len(commits) <= 3
or any(not isinstance(commit, str) for commit in commits)
or len(set(commits)) != len(commits) or commits[-1] != source["head"]):
raise ValueError("Invalid source lineage")
for commit in commits:
common.sha(commit)
for key, pattern in (("tasks", r"T[0-9]{3}"),
("files", r"tests/test_sql_register_[a-z_]+[.]py")):
values = profile[key]
Expand Down Expand Up @@ -135,8 +142,19 @@ def p01_status(root, main, policy, pr):
return "merged-contract-observed"


def source_lineage(root, parent, profile):
"""Only the trusted, bounded exact history; check every cumulative cut."""
previous = parent
for commit in profile["source"].get("commits", [profile["source"]["head"]]):
if (common.git(root, "show", "-s", "--format=%P", commit).decode().split() != [previous]
or not scoped_diff(root, parent, commit, profile)):
return False
previous = commit
return True


def known_child(root, main, policy, cut, pr, prerequisite):
"""One immutable P01 child only; this is not a merge or qualification proof."""
"""One immutable P01 cut only; this is not a merge or qualification proof."""
profile = policy["profiles"][cut]
source = profile["source"]
if (type(pr["number"]) is not int or pr["number"] != source["number"]
Expand All @@ -151,11 +169,9 @@ def known_child(root, main, policy, cut, pr, prerequisite):
r"(?im)^[ \t]*Depends-On:[ \t]*([^\n]*)", pr.get("body") or "")]
if dependencies != ["#88"] and not (base == (main, "main") and not dependencies):
return False
if common.git(root, "show", "-s", "--format=%P", source["head"]).decode().split() != [parent]:
return False
paths = profile["files"] + [MARKERS + task for task in profile["tasks"]]
common.git(root, "diff", "--quiet", "--no-ext-diff", parent, main, "--", *paths)
return scoped_diff(root, parent, source["head"], profile)
return source_lineage(root, parent, profile)


def observe_pr(env, event, root, main, policy, request, prerequisite):
Expand Down
28 changes: 28 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,31 @@ queue_rules:
- check-success=@github-actions/openrepotools-delivery
merge_conditions:
- check-success=@github-actions/openrepotools-batch-heavy

# Staged manual test-only scope. The independent delivery flag remains false;
# no automatic entry or owner opt-in follows from adding this queue.
- name: openrepotools-sql-register-v13
branch_protection_injection_mode: queue
batch_size: 2
batch_max_wait_time: 60 seconds
batch_max_failure_resolution_attempts: 0
max_checks_retries: 0
checks_timeout: 90 minutes
merge_method: merge
queue_conditions:
- -draft
- -closed
- -from-fork
- base=main
- 'head~=^(?!main\Z|release/|verify/|mergify/)[A-Za-z0-9][A-Za-z0-9._/-]*\Z'
- 'body~=(?m)^CI-Shadow: sql-register-v13[ \t\r]*$'
- 'body~=(?m)^CI-Delivery: sql-register-v13[ \t\r]*$'
- 'body~=(?m)^CI-Task-Set: P(?:03|05)[ \t\r]*$'
- '-body~=(?im)^[ \t]*Depends-On:'
- '#files>=2'
- '#files<=6'
- '-files~=^(?!(?:tests/test_sql_register_[a-z_]+[.]py|tests/sql_register_landed/T[0-9]{3})\Z)'
- check-success=@github-actions/openrepotools-pr-fast
- check-success=@github-actions/openrepotools-delivery
merge_conditions:
- check-success=@github-actions/openrepotools-batch-heavy
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
2 changes: 1 addition & 1 deletion tests/test_ci_pilot_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_manual_mergify_queue_is_bounded_and_has_no_automatic_admission(config):
"reset_on_external_merge": "always", "skip_intermediate_results": False}
assert [q["name"] for q in config["queue_rules"]] == [
"openrepotools-docs-pilot", "openrepotools-real-code-35-36", "openrepotools-code",
"openrepotools-claude-current"]
"openrepotools-claude-current", "openrepotools-sql-register-v13"]
queue = config["queue_rules"][0]
assert queue["name"] == "openrepotools-docs-pilot"
assert queue["batch_size"] == 2
Expand Down
Loading
Loading