Repository navigation
fix(turns): a person seated as primary has the agent work in full for them (abilityai/trinity-enterprise#1318) - #4708
Open
trinity-ability wants to merge 1 commit into
Open
trinity-ability wants to merge 1 commit into
trinity-ability wants to merge 1 commit into
Conversation
… them (Abilityai/trinity-enterprise#1318) A turn's reach was decided from two levels: owner or admin, or "shared with". Seats were never read, so the person an agent is built for (seated primary, not its owner) got no shell, none of the owner's MCP servers, no standing work, and no Gemini/Codex turn, on that agent and at every hop. The field case: Mira asked Finance to run its weekly close for its primary; refused. turn_tier_service: a second provider slot, register_primary_seat_provider, asked only about (person, this agent), never the calling agent, so the permission edge between agents never decides reach (ruling 4). _person_tier rates a primary (owner, primary, P) after the owner/admin and the ent#1148 member rule, while the per-agent guardrail primary_reach is on (default, read live, no container recreate). A primary's turn dispatches as P, so the next agent rates P afresh. Ruling 3: managing the agent stays with its owner and admins. The fence lets the agent key in a primary's turn set up standing work (schedules, loops, reminders, events: ruling 6) but still refuses every other owner-tier route (restricts_owner_routes). This narrows today's restriction; nothing that was open closes. Switch off: the primary is a shared person again, and the turn-tier route adds reason "primary_off" so the shell hook, the Gemini/Codex gate and the standing-work fence say the owner turned it off. Older images ignore it. UI: "The agent works in full for its primary person" toggle beside the visitor switch, shown only with the assignments module. The Permissions tab says the person's reach also applies on the called agent. User docs state what each seat gives at run time. Submodule bump carries the provider. Tests: test_ent1318_primary_reach.py (33). Mutations: dropping the fence split turns test_a_primarys_turn_may_not_manage_the_agent red; dropping PRIMARY from _is_the_owners_own turns the hop test red; dropping the reason parsing in turn_scope turns the runtime-gate case red. Hook cases added to test_ent926_turn_tier_hook.py run in CI (that file needs Linux /proc; its 39 local failures are identical on clean dev). Needs a base-image rebuild for the switch-off wording; the reach itself is backend-only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
merge-train 2026-11-21: ejected — needs intent. The operator ruled at Gate 1 that this rides once a primary's reach is fenced. Rides the next train once fixed. Ruling (operator, merge-train Gate 1): eject until fenced. Before merge:
Also found (fix alongside):
Enterprise #1336's red seed is only the missing OSS seam (passes 9/9 against this tree) — not a finding. |
|
Resolve by merging |
|
Resolve by running |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes abilityai/trinity-enterprise#1318 (private tracker, closed manually at release). Submodule side: Abilityai/trinity-enterprise#1336.
What
A turn's reach was owner/admin or "shared with"; seats were never read, so the person seated as primary on an agent (not its owner) got no shell, none of the owner's MCP servers, no standing work and no Gemini/Codex turn, on that agent and at every agent-to-agent hop.
turn_tier_service: a second provider slot,register_primary_seat_provider, asked only about (person, this agent), never the calling agent, so the permission edge never decides reach. A primary rates(owner, primary, P)after the owner/admin and member rules while the per-agent guardrailprimary_reachis on (default; read live, no recreate). A primary's turn dispatches as P, so each hop re-rates.restricts_owner_routes). This only narrows today's restriction.turn-tierroute addsreason: "primary_off"so the hook, the Gemini/Codex gate and the standing-work fence say the owner turned it off. Older images ignore the field.architecture/security.md.Tests
tests/unit/test_ent1318_primary_reach.py(33). Mutations: dropping the fence split, dropping PRIMARY from the hop carry, and dropping the reason parsing each turn a test red.test_ent926_turn_tier_hook.py(that file needs Linux/proc; its 39 local failures are identical on clean dev).test_ent9*,test_ent1*,test_29*, guardrails, SEC: User and Agent Enumeration via differential API responses #186): only failures that also fail on clean dev or pass on rerun.Deploy
Needs a base-image rebuild for the switch-off wording. The reach itself is backend-only.
Follow-up
A header-less
curlwith the agent key during a primary's turn dispatches as the owner (as for visitors and members today); to be filed.🤖 Generated with Claude Code