Repository navigation
Description
Spawn narrows, resume never widens.
mecatl. After #367, independent of #368.
Hazards
Facts that were expensive to find and that nobody re-derives on the way to implementing. Each is verified against code.
Authority is re-derived from the session store on resume, which makes the store the
root of trust — see #374. A project-tier definition taking an operator
definition's name is a privilege swap with no wire involved.
Acceptance criteria
- Authority is a value carried on the run, not a lookup against a mutable source at point of use.
- Every spawn seam intersects. None unions, and none accepts a request to widen.
- Resume re-derives from persisted state and cannot come back wider than what was persisted.
- Definition-name resolution has a fixed precedence in which the operator tier wins, and a
lower-tier definition cannot occupy a higher-tier name.
Proof
The same properties, adversarially, with an actor and an ordering. A property-level criterion can go green while being false; these are what stop that.
- An injected parent spawns a child asking for more than it holds; the child gets the intersection.
- A resumed child cannot come back wider, including across a restart.
- A project definition cannot claim an operator definition's name.
Slices
Decomposition is the implementer's job; these are the natural seams, not a mandate.
- Authority as a runtime value.
- Narrowing at the three spawn seams.
- Re-derivation on resume.
- The definition name collision.
Reasoning
The design this comes from, both on main:
- docs/agent-identity-model.md — the inbound side: who is acting, and how mecatl would identify them.
- docs/agent-identity-outbound.md — the outbound boundary: acting for a user against an external system.
Every hazard above is stated in full here rather than linked, so this issue stands on its own.
Activity
[-]EP5: an agent cannot widen its own authority[/-][+]An agent cannot widen its own authority[/+]