Repository navigation
feat(init): bind the commit-App token-minting jobs to an opt-in environment - #1724
Conversation
Live probe on devkit-smoke-test: both open questions answeredA throwaway push-triggered caller ( In-policy branch (run 36180182307, So (a) a job-level Outside-policy branch (run 36180185111, The surface #1710 exists to close is closed by the binding. Left in place: environment The full rehearsal (move the real pair, deselect the org secrets for this repo, set the knob, dispatch a prepare + candidate) remains available but is no longer a merge blocker. |
The composite-action shellcheck hook (#1704, scaffolded by #1718) reaches new scaffolds only: a preserved .pre-commit-config.yaml never receives template evolution (#878), so every existing consumer leaves .github/actions/*/action.yml run bodies unlinted. Case 2 of #1654 is the seam that fixes it, and it needs one row in inserted_hook_blocks(). The row's version is 1.17.0. dev already holds two feat commits since 1.16.0 (#1718 and #1724) and no breaking change, so the next train is 1.17.0 by construction; the only rename still possible is upward, and an upward rename is harmless for this row (every consumer's pin is below 1.17.0 at adoption, and nobody can sit exactly at 1.17.0). A DOWNWARD rename is the one that would hurt — it re-adds a hook a consumer deleted, the #1651 defect — and a feat on dev rules that out. #1723's Phase 1 prerequisite covers the re-check either way. Two fields, not three: the hook belongs to no feature group, so the row omits the group and `read -r ver hook feat` leaves feat empty. The row must also come AFTER the actionlint one, because the insert anchors on the previous hook in template order: a pre-1.16.0 tree receives actionlint first and anchors this block on what that row just inserted, in a single pass. The three boundary tests (pin at 1.17.0, pin at 1.17.1, hook already present) pass vacuously until the row exists; they are the guard against the row being set too low later. Refs: #1717
…ed configs from 1.17.0 One row in inserted_hook_blocks(), so Case 2 of #1654 carries #1704's hook into the preserved .pre-commit-config.yaml of every consumer whose tree predates it. Until now the hook reached new scaffolds only (#1718), leaving every existing repo's .github/actions/*/action.yml run bodies unlinted — actionlint refuses a composite action outright and has no composite mode. The row is two fields wide: the hook belongs to no feature group, and `read -r ver hook feat` leaves feat empty, which the gate reads as "never opted out". It sits AFTER the actionlint row because the insert anchors on the hook the template places before this one, so a pre-1.16.0 tree gains actionlint and then anchors this block on it within the same pass. 1.17.0 is the version by construction: dev already holds two feat commits since 1.16.0 (#1718, #1724) and no breaking change, so the next train is a minor. The only rename still available is upward, and an upward rename leaves the row harmless — every consumer's pin is below 1.17.0 at adoption and nobody can be pinned exactly at 1.17.0. A downward rename is the direction that would re-add a hook a consumer deleted (the #1651 defect); it would have to edit this row on the release branch, which #1723's Phase 1 prerequisite now makes a checked step. Refs: #1717
…ed configs from 1.17.0 (#1726) ## Description #1718 added the scaffolded `shellcheck-composite-actions` hook, but a consumer with a preserved `.pre-commit-config.yaml` only receives a new hook through the `inserted_hook_blocks()` table in `assets/init-workspace.sh`, keyed on the first release that ships it. #1723 already put the re-check of that table on the Phase 1 prerequisites; this adds the row itself. **Why the version can be fixed now.** `dev` holds two `feat` commits since 1.16.0 (#1718 and #1724) and no breaking change, so the next train is `1.17.0` by construction, and it is planned for Monday 2026-09-28. The only rename possible from here is upward, and an upward rename leaves a `1.17.0` row harmless: every consumer's pin is still below it at adoption, and nobody can ever sit exactly at `1.17.0`. The #1651 defect (re-adding a hook a consumer deleted) needs the row to be *below* the real first release, which would require a downward rename that a `feat` on `dev` rules out unless both are pulled — the case the #1723 prerequisite now catches on the release branch. **Mechanism, verified rather than assumed.** Rows are `<first release> <hook> [feature group]`; `insert_missing_hook_blocks` reads `read -r ver hook feat`, so the two-field row is legal and the empty group never gates. The block comes from the rendered template structurally (the `- repo:` entry holding `- id: shellcheck-composite-actions`); the anchor derived from the template is `actionlint`, so the row must follow the actionlint row: a pre-1.16.0 tree gains actionlint first and the composite block right after it, in one pass. **End-to-end, with the real script:** a temp workspace at `DEVKIT_VERSION=1.16.0` whose config lacks the composite block gains exactly that block after the actionlint sentinel end, nothing else changes, and a second run is byte-identical. Output: `Inserted the 'shellcheck-composite-actions' hook after 'actionlint' (shipped since 1.17.0, this tree predates it at 1.16.0, #1654).` ## Type of Change - [x] `feat` -- New feature - [ ] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [x] `test` -- Adding or updating tests - [ ] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made `assets/init-workspace.sh` - `inserted_hook_blocks()`: `'1.17.0 shellcheck-composite-actions'` after the actionlint row, with a comment carrying the version rationale and the ordering constraint `tests/test_scaffold_preserved_hooks.py` - `COMPOSITE_SINCE` / `COMPOSITE_HOOK`; the table test asserts the quoted two-field row and that it follows the actionlint row; `_composite_seed()` builds the 1.16.0 shape; a 1.16.0 pin gains exactly the block (no consumer line removed, every added line the template's own), 1.17.0 and 1.17.1 pins are left alone, an existing hook is never duplicated, a pre-1.16.0 tree gains both blocks in template order `[shellcheck, actionlint, shellcheck-composite-actions, typos]`, `--preview` reports the planned insert. RED before the row: 5 failed / 22 passed. Two existing assertions were scoped from `preserved-hook-insert:` to `preserved-hook-insert: actionlint` where an older pin now legitimately gains the composite hook; the at-release pin test stays unscoped (review finding) ## Changelog Entry No changelog needed — the issue says so; the consumer-visible feature is #1718's entry, this is its delivery path for preserved configs. ## Testing - [x] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - End-to-end upgrade run described above, plus idempotence on a second pass - `uv run pytest tests/test_scaffold_preserved_hooks.py tests/test_flake_hooks.py -q` → 105 passed - `bats -j 4 --filter '1660|1651|preserved|hook' tests/bats/init-workspace.bats` → 48 ok; the one failure is the pre-existing environmental one (the test shells out to a bare `python3` that lacks PyYAML in the plain `nix develop` shell; green in CI) - `shellcheck -x` clean; `prek run --all-files` → 55 hooks passed ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [ ] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes Found while verifying, not fixed here: a consumer pinned below 1.17.0 with `DEVKIT_FEATURES_DISABLED=actionlint` has no actionlint block to anchor on, so the composite insert is skipped with a warning (exit 0, no partial write). Safe, but the message reads as a defect to that consumer; a fallback anchor would be the fix. No known consumer is in that state. Filed separately: #1725. Refs: #1717
The live `commit-app` deployment environment is the proof harness for devkit's opt-in `DEVKIT_COMMIT_APP_ENVIRONMENT` knob (vig-os/devkit#1710, shipped in vig-os/devkit#1724): it binds the commit-App token-minting jobs to an environment whose deployment branch policy — `main` + `release/*`, plus `dev` under gitflow — is the control that refuses an out-of-policy branch. It holds no secrets yet (the knob is not in a devkit release as of 1.16.0) and no reviewers on purpose, since a reviewer gate would add a second approval to devkit's single-approval release train. Declaring it stops every plan proposing its deletion and makes it safe against a future `--delete-resources` apply. Refs: #279
Declares the live-but-undeclared `commit-app` deployment environment on `devkit-smoke-test`, which the drift sweep flagged as a delete (#279, apply run [36226330674](https://github.com/vig-os/org-config/actions/runs/36226330674)): ```text - remove environment[name="commit-app", repository=devkit-smoke-test] { - branch_policies = ["dev", "main", "release/*"], - deployment_branch_policy = "selected" - name = "commit-app" - prevent_self_review = false - reviewers = [] - wait_timer = 0 - } ``` The environment is the live-proof harness for devkit's opt-in `DEVKIT_COMMIT_APP_ENVIRONMENT` knob ([vig-os/devkit#1710](vig-os/devkit#1710), shipped to `dev` in [vig-os/devkit#1724](vig-os/devkit#1724)): the knob binds the commit-App token-minting jobs to a deployment environment so the `COMMIT_APP_*` credentials can sit behind a deployment branch policy. That policy — not the job — is then the control that refuses an out-of-policy branch. `main` + `release/*` + `dev` is what devkit's migration guide prescribes for a gitflow repo, and it is exactly what is live. Two omissions are deliberate and recorded in the inline comment: - **No secrets.** The knob is not in a devkit release yet (latest is 1.16.0); the harness proves the binding, not a real mint. - **No reviewers.** A reviewer gate here would add a second approval to devkit's single-approval release train (#167). `wait_timer` and `prevent_self_review` stay unset — their otterdog defaults (`0`, `false`) already match live. ## Why declare rather than delete or allowlist The environment *is* the control the devkit knob exists to provide, so deleting it would revert the capability under test and leave the next smoke run without the branch-policy gate it is meant to prove. An allowlist entry was also rejected: `drift-allowlist.toml` is for resources deliberately kept out of the config, and this one is ordinary, modelled, declarable config — an allowlist row would suppress the signal while leaving the resource undefended against a future `--delete-resources` apply. Adopting it into the jsonnet is the option that both silences the diff and puts the resource under config control, which is the ADR-0002 "adopt into config" path. ## What changes live **Nothing** for the environment itself — the declaration matches the live object field for field, so the proposed delete simply disappears from the plan and apply has nothing to write. Verified against this PR's own `Plan` check ([job log](https://github.com/vig-os/org-config/actions/runs/36233355428/job/108380556732)), all-zeros: ```text Plan: 0 to add, 0 to change, 0 to delete. ``` ## No drift-layer defect The detection was correct and timely: the environment was created live at 2026-09-25T19:29:47Z, *after* that day's drift sweep had already run, so the first sweep that could see it was the 2026-09-26 run — which opened #279 on its first observation. Nothing to fix in the drift layer; this is the human-decision half of the issue-only loop working as designed. Closes #279 Refs: #279
# Release 2.0.0
This PR prepares release 2.0.0 for merge to main.
## [2.0.0] - TBD
### Added
- **House ruleset shapes in `house-defaults.libsonnet`**
([#294](https://github.com/vig-os/org-config/issues/294)): the overlay
now exports `mainProtection(checks)`, `devProtection(checks, bypass)`,
`releaseProtection(checks, bypass)`, `signedCommits()` and
`tagProtection(bypass)` next to the merge policy, encoding the rule
[ADR-0008](docs/adr/0008-repository-protection-and-merge-policy.md)
states. `mainProtection` is the house `Main protection` standard — 1
approval with stale-review dismissal, review threads resolved,
code-owner review off, the given CI aggregator required and strict, and
`#OrganizationAdmin` as the only bypass, in `pull_request` mode — and
with `checks = []` it declares no status-check rule at all (tier B: a
repo with no aggregator yet gets the review half without a check that
could never report). Every repo-specific value — status-check contexts
and bot bypass actors — is a parameter, so the file stays org-neutral
and `template/otterdog/YOUR_ORG/house-defaults.libsonnet` remains a
byte-identical copy (ADR-0006). The shapes are additions:
`newRepoRuleset` is still re-exported, and a repo that deviates
overrides a field on the returned ruleset with the reason beside it.
They carry no merge-method policy on purpose — the repo fields own it
until eclipse-csi/otterdog#768
([#246](https://github.com/vig-os/org-config/issues/246)).
- **`plan` now checks every declared App slug against the two calls
otterdog makes and the plan diff does not**
([#259](https://github.com/vig-os/org-config/issues/259)): a new
`drift-layer --app-actors-report` mode, wired into `plan.yml` between
the otterdog run and the report build, and folded into the
marker-upserted PR comment and the job summary. Otterdog's read and
write paths resolve a GitHub App differently, which is why this class of
config passes review and fails on apply — the write path calls `GET
/apps/{slug}` (`models/ruleset.py:649`, `:177-189`,
`models/branch_protection_rule.py:348`, `models/environment.py:244`),
while the read path never does, mapping `actor_id` back to a slug from
`GET /orgs/{org}/installations` instead. The mode runs **two
independent** checks with the installation token the job already minted.
First, `GET /apps/{slug}` per declared slug: a `403`/`404` means `apply`
will fail on any add or change of that resource, including one already
live, because a ruleset patch re-sends the whole bypass list — the
[#256](https://github.com/vig-os/org-config/issues/256) case. Three of
the four sites abort the patch and the fourth, an environment reviewer,
is caught and **skipped** (`providers/github/__init__.py:502-506`),
leaving a protection that was never written, so the report separates
them. Second, membership of the org's App installations, for the two
sites whose read path needs it: a declared App the org has no
installation for is dropped outright as a bypass actor
(`models/ruleset.py:541-548`) or read back in its numeric `<id>:context`
form as a status check (`:145-151`), so `plan` proposes the same change
on every run and `apply` never converges — the detection half of
[#262](https://github.com/vig-os/org-config/issues/262). That second
check is deliberately **not** applied to branch-protection status checks
or environment reviewers: an unprefixed branch-protection check resolves
to the implicit `github-actions`, a first-party App that is never an org
installation and that this org's own `tessera` rules declare and plan
clean — asking for an installation there would fire on green config, the
exact failure mode rejected when #256 was spiked. Both checks read the
**declared** config only: an actor that exists live but is declared
nowhere needs a live ruleset read (which a Free-plan private repo
refuses anyway) and is not covered, and the report says so. Declared
actors are extracted token-free — `plan.yml` evaluates the committed
jsonnet with otterdog's own `jsonnet_evaluate_file`, the exact call
`GitHubOrganization.load_from_file` makes
(`models/github_organization.py:536`), verified identical to a
`go-jsonnet` evaluation of the same file — so only the two reads are
credentialed. The finding is **advisory**: the mode always exits 0 — it
catches every exception itself rather than relying on the workflow
wrapper — no new step can fail the job, and `steps.plan.outputs.rc`
keeps its meaning, so *Fail on plan error* still means
config/auth/harness and never drift. That posture is not a convenience:
`Plan` is not a required check *in this repository* (ADR-0007 Axis D,
[#236](https://github.com/vig-os/org-config/issues/236)), but the only
consumer org makes its plan context a required check on `main` and ships
no `paths:` filter for that reason
([#268](https://github.com/vig-os/org-config/issues/268)), so every step
added to this reusable workflow sits on a downstream merge gate for
every pull request — each of the three new steps is therefore guarded,
`continue-on-error: true` and `if:`-gated on the guard's output, and the
comment body now reserves the fragment's bytes inside the 55000-byte
budget so an over-long body can never 422 the upsert and fail that gate.
A read that fails for any other reason (401, 0, 5xx, a truncated page)
is reported as **not checked**, never as a finding — including a
rate-limit `403`, which GitHub renders identically to a permission `403`
and which the step immediately after a full org read on the same token
is the likeliest to hit: `ApiError` now carries the response headers,
and a `403` with `retry-after` or `x-ratelimit-remaining: 0` is
classified as undetermined rather than as "`apply` will fail on these".
A slug that is unresolvable **by design** — the standard case is a
private App owned by a sibling org, on a ruleset that is already live
and correct and unrepairable until upstream
[#772](https://github.com/eclipse-csi/otterdog/issues/772) lands — takes
an `[[app_actor]]` entry (slug + reason) in `drift-allowlist.toml`, the
third section of the same governance file as `[[expected]]` and
`[[unmanaged]]`: the check still names the slug on every run, under
*known and suppressed* with its reason, so the suppression is reviewed
rather than silent and the finding list keeps meaning something.
`vig-os` adds no entry — all three slugs it declares resolve — and the
shape is documented in `template/drift-allowlist.toml` for the org that
will need one. `plan.yml`'s own `paths:` filter gains
`src/drift_layer/**`, `pyproject.toml` and `drift-allowlist.toml`,
because the engine's source now selects part of what the plan report
says and a change to it would otherwise ship with no plan run at all
(the [#230](https://github.com/vig-os/org-config/issues/230) lesson).
Downstream callers inherit the step on their next engine pin bump with
no change to their caller workflow — `plan.yml` gains the
`.drift-engine` checkout `drift.yml` already uses
([#169](https://github.com/vig-os/org-config/issues/169)), and
`template/` changes only in that allow-list comment. **Proof limits,
stated:** this PR's own plan run proves the green path only — three
declared slugs all `200`, the org's installations read whole,
`github-actions` correctly not flagged — while the unresolvable,
suppressed and rate-limited paths are unit-tested, and the downstream
`.drift-engine` checkout is first exercised at the next consumer pin
bump.
- **`tessera`'s release-plz App secrets are declared, so the plan stops
proposing their deletion**
([#254](https://github.com/vig-os/org-config/issues/254),
[#255](https://github.com/vig-os/org-config/issues/255)): the drift
sweep flagged two deletes on `tessera` — the `RP_APP_ID` and
`RP_APP_PRIVATE_KEY` repo secrets, created out-of-band on 2026-09-23 and
never declared. They hold the credentials of the **repo-scoped**
`tessera-release-plz` GitHub App (app_id 5050387), which drives
tessera's release-plz release-PR flow (tessera ADR-0052); deleting them
would break every release PR on the repo. tessera stays on release-plz
through its alpha series — the migration to the devkit release train is
deferred to graduation
([tessera#441](https://github.com/vig-os/tessera/issues/441)) — so
`otterdog/vig-os/vig-os.jsonnet` now declares both alongside the repo's
existing `APP_SYNC_ISSUES_*` pair, values `'********'` and managed
out-of-band, the established convention in this file for pre-existing
secrets. An inline comment records the App identity and the retirement
condition: these rows go when release-plz does.
- **`devkit-smoke-test`'s `commit-app` deployment environment is
declared, so the plan stops proposing its deletion**
([#279](https://github.com/vig-os/org-config/issues/279)): the drift
sweep flagged a delete on `devkit-smoke-test` — the `commit-app`
environment, created live on 2026-09-25 and never declared. It is the
live-proof harness for devkit's opt-in `DEVKIT_COMMIT_APP_ENVIRONMENT`
knob
([vig-os/devkit#1710](https://github.com/vig-os/devkit/issues/1710),
shipped to `dev` in
[vig-os/devkit#1724](https://github.com/vig-os/devkit/pull/1724)), which
binds the commit-App token-minting jobs to an environment so the
`COMMIT_APP_*` credentials can sit behind a deployment branch policy:
that policy, not the job, is then the control that refuses an
out-of-policy branch. `otterdog/vig-os/vig-os.jsonnet` now declares it
with `deployment_branch_policy: 'selected'` and the `main` + `release/*`
+ `dev` branch policies devkit's migration guide prescribes for a
gitflow repo, matching live exactly. Two omissions are deliberate and
recorded in an inline comment: **no secrets**, because the knob is not
in a devkit release yet (latest is 1.16.0) and the harness exercises the
binding rather than a real mint; and **no reviewers**, because a
reviewer gate here would add a second approval to devkit's
single-approval release train
([#167](https://github.com/vig-os/org-config/issues/167)). `wait_timer`
and `prevent_self_review` stay unset, their defaults already matching
live. Adopted rather than reverted: the environment is the control the
devkit knob exists to provide, and declaring it also makes it safe
against a future `--delete-resources` apply.
### Changed
- **`h5v`, `nvd-mirror`, `qx`, `vigos-mvp` and `vs-dolt` move to the
house merge policy, and merged branches are deleted again**
([#294](https://github.com/vig-os/org-config/issues/294)): the five
blocks drop `+ orgs.legacyMergePolicy` and their uncommented
`allow_update_branch: false` / `delete_branch_on_merge: false`
overrides, so they inherit `houseMergePolicy` and the vendored defaults
as [ADR-0008](docs/adr/0008-repository-protection-and-merge-policy.md)
decides — merge commits only on every repo, head branches deleted on
merge. Live changes on each of the five: `allow_rebase_merge` and
`allow_squash_merge` true → false, `merge_commit_title` `MERGE_MESSAGE`
→ `PR_TITLE`, `merge_commit_message` `PR_TITLE` → `PR_BODY`,
`allow_update_branch` false → true, `delete_branch_on_merge` false →
true. Checked before the change: no workflow in any of them merges with
`--squash` or `--rebase` (`h5v`'s `promote-release.yml` and `vs-dolt`'s
`cd-release.yaml` already use `gh pr merge --merge`), no
Renovate/Dependabot automerge strategy is configured, and none has a
long-lived branch that is a PR head, so auto-deletion removes only topic
branches. No rulesets are added here; the tier-B and tier-A rulesets for
these repos are later #294 PRs. `qms` is out of scope and **unchanged
live**: its five legacy merge fields are restated inline with a comment
pointing at #294, so its plan is a no-op.
- **Every declared `Main protection` now follows one standard, built
from the house shapes**
([#294](https://github.com/vig-os/org-config/issues/294)):
[ADR-0008](docs/adr/0008-repository-protection-and-merge-policy.md)
states the rule, and the five ruleset-carrying repos in
`otterdog/vig-os/vig-os.jsonnet` — `commit-action`, `devkit`,
`devkit-smoke-test`, `org-config`, `sync-issues-action` — now declare
all their rulesets through the `house-defaults.libsonnet` constructors
(the Dev/Release/Signed/Tag conversion is a pure refactor,
byte-identical when evaluated). The Main bypass differed on every repo
and now reads `#OrganizationAdmin` in `pull_request` mode everywhere: an
org owner can still merge a PR past the rules, but can no longer push to
`main` directly. Live changes, exactly: **`commit-action`** — bypass
`#RepositoryAdmin:pull_request` → `#OrganizationAdmin:pull_request`,
`dismisses_stale_reviews` false → true, and the duplicate
`requires_commit_signatures` on Main dropped (the `Signed commits`
ruleset on `~ALL` already enforces it, with no bypass); **`devkit`** —
bypass `always` → `pull_request`; **`devkit-smoke-test`** — bypass
`always` → `pull_request`, `dismisses_stale_reviews` false → true (inert
at 0 approvals); **`org-config`** — bypass `always` → `pull_request`,
`required_approving_review_count` 0 → 1 with `dismisses_stale_reviews`
false → true, required checks now `strict` (its former 0-approval
exception, #195, is retired by decision: the Main approval gates the
merge and the `production` environment approval still gates the apply);
**`sync-issues-action`** — gains the `#OrganizationAdmin:pull_request`
bypass it lacked. Kept on purpose and recorded as ADR-0008 exceptions:
`devkit-smoke-test`'s 0 approvals, non-strict checks and no
thread-resolution gate (its PRs are bot-authored and merged by devkit's
unattended release train, #167, vig-os/devkit#1506).
- **`h5v`, `nvd-mirror`, `vigos-mvp` and `vs-dolt` are protected, each
on its
[ADR-0008](docs/adr/0008-repository-protection-and-merge-policy.md)
tier** ([#294](https://github.com/vig-os/org-config/issues/294)): the
four public repos that carried no ruleset at all — `h5v` merged a
128-file workflow rewrite with no review and no check — now declare them
through the house shapes, each decided after checking every automated
writer on the live repo. Live changes, exactly: **`h5v`** (tier A,
devkit 1.17.0 trunk scaffold) gains `Main protection` requiring
`15368:CI Summary` (the aggregator its PRs into `main` report) with only
the house org-owner bypass, `Release protection` on `release/*` with `CI
Summary` and a `commit-action-bot` bypass (the Commit App is the only
writer of release branches), `Signed commits` on `~ALL` (every bot
commit there is an API commit that GitHub signs), and `Tag protection`
with `vig-os-release-app` as the only tag writer; **`nvd-mirror`** (tier
B) gains `Main protection` without a required check and `Signed commits`
with `refs/heads/gh-pages` excluded; **`vigos-mvp`** (tier B) gains
`Main protection` without a required check and `Signed commits`;
**`vs-dolt`** (tier B) gains `Main protection` without a required check
and no signing rule, because the upstream it is forked from lands
unsigned commits — and updating it from upstream now takes a PR, since
the one-click "Sync fork" is a direct push. Tier B now also carries
`Signed commits` wherever every writer already signs, which ADR-0008's
tier table states. One new ADR-0008 exception, commented next to its
override: `nvd-mirror`'s signing rule skips `gh-pages`, which
`refresh.yml` force-pushes as an unsigned orphan commit with the Actions
token, an actor no ruleset can list as a bypass. `h5v`'s Main carries no
bot bypass, so its nightly issue sync, which still commits straight to
`main` (vig-os/devkit#1227), is refused until
[vig-os/h5v#9](https://github.com/vig-os/h5v/issues/9) retargets it to
`sync/issue-mirror`.
- **`scitadel`, `qx` and `tessera` are on
[ADR-0008](docs/adr/0008-repository-protection-and-merge-policy.md) tier
A, so every declared repo except `qms` and the exempt testbed now merges
by merge commit only**
([#294](https://github.com/vig-os/org-config/issues/294)): each ruleset
was decided after checking every writer on the live repo, meaning
workflows, release tooling, Apps, tags and commit signatures.
**`scitadel`** (devkit gitflow train) swaps its squash-only policy for
the house one, which the release train's `gh pr merge --merge` needs.
Its lower-case `main protection` / `dev protection` rulesets, whose
unpinned `Lint` / `Test (…)` contexts any app or status could satisfy,
become the house `Main protection` (1 approval, `15368:CI Summary`,
org-owner PR bypass only) and `Dev protection` (`CI Summary`,
`commit-action-bot` bypass for the nightly issue sync). It also gains
`Release protection` (`commit-action-bot`), `Signed commits` and `Tag
protection` (`vig-os-release-app`). `rust-ci.yml`'s `clippy` and macOS
test leg keep running but no longer gate a merge, because `CI Summary`
does not aggregate them. **`qx`** gains `Main protection` on the `CI
Summary` aggregator that
[vig-os/qx#311](https://github.com/vig-os/qx/pull/311) adds over its
`flake-check` matrix, plus `Signed commits` and `Tag protection`.
**`tessera`** trades its classic branch protection for `Main protection`
and `Dev protection` rulesets, both on `15368:nix flake check`. `dev`
now requires a PR, with a `commit-action-bot` bypass for the issue sync.
`main` requires a reviewed PR, so a promotion from `dev` is no longer a
direct push. `tessera` also gains `Tag protection`, drops rebase and
squash, and deletes merged branches. Three new ADR-0008 exceptions, each
commented next to its override. On `qx` and `tessera` the tag bypass is
the org owners, because a maintainer pushes release tags by hand.
`tessera` has no signing rule while its main contributor's commits are
unsigned. `tessera` keeps `dev` as its default branch, since `dev` is
still where every PR, Dependabot and release-plz land. **Manual steps**,
because apply never deletes: remove `scitadel`'s two lower-case rulesets
and `tessera`'s two classic branch protection rules by hand.
- **`devkit-smoke-test` and `org-config` gain the release rulesets
[ADR-0008](docs/adr/0008-repository-protection-and-merge-policy.md) left
as follow-ups**
([#294](https://github.com/vig-os/org-config/issues/294)): both repos
cut releases through the devkit train, yet neither protected its tags,
and `devkit-smoke-test` left `release/*` unprotected. Each ruleset was
decided after checking every writer in the repo's workflows. Both repos
gain `Tag protection` with `vig-os-release-app` as the only bypass,
because the Release App is the only tag writer: `release-publish.yml`
creates the release and RC tags, and `promote-release.yml` prunes RC
tags and moves floating tags. **`devkit-smoke-test`** also gains
`Release protection` on `release/*` (`15368:CI Summary`, which `ci.yml`
reports on every PR into `release/**`, with a `commit-action-bot`
bypass), because the Commit App is the only writer of release branches.
The Release App only deletes them, which the shape allows. The two
ADR-0008 exception rows that deferred these rulesets are removed.
- **"Otterdog models rulesets" is corrected — it models the ruleset
*object*, not every parameter inside a rule, and the merge-method policy
is owned by the repo settings**
([#246](https://github.com/vig-os/org-config/issues/246)): two claims in
this repo were over-broad in the same direction.
`unmanaged-controls.toml`'s "Repository ruleset internals" comment
argued that a row for a public repo "would duplicate a modelled control,
which is exactly what this table is not for", and `README.md` enumerated
the controls Otterdog **cannot model** without naming ruleset rule
parameters at all — so a reader concluded that anything inside a ruleset
on a public repo is plan-diffed. It is not. Otterdog (every version
through 1.6.1, the current pin included) does not model the
`allowed_merge_methods` parameter of a `pull_request` rule, and an
unmodelled *rule* parameter is worse than merely invisible: `plan` shows
no diff because there is no model field, and `apply` re-`PUT`s the rule
**without** it, so GitHub's default-on-omit — all three merge methods —
is restored every time the ruleset is touched. On **2026-08-08** one
routine apply by the org-config App did exactly that to **ten rulesets
across four repos** (`commit-action`, `devkit`, `sync-issues-action`
Dev/Main/Release plus `org-config` Main), each dropping a hand-set
`["merge"]`, and it went unnoticed for six weeks; every row is provable
through `GET /repos/{org}/{repo}/rulesets/{id}/history/{version}` —
`org-config` Main protection is the cleanest, a human version (43742326,
2026-07-20) carrying `["merge"]` followed directly by a bot version
(45947063) carrying all three, with no config change between them. This
repo had already recorded the care that was wasted:
[`docs/pull-requests/pr-117.md`](docs/pull-requests/pr-117.md) and
[`pr-119.md`](docs/pull-requests/pr-119.md) document hand-`PUT`s on
2026-08-07 that rebuilt each payload from a fresh `GET` precisely so
`allowed_merge_methods` passed through verbatim — wiped the next
morning. Filed upstream as
[eclipse-csi/otterdog#768](https://github.com/eclipse-csi/otterdog/issues/768).
The **decision** now documented in both files: **repo merge settings own
the merge-method policy**. `allow_merge_commit` / `allow_squash_merge` /
`allow_rebase_merge` *are* modelled, are declared once in
`otterdog/vig-os/house-defaults.libsonnet` (`houseMergePolicy` — merge
commits only), and are therefore plan-diffed on every config PR and
drift-guarded daily; all four affected repos sit on that policy by
construction, so merge-only is still enforced where a contributor meets
it, and the widened ruleset parameter cannot offer a button the repo
settings do not expose. The ruleset-level parameter stays at the
platform default **by decision**, not by neglect. Re-narrowing the ten
rulesets by hand is rejected as permanent toil (the next apply re-widens
them, with no signal), and an `unmanaged-control` row asserting
`["merge"]` is rejected for a subtler reason worth stating: the row
would be *correct* and would open an issue every time this engine's own
apply re-widened the value — self-inflicted drift noise over a dual
source of truth for one policy, with the table asserting a state the
tool actively fights. The one capability genuinely deferred is
per-branch merge-method granularity, which nothing here uses. The
neighbouring unmodelled parameter
`require_extra_approval_for_unattributed_changes` needs no action and
the comment says so: GitHub's default-on-omit is evidently `true` (it
reads `true` in every version above, human- and bot-written alike),
which is the value we want. The exit criterion is written into both
files — when the [ADR-0005](docs/adr/0005-repo-tooling.md) otterdog pin
reaches a version fixing #768, `allowed_merge_methods` gets declared in
the jsonnet as ordinary config, matching **each repo's declared merge
policy** rather than a blanket `["merge"]` mixin: the house policy is
merge commits only, but `qms` restates the retired `legacyMergePolicy`
fields inline (all three merge methods) and `org-config-testbed` carries
`orgs.upstreamMergePolicy` (`otterdog/vig-os/vig-os.jsonnet`), so one
blanket declaration would silently narrow any of them that later gains a
ruleset — the same class of unnoticed narrowing this entry exists to
record, only self-inflicted. Today the distinction is latent, because
every ruleset-carrying repo (`commit-action`, `devkit`,
`devkit-smoke-test`, `org-config`, `scitadel`, `sync-issues-action`)
sits on the house policy; the declaration must still be derived per
repo, not assumed. #246 stays open as that tracker. Documentation only:
no jsonnet, ruleset, workflow or table-row change, and
`--controls-report` is unchanged.
- **The `template/` starter no longer tells a downstream org that
Otterdog cannot read its private repositories' rulesets**
([#248](https://github.com/vig-os/org-config/issues/248)): three places
still asserted the read gate that
[#225](https://github.com/vig-os/org-config/issues/225) retired when it
moved the pin to otterdog **1.5.0** for engine `v1.4.0`.
`template/unmanaged-controls.toml` — the file every downstream org
copies — opened its ruleset section with *"Otterdog cannot read live
rulesets on a private repo below Enterprise, so on a private Team-plan
org they are precisely the controls with no other detector"* and then
recommended "the two rows worth holding"; `README.md` said ruleset
internals are assertable *"which matters most on a private repo where
Otterdog cannot read rulesets at all"*; and this repo's own
`unmanaged-controls.toml` held the capability *"for downstream orgs on
Team/Enterprise, whose private repos otterdog cannot read"*. Upstream
[eclipse-csi/otterdog#731](https://github.com/eclipse-csi/otterdog/pull/731)
removed the plan-and-visibility gate from **both** ruleset read paths —
which is precisely what closed
[#107](https://github.com/vig-os/org-config/issues/107) / [upstream
#729](https://github.com/eclipse-csi/otterdog/issues/729) and released
the [#205](https://github.com/vig-os/org-config/issues/205) downstream
conversions — so repository rulesets are read on every plan tier and
both repo visibilities, the fields Otterdog's schema models are
plan-diffed everywhere, and a row asserting one now *duplicates a
modelled control*: the template was recommending exactly what the
shipped table's own comment rejects. The README already recorded the
correction under "Known limitations", so the repo contradicted itself.
Each passage is rewritten to say when a row is warranted rather than
which repos are unreadable: a rule parameter Otterdog does not model
([#246](https://github.com/vig-os/org-config/issues/246), [upstream
#768](https://github.com/eclipse-csi/otterdog/issues/768)), a ruleset
deliberately kept out of the config, and — the stronger case now —
**organization**-level rulesets, which #731 made readable but which
`GitHubOrganization.validate()` still refuses to declare below
Enterprise ([upstream
#763](https://github.com/eclipse-csi/otterdog/issues/763)), leaving them
hand-managed with a row here as their only detector. The two example
rows stay exactly as they were, re-labelled as the *shape* a row takes
rather than rows to hold by default, so a consumer reading the starter
still learns the `/repos/{org}/{repo}/rules/branches/{branch}` form and
the `compare = "set"` semantics. Untouched by design: `docs/issues/*.md`
and `docs/pull-requests/*.md`, which are archival records of what was
true when written; `template/README.md`'s migration note, which already
says "previously unreadable"; and the `otterdog-defaults` `v0.13.1` pin,
which is held for the `max_cache_size_gb` HTTP 402 reason and has
nothing to do with reads. Documentation and template comments only — no
row, endpoint, engine, workflow or config change, and
`--controls-report` is unchanged.
- **Renovate proposes the otterdog pin bump; a human still adopts it**
([#250](https://github.com/vig-os/org-config/issues/250)): the
[ADR-0005](docs/adr/0005-repo-tooling.md) `otterdog_version` pin was
moved entirely by hand across **five** literals, because `renovate.json`
enabled only `github-actions`, `pep621` and `npm` — none of which
matches a bare Just variable or a workflow input `default:` — and
defined no `customManagers`. That was recorded as an ADR-0005 correction
in [#225](https://github.com/vig-os/org-config/issues/225) after the
1.5.0 bump had to be authored literal by literal, and the failure mode
it predicts is not hypothetical: the 1.4.0 bump (`818e1f8`) missed
`template/.github/workflows/import.yml` outright
([#164](https://github.com/vig-os/org-config/issues/164) item 7),
leaving a template consumer importing on one otterdog and planning on
another. `renovate.json` now enables `custom.regex` and defines one
manager that keys off a `# renovate: datasource=pypi depName=otterdog`
marker placed directly above each literal — `justfile.project` (the
SSoT) plus the `workflow_call` defaults of
`.github/workflows/{plan,apply,drift}.yml` plus
`template/.github/workflows/import.yml` — so all five carry one
`depName` and move in a **single** pull request. The **comment-marker**
form was chosen over a bare pattern deliberately: those workflow files
mention `otterdog_version` in prose as well as as an input key
(`plan.yml` even quotes a past bump, "1.4.0 -> 1.5.0", in a comment), so
a regex anchored on the key name alone is one edit away from silently
matching the wrong line — and silence is precisely this pin's historical
failure mode. **What is automated is the editing, not the adopting.**
The rule sets `automerge: false`, requests review, and labels the PR
`area:ci`; `plan` runs on it because
[#230](https://github.com/vig-os/org-config/issues/230) added
`justfile.project` to the workflow's `paths:` filter, so the empty-plan
evidence that #225 had to dispatch by hand now arrives on the PR for the
reviewer to read. **Stated precisely, because it would be easy to
over-read as a hard gate:** this is a *requested* review, not an
enforced one, and no ruleset can make it enforced here. `Main
protection` grants `OrganizationAdmin` an `always` bypass, so the
maintainer bypasses every rule in it when merging;
`required_approving_review_count` is `0` by decision
([#167](https://github.com/vig-os/org-config/issues/167)) because a sole
maintainer cannot self-approve, so raising it would block every human PR
in the repo rather than this one bot PR; and
`require_extra_approval_for_unattributed_changes: true` does not reach
bot PRs at all — the eight most recently merged `app/renovate` PRs
(#207, #208, #212, #216–#218, #221, #222) all report an empty
`reviewDecision`. The only mechanical guard is therefore
`tests/test_otterdog_pin.py`, which grows three checks beyond its
existing mirror-equality assertions: every pin site carries its marker
(a deleted marker silently drops that site from Renovate and restores
the hand-edit failure mode), `custom.regex` stays in `enabledManagers`
(an allowlist, where an omission disables the manager entirely), and —
the one that makes "the regex is validated" a checked claim rather than
a hope — the manager's own `matchStrings` are read out of
`renovate.json`, compiled, and run against the real files, asserting
exactly one match per site carrying the SSoT value.
`renovate-config-validator` passes on `renovate.json`. Two exclusions
are deliberate and both preserve an existing decision rather than
automating past it. `otterdog.json`'s `otterdog-defaults`
`base_template` pin is outside the manager's `managerFilePatterns`: it
is held at `v0.13.1` because `v0.14.x` introduces `max_cache_size_gb`,
whose endpoint answers `402` on a Free plan and writes a permanent
`WARNING` into every `plan.txt` the drift layer parses — the two pins
are not in lockstep and must not be moved by reflex. And
`template/renovate.json` is **unchanged**, so no downstream org inherits
a custom manager it would have to maintain; the marker shipped in
`template/.github/workflows/import.yml` is read by this repo's Renovate
and is inert in an instantiated consumer, which is stated in the file
itself and costs nothing, since that bootstrap is dispatched once at
onboarding and its pin stops mattering afterwards. Repository tooling,
ADR and template comments only — no engine, plan-execution,
workflow-behaviour or org-config change.
- **`tessera` can read the org App secrets its devkit scaffold mints
tokens from** ([#252](https://github.com/vig-os/org-config/issues/252)):
[tessera#364](https://github.com/vig-os/tessera/issues/364) adopts the
devkit scaffold, whose managed `sync-issues.yml` and
`devkit-upgrade.yml` mint GitHub App installation tokens from **org**
secrets whose `visibility` is `selected`. `tessera` was on none of those
lists, and the failure mode is silent by construction — the very trap
the `DEVKIT_UPGRADE_APP_ID` comment in this config already warns about,
*"its upgrade workflow fails with an empty credential and no error"*.
`tessera` is added to exactly four: `COMMIT_APP_CLIENT_ID`,
`COMMIT_APP_PRIVATE_KEY`, `DEVKIT_UPGRADE_APP_CLIENT_ID` and
`DEVKIT_UPGRADE_APP_PRIVATE_KEY`. **Which four was derived from the
scaffolded files rather than assumed**, because the ID form is per-repo
and the lists deliberately differ: at devkit **1.16.0**
`sync-issues.yml` reads `client-id:` with no numeric fallback, and
`devkit-upgrade.yml` takes the legacy numeric `DEVKIT_UPGRADE_APP_ID`
only as a fallback (`if { [ -z CLIENT_ID ] && [ -z ID_LEGACY ]; } || [
-z PRIVATE_KEY ]`), so the client-ID form alone satisfies both.
`tessera` is therefore **deliberately absent** from `COMMIT_APP_ID` and
`DEVKIT_UPGRADE_APP_ID` — adding it there would hand the repo a
credential nothing reads and enlarge precisely the surface
[#112](https://github.com/vig-os/org-config/issues/112) exists to
retire. That makes `tessera` the first repo on the client-ID form **from
day one**, with no numeric entry for the migration to unwind later;
every other entry on those lists retires with its repo's re-scaffold,
this one never needs to. The prose above each list is updated alongside
it, not just the arrays: those comments enumerate which repo is on which
ID form and why, and they are the only record of that reasoning — a
silent list edit would leave them quietly wrong, which is the same class
of error [#225](https://github.com/vig-os/org-config/issues/225) found
in ADR-0005. Two further secrets appear in the scaffolded workflows and
correctly need no action: `GHCR_PULL_TOKEN`, which is not an org secret,
not in this config and not a repo secret anywhere — `h5v` runs the same
scaffold with zero repo secrets, because it is an optional fallback for
pulling the public devcontainer image that `GITHUB_TOKEN` already covers
— and `CACHIX_AUTH_TOKEN`, which is declared here as a repo secret for
the one repo that uses it and is optional in `ci.yml`. Config only: four
`selected_repositories` arrays and the comments above them; no new
secret, no value, no visibility change, and no repo, ruleset or workflow
change.
- **A GitHub App bypass actor on a ruleset is documented as writable
only while the engine's token can read the App**
([#256](https://github.com/vig-os/org-config/issues/256)): a downstream
consumer merged a tag ruleset whose single bypass actor is a GitHub App,
on a green `plan`, and the dispatched `apply` failed against the live
organization with `failed retrieving app node id: … (status=403,
"Resource not accessible by integration")`. Otterdog resolves an App
bypass actor on the **write** path through `GET /apps/{app_slug}` and
this engine authenticates as an App *installation*
([ADR-0004](docs/adr/0004-auth-model-github-app.md) Corrections), so the
write succeeds only where that endpoint is readable to such a token.
GitHub's own reference for `GET /apps/{app_slug}` documents no
authentication requirement at all, so the boundary is stated here as an
**observation**, not as a documented mechanism: probed 2026-09-25, a
**public** App answers `200` to any caller, while the private App that
hit this answers `404` unauthenticated, `200` to an org-owner PAT and
`403` to an installation token — the status in the traceback above. The
**read** path never calls it: it maps the live `actor_id` back to a slug
from `GET /orgs/{org}/installations`, which is why `plan` and `drift`
render the actor correctly and why the failure cannot surface on the
pull request. That also explains why this organization has never hit it
— the ten App bypass actors declared in `otterdog/vig-os/vig-os.jsonnet`
name two **public** Apps, and installation-token applies have written
both, on two different days. **Six** of the ten rulesets the apply of
2026-08-08 rewrote (the
[#246](https://github.com/vig-os/org-config/issues/246) incident set)
carry an App bypass actor — *Dev* and *Release* protection on
`commit-action`, `devkit` and `sync-issues-action`, every one of them
naming `commit-action-bot`, e.g. ruleset `18922479` still at `updated_at
2026-08-08T09:34:28+02:00` with `actor_id 2433383` intact. The three
*Tag* protection rulesets that carry the other App are not in that set,
so `vig-os-release-app` is evidenced separately and a day earlier: apply
run `31190546346` created `devkit` *Tag protection* (`20558615`,
`created_at 2026-08-07T17:11:11+02:00`) with that App as its only bypass
actor, from a workflow that already minted an installation token. The
limitation, the workaround and the residual gap — **detection survives,
repair does not**, because a ruleset patch re-sends the whole bypass
list — are now recorded in `README.md`'s *Known limitations*, beside the
field in `otterdog/vig-os/vig-os.jsonnet`, and in both
`unmanaged-controls.toml` comments, which record that the gap
deliberately gets no control row: the plan already detects it and no row
can restore a write path. The workaround documented is a **one-off
`otterdog apply` run with an org-owner PAT** as `OTTERDOG_TOKEN` — an
owner can read the slug, so the engine resolves it on its own code path
and writes the complete payload — rather than a hand-built REST `PUT`
carrying `actor_id` directly: hand-assembling a ruleset payload is
exactly the operation that silently lost unmodelled fields in
[#246](https://github.com/vig-os/org-config/issues/246), in this repo,
in this release. Once the actor is live the installation token's read
path maps its `actor_id` back through `GET /orgs/{org}/installations`,
matches the declaration and plans clean, so the declaration still
detects drift — with one hole of its own, now tracked as
[#262](https://github.com/vig-os/org-config/issues/262): an App that is
not an installation on the org is dropped on read, leaving a permanent
phantom diff. Surfacing the unresolvable slug at plan time, where this
repository's model says failures belong, is split out as
[#259](https://github.com/vig-os/org-config/issues/259), scoped to all
four write-path call sites rather than bypass actors alone. Upstream
[eclipse-csi/otterdog#772](https://github.com/eclipse-csi/otterdog/issues/772),
the same class of defect as the already-fixed #695; the exit criterion
is an ADR-0005 pin that includes the fix.
- **An App bypass actor is documented as *readable* only while its App
is an installation on the organization**
([#262](https://github.com/vig-os/org-config/issues/262)): the read-side
sibling of [#256](https://github.com/vig-os/org-config/issues/256), and
the worse half. Otterdog has no public endpoint for the id→slug
direction and says so in its own `FIXME`, so it builds one map per run
from `GET /orgs/{org}/installations`
(`models/github_organization.py:555-558`) and applies it to every
ruleset's `bypass_actors` at `:758-765`. That map can only hold **org
installations**. An `Integration` actor whose `actor_id` is missing from
it gets no `app_slug`, and `models/ruleset.py:541-548` logs `fail to map
integration actor '<id>', skipping` — into otterdog's log, never into
`plan.txt` — and **drops the actor from the model entirely**. Both
directions are then wrong, and until
[#259](https://github.com/vig-os/org-config/issues/259) neither reached
the pull request: a declared actor is proposed for addition on *every*
plan and `apply` never converges, because a ruleset patch re-sends the
whole bypass list (`models/repo_ruleset.py:63-71`) — that half is now
reported at review time, by the plan report's App-slug check comparing
each declared slug against the org's installations; an undeclared one is
a standing, unreported bypass of a protected branch or tag, and still
reaches nothing, because catching it needs a live ruleset read.
`drift.yml` reconciles the same plan text, so the phantom becomes a
recurring drift record rather than a one-off. It is the same root cause
as [upstream #732](https://github.com/eclipse-csi/otterdog/issues/732) —
the same installation map, for required status checks — with a
**strictly worse symptom**, and that contrast is the useful part: a
status check *falls back* to the numeric `<integration_id>:<context>`
form (`models/ruleset.py:145-151`) and stays both visible and writable,
which is exactly why this repo's own prefixes are numeric `15368:`
([#69](https://github.com/vig-os/org-config/issues/69)); a bypass actor
has no numeric form, so it does not degrade, it vanishes. Verified
unfixed at the **1.5.0** pin and unfixed on upstream **`main`** on
2026-09-25 (`models/ruleset.py:545-552` there, byte-identical logic).
**Nothing in the fleet is affected today, and that was checked rather
than assumed:** all fifteen `Integration` bypass actors live across the
readable `vig-os` and `exo-pet` rulesets — `2433383` `commit-action-bot`
(eleven rulesets), `2930017` `vig-os-release-app` (three) and one
private App owned by a sibling org, whose slug and id stay in the issue
thread because this repository is public — appear in their org's
`/installations` listing, with **two** blind spots named rather than
glossed, both of them limits of the billing plan rather than surfaces
left unread by choice: `vig-os/qms` is private on a Free-plan org, so
both of its ruleset endpoints answer `403 Upgrade to GitHub Pro` and its
rulesets could not be read; and `GET /orgs/vig-os/rulesets` answers `403
Upgrade to GitHub Team`, because org-level rulesets are a
Team/Enterprise feature — a Free-plan org can hold none, so that refusal
states the plan rather than hiding a surface, but it was not read either
(`exo-pet` is on Team, was read in full, and holds no org-level
ruleset). The case that trips it is undetectable from the config alone:
a bypass slot granted out of band to an App installed on *some
repositories* of the org without being an org installation, or an
installation removed while the ruleset keeps the `actor_id`. Recorded in
`README.md`'s *Known limitations* as its own entry, beside the
`bypass_actors+` note in `otterdog/vig-os/vig-os.jsonnet`, and in both
`unmanaged-controls.toml` comments — where, unlike the #256 write-side
gap, the verdict is that a row **would** be the only detector, since the
actor is invisible to plan and drift alike; this org still holds none,
for the factual reason that it has nothing to assert, and the shape is
written down for a downstream that does
(`/repos/{org}/{repo}/rulesets/<id>` with `path =
"bypass_actors[].actor_id"`, the one row form that must carry a ruleset
id, because bypass actors do not appear on `/rules/branches/{branch}`).
Surfacing it at review time is folded into
[#259](https://github.com/vig-os/org-config/issues/259), which already
reads the declared App actors and needs one extra `GET
/orgs/{org}/installations` to report it. Documentation and config
comments only — no row, endpoint, engine, workflow or ruleset change,
and `--controls-report` is unchanged.
- **The engine App's visibility is recorded as public, with the reason,
what it costs and what a flip would touch**
([#261](https://github.com/vig-os/org-config/issues/261)):
`docs/runbooks/github-app.md` instructed, at creation, *"Where can this
GitHub App be installed?: **Only on this account**"* — which the live
App has never matched. `GET
https://api.github.com/apps/vig-os-org-config` answers **200 to an
anonymous caller** (control, probed the same day: a private App owned by
a sibling org answers **404** anonymous and 200 to an org-owner token),
and the App is installed on `exo-pet` (installation `147219320`) as well
as `vig-os`, which *Only on this account* does not permit. The runbook
was therefore not a description of the App, and it contradicted itself
two sections later, where **Downstream-org installation** tells an owner
of another org to open "the App's **public** install page". The posture
is **kept — decided 2026-09-25, pending the UI verification the new
section prescribes**: `GET /apps/{app_slug}` exposes **no visibility
field** at all, so every piece of evidence here is an anonymous status
code, an observation rather than a documented mapping, and only the
App's own settings page states the value. Public is what the
one-App/N-installations model requires — private means installable on
`vig-os` alone, which is one App per org, the design
[ADR-0004](docs/adr/0004-auth-model-github-app.md) rejected under *"One
App, not four"*, and `exoma-ch` / `MorePET` are meant to follow
`exo-pet` through the same door. The creation step now says **Any
account** and a new **Visibility** section carries the decision, what
the setting controls per GitHub's own reference, the two costs accepted
with it — an installation set that can grow without notice (webhooks are
off, so there is no `installation` event; `GET /app/installations` at
key rotation is the only inventory, now a step in **Key rotation**) and
a world-readable grant table (the anonymous payload carries the Client
ID and `organization_administration: write`, which is why the Client ID
is stored as a secret for uniformity and nothing else —
[#270](https://github.com/vig-os/org-config/issues/270) — and why
`vigos-devkit-upgrade` is owed the same decision in
[#271](https://github.com/vig-os/org-config/issues/271)) — and, because
a runbook has to state a setting where it is set, the four places a flip
to private would have to touch: the creation step, this decision
paragraph (whose CHANGELOG entry would move to `### Security`),
**Downstream-org installation** step 1 and **Key rotation** step 6. A
stranger installing it gains nothing usable — tokens are minted from a
private key only `vig-os` holds, and the App subscribes to no events.
The [#256](https://github.com/vig-os/org-config/issues/256) coupling is
recorded alongside, with its scope corrected: an App named as a ruleset
**bypass actor** must stay readable on `GET /apps/{slug}` or `apply` can
no longer repair that ruleset, but `vig-os-org-config` is named as a
bypass actor nowhere in `vig-os`'s or `exo-pet`'s config — the Apps for
which public is load-bearing are `commit-action-bot` and
`vig-os-release-app`. No `unmanaged-controls.toml` row was added, and
the section says why: with no visibility field to assert, the only
signal is the status code to an *unauthenticated* call, which the
authenticated controls transport can never observe, so verification is a
plain UI checklist — including the trap that the Danger-zone button
names the action, not the state.
- **ADR-0007 no longer claims that the plan check's advisory status
propagates downstream — the only consumer requires exactly that
context** ([#268](https://github.com/vig-os/org-config/issues/268)): the
last Consequences bullet of
[ADR-0007](docs/adr/0007-ci-and-testing-strategy.md) asserted that *"The
Axis D decision propagates downstream unchanged: `template/`'s plan
caller keeps its `paths:` filter, and a consumer org wires no plan
context into its ruleset"*. Both halves are false of
`exo-pet/org-config`, and were already false a month before the bullet
was written (`868d4f5`, 2026-09-23) — which is why this is not a third
*stale* entry alongside
[#235](https://github.com/vig-os/org-config/issues/235) /
[#237](https://github.com/vig-os/org-config/issues/237), but one that
was untrue on the day it was written. That org deleted its caller's
`paths:` filter and made the plan context required on the **same
morning, 2026-08-24, under its own #35**: the filter goes in `04d8645`
at 07:52Z (*"run plan on every PR as the required main status check"*),
ruleset `20545163` gains its `required_status_checks` rule at 07:53Z
(history version `47427003`; the live version is `47427597`, 08:02Z),
and the issue closes at 07:56Z. Its own **#62** is a month later —
closed 2026-09-24, a day *after* the ADR bullet — and only imported that
hand-managed ruleset into the committed jsonnet, so it is the wrong
issue to date the breakage by. Re-derived here rather than taken from
the issue body, which mis-attributed it to #62: evaluated from the
committed jsonnet with the [ADR-0005](docs/adr/0005-repo-tooling.md)
pin's own `jsonnet_evaluate_file` (`uvx --from otterdog==1.5.0`), and
the live ruleset (`GET /repos/exo-pet/org-config/rules/branches/main`)
agrees — `Main protection` requires **exactly one** status context and
it is `plan / Plan committed config against live exo-pet`, with **no**
`paths:` filter in the caller, because a path-filtered skip leaves a
required context `Pending` forever. The two are one decision, the same
unavailability Axis D itself recorded when it rejected "require the
check as-is". The consequence is an engineering rule rather than a note
— `plan.yml` is a `workflow_call` workflow, so **every step added to it
sits on another org's merge gate, for every pull request, including ones
that touch no config** — and the rule is now stated at the top of
`plan.yml`, split the way the file actually behaves: the **verdict
spine** (checkout, uv, pin resolve, token mint, `Run otterdog plan`,
`Fail on plan error`) reddens by design, which is the contract the
consumer states, while **everything auxiliary** must be fail-soft (a
guard, `continue-on-error`, an `if:` on the guard's output), with
[#259](https://github.com/vig-os/org-config/issues/259)'s App-slug steps
as the worked example. The header also names the two shipped auxiliary
steps that do **not** meet the rule yet — `Build plan report` and
`Upsert plan comment on the PR`, both `if: always()` with `set -euo
pipefail` and `gh api` writes — rather than leaving a "binding" rule the
same file quietly contradicts; fixing them is
[#276](https://github.com/vig-os/org-config/issues/276). The severity is
stated as it is live, not at its worst: a red context there blocks
everyone but the org owner, whose `Main protection` carries an
`#OrganizationAdmin` actor at `bypass_mode: pull_request` with
`required_approving_review_count: 0` — i.e. an accidental instance of
the very pathology the neighbouring ADR bullet rejects. `template/`'s
caller keeps its filter — a Free-plan org cannot enforce a context on a
private repo, so it is the right default for an org that has not made
the choice — but it now carries a "delete this block if you make the
plan context required" annotation stated as a rule with no third-party
state baked in, `template/README.md` says the same where the plan caller
is wired, and ADR-0007 gains a dated correction with the evidence above
plus a supersession trigger to revisit the default when `exoma-ch` /
`MorePET` onboard. Every live file that stated the claim unscoped is now
scoped: the ADR's L2 bullet and `renovate.json`'s otterdog
`packageRules` description (the sweep behind
[#274](https://github.com/vig-os/org-config/issues/274) missed the
latter). The released **v1.4.0** entries for
[#236](https://github.com/vig-os/org-config/issues/236) and
[#230](https://github.com/vig-os/org-config/issues/230) keep the
unscoped wording by the never-edit-released rule — they are history, and
they were true of this repo when written. Untouched too: the
neighbouring ADR bullet about **this** repo's `Main protection`, the
#236 verdict behind it, and every binding credential rule in the
Decision. The reasoning is compressed here because the #259 entry above
already carries it.
- **The installation map behind the two App-actor limitations is
documented as truncated at thirty entries, which makes the dropped set
larger than either of them describes**
([#269](https://github.com/vig-os/org-config/issues/269)):
[#262](https://github.com/vig-os/org-config/issues/262) and [upstream
#732](https://github.com/eclipse-csi/otterdog/issues/732) both reason
about an App that is *not* an org installation, and both are therefore
read as saying that installing the App on the organization makes a
declaration safe. It does not. The map is built from **one unpaginated
call** — `providers/github/rest/org_client.py:484-491` in otterdog
**1.5.0**, the [ADR-0005](docs/adr/0005-repo-tooling.md) pin, reaches
`GET /orgs/{org}/installations` through the single-shot `request_json`,
which sends no `per_page` and never reads the `Link` header, and returns
`response["installations"]`, one page — while that endpoint paginates at
a default page size of **30** and answers with an envelope
(`{"total_count": N, "installations": [...]}`). So past the thirtieth
installation the rest are dropped silently; `total_count`, in the same
response body, is never compared against the entries received; and the
Apps that vanish are **proper org installations**, dropped purely by
page position, which also makes the surviving set depend on the order
GitHub returns them in — the same committed config can plan differently
on two runs after an unrelated App is installed or removed. Verified
against the published `otterdog-1.5.0-py3-none-any.whl` and unfixed on
upstream **`main`** on 2026-09-25 (`ba3d1f9`; the call is byte-identical
there and the map has moved to `models/github_organization.py:576`). The
call is the **odd one out in its own file**: the same `org_client.py`
already uses the paged form for repos, members, security advisories and
rulesets, and the sibling `app_client.py:32` pages `/app/installations`
— so the fix is that one call swapped for `request_paged_json(…,
entries_key="installations")`, which is **drafted and verified against
upstream `main` with a unit test in the upstream style — and not
posted**: it is held for [upstream
#732](https://github.com/eclipse-csi/otterdog/issues/732) rather than
opened as a third upstream issue, since it is the same map, the same
file and the same patch, and both the #732 comment and the pull request
are human steps (the pull request additionally gated on the Eclipse
Contributor Agreement), so nothing here claims an upstream state that
does not exist yet. **Nothing in the fleet is affected today, and it was
measured rather than assumed:** `gh api /orgs/<org>/installations --jq
.total_count` answered **8** for `vig-os` and **12** for `exo-pet` on
2026-09-25. Repeating that measurement, and re-reading
`get_app_installations` in the new otterdog, are now steps of the pin
bump, written into the comment directly above the `otterdog_version`
literal in `justfile.project` — the place a bumper is already reading —
with ADR-0005's Consequences pointing there rather than restating them.
**This repo's own plan-time check is documented as not covering the gap,
and the band it leaves is uncovered by decision rather than by
oversight:** `read_installations`
([#259](https://github.com/vig-os/org-config/issues/259),
`src/drift_layer/app_actors.py:436-476`) already reads the same endpoint
with `per_page=100`, refuses a response advertising a `rel="next"` page,
and compares `total_count` against the entries it received — withholding
every declared slug's `installed` verdict and saying so under *Not a
finding*, because absence from a partial list proves nothing — but
**both of those signals only refuse at 101 installations or more**: with
`per_page=100` the endpoint advertises no next page until a 101st
installation exists, and the entries received are `min(total_count,
100)`, so at exactly 100 the read is complete and silent, while
otterdog, sending no `per_page` at all, truncates from the 31st. **The
31–100 band is therefore silent by decision.** The `total_count > 30`
warning that the issue's own suggested fix proposes was specced,
reviewed and dropped: it would fire on every pull request of an org that
crossed 30 — a context that is a required check downstream
([#268](https://github.com/vig-os/org-config/issues/268)) — while naming
no remedy, since upstream #732 is open and the single-shot call survives
past otterdog 1.6.1; and it could not be suppressed, because
`drift-allowlist.toml`'s `[[app_actor]]` section is keyed by **slug**
and `unmanaged-controls.toml` has no threshold operator, only equality
and set membership. Both orgs sit at **8** and **12**, the condition the
issue itself attaches to that item (*"if either org approaches 30"*) is
not met, and the full reasoning is recorded [on the
issue](https://github.com/vig-os/org-config/issues/269#issuecomment-5840052856);
if either org does approach 30 while upstream is unfixed, the warning
becomes worth filing on its own terms, with an otterdog-version gate and
a test asserting silence once upstream is fixed. The bump-time
measurement is the proportionate guard in the meantime, and the
docstring in `app_actors.py` that said otterdog drops "past 100
installations" is corrected to say 30, since it was the one place in
this repo asserting the wrong threshold. Documentation, a docstring and
a pin-bump comment only — no endpoint, engine, workflow, check behaviour
or config change, and `--controls-report` is unchanged.
- **`ORG_CONFIG_APP_CLIENT_ID` is decided to stay an Actions secret,
with the reason, and the runbook now states that a disclosed Client ID
is not a rotation trigger**
([#270](https://github.com/vig-os/org-config/issues/270)): the value has
never been confidential — `GET
https://api.github.com/apps/vig-os-org-config` answers **200 to an
anonymous caller** and returns `client_id` plus the full
**17-permission** grant (re-probed 2026-09-28) — while the repo held it
as a bootstrap secret beside the PEM under a runbook heading that says
*"never managed as code"*, and said nowhere that its publication is
harmless. The **decision (2026-09-28) is to keep it a secret**,
knowingly: the secret buys **uniformity, not confidentiality** — every
consumer hands it to `actions/create-github-app-token` in the same
breath as the private key (`client-id:` beside `private-key:`), so one
`secrets:` mechanism covers the pair, and the three sibling
`*_APP_CLIENT_ID` **org** secrets the client-ID convention
([#112](https://github.com/vig-os/org-config/issues/112)) created are
declared the same way (`otterdog/vig-os/vig-os.jsonnet:66`, `:124`,
`:189`), so a variable here would make this App the exception rather
than the rule. The alternative's cost is the **cutover, not the edit**:
an engine reading `vars.ORG_CONFIG_APP_CLIENT_ID` while a downstream
caller still passes `secrets.ORG_CONFIG_APP_CLIENT_ID` does not fail
loudly, because an undefined `vars.` reference resolves to the **empty
string** — a silent empty credential, failing late in the token step or,
on the scheduled `drift` leg, in a run nobody is watching — so a move to
a variable is only safe inside a coordinated pin bump.
`docs/runbooks/github-app.md`'s **Bootstrap secrets** section carries
all of it: that the Client ID is an identifier and not a credential (it
mints no token without the key that signs the JWT), that finding it in a
log, a screenshot or a stranger's `curl` is **not an incident and starts
no rotation**, that [Key
rotation](docs/runbooks/github-app.md#key-rotation) is triggered by the
schedule or by exposure of `ORG_CONFIG_APP_PRIVATE_KEY` and by nothing
else — restated at the rotation step itself, which previously said only
that the Client ID *does not change* — and the decision plus a four-step
sequence for a future variable migration (both forms accepted in the
engine's `workflow_call` blocks and references first —
`plan.yml:150`/`:229`, `apply.yml:165`/`:390`/`:499`,
`drift.yml:131`/`:222`/`:316`, `apply-engine.yml:118`/`:142`,
`testbed-e2e.yml:162`/`:172` — then the jsonnet declaration at `:625`
moved from `secrets:` to `variables:` where otterdog would genuinely
assert it instead of a dummy `'********'` row, then
`template/README.md:101` and the four `template/.github/workflows/*.yml`
callers plus `exo-pet`'s org-config caller cut over **at a pin bump**,
and only then the shim retired). The statement is deliberately
**fleet-wide**, covering the three sibling secrets — their Apps
`commit-action-bot`, `vigos-devkit-upgrade` and `vig-os-release-app`
each answer `200` to the same anonymous call (probed 2026-09-28) — so
the next reader does not re-derive it per App; what stays per App is the
paired private key, each its own rotation trigger. **Deliberately not
done:** nothing moved — no workflow, `template/`, jsonnet or ADR edit,
no secret value touched, and no variable migration issue filed, since
the decision is to keep the current storage and a migration issue with
no decision behind it would only re-open the one just made. The exposure
is unchanged and was never a flip, which is why this is a `Changed` and
not a `Security` entry.
- **The second public `vig-os` App, `vigos-devkit-upgrade`, now has a
recorded visibility decision too**
([#271](https://github.com/vig-os/org-config/issues/271)):
[#261](https://github.com/vig-os/org-config/issues/261) established that
a `vig-os`-owned App's visibility is a posture to be decided and written
down, and recorded one for the engine App — leaving this App in exactly
the same position with a record **nowhere**: not in this repo, not in
`vig-os/devkit`, not in an ADR, while `GET
https://api.github.com/apps/vigos-devkit-upgrade` answers **200 to an
anonymous caller** (re-probed 2026-09-28; three sibling `vig-os`-owned
Apps answer `404`). The posture is **kept — public, *Any account*,
decided 2026-09-28 and pending the same UI verification #261
prescribes**, stated as a hedge rather than a reading: `GET
/apps/{app_slug}` carries no visibility field at all, so the only API
evidence is that anonymous status code — an observation, not a
documented mapping — and only the App's own settings page states the
value. Public is not a preference here but a property of the live
topology: the App is installed on `exo-pet` (installation `151387251`)
as well as `vig-os`, and GitHub's private setting means installable only
on the account that owns the App, so that installation could not exist
under it — the one-App/N-installations model
[ADR-0004](docs/adr/0004-auth-model-github-app.md) chose under *"One
App, not four"*, exactly as for the engine App. The record lives where
the App does: an `APP VISIBILITY DECISION` comment at
`otterdog/vig-os/vig-os.jsonnet:115-181`, above the
`DEVKIT_UPGRADE_APP_*` declarations and beside the `MAINTENANCE
COUPLING` note already there, because that block is the App's only
appearance in code anywhere; `docs/runbooks/github-app.md`'s
**Visibility** section, which named this App as *"the one still lacking
a decision of its own"*, now cross-references it instead. **Two
differences from the engine App are stated rather than left to be
inferred, and they are why the same posture is cheaper here.** The grant
is **five** permissions — `contents`, `issues`, `pull_requests`,
`workflows` write and `metadata` read, with no
`organization_administration`, no secrets, no members, no administration
— against the engine App's **seventeen**, so the world-readable grant
table an unauthenticated caller gets (id, owner, creation date, Client
ID, `events: []`, that table) reads *this org runs a write-capable
upgrade bot* and discloses none of: the private key, the installation
set, or which repositories the `selected_repositories` lists name — the
Client ID being public regardless of how it is stored
([#270](https://github.com/vig-os/org-config/issues/270)). And the
[#256](https://github.com/vig-os/org-config/issues/256) coupling **does
not bind**: this App is named as a ruleset bypass actor or a
status-check app **nowhere** in `otterdog/vig-os/vig-os.jsonnet`
([#81](https://github.com/vig-os/org-config/issues/81) proposed exactly
such a bypass and was closed as superseded by
[vig-os/devkit#1308](https://github.com/vig-os/devkit/issues/1308)), so
unlike `commit-action-bot` / `vig-os-release-app` its visibility is
load-bearing for nothing `apply` does, and making it private would
strand no ruleset — only the `exo-pet` installation keeps it public. The
one accepted cost with a standing control is the installation set: any
account owner can install from the public page, `events: []` means there
is no `installation` event to catch it, and `GET /app/installations`
needs a JWT signed with `DEVKIT_UPGRADE_APP_PRIVATE_KEY`, which no
workflow holds — so the sweep is written into the comment as a step of
**that key's** rotation, the one moment it is free (a stray installation
is inert while the key is sound; what it widens is the blast radius of a
key compromise). **Deliberately not done:** no flip is proposed or
performed, and no UI value is claimed as confirmed — reading *Where can
this GitHub App be installed?* remains a human step, with #261's trap
repeated (the Danger-zone button names the action, not the state); no
`unmanaged-controls.toml` row, for #261's reason — the controls
transport reads authenticated and can never observe the anonymous
discriminator; no second **Visibility** section in a runbook whose own
title scopes it to the org-management App; and no `devkit`-side creation
runbook for this App, which is filed as
[vig-os/devkit#1739](https://github.com/vig-os/devkit/issues/1739)
rather than scoped into this change.
_Changelog truncated to fit GitHub's 65000-char PR-body limit; see
`CHANGELOG.md` on `release/2.0.0` for the full entry._
Description
The stamped workflows read the commit App credentials (
COMMIT_APP_CLIENT_ID/COMMIT_APP_PRIVATE_KEY) from wherever GitHub resolves the names — in practice org or repo secrets, readable by a workflow job on any branch. The commit App typically holds a branch-protection bypass, so any write-access account could push a branch whose workflow mints the token and writes past the default branch's protection. A consumer can close that surface by moving the pair into environment secrets behind a deployment branch policy — but only if the token-minting jobs carryenvironment: <name>, and only devkit can put it there durably, since the workflows are regenerated on upgrade.This adds
DEVKIT_COMMIT_APP_ENVIRONMENT=to.vig-os, default empty. Unset, every workflow renders byte-identically to today. Set,render_commit_app_environment()appendsenvironment: <name>under exactly the token-minting jobs, following the same post-copy anchored-sedpattern asDEVKIT_SYNC_TARGET, with the value written back so upgrades keep it.Three corrections to the issue as filed, all verified in code:
sync-issues.yml:sync,sync-main-to-dev.yml:sync(gitflow only),prepare-release.yml:prepare+rollback,prepare-hotfix.yml:prepare+rollback(gitflow only),release.yml:rollback,release-core.yml:finalize, andpromote-release.yml:reset-sync-mirror— the last one is injected byrender_sync_settingsin mirror mode, so no grep over the templates can see it. Left unbound it would be the only job still minting from org/repo secrets and would break at promote, after a release is published, the moment a consumer moves the pair. Bound; isolated in its own test+feat commit pair.devunder gitflow, not onlymain+release/*:prepare-release/prepare-hotfixdispatch fromdevby default.on.workflow_calldoes not acceptenvironment, and thegithubcontext in a reusable workflow is the caller's, so the key goes onrelease-core.yml'sfinalizejob, not onrelease.yml'score:uses:job. With the pair living only as environment secrets, the caller'ssecrets: inheritcannot satisfyrequired: true, so the render flipsrelease-core.yml's twoCOMMIT_APP_*declarations torequired: false(theRELEASE_APP_*pair stays required, pinned by a test). This is the one behaviour that needs the live proof below before merge.Also: a bound job on a missing environment auto-creates an unprotected one (create it first), required reviewers would inject a second approval into the single-approval train (none), branch policies match ref names (pair with a ruleset restricting who may create
release/*), andprepare-release-extension.ymlis preserved — if a consumer's extension mints the token, they add the key themselves.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/workspace/.vig-osDEVKIT_COMMIT_APP_ENVIRONMENT=with a comment block: what it binds, the create-first and no-reviewers prerequisites, the policy (main+release/*+devunder gitflow), the ref-name limit, the extension noteassets/init-workspace.shDEVKIT_SYNC_TARGET's:^[A-Za-z0-9][A-Za-z0-9._-]*$, ≤ 255 (GitHub documents only the length; the charset is a render-safety guard, documented as such)render_commit_app_environment(): for each of the 9 (workflow, job) pairs,[[ -f ]]+grep -q "^ <job>:$"guards, idempotent, anchoredsed a\emitting a single-quoted scalar (environment: 'commit-app') — the review found that an unquoted name such astrue,noor0755is YAML-typed and would be rejected by GitHub at first dispatch while actionlint stays silent; the charset already forbids', so quoting is unconditional; then therequired: falseflip onrelease-core.yml's twoCOMMIT_APP_*entries only. Called after the sync-issues render; the key is written back for a non-empty valueassets/workspace/.github/workflows/release-core.ymltests/test_commit_app_environment.py(new, 48 tests),tests/test_vig_os_manifest.py,tests/bats/init-workspace.bats(+2)environment:on exactly the expected jobs and no other job in the whole rendered tree; both flips andRELEASE_APP_*untouched; trunk ships 5 bound jobs (nosync-main-to-dev.yml, noprepare-hotfix.yml);DEVKIT_FEATURES_DISABLED=releasebinds onlysync-issues.yml:sync; mirror mode binds the 9th; invalid names (prod/eu,prod eu,-prod, quotes,$(id), backticks,;,&,|,#,{}, 256 chars) refused loudly; YAML-typed names (true,no,0755,1e3) stay strings;.vig-osround-trip. BATS: actionlint over a rendered tree with the knob set, and with knob + mirrordocs/MIGRATION.md,docs/WORKFLOW_SECURITY.md,docs/RELEASE_CYCLE.md,CHANGELOG.md(+ generated mirror)### Addedentry. Both places that describe the reusable-callee secret precedence carry a "verify on your first adoption" caveat, since no devkit train has exercised it yetChangelog Entry
Added
(#1710)
COMMIT_APP_CLIENT_ID/COMMIT_APP_PRIVATE_KEY, which as organization orrepository secrets are readable by a workflow job on any branch. The
commit App normally holds a branch-protection bypass, so that surface let any
account with write access push a branch, mint the token there and write
straight past the default branch's protection — no PR, no required checks
.vig-osknobDEVKIT_COMMIT_APP_ENVIRONMENTrendersenvironment: '<name>'onto exactly those jobs —sync-issues.yml(sync),prepare-release.ymlandprepare-hotfix.yml(prepare,rollback),release.yml(rollback),sync-main-to-dev.yml(sync), mirror mode'srendered
reset-sync-mirrorjob — and on the reusable calleerelease-core.yml'sfinalizejob, whose twoCOMMIT_APP_*workflow_calldeclarations are flipped torequired: falsebecause anenvironment secret cannot arrive through the caller's
secrets: inherit.Empty (the default) renders today's bytes exactly; the value round-trips
across upgrades
job auto-creates an unprotected one), give it a deployment branch policy
admitting
main,release/*and — under gitflow —dev, add no requiredreviewers (a second approval would stall the single-approval train), then
move the secrets.
prepare-release-extension.ymlis yours: if your extensionmints the token, add the key there yourself
Testing
just test)Manual Testing Details
diffof template vs rendered tree with the knob set (gitflow/both): exactly 8environment: commit-appinsertions plus the 2 flips, nothing else; with mirror mode, 9uv run pytest tests/test_commit_app_environment.py tests/test_sync_settings.py tests/test_scaffold_drift.py tests/test_scaffold_lint.py tests/test_vig_os_manifest.py -q→ 149 passed; full suite minus image/integration/bats → 1911 passed, 1 skippedbats -j 4 tests/bats/init-workspace.bats tests/bats/install.bats→ 402 ok, 0 failuresshellcheck -xclean;actionlintclean over rendered trees (knob, knob + mirror);prek run --all-files→ 55 hooks passedChecklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Do not merge before the live proof. Two behaviours cannot be verified locally: (a) a job-level
environmenton aworkflow_callcallee supplyingCOMMIT_APP_*when the caller'ssecrets: inheritdelivers nothing and the declarations arerequired: false; (b) GitHub not rejecting the dispatch for the now-optional secrets. Checklist fordevkit-smoke-test:commit-appfirst. Deployment branch policy (selected branches):main,release/*, plusdevif smoke-test runs gitflow. No required reviewers, no wait timer.COMMIT_APP_CLIENT_IDandCOMMIT_APP_PRIVATE_KEYas environment secrets there, then remove (or rename) the org/repo copies — while both exist,secrets: inheritsatisfies the callee and the run proves nothing.DEVKIT_COMMIT_APP_ENVIRONMENT=commit-appin its.vig-osand run the scaffold/upgrade from this branch; confirmgrep -n -A1 '^ finalize:' .github/workflows/release-core.ymlshows the key and bothCOMMIT_APP_*entries readrequired: false.prepare-release.ymlfromdev(provespreparereads the pair from adev-admitted environment), thenrelease.ymlwithrelease_kind: candidatefromrelease/X.Y.Z— the decisive leg: the callee'sfinalizemust mint the token from its own environment.finalizejob header naming the environment (and a Deployments entry forcommit-apptargetingrelease/X.Y.Z); theGenerate commit app tokenstep succeeding; the date-stamp commit landing onrelease/X.Y.Zas a verified App commit. Failure signatures:Input required and not supplied: private-key/ emptyclient-id(environment secret not reaching the callee — the design would then need the pair passed explicitly), a 401invalid client id, orSecret … is required, but not provided while callingat dispatch (the flip did not take).sync-issues.ymlfrom a throwaway branch outside the policy; the boundsyncjob must be unable to read the credentials.Semver: minor (opt-in feature). Existing consumers see no change until they set the key.
Refs: #1710