Skip to content

feat(runtime): final headless integration proving ipc+agent+plugin+package together (CTX-0033) #59

Closed

Description

@Xuepoo

Implements CarryCtx task CTX-0033.

Scope

Follow-up to spine completion: prove end-to-end headless integration.
Deliver integration test (or tests/final_integration.rs) driving Runtime with LayoutNode + PluginHost + Package verification + IPC framing + Agent SideQueue together headlessly:

  • PTY bytes -> VT parse -> State -> layout allocations -> GridRenderer DrawList -> package verify before staging -> plugin-host event publish -> IPC frame encode/decode (256 KiB bound, Framer) -> agent SideQueue observation enqueue -> tick present via headless software surface.
  • Asserts deterministic RGBA (bit-identical replay) and bounded drops (cold queue, plugin side queue, IPC channels, agent SideQueue all bounded drop-oldest with counters).
  • No window/GPU/LLM I/O. Keep headless seam (no display/GPU), document what remains env-gated (real GPU present, real MCP transport via stdio/socket, real PTY spawn).

Acceptance

  • Integration test exercises all boundaries together headlessly on Linux CI and windows target check.
  • Bounded queue invariants verified: drops counted, oldest evicted, capacities honored per CTX-0031/0032/0027 contracts.
  • Deterministic RGBA: replay same bytes yields identical buffer length, generation, fills/glyphs.
  • Package verification before staging: tampered artifact/manifest blocked fail-closed via verify_install; staging gated by is_staging_allowed.
  • IPC framing: 256 KiB bound, Framer incremental, IpcEndpoint pending/timeout deterministic.
  • Agent SideQueue: ADR-0003 rule 4, untrusted TerminalOutput labeling visible, stub dispatch deterministic.
  • Headless only (adapter/real MCP transport remain env-gated and documented honestly in test docs).
  • #![forbid(unsafe_code)] preserved (workspace lint), no window/GPU deps introduced in crate graph unless via dev-dependencies for test.
  • just check green + Windows target check.
  • PR links this issue and CTX-0033, branch ctx-0033/feat-final-integration, stops at IN_REVIEW with handoff to opencode. Never completes task directly.

Refs: CTX-0033

Activity

  1. added this to the v0.0.1 milestone on Aug 29, 2026
  2. added
    feat
    area:ipc
    area:package
    area:runtime
    area:agent
    area:plugin
    P0
    on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0area:agentarea:ipcarea:packagearea:pluginarea:runtimefeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions