The task worker reports presence into its own task log #1807

Closed
opened 2026-11-08 06:15:12 +00:00 by sam · 1 comment
Owner

What is wrong

The task worker (archie-agent) runs presence.Run for itself. Every 30 seconds it makes a State Store write (upsert plus a prune of all stale presence rows) over its task grant. When that call fails, the worker logs WARN "presence not reported" through the task's system-log handler, so it appears in the task's Log tab: repeated every 30-60 seconds with run credentials unavailable or context deadline exceeded. Nothing reads the per-task agent presence rows: the service list in presence.Services() excludes the agent, and the dashboard only uses the name to filter logs. The table kept 30 agent rows in a day, each retained 24 hours.

Done when

  • The worker no longer reports presence, and the grant's allowance for PutPresence is removed with it.
  • A parked task's Log tab shows no presence lines.
  • Verified by a test that the task grant rejects PutPresence.
## What is wrong The task worker (`archie-agent`) runs `presence.Run` for itself. Every 30 seconds it makes a State Store write (upsert plus a prune of all stale presence rows) over its task grant. When that call fails, the worker logs WARN "presence not reported" through the task's system-log handler, so it appears in the task's Log tab: repeated every 30-60 seconds with `run credentials unavailable` or `context deadline exceeded`. Nothing reads the per-task agent presence rows: the service list in `presence.Services()` excludes the agent, and the dashboard only uses the name to filter logs. The table kept 30 agent rows in a day, each retained 24 hours. ## Done when - The worker no longer reports presence, and the grant's allowance for `PutPresence` is removed with it. - A parked task's Log tab shows no presence lines. - Verified by a test that the task grant rejects `PutPresence`.
Author
Owner

Fixed in 260e9fc4: worker presence reporting, its transport method and the task-grant allowance for PutPresence are removed; a test asserts the grant rejects PutPresence.

Fixed in 260e9fc4: worker presence reporting, its transport method and the task-grant allowance for PutPresence are removed; a test asserts the grant rejects PutPresence.
sam closed this issue 2026-11-08 06:28:42 +00:00
sam added the bug label 2026-11-12 15:52:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1807