oficina / meet Public

Clone
git clone https://amadan.net/oficina/meet

Plain git — no account needed to clone.

Download

Download this file

1# Delegated scheduling reservations and roster integration
2
3Status: implemented on feat/agent-access; independent GPT-6 Astra specification
4review approved the shared scheduling design, and GPT-6 Astra
5`notes_calendar_editing` approved this Calls integration after source review and
6eight effective behavioral mutations. No deployment or main merge is claimed.
7
8## Contract
9
10`calls_reserve_schedule` requires calls:write, the configured team, a canonical
11nonzero UUID client_id, and a lowercase 64-character SHA-256 fingerprint. It
12returns `{reserved:true}`. The shared gateway fingerprints the versioned typed
13workflow request before any agenda, meeting or event effect. Calls stores only
14purpose-separated keyed coordinate/content fingerprints. The coordinate binds
15both issuers, Home subject, client, team, operation and UUID. A changed request
16conflicts. Reservation creates no content, invitation or local agent identity.
17
18The writer reservation, immutable authority marker, linked person and original
19credential checks precede lookup/write. A final authority check runs for both
20fresh and completed reservations. Existing schedule rows prevent adoption of a
21missing marker. Each destination app's atomic create receipt owns progress;
22there is no central workflow-content store or cross-app transaction.
23
24## Reconciliation with current main
25
26Current main's roster mode remains authoritative. Delegated requests require an
27already linked local account via ResolveOn; browser Home-only provisioning is
28not a delegated side effect. Initial membership captures one roster Access.
29Writer and response checks retain that same lease, and transaction-local stores
30retain the team runtime. No roster network fetch happens under the writer.
31The real response writer clamps deadlines to the captured lease, including the
32host's lease when disclosing an invitation. Final checks follow database reads.
33
34A meeting attributed to `connection:<digest>` stands on the stored operator
35person, just as an existing local agent's meeting stands on its operator.
36Invitation reads check the host's current standing and preserve the exact live
37sealed invitation. An unknown roster answer is unavailable, never nonmembership.
38Agent team configuration must match roster team configuration before migration.
39Existing non-team admission behavior remains covered by the delegated suite.
40
41## Evidence
42
43New tests cover concurrent reservation retries, changed request conflicts,
44client isolation, keyed-only storage, absence of content side effects, marker
45loss, transaction rollback, team removal/expiry, and connection host resolution.
46The independent review adds direct fresh/replay final-writer tests, transaction
47team-guard rollback, real socket deadline clamping and a direct post-query lease
48check that cannot be masked by the transport's independent guard.
49
50Eight selected faults each caused behavioral failures: accepting changed
51fingerprints; dropping final reservation authority; adopting orphaned schedule
52rows; losing the team runtime in reservation or meeting transactions; omitting
53socket deadline clamping; omitting the post-query standing check; and losing
54connection-operator host resolution. Restored focused race tests pass.
55The enumerated team-write gate includes both delegated write operations.
56
57The shared three-app HTTPS acceptance uses this real Calls handler and sealed
58store alongside real Docs and Calendar. It passes lost-response resumption,
59exact replay, changed request conflict, readable cross-app references and
60revocation. This is private fixture evidence, not live four-client acceptance.
61
62Final restored-tree validation: `TMPDIR=/tmp make ci` passed (vet, formatting,
63all Go packages and migration agreement); `TMPDIR=/tmp make race` passed all
64internal packages, including the call hub and end-to-end call tests. The
65independent reviewer approved the final write-inventory/documentation delta.
66