## §SELF — miscsubjects capability (paste without context)
**Principle:** Self-explaining payload — no external context required. This _self block is the capability: what it is, how to run it, how to change it, and where to look next.
**Path:** OIP > GCAL > GCAL_EVENTS_UPCOMING
**Capability:** `GCAL_EVENTS_UPCOMING` — Upcoming events on the primary calendar from a start time.
**When to use:** what is on the calendar today or this week.
**RUN NOW (open this URL):** https://miscsubjects.com/api/dispatch?invoke=GCAL_EVENTS_UPCOMING&body=10%7C2026-09-11T00%3A00%3A00Z&share=<TOKEN>
**Example call:** [GCAL_EVENTS_UPCOMING]10|2026-09-11T00:00:00Z[/GCAL_EVENTS_UPCOMING]
- **type · runner:** tool · http · google
- **run it:** Open run_now (URL, fires the example), or POST https://miscsubjects.com/api/dispatch {"key":"GCAL_EVENTS_UPCOMING","body":"10|2026-09-11T00:00:00Z"}. From the router: [GCAL_EVENTS_UPCOMING]10|2026-09-11T00:00:00Z[/GCAL_EVENTS_UPCOMING]
- **inputs:** {"type":"object","properties":{"max_results":{"type":"integer","description":"max results (e.g. 10)"},"rfc3339_start":{"type":"string","description":"RFC3339 start"}},"required":["max_results"],"x-arg-order":["max_results","rfc3339_start"]}
- **outputs:** { ok, result, invocation, yield, _self } — result is this object's output; yield is tokens/cost/material; invocation is the ledgered record.
- **auth · risk:** required · high · approval required
### What this token can do here (computed for: public)
Only moves this credential can take are listed. The server enforces scope regardless; an omitted move would be denied anyway.
- **contract** — GET https://miscsubjects.com/api/dispatch?key=GCAL_EVENTS_UPCOMING&format=markdown → this object's full contract (public docs plane)
- **confirm** — GET https://miscsubjects.com/api/dispatch?confirm=INV_ID → public proof that an invocation happened — no credential needed
### Machine Contract
- Read this article first; do not infer the row shape from memory.
- If acting with a URL-only tool, open run_now after replacing placeholder args.
- If the call returns ran:false or proof.ok:false, read the receipt and repair the failed invocation instead of narrating success.
- If the token denies the call, report the denial exactly; do not switch to a broader action unless the owner supplied a broader token.
### Invocation, Ledger, Repair
- root tree: https://miscsubjects.com/api/dispatch?map=1&format=markdown
- parent system article: https://miscsubjects.com/api/dispatch?map=GCAL&format=markdown
- append-only ledger: https://miscsubjects.com/api/invocations?object_id=GCAL_EVENTS_UPCOMING
- receipt pattern: https://miscsubjects.com/api/dispatch?receipt=inv_ID&share=<TOKEN>
- replay: POST /api/dispatch {"replay":"inv_ID"}
- repair: POST /api/dispatch {"key":"GCAL_EVENTS_UPCOMING","body":"corrected args","repairs":"inv_ID"}
### Troubleshooting
- **unknown key** — Use the did_you_mean links or ask URL; never guess another key. · https://miscsubjects.com/api/dispatch?ask=GCAL_EVENTS_UPCOMING
- **argument/body mismatch** — Read inputs/example_args here, then retry with repairs: inv_ID so lineage closes. · https://miscsubjects.com/api/dispatch?key=GCAL_EVENTS_UPCOMING
- **expired or corrupted token** — Report token_expired/token_corrupted from the response; owner mints a fresh scoped link. · https://miscsubjects.com/api/dispatch?explain=1&share=<TOKEN>
- **tool returned ok:false / exit nonzero** — Do not call it sent. Read the receipt, correct the body, fire a repair. · https://miscsubjects.com/api/dispatch?receipt=inv_ID&share=<TOKEN>
### Logical proof (verify each step)
1. Every capability is an invokable object with its own _self — this block. → https://miscsubjects.com/api/dispatch?key=GCAL_EVENTS_UPCOMING
2. You run it by POSTing to /api/dispatch; in a model turn the router tag is [GCAL_EVENTS_UPCOMING]args[/GCAL_EVENTS_UPCOMING]. → https://miscsubjects.com/api/dispatch?registry=1
3. Every invocation is ledgered with actor, cost, and material/waste. → https://miscsubjects.com/api/invocations?object_id=GCAL_EVENTS_UPCOMING
4. You can ask the build for capabilities in plain language. → https://miscsubjects.com/api/dispatch?ask=Upcoming%20events%20on%20the%20primary%20calendar%20
5. The whole build is one self-describing map, with the terminal key. → https://miscsubjects.com/api/dispatch?build=1
### Where to look next
- **registry** — Every capability, self-describing · https://miscsubjects.com/api/dispatch?registry=1
- **ask** — Ask the build what to use, in plain language · https://miscsubjects.com/api/dispatch?ask=<question>
- **history** — This capability's invocation history — its edges · https://miscsubjects.com/api/invocations?object_id=GCAL_EVENTS_UPCOMING
- **build** — The whole build as one map (terminal key) · https://miscsubjects.com/api/dispatch?build=1
*Self-explaining. Not project knowledge — fetch specifics from the links above.*