Skip to content

feat(fleet): placement-record PoC — queue-worker handoff path (#4986) - #10915

Merged
dezren39 merged 2 commits into
mainfrom
queue/14492-4986-placement-poc
Nov 17, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/14492-4986-placement-poc

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Placement-record PoC — queue-worker handoff path (#4986)

Implements the #4986 PoC: a dispatcher-consumable evaluator over the placement framework's policy of record (placement-policy.yaml, PR #6766) that emits the placement record the policy declares — option, rule, pool_read_at, supervision — for ONE dispatch path, the queue-worker handoff. The gate this PoC waited on is cleared: the #2024 synthesis received its orchestrator review today (2026-11-17, accepted as the framework of record, #2024 CLOSED).

What is here

  • pkgs/fleet/placement — Go package: policy loading/validation, the decision-procedure evaluator, and the record builder. Everything is evaluated from the policy data, not a second copy of the table: questions in order (first match wins), the R2 guard's exclusions (which also make R3 unreachable and can skip R8), supervision copied from the chosen option, pool_read_at as "n/a" for the non-quota options the schema names (Actions minutes, Jules) and otherwise held to the B5 measurement gate (≤60-minute read, from the policy's own burn_rules) unless the record carries an explicit B4 reliance, and E1 exceptions (rule: "exception" + exception_id + the chosen option).
  • cmd/placement-record — the CLI: --policy <yaml> --answers <json> prints the record as JSON and exits non-zero when no valid record can be emitted, so a dispatch that cannot produce a record does not proceed unrecorded.
  • Tests run against the checked-in policy of record: every rule path, first-match-wins, guard behavior, the B5 gate (missing/stale/B4), the "n/a" case, and exceptions. go vet clean, gofmt clean, go test ./... green.

Demonstration record (live run, queue-worker triage handoff)

{
  "option": "Muse",
  "rule": "R6",
  "pool_read_at": "2026-11-17T02:38:57Z",
  "supervision": "Self (it is the supervisor class)",
  "task": "queue-worker handoff: triage claim, lane code-a (demonstration for #4986)",
  "guard_r2_excluded_options": ["github-action-jules", "openclaw"],
  "policy_version": 1,
  "evaluated_at": "2026-11-17T02:39:09Z"
}

Deliberately NOT in this PoC

Refs #4986, #2024.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…4986)

Evaluates the placement framework decision table from the policy of
record (placement-policy.yaml, PR #6766) and emits the placement record
the policy declares (option, rule, pool_read_at, supervision) for one
dispatch path: the queue-worker handoff. Decision-procedure order, the
R2 guard exclusions, the B5 measurement gate with explicit B4 reliance,
and E1 exceptions are all evaluated from the policy data, with tests
against the checked-in policy. Not wired into the live queue client or
the OpenChamber dispatcher: that rollout is gated on review of this PoC,
per the #2024 program rule (synthesis review accepted 2026-11-17).
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 02:39
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T02:39:56.191581Z
We couldn’t complete this review. Comment @codex review to try again.
5ca10aa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A positional argument after the flags was silently ignored. Per the
operator script argument contract it is now a usage error, exit 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 merged commit 287441b into main Nov 17, 2026
@dezren39
dezren39 deleted the queue/14492-4986-placement-poc branch November 17, 2026 02:56
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.

2 participants