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
7 changes: 7 additions & 0 deletions .github/ci-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ selections, top-level defaults, and agent model/fallback fields. Disabled
providers are still checked: disabling a seat today must not make a later
re-enable silently restore metered exposure.

It also runs the `opencode-go.*` seating-guard regression fixtures
(`bin/check-opencode-go-seating.test.mjs`) on pull requests using Node 24.
Those fixtures use a synthetic SQLite store and pin the exact-id credential
and post-config-change successful-attempt assertions; CI never attempts to
read the laptop's live OpenCode database. The live-store check is the hourly
`opencode-go-seating-guard.timer` on the laptop.

An explicitly approved one-off use must carry a standalone comment directly
above that specific selection, with a non-empty reason:

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/opencode-config-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- name: Run guard fixtures
run: node --test bin/check-opencode-metered-providers.test.mjs
- name: Check canonical OpenCode config
run: node bin/check-opencode-metered-providers.mjs .opencode/opencode.jsonc
# #5611: regression fixtures cover the exact-id credential requirement
# and the successful-attempt window. The live-store check runs on the
# laptop timer; CI must not pretend it can read the laptop's database.
- name: Run opencode-go seating fixtures
run: node --test bin/check-opencode-go-seating.test.mjs
Loading
Loading