Skip to content

Commit 46b1cf5

Browse files
committed
docs(adr): tighten two of this week's notes after the hand-over re-read
- ADR-0151 "Leaves unchanged" note: D5's refusal stands, but its reason 2 predates the ruling that puts an in-product agent id in the audit row's performed_by beside OAuth client ids; the note no longer says all of D5's reasons stand. - ADR-0126 section 1.1 note: the capability body is judged by the type's schema entry (metadata-type-schemas.ts); the save-door refusals file holds the name refusals only. Claude-Session: https://claude.ai/code/session_01L6bhgVHgvc56HEUTseuotH Co-authored-by: Claude <noreply@anthropic.com>
1 parent 85857b2 commit 46b1cf5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎docs/adr/0126-packaged-metadata-customization-model.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ them into three tiers by flags × item provenance (`packages/metadata-protocol/s
9494
> (`packages/spec/src/kernel/metadata-plugin.zod.ts`) reads `allowRuntimeCreate: true`,
9595
> `allowEnvironmentOverlay: false` and `supportsOverlay: false`, the tier-B posture. A brand-new
9696
> capability can be saved in the environment, and a packaged declaration cannot be re-declared or
97-
> re-scoped there. The save door refuses a platform capability name and a name another holder
98-
> already declares before anything is stored, and judges the body by `CapabilityDeclarationSchema`
97+
> re-scoped there. The save door judges the body by `CapabilityDeclarationSchema` (422, the type's
98+
> entry in `packages/spec/src/kernel/metadata-type-schemas.ts`), and refuses a platform capability
99+
> name and a name another holder already declares before anything is stored
99100
> (`packages/metadata-protocol/src/protocol-save-door-refusals.ts`). An unmanaged copy (ADR-0131
100101
> D6) copies an app's capabilities and renames them with the copy when it takes a new namespace
101102
> (`packages/metadata-protocol/src/package-namespace-rename.ts`). Ruled by the maintainer on

‎docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- **Builds on**: [ADR-0090](./0090-permission-model-v2-concept-convergence.md) D10 (the principal taxonomy, agent rules 1–5, the 2026-09-16 note that an API key is its owner's credential, and the 2026-09-20 status note that reserves `performedBy` room for a run id), [ADR-0118](./0118-non-user-actor-contract.md) (the non-user actor contract: D1 null for the system, D2 absence is never system, D5 no actor-kind column, D6 no polymorphic actor), [ADR-0092](./0092-sys-user-profile-field-delegation.md) (the identity-table write guard), [ADR-0093](./0093-tenancy-mode-and-membership-lifecycle.md) D7 (the service-account exemption it deferred), [ADR-0135](./0135-identity-and-access-architecture.md) D2/D4 (user populations and how a row is marked), [ADR-0101](./0101-mcp-stdio-principal-admission.md) (an API key is the stdio principal), [ADR-0108](./0108-membership-grade-is-not-a-capability-channel.md) (membership grade is not a capability channel).
77
- **Amends**: ADR-0090 D10 — a second provenance for an agent principal, an agent that is its own authorization subject, and the reading of rule 4 for it (see [D5](#d5--attribution-the-account-is-the-subject-so-its-id-is-the-name-on-the-row)). ADR-0093 D7 — the deferred service-account row: the marker now exists, and an account is exempt from the membership reconciler (see [D1](#d1--an-ai-service-account-is-a-sys_user-row-of-kind-agent)).
88
- **Leaves unchanged**: the 2026-09-16 note (a person's API key is that person's credential, never an agent); rule 5 and its credential-kind × target-door table; ADR-0118 D1, D2, D5 and D6; the meaning of `ExecutionContext.performedBy` (the OAuth client that acted for a person) and the room it reserves; the OAuth agent path end to end; ADR-0073's automation principal, which stays a separate identity.
9-
> **Note (2026-11-20, #35731) — `performedBy` has a second producer.** The bullet above gives the meaning of `ExecutionContext.performedBy` as the OAuth client that acted for a person. Since PR #34018 (`2539ad98`, #33786) `packages/spec/src/kernel/execution-context.zod.ts#performedBy` names a second, server-constructed producer: the in-product AI path, acting for the signed-in person, sets `agentId`, with `conversationId` and, when the person confirmed the call, `confirmationId`, each stamped only after the server resolved it for that person. The `/mcp` OAuth door still sets `clientId`. See ADR-0090's note of this date under D10. D5's reasons stand: the in-product AI writes AS the person, so the subject stays the person in `userId`, with no `onBehalfOf`; an AI service account still carries no `performedBy`; and `clientId` and `agentId` are separate keys, so no key of the envelope holds two id namespaces. The room reserved for a run id is unchanged. Ruling: the account owner on objectstack-ai/cloud#3826 (「3826 照建议(征询版)」), no new actor vocabulary. The bullet and the Status line are left as written.
9+
> **Note (2026-11-20, #35731) — `performedBy` has a second producer.** The bullet above gives the meaning of `ExecutionContext.performedBy` as the OAuth client that acted for a person. Since PR #34018 (`2539ad98`, #33786) `packages/spec/src/kernel/execution-context.zod.ts#performedBy` names a second, server-constructed producer: the in-product AI path, acting for the signed-in person, sets `agentId`, with `conversationId` and, when the person confirmed the call, `confirmationId`, each stamped only after the server resolved it for that person. The `/mcp` OAuth door still sets `clientId`. See ADR-0090's note of this date under D10. D5's refusal stands: an AI service account still carries no `performedBy`, and the in-product AI writes AS the person, so the subject stays the person in `userId`, with no `onBehalfOf`. On the envelope `clientId` and `agentId` are separate keys, but the audit row's `performed_by` now holds both kinds of id, by the ruling below; D5's reason 2 predates it, and the `performedBy` docblock says how a reader tells the two apart. The room reserved for a run id is unchanged. Ruling: the account owner on objectstack-ai/cloud#3826 (「3826 照建议(征询版)」), no new actor vocabulary. The bullet and the Status line are left as written.
1010
- **Consumers**: `@objectstack/platform-objects` (two `sys_user` columns), `@objectstack/plugin-auth` (the registration, key and lifecycle doors; the session and credential refusal), `@objectstack/core` (key admission carries the kind; the shared assembler stamps the principal), `@objectstack/plugin-security` (the agent ceiling at evaluation and at assignment), `@objectstack/plugin-audit` and `@objectstack/spec` (the hook surface, O4), and in `objectstack-ai/cloud` the licence layer and the console (cloud ADR-0116 D7, cloud#3886, cloud#3820).
1111
- **Amended** (2026-11-10, [#32060](https://github.com/objectstack-ai/objectstack/issues/32060)): a dated note under [What builds on this](#what-builds-on-this) records what O3 and O4 shipped. The status line above is left as it is.
1212
- **Amended** (2026-11-15, [#33689](https://github.com/objectstack-ai/objectstack/issues/33689)): a dated note under [D3](#d3--its-authority-its-own-grants-under-the-agent-ceiling) records that rule 3 holds unchanged under the amended action-confirmation contract. The status line above is left as it is.

0 commit comments

Comments
 (0)