(bc86c85) Attribute a command typed at the board to the person, not the variable, and bump to 0.33.5
WORKLANE_ACTOR is set once in the environment an agent runs in, which is
right for an agent and wrong for the board: a person who exports it where
their own shell picks it up, the obvious way to configure it for the agents
on that machine, then moved a ticket with ':' and the board recorded the
move as the agent's.
Nothing but the reader can type that line, so the prompt asks for
--actor-from-git's precedence without the flag. An explicit --actor still
wins, which is how the reader puts somebody else's name on their own
keystrokes, and a machine with no git user configured reads unknown rather
than falling back to the variable, for the reason the flag does.
The attribution is a parameter of dispatch rather than a field the prompt
writes into what clap parsed: rewriting the arguments would need an arm per
entry-writing command, and the command added after it would be attributed
to the agent until somebody noticed. no_handler_decides_its_own_attribution
reads src for a handler naming an Attribution of its own, which the
compiler cannot catch because it compiles.
The same command typed in a shell is unchanged, which is what keeps a board
several agents write to saying which of them wrote what.
Also closes a code fence in the skill that e26e589 left open, duplicating
the mv --actor example under it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
a885f81da5
commit
3e732535f8
+6
-2
@@ -417,8 +417,6 @@ is never needed. It cannot be combined with `--actor`, and a machine with no git
|
||||
configured has nobody to name: the entry reads `unknown` rather than falling back to your
|
||||
variable.
|
||||
|
||||
```
|
||||
worklane mv 1b78a24 --status done --actor "Ansho Rei"
|
||||
```
|
||||
worklane mv 1b78a24 --status done --actor "Ansho Rei"
|
||||
```
|
||||
@@ -431,6 +429,12 @@ recognise.
|
||||
On `chown`, `--actor` is not the user argument: `worklane chown alice 1b78a24` makes alice
|
||||
the ticket's owner, and `--actor` says who made that change.
|
||||
|
||||
**An entry made from the board is the person's, not yours.** A command typed at the
|
||||
board's `:` prompt is attributed to the git user of that machine whatever `WORKLANE_ACTOR`
|
||||
is set to, because nothing but the person sitting at the board can type one. So an entry
|
||||
can appear under a name no agent is configured with, and reading it as somebody else's
|
||||
agent is reading it wrong: that is the person whose board it is, acting for themselves.
|
||||
|
||||
## Shell completions
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user