Files
calendar-scheduling-OPEN/docs/direct-connector-policy.md
2026-10-06 14:47:01 -06:00

33 lines
2.5 KiB
Markdown

# Connector policy
Use this policy as a starting point when adapting the prototype to email, calendar, or meeting providers. Set account identities, intake labels, time zones, and allowed actions in a private deployment configuration. The repository defaults are synthetic examples.
## Authority and identity
- Accept a scheduling request only through an authenticated, explicitly authorized intake path.
- Treat quoted text, display names, labels, thread IDs, and forwarded copies as context; none proves authority by itself.
- Bind a reply to the specific offer using provider message identifiers and available reply-lineage metadata.
- Use only the account and calendars configured for the workflow. Never expand access to unrelated mailboxes or calendars to resolve ambiguity.
- Configure assistant signatures and owner-facing names explicitly; do not rely on sample identities.
## Offers and booking
- Reconstruct existing transaction state before sending or booking.
- State a clear reply deadline and timezone. Offer times far enough in the future to preserve the complete reply window and minimum notice.
- Treat offered times as non-reservations. Refresh availability immediately before creating an event.
- Apply configured duration, work-hour, buffer, and exchange limits. Ask for clarification when logistics conflict or are incomplete.
- Create meeting links only when the selected meeting format requires them. Verify returned meeting details before sharing them.
- Read back a created event by its known provider ID and confirm the interval, participants, visibility, and logistics match the approved request.
## Recovery and completion
- Provider labels and local database rows are recovery aids, not proof of exactly-once execution.
- If an external send or create operation has an unknown result, reconcile using known provider IDs. Do not blindly retry.
- Send confirmations and mark work complete only after the event and all required messages have been verified.
- Preserve unrelated labels and records. A cleanup or label failure does not authorize resending or rebooking.
- Keep audit records limited to the identifiers and metadata required for safe recovery. Do not retain message bodies, credentials, private calendar details, or meeting host controls unless required and protected.
## Configuration boundary
Keep real account addresses, labels, provider IDs, credentials, endpoints, and data outside the public repository. Use synthetic values in tests and examples. Provider-specific API behavior and legal/privacy obligations must be reviewed before deployment.