Repository navigation
Description
Project-scoped agent questions open the task board instead of the waiting run. Confirmed locally against 44e0dcf254975286c0e9dea443b5cd1ca6b23347.
The notification takes the recipient away from the only answer surface for a taskless run, so they must locate the waiting run manually.
Steps to reproduce:
- Start a project-scoped automation run without a task-bound input.
- Have an agent call ask_human, producing an agent-question notification with projectId, runId, askId and automation name.
- Click that personal notification.
- Compare its target with the email URL generated from the exact same notification parameters.
Expected: An actionable agent-question notification should open the waiting run, where the answer card appears.
Actual: personalNotificationTarget handles projectId before runId and returns /dashboard/org-proof/projects/restricted-project/tasks. The runId and askId are discarded. The email URL builder for the same emitted row returns /dashboard/org-proof/automations/qa__proof/runs/run-project-proof.
Source:
- services/platform/lib/shared/notifications/target.ts:245-273
- services/platform/backend/domains/automations/ask-shim.ts:37-66
- services/platform/backend/domains/collab/service.ts:1162-1206
- services/platform/app/features/automations/components/run-detail.tsx:101
Behavior oracle: docs/en/platform/automations/approvals-in-workflows.md: ask_human questions are answered on the run detail card. The real ask shim forwards projectId for project runs even when resolveRunTask returns null.
Local proof: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/service-boundaries.ts. Frozen output: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/service-boundaries.log. Actual notification emitters, read query, project/team access helper, task access guard and both notification URL builders ran against an isolated retained PostgreSQL fixture. All assertions passed.
python3 /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/run-service-boundaries.pyRetained local fixture database: tale_notify_scope_20260928_mukz47v8. Structured output: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/service-boundaries-results.json. The rerun creates and retains a new uniquely named database.
A new retained fixture database on the owned local QA PostgreSQL only. No application database rows were modified. Production functions and SQL ran unchanged; minimal fixture schemas contain only fields required by these queries. The only stub in the service fixture captures pg-boss.send, so no email or external service ran. The revoked-membership state was seeded directly; this is not a browser membership-removal journey.
Deduplication: Reviewed existing-issues.json (931 all-state issues) and the current findings.json; no equivalent root cause found. All-state GitHub searches: notification ask project. #2377 covered older destination fallbacks; this is the current emitted project+run+ask shape and the app/email disagreement. The returned #3119 is unrelated deleted-org recovery.
Frozen source copy: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/service-boundaries.ts. SHA-256 index: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/sha256.json. The command executes the identical top-level scratch source; reruns may replace top-level result files but never these frozen copies.
Parent verification: independently executed the frozen proof and controls successfully; retained output: notifications-proof/parent-service-boundaries.log. Live all-state issue searches and related historical reports were checked before filing.
Acceptance: add regression coverage across the reported boundary and preserve the passing controls. Verify the corrected result with local API readback or the rendered UI as applicable.
Activity