Skip to content

docs(specs): propose plugin platform RFC for OQ-011/OQ-012/OQ-013 - #9

Merged
Xuepoo merged 1 commit into
mainfrom
feat/plugin-platform-rfc
Aug 25, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
feat/plugin-platform-rfc

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

CarryCtx task: CTX-0018 — Close OQ-011/OQ-012/OQ-013 as proposed RFC material.

User/contract outcome

Adds docs/specifications/plugin-platform-rfc.md (status draft, marked proposed in-text) as one coherent specification covering:

  • Plugin API v1 surface (OQ-011): host namespaces, commands + lazy-load replay semantics, events, declarative UI subset, services, settings/storage, lifecycle generations, and API versioning policy.
  • Capability/manifest model (OQ-012): bitty-plugin.toml schema with validation limits, capability identifier grammar over the normative families, deny-by-default grants, manifest-hash-bound grant records, consent prompt rules, update permission diffs, and revocation workflow.
  • Event pipeline (OQ-013): lifecycle/observation/interception classes, four v1 interception points (veto-only), bounded queues with coalescing and drop accounting, fail-open timeouts, and no hot-path events.

Each area includes candidate options with trade-offs and explicit open points; a security-traceability table maps proposals to normative invariants 2/3/4/8/10 of the security overview and to threat IDs T-06/T-07/T-10/T-12/T-13 and risk IDs R-006–R-009, R-013, R-015–R-017, R-021/R-022. A verification plan and acceptance criteria state what would close the three open questions.

Affected docs

  • New: docs/specifications/plugin-platform-rfc.md (sidebar_order: 14, unique in directory)
  • docs/specifications/README.md: drafts table row
  • docs/decisions/open-questions.md: OQ-011/012/013 Next-artifact cells now link the draft; State stays Open (pointer-only per work order)
  • docs/decisions/index.md: candidate decision queue bullet now points at the draft

Security impact

Proposal only; no normative control weakened or downgraded. Aligns with plugins-untrusted baseline: no ambient authority, no native in-process plugins, read-only-by-default automation access, presentation-not-Terminal-Truth, safe-mode skip. Security-reviewer review is required before any acceptance.

Validation evidence

Run in .worktrees/feat-plugin-platform-rfc after just fmt (prettier 3.9.6):

  • just links — Checked links; 72 files validated
  • just metadata — Checked metadata; 72 files validated
  • just language — Checked language; 72 files validated
  • just markdownlint — 0 issues
  • just check full CI-parity run also passed (fmt-check, agents, hygiene, actionlint)

Dependencies and follow-ups

  • CarryCtx blocker recorded: task start for CTX-0018 was refused because strong dependency CTX-0016 is still in_progress; task state remains planned. This PR carries the dispatched implementation regardless.
  • Isolation/budget mechanisms and enforceable thresholds remain owned by OQ-014 (CTX-0019); package/supply-chain integrity by OQ-021/022.

Add docs/specifications/plugin-platform-rfc.md as a proposed (draft)
specification consolidating Plugin API v1 surface, capability/manifest
model with grant storage and revocation, and event pipeline classes
with batching, timeout, drop, and backpressure rules. Includes option
trade-offs, security traceability to normative invariants and T-/R-IDs,
a verification plan, open points, and acceptance criteria.

Register the draft in the specifications index, point the decision
register candidate queue at it, and link OQ-011/012/013 rows
pointer-only while keeping their state Open.
@Xuepoo
Xuepoo force-pushed the feat/plugin-platform-rfc branch from 73c9490 to 5885772 Compare August 25, 2026 18:20
@Xuepoo
Xuepoo merged commit a338e19 into main Aug 25, 2026
2 checks passed
@Xuepoo
Xuepoo deleted the feat/plugin-platform-rfc branch August 25, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant