Calendar

Read a selected Google Calendar's bounded events or free/busy window through a governed connection, preserving coverage and time semantics for downstream planning.

You’re reading version 0.1.11. Go to the current version

Overview

Use this skill when a decision needs current events or busy intervals from a Google calendar the operator has explicitly selected. The default events runner reads expanded event instances; freebusy reads only busy intervals. Both are read-only google-calendar connector operations with an exact calendar target and a window no longer than 30 days. They cannot create, edit, delete, RSVP to, or invite anyone to events.

The portable skill owns Calendar evidence semantics, not credentials or connector selection. A local, self-hosted, third-party, or Runx-hosted connector is compatible when it implements the declared operations and scopes. Keep connection identifiers, credentials, tenant details and private calendar choices in the operator's binding and inputs, never in this package.

In the manual

Runners

  • assistant-brief
  • events
  • freebusy
  • normalize-supplied

Declared by its execution profile. Read the profile

SKILL.md

Google Calendar

Use this skill when a decision needs current events or busy intervals from a Google calendar the operator has explicitly selected. The default events runner reads expanded event instances; freebusy reads only busy intervals. Both are read-only google-calendar connector operations with an exact calendar target and a window no longer than 30 days. They cannot create, edit, delete, RSVP to, or invite anyone to events.

The portable skill owns Calendar evidence semantics, not credentials or connector selection. A local, self-hosted, third-party, or Runx-hosted connector is compatible when it implements the declared operations and scopes. Keep connection identifiers, credentials, tenant details and private calendar choices in the operator's binding and inputs, never in this package.

Choose a bounded read

Authorize the intended Google account for events.read and/or freebusy.read. The hosted Google binding requests calendar.events.readonly for event details and calendar.events.freebusy for busy-only reads; Analytics or Search Console access does not grant Calendar access. Supply the exact calendar ID plus start and end instants with explicit UTC offsets. primary selects the connected account's primary calendar. For multiple calendars, run the selected IDs separately and preserve each result's coverage.

The events runner expands recurrence within the selected window and has a finite page budget. Use freebusy when only availability is relevant, so event titles are not collected. A live runner returns provider readback; normalize-supplied only normalizes already collected bytes and says supplied_result/not_called. Keep the prior receipt with that packet if it is to be treated as prior provider evidence.

Interpret the evidence

The returned calendar_context binds calendar ID, window, observation time, recurrence and cancellation identity, all-day dates with exclusive end, transparency, self-response and busy intervals. Private event titles are removed. An inaccessible calendar, provider error, stale result or incomplete event page means unknown coverage, never a free slot. Event absence establishes nothing unless every selected calendar window is complete and fresh. An all-day event covers local dates through the day before its exclusive end; do not turn it into a guessed UTC meeting time. A cancelled recurring instance is not a live commitment.

The assistant may use complete current evidence for meeting preparation and attention timing. The assistant-brief runner takes an exact scheduled goal occurrence, selected calendar and the calling host's actual observed_at instant with an explicit UTC offset, reads an upcoming bounded window, and returns the common operator work result. The window starts at the later of the occurrence due time and observed_at, so a wake after sleep reads the upcoming period. The host supplies this execution time; the deterministic worker never infers it from its own clock. Partial coverage holds that occurrence; it never means the calendar is free. A separate owning scheduling or conversation skill may propose times only from complete fresh coverage and private working-hour/buffer policy. This skill neither offers slots nor sends messages. Event mutations belong to a separately governed future capability.

Recover and compose

If a page cap makes an event window partial, narrow the requested window into disjoint smaller windows, read them under the same selected calendar authority, and merge only complete slices by event instance identity. Repeating the same capped query cannot prove completeness. If a provider error or expired grant caused the gap, repair the binding and refresh the affected window. Do not add a mirrored event database, sync-token store, webhook loop or assistant-owned case for routine polling.

For example, read primary from 2026-10-04T00:00:00+11:00 through 2026-10-11T00:00:00+11:00, then pass the context and receipt to the assistant. If that read is partial, split the week into smaller bounded reads before concluding there are no other commitments.

Published execution profile

The execution profile published with 0.1.11, shown as its exact bytes.

Runners
  • assistant-brief
  • events
  • freebusy
  • normalize-supplied
Profile digestsha256:bbb24f2788bfe7c03f5f01b115d38211f1c5f5261f752d2b317d19038db082fc
skill: google-calendar
version: "0.1.11"
catalog:
  kind: graph
  audience: public
  visibility: public
  category: ops
  role: canonical
  provider: google/calendar
  execution: read
  completion: provider_readback
  approval: none

input_definitions:
  calendar_id:
    type: string
    required: true
    description: Exact selected Google calendar ID; primary selects the connected account's primary calendar.
    schema: { pattern: '^(?:primary|[A-Za-z0-9][A-Za-z0-9._@+%-]{0,254})$' }
  time_min:
    type: string
    required: true
    description: Inclusive window start with explicit UTC offset.
    schema: { format: date-time }
  time_max:
    type: string
    required: true
    description: Exclusive window end with explicit UTC offset, at most 30 days after start.
    schema: { format: date-time }
  provider_result:
    type: object
    required: true
    description: Prior Google Calendar provider result, to normalize without another read.
    schema: { additionalProperties: true }

harness:
  files: [fixtures/support/composed.graph]
  cases:
    - name: normalizes-complete-private-and-cancelled-events
      runner: normalize-supplied
      operator_journeys:
        - mode: composed
          request: Reuse already read Google Calendar evidence for the assistant without another provider call.
          expected_outcome: A bounded context packet preserves cancellation and removes private titles; it does not claim fresh provider readback.
          prior_evidence: [An existing calendar read result and its separate receipt.]
          must_not_repeat: [Do not call Google Calendar again.]
      inputs:
        kind: events
        calendar_id: primary
        time_min: "2026-10-04T00:00:00Z"
        time_max: "2026-10-05T00:00:00Z"
        provider_result:
          calendar_id: primary
          time_min: "2026-10-04T00:00:00Z"
          time_max: "2026-10-05T00:00:00Z"
          fetched_at: "2026-10-04T01:00:00Z"
          complete: true
          events:
            - { event_id: private-1, revision: v1, status: confirmed, visibility: private, summary: hidden, all_day: true, start: "2026-10-04", end: "2026-10-05" }
            - { event_id: cancelled-1, status: cancelled, recurring_event_id: series-1 }
      expect:
        status: sealed
        steps: [normalize]
        step_outputs:
          normalize:
            subset:
              calendar_context:
                data:
                  decision: ready
                  coverage: complete
                  provider_status: not_called
                  events:
                    - { event_id: private-1, all_day: true }
                    - { event_id: cancelled-1, status: cancelled }
        receipt: { schema: runx.receipt.v1 }
    - name: partial-freebusy-stays-unknown
      runner: normalize-supplied
      operator_journeys:
        - mode: standalone
          request: Check whether a selected Google Calendar is free during the next day.
          expected_outcome: Mark an incomplete provider result partial, without proposing availability.
      inputs:
        kind: freebusy
        calendar_id: primary
        time_min: "2026-10-04T00:00:00Z"
        time_max: "2026-10-05T00:00:00Z"
        provider_result:
          calendar_id: primary
          time_min: "2026-10-04T00:00:00Z"
          time_max: "2026-10-05T00:00:00Z"
          fetched_at: "2026-10-04T01:00:00Z"
          complete: false
          errors: [{ reason: notFound }]
          busy: []
      expect:
        status: sealed
        steps: [normalize]
        step_outputs:
          normalize:
            subset:
              calendar_context:
                data: { decision: partial, coverage: partial, provider_status: not_called }
        receipt: { schema: runx.receipt.v1 }

connectors:
  google/calendar:
    operations: [events.list, freebusy.query]
runners:
  assistant-brief:
    description: Read the upcoming window of a selected calendar for one scheduled goal occurrence and return the assistant's work result for it.
    inputs:
      calendar_id: { definition: calendar_id }
      occurrence_uri:
        type: string
        required: true
        description: Exact scheduled goal occurrence admitted by the local operator.
        schema: { pattern: '^runx://assistant/goal/[a-z0-9_-]+/schedule/sha256:[0-9a-f]{64}/occurrence/[0-9]+$' }
      observed_at:
        type: string
        required: true
        description: Actual host observation instant for this execution, with an explicit UTC offset.
        schema: { format: date-time }
      window_hours:
        type: integer
        required: true
        description: Bounded upcoming calendar window in hours.
        schema: { minimum: 1, maximum: 168 }
    result_from: [finish]
    steps:
      - id: window
        inputs: { calendar_id: $input.calendar_id, occurrence_uri: $input.occurrence_uri, observed_at: $input.observed_at, window_hours: $input.window_hours }
        tool: { module: google-calendar.mjs, export: prepareAssistantWindow }
        outputs: { calendar_window: object }
      - id: read
        skill: .
        runner: events
        inputs:
          calendar_id: $steps.window.calendar_window.calendar_id
          time_min: $steps.window.calendar_window.time_min
          time_max: $steps.window.calendar_window.time_max
      - id: finish
        inputs:
          calendar_id: $input.calendar_id
          occurrence_uri: $input.occurrence_uri
          window: $steps.window.calendar_window
          calendar_context: $steps.read.calendar_context
        tool: { module: google-calendar.mjs, export: finishAssistantBrief }
        outputs: { work_result: object }
        artifacts:
          named_emits: { work_result: work_result }
          packets: { work_result: runx.work_outcome.v1 }
  events:
    description: Read a selected calendar's event instances in a window of at most 30 days, recurrence expanded and private titles removed.
    default: true
    inputs:
      calendar_id: { definition: calendar_id }
      time_min: { definition: time_min }
      time_max: { definition: time_max }
    examples:
      - { calendar_id: primary, time_min: "2026-10-04T00:00:00Z", time_max: "2026-10-11T00:00:00Z" }
    result_from: [normalize]
    steps:
      - id: read
        operation: google/calendar/events.list
        result_fields: [calendar_id, time_min, time_max, events, complete, fetched_at]
        input:
          calendar_id: $input.calendar_id
          time_min: $input.time_min
          time_max: $input.time_max
      - id: normalize
        inputs:
          kind: events
          source_status: provider_readback
          calendar_id: $input.calendar_id
          time_min: $input.time_min
          time_max: $input.time_max
          provider_result: $steps.read.provider_operation.result
        tool: { module: google-calendar.mjs, export: normalizeCalendar }
        outputs: { calendar_context: object }
        artifacts:
          named_emits: { calendar_context: calendar_context }
  freebusy:
    description: Read only a calendar's busy intervals in a window, when availability is all that matters.
    inputs:
      calendar_id: { definition: calendar_id }
      time_min: { definition: time_min }
      time_max: { definition: time_max }
    result_from: [normalize]
    steps:
      - id: read
        operation: google/calendar/freebusy.query
        result_fields: [calendar_id, time_min, time_max, complete, errors, busy, fetched_at]
        input:
          calendar_id: $input.calendar_id
          time_min: $input.time_min
          time_max: $input.time_max
      - id: normalize
        inputs:
          kind: freebusy
          source_status: provider_readback
          calendar_id: $input.calendar_id
          time_min: $input.time_min
          time_max: $input.time_max
          provider_result: $steps.read.provider_operation.result
        tool: { module: google-calendar.mjs, export: normalizeCalendar }
        outputs: { calendar_context: object }
        artifacts:
          named_emits: { calendar_context: calendar_context }
  normalize-supplied:
    description: Normalize calendar results already collected elsewhere, without calling Google.
    inputs:
      kind:
        type: string
        required: true
        description: Event or freebusy result type.
        schema: { enum: [events, freebusy] }
      calendar_id: { definition: calendar_id }
      time_min: { definition: time_min }
      time_max: { definition: time_max }
      provider_result: { definition: provider_result }
    result_from: [normalize]
    steps:
      - id: normalize
        inputs:
          kind: $input.kind
          source_status: supplied_result
          calendar_id: $input.calendar_id
          time_min: $input.time_min
          time_max: $input.time_max
          provider_result: $input.provider_result
        tool: { module: google-calendar.mjs, export: normalizeCalendar }
        outputs: { calendar_context: object }
        artifacts:
          named_emits: { calendar_context: calendar_context }

Published package and test evidence.

This exact version passed its recorded harness run: 8 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.1.11
Recorded result8 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:7929a20762fa0b7b2b9fedc1abc46b814eed2a53bec9043e9c07a514677eddc8sha256:b507142a82945787156027e98ae30a973276ffc0864b1a5ce42863f44429e73dsha256:75ccb64c673d89ee02dca3fc5e9b1f056de9daf5f14b145cae3cb3ba020e0bbfsha256:d959aa169e8dc5548838e8663b6f7bcaab71211e81367e99842d1554d15b7f8fsha256:513bd9172be223e38306c2fc4faecc8ed1a7556207cf4eebdea6e39ba6ad6b3asha256:638c7962f88f6573d555242a50624d018a3e6c1741b515a5d37d4ea89cad7eacsha256:992a948cc9325b27f8bf4cbc8f6ded74cb9d32d1292270e575440b67c2518d83sha256:37048b0d2f49a31933664e85247d3367633f4951b4511e5e9ccf78de3804e87b

Package identity

Published revision0.1.11
Content digestsha256:b10f2d1253cc8066c229e7931eb597c9d27576b2b4f5b2398cbdf489248ec61a
SKILL.md digestsha256:061e292a36133413256418e849a063e60d5f8550d2a7318eba2be892b6eeae9d
Execution profile digestsha256:bbb24f2788bfe7c03f5f01b115d38211f1c5f5261f752d2b317d19038db082fc
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.11ViewingContent digest sha256:b10f2d1253cc8066c229e7931eb597c9d27576b2b4f5b2398cbdf489248ec61a
  2. sha-d817eae1aebfContent digest sha256:d817eae1aebf3d29e7be5aedd798b6d32a06c83d3333c1d9139c80a577c7ac2e
  3. sha-14b1c4e3d192Content digest sha256:02eef90895c87a90458752ea27b2029cea880695c266839e834230a9e2dfbd5e
  4. sha-acdcc0043284Content digest sha256:edbb58ea49de37f8f32dc2ffd1a6d54d97c7d0b06420544522b67880afc3a38c