Skip to content

workspace: person-attributed records and gates rest on forge identities or signer keys, not hud's roster #3163

Closed

Description

@lex00

Part of #3166.

Problem

When a person answers a decision point, approves a gate, reviews or asks for work in a box, the record's by comes from hud's roster: the signed-in player, named by hud's own identity file and invite links (hud proxy/identity-file.ts, requireVerifiedPlayer). That's a fine convenience for who is looking at a box. It isn't an identity a record should rest on: a different orchestrator or a copied repo can't verify it, and ws-052 already puts identity and sessions in hud as UI, not as provenance.

Proposal

  • A person-attributed record (by, decided_by, gate resolutions, point answers, review verdicts) names an identity the spec can check: a forge identity (GitHub/GitLab/Forgejo user) mapped through the declaration's principal classes (write scope: principal classes a plugin defines (#2524 D5 domain classes) #3080), or a signer key in .chant/allowed_signers (level 3).
  • hud and studio map their session to that identity at sign-in (planter already signs people in through a GitHub App) and pass it to chant's write commands; chant records it, and level 3 signs it when a signer is configured.
  • Gates that need a person (ship, rollback, an infra apply) can require attested provenance from the declared class, so a hud invite link alone can't clear one.

Done when

No record carries a hud-only player id as its actor, and a gate can be configured to require a signed approval from a declared class.

Depends on #3080.

Activity

  1. added
    design
    area:workspace
    provenance
    boundaries
    on Oct 1, 2026
  2. lex00 commented on Oct 1, 2026

    @lex00
    ContributorAuthor

    From the boundaries audit (#3166): identity is the keystone for every approval path (infra gates via #3170, factory points, behold#472), so this should land early. Name the owner of the mapping from a session (hud player, studio/planter sign-in, behold login) to the declared identity: proposal is chant owns the mapping rules and record fields, each surface performs the mapping at sign-in and passes the identity to chant's write commands.

  3. lex00 commented on Oct 3, 2026

    @lex00
    ContributorAuthor

    Decision recorded as ws-080 in #3346. Here is what a surface passes, for hud#738.

    Who owns what: chant owns the forms, the record fields and the rules. The surface (hud, studio's planter, behold) signs the person in and maps the session to a principal at sign-in. chant never authenticates anyone and never calls a forge.

    A principal is one of these:

    • A forge identity: github:<login>, gitlab:<login>, or <forge>@<host>:<login> (forgejo, gitea, or a self-hosted github/gitlab, e.g. forgejo@codeberg.org:alice). Case is folded. The surface verifies it at sign-in through the forge's OAuth or GitHub App user token (GET /user gives the login). chant records it as given, so on its own it is the surface's word.
    • A signer: a principal .chant/allowed_signers lists at base. Usually this is the same string as the forge identity, e.g. github:alice ssh-ed25519 AAAA…. A seal made with that key attests it.
    • A role holder: an agent, runner or service principal at base, or one a declared agent session lists. This form is for non-persons.
    • Anything else, such as a hud roster name, is a plain name.

    What hud passes:

    • Gate approval: chant approve <component> <gate> [--env <env>] [--plan <digest>] --actor github:<login>. When the gate needs a signature, also pass --sign <key file>, where the file is a private key, or a public key whose private half the ssh agent holds, and the signers file at base lists it for that principal. --approver still wins over --actor.
    • Record verdict: chant workspace records review <id> --verdict … --by github:<login> [--sign <key file>]. This is unchanged except for the principal string.
    • Decision point answer: chant workspace points answer <id> --answer <v> --by github:<login>.
    • A follower's onBehalfOf (hud#733): pass the named person's forge identity as --actor. Only that person's key can sign for them.

    What the workspace sets, in chant.workspace.json, read at base:

    "identity": { "attribution": "identified", "gates": { "ship": { "class": "operator" } } }
    • With attribution: "identified", a plain name is refused. The records and points writers return the JSON error principal-unidentified. chant approve exits 1.
    • gates.<name> makes the gate count only a sealed approval by a listed signer, from class when one is named. Class membership comes from role grants at base (ws-079). An unsigned approval is never counted by a run or by status, so an invite link alone can't clear the gate.
    • chant workspace status --json gives each gate "signed": null | {"class": <string|null>}, and its approve line ends in --sign when the gate needs one. hud appends --actor.

    Without an identity block nothing changes, so hud's shipped --actor <roster name> flow keeps working (burn-down D10).

    The resolution line gains seal: {signer, key, signature}. That is an ssh signature in the chant-gate namespace over op\ngate\nenv\nplanDigest\nresolvedBy\ntimestamp.

    Not done here: a numeric forge id in the principal. Logins can be renamed, and a rename needs a signers and roles edit, which is itself a protected write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspaceboundariesdesignprovenance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions