Repository navigation
Conversation
The agent spawns its own image as `mairu platform-helper --fd <n>` over a socketpair created with the marker gid raised. The helper serves only a parent that created the pair and, when hardened, holds the marker; the agent trusts the child it exec'd. Calls fail closed while no verified helper runs, and the helper is respawned at most once per 30 s. The `platform-helper` feature builds the same helper as a standalone `mairu-platform-helper` binary without the `cli` code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
sorah
force-pushed
the
hardening/platform-helper
branch
from
October 30, 2026 23:02
41f2ad8 to
8df6330
Compare
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.
Implements docs/specs/006-platform-helper.md.
mairu.platform.PlatformHelperservice and thePlatformServicestrait; the agent spawns its own image asmairu platform-helper --fdover a socketpair created with the marker gid, keeps a pidfd, and respawns it at most once per 30 s. Every call fails closed when no verified helper runsgetppid(), marker gid when hardened) and exits with status 3 otherwiseplatform-servicesandplatform-helperfeatures, and a standalonemairu-platform-helperbinary withoutclicode (2.9 MB release); CI builds it on Linux/macOS and adds it to the size report (5 MB ceiling)GetAgentStatus/doctorshow the helper and merged capabilitiesConcrete backends (polkit, integrity stores, notifications) come in later layers; this one serves fallback services only.
Verified in Docker (41 checks): helper verified under a hardened agent, kill and respawn, rogue callers refused (hand-started, unhardened parent, non-parent), fate sharing with the agent.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM