Repository navigation
[3436 by Claude Opus 5.5] Notify the operator when a goal needs an answer - #3468
Conversation
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds goal-blocker notifications, automatic dismissal, and durable blocker events for CLI/MCP waits. It needs a localized migration correction before merging. ✅ Owner-scoped notifications — Cards target only the goal owner, honor notification preferences, and redact and bound displayed text. ✅ Lifecycle integration — Worker resolution, attempt cleanup, and recovery dismiss closed-blocker cards; repeated observations do not create duplicate notifications. ✅ Focused coverage — Added tests cover notification ownership, deduplication, dismissal, and immediate versus cursor-based blocker waits. This review used static analysis only; no commands or tests were run. The supplied checks show no failures and four checks pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Preserve existing open blockers during migration
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Retry failed notification creationThe notification wrapper logs creation failures, while subsequent observations have ScoreThe implementation has useful integration coverage and clear lifecycle handling, but the migration leaves existing open blockers outside the new immediate-wait behavior. The correction is localized; remaining CI checks are pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 6539dbb
Summary of ChangesI fixed F1. When the migration runs, it now writes an The fix is in
These are the same checks I left out stale-attempt blockers and blockers of finished goals on purpose. The cursor-based wait loop matches any New regression test:
Checks run:
I made no visual preview, because a database migration has nothing to show on screen. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…` journal entry for every blocker that is still open for its goal's current attempt. A cursorless `wait_goal` with `until: "blocked"` now matches those blockers immediately after an upgrade. I fixed F1. When the migration runs, it now writes an `open` journal entry for every blocker that is still open for its goal's current attempt. A cursorless `wait_goal` with `until: "blocked"` now matches those blockers immediately after an upgrade. **The fix** is in `packages/core/src/db/migrations/20261112000000_journal_goal_blockers.js`. Before creating the triggers, `up` copies existing blockers into `goal_events` as `kind: 'blocker'`, `state: 'open'` entries, oldest first. It only copies a blocker if: - it is still `open`, - its goal is not finished, and - its claim and generation match the goal's. These are the same checks `openBlockerEvent` uses. The existing `down` already deletes all blocker events, so it needed no change. I left out stale-attempt blockers and blockers of finished goals on purpose. The cursor-based wait loop matches any `blocker`/`open` event without checking the attempt. If I backfilled those blockers, a wait whose cursor was taken before the upgrade would see new `open` events for blockers nobody is waiting on, and match wrongly. Under the triggers, those blockers would have been journaled back when their attempt was current, so leaving them out produces the journal the triggers would have written. **New regression test:** `packages/api/test/goalBlockerJournalUpgrade.test.ts`. It runs all migrations, rolls back just this one, and inserts five blockers: a current one, a stale-attempt one, a closed one, one on a finished goal, and a current one on a second goal. Then it migrates again and checks that: - only the two current blockers get exactly one opening entry each. - both match `until: blocked` immediately, with no cursor. - updating only `last_observed_at` still writes nothing, so a cursor past the opening times out. - resolving a backfilled blocker gives the pair `open` → `resolved`, and the wait then times out. - the finished goal and the stale or closed blockers get no entries. **Checks run:** - The new file, `goalBlockerNotifications.test.ts` and `test/goalMigration.test.ts` all pass (15/15). - With the backfill temporarily removed, 2 of the 3 new tests fail. - `packages/api` ESLint at 0 warnings is clean for the new file, and `tsc` reports nothing for it. I made no visual preview, because a database migration has nothing to show on screen. PR: #3468 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds operator notifications for goal blockers and extends durable goal waits to report blocker events. The implementation is coherent and appears merge-ready within the supplied scope, conditional on the two pending checks completing successfully. ✅ Durable blocker events — Database triggers journal openings and closures alongside blocker writes, while the migration backfills current open blockers. ✅ Scoped notifications — Cards target the goal owner, use stable blocker-specific deduplication keys, and contain bounded, redacted text. ✅ Closure reconciliation — Notification creation checks for subsequently closed blockers, covering a closure that happens while the card is being created. This assessment is based on static review of the supplied diff and context. No commands or tests were run. The supplied current-head status reports 32 passed checks, no failures, and two pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Test notification closure interleavingAdd a regression test that delays notification creation, closes the blocker, then completes creation through S3: 🟢 Consider retrying missed notificationsNotification failures are logged and swallowed, while repeated blocker observations return S4: 🟢 Tailor CLI blocker guidanceIn ScoreThe implementation covers notification lifecycle, migration upgrades, wait semantics, and several operator surfaces with focused tests. Static review found no demonstrated merge blocker; final readiness remains conditional on the pending checks. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
Full Test Suite ResultsValidation failed during: Test shard (shard 4).
View shard 4/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit bee4cbe Processed 3 comments:
Summary of ChangesI fixed the Shard 4/4 failure. The failing test, Cause: the test checks every backticked lowercase name in Fix: I added those five words to the test's non-tool list, next to the other I only ran this one test. The rest of shard 4 already passed in CI (245 of 246), so I didn't rerun it. There are no visual previews, because this change only touches a test. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…api/test/mcpObservableSurface.test.ts`, now passes locally and ESLint with `--max-warnings 0` is clean for the file. I fixed the Shard 4/4 failure. The failing test, `packages/api/test/mcpObservableSurface.test.ts`, now passes locally and ESLint with `--max-warnings 0` is clean for the file. **Cause:** the test checks every backticked lowercase name in `docs/mcp.md`. Each one has to be either a ProPR MCP tool an admin can see, or a word on the test's list of non-tool names. Commit `fa22b4f3a` documented the new `wait_goal` blocker condition, and that added five words the list didn't have: `blocked`, `blocker`, `open`, `resolved` and `superseded`. I reproduced the failure locally first; it stopped at `blocked`. **Fix:** I added those five words to the test's non-tool list, next to the other `wait_goal` fields, with a comment saying what they are. The docs are unchanged. This is the same kind of fix as the earlier Shard 2/4 failure with `ask_operator`. I only ran this one test. The rest of shard 4 already passed in CI (245 of 246), so I didn't rerun it. There are no visual previews, because this change only touches a test. PR: #3468 Comment by: @propr-dev[bot] (ID: 6822951772) Comment by: @propr-dev[bot] (ID: 6822956944) Comment by: @github-actions[bot] (ID: 6822957453) Model: Claude Opus 5.5
AI Implementation Summary
Addresses #3436
Branch:
3436/claude-opus-5-5-notify-the-operator-when--20261112-1025-3csCommits: ✅ Changes committed (fa22b4f)
AI Processing Incomplete
Execution Details:
Warning
This implementation may be incomplete. The agent stopped producing output and the stall watchdog ended the run before it could confirm that all requested work was complete. Partial changes were preserved instead of discarded.
Work completed before interruption:
I'll report when the suite run finishes.
Remaining work:
The agent stopped before validating every requirement. Review the partial diff against the original request and complete any unaddressed implementation, tests, or documentation before merging.
Detailed Logs:
083e323e-6182-4629-97b6-ff9d61686306Log files stored at:
/usr/src/app/logs/executions/issue-3436-2026-11-12T11-12-41-071Z-conversation.json/usr/src/app/logs/executions/issue-3436-2026-11-12T11-12-41-071Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3436.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Suggested agent tools