# Delegated scheduling reservations and roster integration

Status: implemented on feat/agent-access; independent GPT-6 Astra specification
review approved the shared scheduling design, and GPT-6 Astra
`notes_calendar_editing` approved this Calls integration after source review and
eight effective behavioral mutations. No deployment or main merge is claimed.

## Contract

`calls_reserve_schedule` requires calls:write, the configured team, a canonical
nonzero UUID client_id, and a lowercase 64-character SHA-256 fingerprint. It
returns `{reserved:true}`. The shared gateway fingerprints the versioned typed
workflow request before any agenda, meeting or event effect. Calls stores only
purpose-separated keyed coordinate/content fingerprints. The coordinate binds
both issuers, Home subject, client, team, operation and UUID. A changed request
conflicts. Reservation creates no content, invitation or local agent identity.

The writer reservation, immutable authority marker, linked person and original
credential checks precede lookup/write. A final authority check runs for both
fresh and completed reservations. Existing schedule rows prevent adoption of a
missing marker. Each destination app's atomic create receipt owns progress;
there is no central workflow-content store or cross-app transaction.

## Reconciliation with current main

Current main's roster mode remains authoritative. Delegated requests require an
already linked local account via ResolveOn; browser Home-only provisioning is
not a delegated side effect. Initial membership captures one roster Access.
Writer and response checks retain that same lease, and transaction-local stores
retain the team runtime. No roster network fetch happens under the writer.
The real response writer clamps deadlines to the captured lease, including the
host's lease when disclosing an invitation. Final checks follow database reads.

A meeting attributed to `connection:<digest>` stands on the stored operator
person, just as an existing local agent's meeting stands on its operator.
Invitation reads check the host's current standing and preserve the exact live
sealed invitation. An unknown roster answer is unavailable, never nonmembership.
Agent team configuration must match roster team configuration before migration.
Existing non-team admission behavior remains covered by the delegated suite.

## Evidence

New tests cover concurrent reservation retries, changed request conflicts,
client isolation, keyed-only storage, absence of content side effects, marker
loss, transaction rollback, team removal/expiry, and connection host resolution.
The independent review adds direct fresh/replay final-writer tests, transaction
team-guard rollback, real socket deadline clamping and a direct post-query lease
check that cannot be masked by the transport's independent guard.

Eight selected faults each caused behavioral failures: accepting changed
fingerprints; dropping final reservation authority; adopting orphaned schedule
rows; losing the team runtime in reservation or meeting transactions; omitting
socket deadline clamping; omitting the post-query standing check; and losing
connection-operator host resolution. Restored focused race tests pass.
The enumerated team-write gate includes both delegated write operations.

The shared three-app HTTPS acceptance uses this real Calls handler and sealed
store alongside real Docs and Calendar. It passes lost-response resumption,
exact replay, changed request conflict, readable cross-app references and
revocation. This is private fixture evidence, not live four-client acceptance.

Final restored-tree validation: `TMPDIR=/tmp make ci` passed (vet, formatting,
all Go packages and migration agreement); `TMPDIR=/tmp make race` passed all
internal packages, including the call hub and end-to-end call tests. The
independent reviewer approved the final write-inventory/documentation delta.
