Skip to content

refactor(features,service): an agent's status is read by one pure rule the desktop can run - #3265

Merged
luke-agent[bot] merged 1 commit into
mainfrom
luke/neon-realtime-agent-status
Oct 21, 2026
Merged

luke-agent[bot] merged 1 commit into
mainfrom
luke/neon-realtime-agent-status

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Stack 2 · Task list and automations, piece 1 (bottom, base main).

What: the service's agent status rule moves to @luke/features/coding-agent-status as a pure function of the newest turn and the instant read at, so a desktop reading an agent's live rows can apply the same rule. The rule covers:

  • the starting grace;
  • the line grace;
  • the opener a turn took;
  • a session ended for good;
  • an agent started blank (completed, with no clock edge).

statusClockEdge gives the next instant the clock alone moves a status. The service's codingAgentStatusOf, lineAwaitsTurn and statusClockEdge now read through it, with no behaviour change, and CODER.STARTING_GRACE/LINE_GRACE derive from its constants.

Tests: coding-agent-status.test.ts covers both graces and their edges, a Stop stamp, an awaiting line, an opener, a session ended for good, and an agent started blank.

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
luke-web Ready Ready Preview Oct 21, 2026 12:30am UTC

Request Review

@luke-agent
luke-agent Bot changed the base branch from main to luke/neon-realtime-scope-inbox October 17, 2026 01:05
@luke-agent luke-agent Bot closed this Oct 17, 2026
@luke-agent luke-agent Bot reopened this Oct 17, 2026
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from 0a6e6cd to 35d1920 Compare October 18, 2026 19:21
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from b04b331 to 347414f Compare October 18, 2026 20:05
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from 35d1920 to ff729c0 Compare October 18, 2026 21:12
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from 347414f to d7f0b2f Compare October 18, 2026 21:24
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from ff729c0 to 7c1c859 Compare October 19, 2026 18:52
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from d7f0b2f to 47f6861 Compare October 19, 2026 18:52
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch 3 times, most recently from 39ca561 to 40e1669 Compare October 20, 2026 01:43
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from 47f6861 to 0fc86f5 Compare October 20, 2026 02:53
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch 2 times, most recently from ff97170 to 9710e65 Compare October 20, 2026 15:50
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from 0fc86f5 to b9b1845 Compare October 20, 2026 22:15
@luke-agent
luke-agent Bot changed the base branch from luke/neon-realtime-scope-inbox to luke/live-tx-wait October 20, 2026 22:16
@luke-agent luke-agent Bot closed this Oct 20, 2026
@luke-agent luke-agent Bot reopened this Oct 20, 2026
@luke-agent
luke-agent Bot force-pushed the luke/live-tx-wait branch from 7614a60 to 53c8ce1 Compare October 20, 2026 22:20
@luke-agent
luke-agent Bot changed the base branch from luke/live-tx-wait to main October 20, 2026 23:27
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from b9b1845 to ef1a58e Compare October 20, 2026 23:27
@luke-agent luke-agent Bot closed this Oct 20, 2026
@luke-agent luke-agent Bot reopened this Oct 20, 2026
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from ef1a58e to 0c13241 Compare October 20, 2026 23:32
@luke-agent
luke-agent Bot changed the base branch from main to luke/live-same-user October 20, 2026 23:32
@luke-agent luke-agent Bot closed this Oct 20, 2026
@luke-agent luke-agent Bot reopened this Oct 20, 2026
Base automatically changed from luke/live-same-user to main October 20, 2026 23:55
…e the desktop can run

The service's status rule, its starting grace and its line grace, moves to
@luke/features/coding-agent-status as a pure function of the newest turn,
when the newest awaiting line was written, and the instant read at, with
statusClockEdge, the next instant the clock alone moves the status. The
service reads every status, every line's standing, and every clock edge
through it as before, so a desktop following an agent's rows over Neon
Realtime reads the same status and knows when to read it again.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-agent-status branch from 0c13241 to 7e5d73f Compare October 21, 2026 00:25
@luke-agent luke-agent Bot closed this Oct 21, 2026
@luke-agent luke-agent Bot reopened this Oct 21, 2026
@luke-agent
luke-agent Bot marked this pull request as ready for review October 21, 2026 00:38
@luke-agent
luke-agent Bot added this pull request to the merge queue Oct 21, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Merged via the queue into main with commit 8be3591 Oct 21, 2026
13 of 20 checks passed
@luke-agent
luke-agent Bot deleted the luke/neon-realtime-agent-status branch October 21, 2026 00:45

This branch was successfully deployed

1 active deployment
Preview — 7e5d73fd Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant