Skip to content

Open runtime: requires: ['record-context'] mounts the record-context service, so get_record_context exists without hand wiring #37189

Backlog

Description

@os-bob

maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby

Filing gate: ③ maintainer-directed (topic child). Source: topic #36996, M2. An independent Fable review of rows 5–10 (2026-11-25) found that no card assembles the service. Maintainer 2026-11-25: 「同意你的建议」.
Grading: area:ai · Feature · p2 (topic child; without it an app that declares packs gets no tool) · reach: every open deployment that ships aiContexts · evidence: read.

维护者速读

What

  1. A capability token record-context:
    • in packages/spec/src/kernel/platform-capabilities.ts (PLATFORM_CAPABILITY_TOKENS / PLATFORM_CAPABILITY_PROVIDERS);
    • and in packages/core/src/capability-providers.ts#CAPABILITY_PROVIDERS, mapped to @objectstack/service-record-context's RecordContextServicePlugin.
  2. Readers in the same PR (ADR-0049): packages/cli/src/commands/serve.ts and @objectstack/verify's bootStack.
  3. A host that already mounts the plugin by hand keeps its own (the Serve.providesCapability rule); the runtime adds no second one.
  4. Without the token, nothing changes: no tool, no service.
  5. Docs: where get_record_context and aiContexts are documented, add one line on the token.

Acceptance

  • A stack with requires: ['record-context'] and one pack: over MCP, tools/list carries get_record_context, and a call returns the pack.
  • A stack without the token: no tool.
  • A host that mounts the plugin by hand gets no second mount.
  • An artifact boot (os serve on a compiled app) with the token serves the tool.
  • Container run per AGENTS.md.

Out of scope

Blocked-by: #37140 (the package and plugin land there; PR #37173).
Parent: #36996. Reader: the runtime and capability lane (packages/core, packages/spec/src/kernel, packages/cli).
Dedupe: RecordContextServicePlugin 0 · record-context service mount 95 (none on mounting this service; #37103 is knowledge) · requires record-context 221 (no capability card for it).

Activity

  1. added theissue type on Nov 25, 2026
  2. added
    priority:p2
    area:ai
    on Nov 25, 2026
  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-25T03:33Z

  4. added
    pm:blocked
    on Nov 25, 2026
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    Contributor
  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    2026-11-25T06:41Z pm:queue → pm:blocked, at seat 3's request (mailbox #36743, 7154907865). Mounting the record-context service now would expose a tool that finds no pack (#37243).

    Blocked-by: #37243

  8. added
    pm:blocked
    and removed
    pm:queue
    on Nov 25, 2026
  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    Contributor
  10. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 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

    area:aipm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions