You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
workspace: person-attributed records and gates rest on forge identities or signer keys, not hud's roster #3163
area:workspacechant workspace epic (#2525)boundariesEpic: boundaries between chant, hud, studio, behold and fountaindesignDesign or research note, no deliverable yetprovenanceWorkspace provenance: who and what made a change, why, and at what cost
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.
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.
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.
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.
area:workspacechant workspace epic (#2525)boundariesEpic: boundaries between chant, hud, studio, behold and fountaindesignDesign or research note, no deliverable yetprovenanceWorkspace provenance: who and what made a change, why, and at what cost
Activity
lex00 commentedon Oct 1, 2026
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.
lex00 commentedon Oct 3, 2026
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:
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..chant/allowed_signerslists 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.What hud passes:
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.--approverstill wins over--actor.chant workspace records review <id> --verdict … --by github:<login> [--sign <key file>]. This is unchanged except for the principal string.chant workspace points answer <id> --answer <v> --by github:<login>.--actor. Only that person's key can sign for them.What the workspace sets, in
chant.workspace.json, read at base:attribution: "identified", a plain name is refused. The records and points writers return the JSON errorprincipal-unidentified.chant approveexits 1.gates.<name>makes the gate count only a sealed approval by a listed signer, fromclasswhen 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 --jsongives each gate"signed": null | {"class": <string|null>}, and itsapproveline ends in--signwhen the gate needs one. hud appends--actor.Without an
identityblock 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 thechant-gatenamespace overop\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.
feat(components): generated CI per forge, plan on the pull request an…
feat(components): generated CI per forge, plan on the pull request an…