Skip to content

Contract fields for a linked child's secret requests and 'unknown'; a secret ends a wait (seam PR, #808) #817

Open

Description

@scuttletoby

Follow-up to #808 row 1 (PR #815), from its lens: #815 (comment)

What: a seam PR on packages/contracts/src/orchestratorMcp.ts (an upstream file) so a linked child's prompts are real fields, not only text in next.

OrchestratorMcpDelegateTaskResult gets two optional fields:

  • pendingSecretRequests: itemId, label and reason (never a value), with the same caps and folding as fork/remoteTaskPrompts.ts (label 80, reason 300, one line, ids on the strict pattern).
  • An "unknown" marker, e.g. promptsKnown: false, when the machine there cannot be asked (unlinked, unreachable, older, refused). Today hasPendingQuestion: false / pendingApproval: null plus a next saying "unknown" is the only signal.

It also adds a fork seat in upstream's endsTaskWait (apps/server/src/mcp/OrchestratorMcpService.ts), so that a secret request ends a blocking wait.

Why: a blocking wait cannot end on a secret today. After the #815 fix round, a secret always goes to the parent as a queued message, and the wait never gets it. Once this lands, the watcher (fork/remoteTaskPromptWakes.ts) can hand secrets to a live wait too, as it does for questions and approvals.

How: follow the seam steps in docs/fork/updates.md. Do a list-only PR first if the file has to move or gain lines, then the change. Keep the fork lines at one seat call each.

Activity

  1. scuttletoby commented on Nov 22, 2026

    @scuttletoby
    OwnerAuthor

    Notes for step 2 (from #968 item 4): merge by 2026-12-06 or re-date the announcement (since 2026-11-22, 14 days); forkOrchestratorMcp.ts must not import values from orchestratorMcp.ts (a circular import would spread undefined); delegateChecks.seatOrder.test.ts reads the service text and will need an update; usagePacingNote could move into the new fork fields.

    🤖 Generated with Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions