Skip to content

ownership: refuse agent owners, recover legacy agent canvases, and add 2026-12-04 changelog - #651

Merged
dglazkov merged 2 commits into
mainfrom
fix/person-only-ownership
Dec 4, 2026
Merged

dglazkov merged 2 commits into
mainfrom
fix/person-only-ownership

Conversation

@dglazkov

@dglazkov dglazkov commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Why

Agents (session/proxy actors outside PERSON_HARNESSES) previously stamped project.createdBy when creating canvases. On a hosted home such as isocan.corp.goog, the browser badge held the user's own actor rather than the proxy session's agent actor — so setting the link to read swept the human down to read-only, locked the Share dialog out, and namesTheCreator blocked explicit owner grants.

What changed

  • Server enforcement (AGENT_OWNER / agent-owner): Refuse project.create, POST /api/spaces, and POST /api/groups when the resolved acting actor is classified as "agent" in actorKinds.
  • Client owner resolution (resolveOwnerActor): Resolve the badge's human owner (home:person, another person-harness claim, or ~/.isocan/identity.json under home:person) before creating or administering rooms, spaces, or groups across @isocan/api, @isocan/cli, and @isocan/voice-agent.
  • Legacy agent-owned canvas recovery & floor symmetry:
    • Share claimsCanvasCreator between admittingGrant and heldRung so legacy agent-created canvases resolve own for any person who ownsAgent the creator.
    • Check the creator/space floor before returning any matched grant below edit (read/view).
    • Elevate WS hello and GET /api/projects/:id/canvas capability to own for legacy agent-owned canvases when the badge belongs to the agent's human owner, and return false from namesTheCreator when createdBy is an agent.
  • Changelog: Added docs/changelog/2026-12-04.md and updated docs/changelog/README.md.

Verification

  • npx vitest run test/changelog.test.ts test/changelog-drain.test.ts: 14/14 passed.
  • npm run typecheck && npm run lint: passed (exit 0).
  • npm run test:deep: 957/970 files passed (11 cloudstore emulator skips; remaining 2 failures were packages/cli/test/browser.test.ts EACCES in this environment and a 20s load timeout in packages/mcp/test/known-address.test.ts, which passed standalone 1/1 in 28.20s).

Agents (session/proxy actors outside PERSON_HARNESSES) previously stamped
project.createdBy on canvases they created, locking the human owner out
once a read link swept their browser badge and blocking explicit owner grants
via namesTheCreator.

- Refuse agent actors on project.create, POST /api/spaces, and
  POST /api/groups with AGENT_OWNER (agent-owner).
- Resolve the badge's human owner via resolveOwnerActor across @isocan/api,
  @isocan/cli, and @isocan/voice-agent before creating or administering rooms,
  spaces, or groups.
- Share claimsCanvasCreator across admittingGrant and heldRung so legacy
  agent-created canvases resolve own for the human who ownsAgent the creator,
  check the creator/space floor before returning below-edit grants, elevate
  ws/canvas snapshot capability for legacy agent-owned canvases, and allow
  explicit email owner grants when createdBy is an agent.
@dglazkov
dglazkov requested a review from dalmaer December 4, 2026 20:26
@dglazkov
dglazkov merged commit 509e188 into main Dec 4, 2026
12 checks passed
@dglazkov
dglazkov deleted the fix/person-only-ownership branch December 4, 2026 20:40
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.

2 participants