Skip to content

docs(runbooks): provisioning a hosted agent (W2 operator runbook) - #1345

Merged
lilyshen0722 merged 1 commit into
mainfrom
docs/hosted-runtime-operator-runbook
Aug 30, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
docs/hosted-runtime-operator-runbook

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Five-minute operator path for a hosted agent once a model key exists: deploy the worker with its two secrets, register + mint like any BYO agent, provision, verify via /status, deprovision. Failure signatures table maps every lastError the runtime can emit. Known boundaries cross-referenced (#1344, D3.1, compaction).

🤖 Generated with Claude Code

https://claude.ai/code/session_013pc6nGXRS8mHvrwcXMSRDK

@lilyshen0722
lilyshen0722 merged commit 66433aa into main Aug 30, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the docs/hosted-runtime-operator-runbook branch August 30, 2026 02:34
samxu01 pushed a commit that referenced this pull request Sep 26, 2026
…s (TASK-145)

Both removal paths left every grant on a removed connection `active`:
`DELETE /api/integrations/:id` hard-deleted the row (integrations.ts:756)
and the installable path tombstoned it (installableInstallationService.ts),
while `revokeGrant` had exactly one caller — the granter's own route
(grants.ts:424). After the hard delete that route could not act either:
ownership resolves through `findConnection` (grants.ts:257), so each grant on
the connection answered 403 `access_denied`, and nothing recorded a revoke.

One shared step now runs on both paths, before the row moves:
`revokeConnectionGrants` (roomGrantService.ts) addresses a connection by the
row's `_id`, its top-level `installationId` and `config.installationId`,
revokes each grant on it (cascading the lineage) and returns the count. The
installable path calls it once per uninstall, ahead of both the projector loop
and the retired-manifest tombstone.

Two follow-ups from the gate, folded at this head:

* The grants step was guarded by `if (revokedBy)`, which fails in the wrong
  direction — an empty actor skipped the revoke and still reached the delete
  (Vera 74462). The identity is now a floor: no id, no delete, 401. `auth`
  always sets one, so it is unreachable today; it is there so it cannot become
  reachable in silence, and the route suite witnesses it.
* `DELETE /:id` was the one write sink on the router without a limiter —
  `js/missing-rate-limiting` #1345 (open on main, integrations.ts:746) names
  it, while `POST /` and `PATCH /:id` already carry `writeIntegrationsRateLimit`.

Authority already ended at the call boundary — toolBrokerService.ts:464-467
refuses a missing row, `status !== 'connected'` or `revokedAt`, and grants
expire — so this is the revocation record and the granter's remedy, not a live
bypass (tools plan §10.5).
samxu01 pushed a commit that referenced this pull request Sep 26, 2026
…s (TASK-145)

Both removal paths left every grant on a removed connection `active`:
`DELETE /api/integrations/:id` hard-deleted the row (integrations.ts:756)
and the installable path tombstoned it (installableInstallationService.ts),
while `revokeGrant` had exactly one caller — the granter's own route
(grants.ts:424). After the hard delete that route could not act either:
ownership resolves through `findConnection` (grants.ts:257), so each grant on
the connection answered 403 `access_denied`, and nothing recorded a revoke.

One shared step now runs on both paths, before the row moves:
`revokeConnectionGrants` (roomGrantService.ts) addresses a connection by the
row's `_id`, its top-level `installationId` and `config.installationId`,
revokes each grant on it (cascading the lineage) and returns the count. The
installable path calls it once per uninstall, ahead of both the projector loop
and the retired-manifest tombstone.

Two follow-ups from the gate, folded at this head:

* The grants step was guarded by `if (revokedBy)`, which fails in the wrong
  direction — an empty actor skipped the revoke and still reached the delete
  (Vera 74462). The identity is now a floor: no id, no delete, 401. `auth`
  always sets one, so it is unreachable today; it is there so it cannot become
  reachable in silence, and the route suite witnesses it.
* `DELETE /:id` was the one write sink on the router without a limiter —
  `js/missing-rate-limiting` #1345 (open on main, integrations.ts:746) names
  it, while `POST /` and `PATCH /:id` already carry `writeIntegrationsRateLimit`.

Authority already ended at the call boundary — toolBrokerService.ts:464-467
refuses a missing row, `status !== 'connected'` or `revokedAt`, and grants
expire — so this is the revocation record and the granter's remedy, not a live
bypass (tools plan §10.5).
samxu01 pushed a commit that referenced this pull request Sep 26, 2026
…s (TASK-145)

Both removal paths left every grant on a removed connection `active`:
`DELETE /api/integrations/:id` hard-deleted the row (integrations.ts:756)
and the installable path tombstoned it (installableInstallationService.ts),
while `revokeGrant` had exactly one caller — the granter's own route
(grants.ts:424). After the hard delete that route could not act either:
ownership resolves through `findConnection` (grants.ts:257), so each grant on
the connection answered 403 `access_denied`, and nothing recorded a revoke.

One shared step now runs on both paths, before the row moves:
`revokeConnectionGrants` (roomGrantService.ts) addresses a connection by the
row's `_id`, its top-level `installationId` and `config.installationId`,
revokes each grant on it (cascading the lineage) and returns the count. The
installable path calls it once per uninstall, ahead of both the projector loop
and the retired-manifest tombstone.

Two follow-ups from the gate, folded at this head:

* The grants step was guarded by `if (revokedBy)`, which fails in the wrong
  direction — an empty actor skipped the revoke and still reached the delete
  (Vera 74462). The identity is now a floor: no id, no delete, 401. `auth`
  always sets one, so it is unreachable today; it is there so it cannot become
  reachable in silence, and the route suite witnesses it.
* `DELETE /:id` was the one write sink on the router without a limiter —
  `js/missing-rate-limiting` #1345 (open on main, integrations.ts:746) names
  it, while `POST /` and `PATCH /:id` already carry `writeIntegrationsRateLimit`.

Authority already ended at the call boundary — toolBrokerService.ts:464-467
refuses a missing row, `status !== 'connected'` or `revokedAt`, and grants
expire — so this is the revocation record and the granter's remedy, not a live
bypass (tools plan §10.5).
lilyshen0722 added a commit to thantiklermcirony/commonly that referenced this pull request Oct 9, 2026
…s (TASK-145) (Team-Commonly#1922)

Both removal paths left every grant on a removed connection `active`:
`DELETE /api/integrations/:id` hard-deleted the row (integrations.ts:756)
and the installable path tombstoned it (installableInstallationService.ts),
while `revokeGrant` had exactly one caller — the granter's own route
(grants.ts:424). After the hard delete that route could not act either:
ownership resolves through `findConnection` (grants.ts:257), so each grant on
the connection answered 403 `access_denied`, and nothing recorded a revoke.

One shared step now runs on both paths, before the row moves:
`revokeConnectionGrants` (roomGrantService.ts) addresses a connection by the
row's `_id`, its top-level `installationId` and `config.installationId`,
revokes each grant on it (cascading the lineage) and returns the count. The
installable path calls it once per uninstall, ahead of both the projector loop
and the retired-manifest tombstone.

Two follow-ups from the gate, folded at this head:

* The grants step was guarded by `if (revokedBy)`, which fails in the wrong
  direction — an empty actor skipped the revoke and still reached the delete
  (Vera 74462). The identity is now a floor: no id, no delete, 401. `auth`
  always sets one, so it is unreachable today; it is there so it cannot become
  reachable in silence, and the route suite witnesses it.
* `DELETE /:id` was the one write sink on the router without a limiter —
  `js/missing-rate-limiting` Team-Commonly#1345 (open on main, integrations.ts:746) names
  it, while `POST /` and `PATCH /:id` already carry `writeIntegrationsRateLimit`.

Authority already ended at the call boundary — toolBrokerService.ts:464-467
refuses a missing row, `status !== 'connected'` or `revokedAt`, and grants
expire — so this is the revocation record and the granter's remedy, not a live
bypass (tools plan §10.5).
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