Track time in a memory ledger and name the session in every claim #28
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/claim-line-and-memory-time-ledger"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two changes to the working agreement, both aimed at a tracker several worktree sessions write
to at once.
Time comes off a memory ledger, not Forgejo's stopwatch
One stopwatch per user, instance-wide, meant a second session's start silently stopped and
logged the first — dumping its elapsed time, in full, onto whatever index that session had
walked away from.
tea api /user/stopwatchesreports only your own timers, so nothing couldsee the collision coming or detect it afterwards.
Time is kept instead in
time-ledger.mdin the project's memory directory:tea times add <idx> <n>m, once, then the rows are stampedloggedA claim names the host and session holding it
The
⏳in-progresslabel says someone is on it; the new claim comment says who:A claim naming this host is checkable — the session transcript's mtime says whether it is
still doing anything,
pssays whether the process exists at all — so a claim whose session isprovably gone is taken immediately rather than waiting out a clock. The 24h stale rule stays
for claims from hosts you cannot inspect, and for claim lines that couldn't name a session.
Claims are read through the comments API, never
tea comments list: that listing truncates abody at ~80 characters in every output format including
-o json, which eatspid=andsince=off the end of a claim line.Skills
/issue-triage,/resolve-pr-conflicts,/ask-me-questionsand/triage-loopdrop theirscratchpad-timer overrides and defer to the convention, which now says what they were working
around.
/resolve-pr-conflictskeeps its orchestrator-claims/worker-times split, and gains thenote that a dispatched
Agentinherits the parent's session id and pid — so a fan-out writesone identity, and one liveness check answers for all of its workers.
Verification
Round-tripped against the live tracker on
Grey.ooo/Someones.Computer#861: claim line posted,read back whole through
/issues/861/comments, observed truncating atpid…throughtea comments list -o jsonexactly as documented, deleted by id, and confirmed gone. Theliveness check was run against this session's own transcript and pid.
markdownlintclean(the two findings in
VCS.mdare pre-existing, at lines 149 and 177, outside this diff).Docs-only, so no draft — the whole gate that applies is the Markdown lint, and it was run.