Skip to content

ci: run operations-agent:contracts:check in the contracts gate - #578

Merged
SwayingWindmill merged 1 commit into
mainfrom
ci/register-operations-agent-contracts-check
Oct 17, 2026
Merged

SwayingWindmill merged 1 commit into
mainfrom
ci/register-operations-agent-contracts-check

Conversation

@SwayingWindmill

Copy link
Copy Markdown
Owner

Summary

operations-agent:contracts:check verifies apps/hvac-web/src/api/generated/operationsAgentSessions.gen.ts against contracts/http/operations-agent-sessions-public.openapi.json, but no gate ran it — contracts:check (generate-platform-contracts.mjs) does not cover this file, so the generated Agent Session client could drift from its contract unnoticed. Register it in the shared contracts profile so every domain that runs contracts.core (including operations-agent) checks it.

 contracts.core
   npm run contracts:check
+  npm run operations-agent:contracts:check
   npm run ownership:check
   ...

Evidence

  • Before: node scripts/run-domain-task.mjs --domain=operations-agent --layers=contracts --dry-run=true lists no operations-agent:contracts:check.
    After: the plan lists npm run operations-agent:contracts:check right after npm run contracts:check.
  • On main (7cf446f8): npm run operations-agent:contracts:check → Operations Agent Session generated contract is current.
  • npm run pr:gates:test → 21/21 pass.

Merge Danger

Door: two-way

Blast Radius: gates

Adds one fast, dependency-free node check to every contracts gate run; it fails only if the generated client is stale.

The check verifies the generated Agent Session client against its
OpenAPI contract, but no gate ran it: contracts:check does not cover
operationsAgentSessions.gen.ts, so the client could drift unnoticed.
Register it in contracts.core next to contracts:check.
@SwayingWindmill
SwayingWindmill merged commit b2145ae into main Oct 17, 2026
8 checks passed
@SwayingWindmill
SwayingWindmill deleted the ci/register-operations-agent-contracts-check branch October 17, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant