Review v0.1 #24
Replies: 3 comments 9 replies
|
Question about §4.4 and §11.1 items 2 and 6. Suppose the PEP expands a group into three lights, and turn_on returns ask for one of them and allow for the other two. The human confirms those three. Before execution, a fourth light is added to the group, and its evaluation also returns ask (say it’s marked critical in the directory). The mandate hasn’t changed. Item 6 only blocks execution on deny or a different digest, so the fourth light would pass that check even though nobody confirmed it. Does item 2 already bind the confirmation to those three resource IDs? I couldn’t find an explicit check that the resolved set is still the same. Could §4.4 say that the approval covers exactly the resolved set, and that executing a different set needs a new confirmation? Or is this already implied by item 2? |
|
@MuriloDPV, something separate from the reviews, and "no" is a perfectly good answer: I just posted a call for implementations. You've read the specification more closely than anyone so far, and you already check things in Python, so I wanted to point you to it directly. If a Python implementation interests you, I'd be glad to set up |
|
Thanks Markus! Accepted the invite. home-mandate-spec is fine for me, keeping it the same as the npm package is good. I’ll start with the harness and the evaluator class, and open issues in spec whenever the text isn’t clear to me. If I get stuck on the tool I’ll ask here or ping you in spec-py. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm about to freeze the formats of the Home-Mandate Specification, and before I do I'd like other eyes on it. This is the place for that review.
What it is
Home-Mandate lets an AI agent act in a smart home only within a mandate: rules per device, area or category and action that say allow, ask (a human confirms on their phone) or deny, with time windows, value limits and a rate limit. Every decision lands in a hash-chained audit log. The specification defines the mandate format, the evaluation rule, the audit log, what the enforcement point must do around the evaluation, and an AuthZEN mapping. It is vendor-neutral; my gateway for Home Assistant is one implementation of it.
v0.1.0-rc.5; Section 1.1 shows how agent, implementation, platform and human work togetherconformance/,cmd/mandate-conformancev0.1.0-rc.4)v0.1.0-rc.10, a gateway between MCP agents and Home AssistantNew in rc.4: in audit mode, a denial that is not enforced no longer takes a confirmation away. If a matching rule asks, the request is asked for first, and the approver is told that the mandate would deny it (§4.6, §11.1). Found in review by Murilo (spec#59).
New in rc.3, mostly from your feedback so far: a resource has a set of areas, so a rule can name a room or a whole floor (§3.4); constraints can list permitted values, and parameters can be strings (§4.5); a mandate can be tried in audit mode before it enforces its denials (§4.6, §11.6); and the security considerations now say plainly that the enforcement point must be the agent's only path (§12).
With
v0.1.0the v0 formats (mandate, audit entry, audit checkpoint) are frozen (§14): after that, an incompatible change needs a new major format. Until then, anything can still change. That's why now is the time.What I'd like you to look at
Everything is welcome, but these parts matter most to me:
confirmsince rc.4. Critical actions stay enforced, switching it on needs a human's confirmation of that exact version. Is there a way to get a weaker mandate into force through it?You don't need to read all of it. A close look at one section helps more than a skim of everything.
How to give feedback
I'll collect what comes in until October 31, 2026, work it into the specification, and then tag
v0.1.0. Findings that need more time go tov0.2, and I'll say so in the thread.Thanks for taking the time.
All reactions