Repository navigation
feat(chat): set follow-up checks and read them from tracking data, for people and agents (W3-05) - #2029
Merged
Conversation
…r people and agents (W3-05) - set_follow_up_check registry row (CHAT-20 §9 row 79, §13): WRITE, Ask (auto allowed in Full auto) as default and maximum, Admins and Managers, at most 3 a run. In Ask me first and Auto a one-click card on the editable card (Set check / Not now; ChatConfirmForm gains kind 'followup' and a cancel label); in Full auto it is set by itself, logged with Undo until the check runs. Kept as a chat_schedules row of kind followup_check, due on its day at 09:00 on the person's clock, in the chat that set it. Checks don't count toward the active-job limit. - The minute worker leaves followup_check rows alone. - Server evaluator (impact-ledger/follow-up.js, hourly): no engine query, no model call. A shipped change reads the impact ledger's latest checkpoint; prompts read the Insights rollups (first tracked day on or after the date vs the 14 days before it was set; under 3 points is No meaningful change). Waits up to 3 days for data. Writes the result to the chat that set the check, a followup_result notice to the creator's Inbox, one done run, and closes the check. - Agents: a run that shipped something opens one check, its version's follow-up days after its first change (agent-driver.ts: one line). - Inbox shows a follow-up result as news, with Open. - Help: help/chat/follow-up-checks.md (approved: false). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p-checks # Conflicts: # web/src/lib/chat/schedule/worker.test.ts
…in (W3-05) A followup_result notice's Open went to the check's page in Scheduled after W3-03's change; the result is a message in the chat that set the check, so Open goes there. Job notices still open the job's page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 of 13 tasks
# Conflicts: # web/src/components/chat/inbox-notices.tsx # web/src/lib/actions/chat-notices.ts # web/src/lib/chat/engine.test.ts
…den the evaluator - A follow-up check on a page or an action alone reads the impact ledger's measurement of its change; without a ship event it closed as Not measurable on its first read. The precheck now refuses it and tells the model to name tracked prompts or mark the change shipped first. - The evaluator closes a check as skipped, delivering nothing, when its creator left the workspace or no longer reaches the brand. - With CHAT_AGENTIC_ORGS set, the due-check read is narrowed to those workspaces, so other workspaces' checks never fill it. - The rollup reads are paged, so a baseline past max_rows is read whole.
When a check names an action, only the action's ship events count, even if a page is also set, so a shipped page no longer lets an unshipped action through. The skipped reason for a check with no brand now says the creator left the workspace.
gkhngyk
previously approved these changes
Nov 3, 2026
Merged
8 of 13 tasks
8 of 13 tasks
…p-checks # Conflicts: # web/messages/en.json # web/src/components/chat/inbox-notices.tsx # web/src/lib/chat/agent-driver.ts # web/src/lib/chat/engine.test.ts # web/src/lib/chat/notices.ts # web/src/lib/chat/registry/tools.test.ts # web/src/lib/chat/registry/tools.ts # web/src/lib/chat/undo.ts # web/src/lib/chat/write.test.ts
gkhngyk
pushed a commit
that referenced
this pull request
Nov 4, 2026
…2118) #2043 merged the second batch of What's new entries before the pull requests they describe. Three of them name things main doesn't have yet, so they would show once New Chat goes live: - Follow-up checks: no follow-up check tool, Set check card or result notice on main (#2029). - Scheduled jobs: the schedule card and Inbox delivery are on main, but runs aren't e-mailed (#2028) and there is no Scheduled page in the Chat menu (#2018). - Your time zone: Settings › Account has no time zone yet (#2034, migration 00468). Each keeps its approved text and gets published: 2099-12-31, so pickWhatsNew leaves it out until its pull request sets its merge day. entries.json regenerated. Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9 Co-authored-by: Claude <[email protected]>
…p-checks # Conflicts: # server/src/server.js # web/src/lib/chat/engine.test.ts
cihan-gyk
dismissed
gkhngyk’s stale review
November 4, 2026 19:55
The merge-base changed after approval.
8 of 13 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Nov 4, 2026
…ain (#2128) #2118 held three entries back with published 2099-12-31 until their features merged. Scheduled jobs' Scheduled page (#2018) and e-mailed runs (#2028), and the time zone setting (#2034), merged on 2026-11-04, so both entries now show from that day. Follow-up checks stays held: #2029 is open. Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9 Co-authored-by: Claude <[email protected]>
…-up-checks # Conflicts: # web/messages/en.json
6 of 13 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Nov 5, 2026
#2029 merged on 2026-11-05, so its entry no longer needs holding back: published moves from 2099-12-31 to the merge day. entries.json regenerated. Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9 Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up checks (CHAT-20 §13, CHAT-12 v2) and an agent's own check after it ships, behind
CHAT_AGENTIC. Stacked on #2028 (W3-04b, on W3-03, W3-04a, W3-02, W3-01): merge those first. No migration of its own: it useschat_schedules(00457) and thefollowup_resultnotice kind from 00461 (W3-04a). Plan: Chat waves plan, W3-05.The
set_follow_up_checkregistry row (CHAT-20 §9 row 79, Scheduling area)run-limits.tscap).ChatConfirmFormgainskind: 'followup'and an optionalcancellabel.chat_schedulesrow:kindfollowup_check, due on its day at 09:00 in the person's time zone;target_json(a page URL, an action, or prompts and their platforms) andmetric;created_viacard/full_auto, plusset_by_run_id.The worker (
schedule/worker.ts) no longer opens follow-up checks as Chat runs (kind <> followup_check). The server's evaluator handles them.The evaluator (
server/src/lib/impact-ledger/follow-up.js, hourly at :17, started inserver.jsnext to the impact ledger)next_run_atit read, so two servers run a check once.runOutcome). It never measures again, and waits while the ledger still says Pending.followup_resultnotice in the creator's Inbox, and onechat_schedule_runsrow (done). Thenlast_run_atcloses the check and its Undo.runImpactLedger. A check due at 09:00 is answered within the hour once its tracking day is in, and the ledger's job and tests stay unchanged.Agents: when a run ships something (
markShipped),openAgentFollowUpsopens one check per run. It is due the version'sfollowup_daysafter the first change it shipped, on its ship events, in the run's chat, as the person it acted as, withagent_id/agent_run_id.agent-driver.tsgets a single line. Agents' Schedule triggers stay inchat_agent_triggers(decision 15).Inbox: a
followup_resultnotice shows as news, not amber: "{title} · result", the outcome line, and Open.Help: new
help/chat/follow-up-checks.md(approved: false).Related issue
None. Chat waves plan, Wave 3 (W3-05).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
With
CHAT_AGENTICon, as an Admin on Growth:chat_schedulesrow appears (followup_check,created_viacard), and the step reads "Follow-up check set: …".next_run_atto the past, with tracking rows on or after its date for its prompts. Within the hour (or by callingrunFollowUpChecks()), the chat gets "Follow-up check · …: Improved · Visibility 25% → 45% (+20 pts)", the Inbox shows the result, and the check doesn't run again.Checklist
yarn lintpasses (changed files: 0 errors)yarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)After merging W3-04b (W3-03 included; one conflict in
worker.test.ts, both sides kept) and a follow-up fix (afollowup_resultnotice's Open goes to the chat the result was posted in, with a test): eslint and typecheck pass again; 18 web test files / 300 tests and 6 server files / 144 tests pass.Run locally: web — format:check, eslint on the changed files, typecheck; 20 test files / 572 tests (schedule, registry, undo, write, engine, agent driver, card-form, form-card, chat-inbox, help, subscription-guard coverage). Server — format, lint;
impact-ledgeranddemo-brandtests (5 files / 137 tests). Full suites and the build run in the fork's CI.Screens: shown to the owner in a local preview (1024px, light and dark, with preview data) and approved on 2026-11-02.
CI passed on this branch (7186c3b), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41523450977): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code