Skip to content

fix(gate): read identity.gates at base only, with a notice when the change adds it - #5526

Merged
lex00 merged 1 commit into
mainfrom
fix/gate-identity-rule-absent-at-base
Nov 23, 2026
Merged

lex00 merged 1 commit into
mainfrom
fix/gate-identity-rule-absent-at-base

Conversation

@lex00

@lex00 lex00 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Closes #5508

A change that adds chant.workspace.json for the first time no longer supplies its own identity gate rule. When a base exists and has no declaration, the gate and the release rule read none, so the change is gated under the default policy: an agent's permit counts only beside a person's approval. The gate, chant approve and the release commands print identity-gates-not-at-base when the change's own file names the gate, so the adopter sees why the new rule did not apply. With no base branch at all the working tree is still read, as write scope and agent sessions do.

Local gate: build, typecheck and lint pass. Unit tests, run once with four workers on a branch that also holds #5515's fix: 37,357 passed, 1 failed. The failure is promote-stage-waves.test.ts going over its 5s time budget on a loaded machine (#5521), which this change does not touch.

@lex00 lex00 added bug Something isn't working epic:ci-hardening Hardened images, scans, compliance evidence, and the gaps a regulated CI team needs closed labels Nov 23, 2026
@lex00
lex00 enabled auto-merge November 23, 2026 04:37
@lex00
lex00 added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 8a53e32 Nov 23, 2026
10 checks passed
@lex00
lex00 deleted the fix/gate-identity-rule-absent-at-base branch November 23, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working epic:ci-hardening Hardened images, scans, compliance evidence, and the gaps a regulated CI team needs closed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gate: the identity rule falls back to the working tree's chant.workspace.json when the base has none

1 participant