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