Skip to content

The execution model's specifications take the logon rulings of 2026-10-22: the runner is a logon the service manager makes, the broker holds no credential, and the macOS keychain is named #1138

Closed

Description

@David-Noble-at-work

The Command Runner. Also under #520, Authorization, and #1118, The DevLore Broker, whose specifications it touches.

Problem

On 2026-10-22 the owner ruled, in conversation with the execution-model session (schedule #1127), on what running code as another account is for, who may make a logon, and where the credentials live. The three specifications say older things: 6.2 § 4.1 has a root broker that forks and setuids a service-account runner on demand; 2.7 § Open 3 says the broker runs as root; 6.1 keeps authorization and impersonation in one breath; nothing names the macOS login keychain, which will fail the first daemon runner that calls gh, git push over HTTPS or codesign.

The rulings

  1. Running code as another account is about network and operating-system resources in three ways: accessing them, where grants convey by the account's logon; protecting them by identity, a specific kind of sandbox, as when test code is remoted selectively; and claiming what a body of code produces, which the account does. Devlore's own resources, its state, bus, brokers and offers, are a fourth kind to which the account conveys nothing and only the authz token opens: authorization is separated from impersonation.
  2. It is the logon, and the logon is to an account. sudo is a means to a logon, not the word.
  3. The service manager makes the logons (launchd, systemd, the Service Control Manager); each runner is a service registered to run as its account; the broker is unprivileged and devlore is never a key store; the OS holds the credential (a group managed service account or virtual account on Windows, a keytab for Kerberos). On Unix, when no service is registered for the account and the broker's service account may, the fallback is sudo -u <account> of the runner binary under a sudoers rule.
  4. The macOS login keychain exists only in a GUI session. Two kinds of macOS runner, declared: a LaunchAgent in gui/<uid> for a human account, a LaunchDaemon for a service account, which never has the keychain. Service accounts keep secrets as files and tokens, not in a password-unlocked keychain; signing uses a temporary keychain per run; a keychain-dependent command on a daemon runner fails at authorization with a sentence, never a dialog or a hang; iteration 3 carries the acceptance test.

Solution

Each ruling applied in place in docs/architecture/6.1-authorization.md, 6.2-process-pool.md and 2.7-control-plane.md, in a dated section the body is read against, with the open questions it closes marked and the one it opens, whether a unit's account is fixed when the unit opens, recorded as proposed, not ruled. #528's question, the on-demand token path, dissolves: there is no on-demand row.

Done when

  • The three specifications carry "Ruled 2026-10-22" sections and the body matches them
  • 6.2 § 4.1's table has no root broker and no setuid row; 2.7 § Open 3 no longer says the broker runs as root
  • The macOS keychain rule and its iteration-3 acceptance test are in 6.2
  • The status companions say what moved

Plan and design documents

Kind Document
Plan docs/plans/chore/1138-logon-rulings.md
Design docs/architecture/6.2-process-pool.md
Design docs/architecture/6.1-authorization.md
Design docs/architecture/2.7-control-plane.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions