Skip to content

fix(orchestration): accept user authority relayed by the parent - #278

Merged
lukemaj merged 2 commits into
mainfrom
fix/276-relayed-parent-authority
Nov 23, 2026
Merged

lukemaj merged 2 commits into
mainfrom
fix/276-relayed-parent-authority

Conversation

@lukemaj

@lukemaj lukemaj commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What changed: A delegated child now treats its parent thread's brief and follow-ups as the user's instruction within the parent's authority, and the orchestration reference defines how a parent relays a Human Gate approval.
Why: A computer-use child refused a credential sign-in the user had approved through the parent, classifying the parent's message as unverified outside text.
So what: Independent review runs on this head; the user decides the merge.

Closes #276

Changes

  • global/AGENTS.md Judgment: two sentences: the delegating parent thread is the user's channel, not outside text; a relayed Human Gate approval counts only when it quotes the user's words and names the exact operation and target. Needed in the core because a child applies the core before any reference loads.
  • skills/operations/references/orchestration.md "Workers and recovery": relay rule (verbatim user words, exact operation and target; approval held at dispatch goes in the original brief, later approval in a follow-up), child acts without re-asking, parent writes no contradicting limits, no authority wider than the parent's, outside sources stay data.
  • Version 17.6.0 -> 17.6.1 (patch) via versionctl prepare.

Proof

  • python3 -m unittest discover -s tests -p 'test_*.py': 515 tests, 1 failure, test_every_host_falls_back_to_required_reads_past_the_limit (host='muse'). It fails identically on a clean origin/main worktree; filed as test_every_host_falls_back_to_required_reads_past_the_limit fails for host=muse on main #277.
  • python3 -m unittest tests.test_operations_contract: 23 OK.
  • python3 -m unittest discover -s tools/versionctl/tests -p 'test_*.py': OK.
  • bin/versionctl release-check: release candidate OK: v17.6.1 at c5ae2cf.
  • Full suite ran on abea455; c5ae2cf changed only two wording lines, revalidated with tests.test_operations_contract (OK) and the GitHub version check.
  • Independent review: round 1 failed on abea455 (two findings, fixed in c5ae2cf); round 2 passed on c5ae2cf, review/independent success.
  • Behavioral proof (a child accepting a relayed credential approval) stays pending until observed in ordinary use, per the repository's AGENTS.md.

Elon record

  • Requirements and who asked: The user, 2026-11-23 (Delegated children must accept user authority relayed by their parent #276): a child must accept authority the parent relays from the user.
  • Deleted: A separate approval token or signing mechanism; a separate Human gates clause (the Judgment sentence plus orchestration suffice).
  • Bottleneck: No rule said a parent's relayed authority counts, so the child defaulted to treating it as third-party input.
  • Checked myself: Read the Judgment line and "Workers and recovery"; ran the suites above on this head and the failing test on origin/main.

Website impact: none (instruction wording only; no public site content changes).

🤖 Generated with Claude Code

A computer-use child refused a credential sign-in the user had approved
through the parent, treating the parent's brief as unverified outside text.
The core now classifies the delegating parent as the user's channel, and
orchestration defines how a parent relays a Human Gate approval.

Closes #276

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@lukemaj lukemaj left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review of abea455fd30f09fa8b76b3b328b52095a9d10b63 against #276. Two blocking findings.

  1. Make the Human Gate relay condition visible to the child before it acts. global/AGENTS.md:115 tells a child to treat its parent's brief or follow-up as the user's instruction. The verbatim approval and exact operation and target requirement appears only in orchestration.md:67. The operations routing row covers sending a delegation, dependency coordination, and handoff recovery. A fresh computer-use child carrying out a standalone task can receive a bare instruction to use a stored credential without reaching that reference. The core gives it no way to distinguish that instruction from a properly relayed approval. Keep the parent classification beside the outside-text rule and explicitly route the receiving child to the relay requirements before relying on parent-relayed Human Gate approval.
  2. Require the original brief to carry approval already received. orchestration.md:69 says “preferably in the original brief.” #276 makes this a parent-side duty. Require the original brief to quote and scope approval the parent already holds at dispatch. Keep the follow-up path for approval received later.

The orchestration text otherwise covers the direct-parent channel, exact operation and target, no repeat approval, no contradictory limits, and the outside-text boundary. The Judgment placement is appropriate for an always-loaded classification, and the stated authority cap aligns with the existing Human Gates. The wording uses no em dashes, and the 17.6.1 patch bump matches all five version mirrors and the changelog. No other findings. GitHub's validation check passed on this head. The separately tracked baseline failure in #277 is outside this diff, and behavioral Live Verification stays pending.

Review of #278 found the core let a child act before seeing the verbatim
and exact-target requirement, and the brief placement was optional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukemaj

lukemaj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Independent review round 2 at c5ae2cf32defd61cdae91d3dfdd9c9afd764f0da, relayed unchanged from the reviewer (it could not write):

Round 2 passes. No blocking findings. The always-loaded rule requires quoted user approval for the exact operation and target, and the orchestration reference requires approval held at dispatch in the original brief. The child can proceed without re-asking, within the parent's authority, and outside text remains data. Both Round 1 findings are resolved. (global/AGENTS.md L115-118, orchestration.md L67-75)

Non-blocking: The PR description still says "preferably in the original brief" and cites test evidence from abea455. The 17.6.1 version files and changelog agree, and GitHub's version check passed on the reviewed head. Behavioral verification in ordinary use remains pending.

@lukemaj

lukemaj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Agent cost not posted: agent-observer publish --task toolboxmd/agentsmd#278 --repo toolboxmd/agentsmd --pr 278 returned "nothing to publish: no sessions in scope".

@lukemaj

lukemaj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Agent work on this PR

Estimated cost at least $1.35 · 37 responses · 12 sessions · 40 min wall time

Model Responses Tokens Estimated cost
claude-opus-5-5 (claude, medium) 27 2,842,597 $1.12
grok-4.7-build-fast (grok, medium) 1 2,697,091 unknown
gpt-6.2-sol (codex, high) 9 468,286 $0.23

Flags: 1 human correction · 1 large tool output · 4 repeated reads · 1 unpriced response

Details: snapshot, prices, coverage, counters
  • Task toolboxmd/agentsmd#278: outcome unknown (recorded acceptance only; a finished process never implies it).
  • Proof: fix(orchestration): accept user authority relayed by the parent #278
  • Snapshot 2760cbf956f8c60b5c3b1ab76ce2fcd9f3092238ccecb89f187bf32d72519443, records up to 2026-11-23 15:41 UTC.
  • 12 sessions on claude, codex, grok; AgentsMD 17.5.0, 17.6.0.
  • The total includes work shared with 3 other tasks, counted whole in each, so sums across PRs overlap.
  • Not counted: 324 responses ($12.55) in sessions shared with other PRs that worked in no single PR's checkout.
  • 71 responses in these sessions worked on other PRs and are counted there.
  • Totals reconcile with the measured sessions: yes. Evidence complete: yes.
  • Prices: list-price estimate from T3 local rate table (path withheld) as of 2026-11-23, schedule e0b622075ed520963533178b06e4d7aff7e4952bea0dd54af351ba16d6a20360. Unknown prices stay unknown, never zero.
    • T3 LiteLLM rate table when present; bundled schedule covers the rest.
    • Model price sources: T3 local rate table (path withheld).
    • Unpriced: unknown model (1).
  • Harness-reported cost: none reported.
  • Usage totals are not billing. Subscription spending is separate and is never posted as spend.
  • Crashed runs are counted separately: 0.

Token counters by model (native counter semantics; never added across semantics):

  • claude-opus-5-5 (claude, medium), claude counters: input excludes cache, output includes thinking: input 54; cache-read 2,792,470; cache-write 36,868; output 13,205; reasoning 1,730; harness total 2,842,597.
  • grok-4.7-build-fast (grok, medium), grok counters: input includes cached, output includes reasoning: input 2,679,298; cache-read 2,367,872; cache-write 0; output 17,793; reasoning 10,142; harness total 2,697,091.
  • gpt-6.2-sol (codex, high), codex counters: input includes cached, output includes reasoning: input 464,457; cache-read 386,048; cache-write 0; output 3,829; reasoning 1,115; harness total 468,286.

Generated tokens (reasoning and other output are disjoint; other output includes code, tool calls and replies):

Model Reasoning Other output Reasoning share Split known for
claude-opus-5-5 (claude, medium) 1,730 11,475 13.1% 27 of 27
grok-4.7-build-fast (grok, medium) unknown unknown unknown 0 of 1
gpt-6.2-sol (codex, high) 1,115 2,714 29.1% 9 of 9

Usage by work phase (this task's own responses):

Phase Model Responses Input Cache read Cache write Output Reasoning Total Priced part
unclassified claude-opus-5-5 (claude, medium) 27 54 2,792,470 36,868 13,205 1,730 2,842,597 $1.117754
unclassified gpt-6.2-sol (codex, high) 9 464,457 386,048 0 3,829 1,115 468,286 $0.233713

Recorded activity by phase (observations, not separate token bills):

Phase Tool calls MCP results Reads Skill invocations File changes Failed tool results
unclassified 19 10 2 unavailable 0 3

Selected rates (USD per million tokens). These rates value the report at the selected schedule date; they do not establish historical prices or subscription spending.

Model Input tier Input Cache read Cache write Other output Reasoning
claude-opus-5-5 all 4 0.2 5m: 5; 1h: 8 20 20
gpt-6.2-sol all 2 0.1 2.5 10 10
grok-4.7-build-fast all unknown unknown unknown unknown unknown

Other output and reasoning are priced without double counting inclusive native output. Missing rates remain unknown.

Local measurement from native records; usage totals are not billing. Updated in place by agent-observer publish.

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.

Delegated children must accept user authority relayed by their parent

1 participant