Skip to content

fix(ci): repair two guardrails that are red on main and blocking unrelated PRs - #12729

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/red-guardrails-on-main
Sep 4, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/red-guardrails-on-main

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

main is red on two backend guardrails, and it is blocking other people's PRs

Not a refactor and not a shard — this is stop-the-line. Two exact-set pins fail
on main right now, so any PR whose test selection reaches them goes red for
reasons that have nothing to do with its own diff. #12707
(agent/memory-delete-gate) is failing on this, as are #12726, #12727 and this
author's other work.

Both breakages share a cause: the change that broke each one did not touch a
file that selects the test that pins it
, so the unit-test selector never ran
it on the PR that introduced it.

1. PINNED_CONVERSATION_DUMPS

25a7d764bc ("fold desktop watching and proactive counts into daily summaries")
added two model_dump() calls in utils/llm/external_integrations.py. The S4
trust-boundary scanner keys on the call, not the receiver's type, so both are
reported as conversation serialization sites and the exact-set assertion fails.

Reviewed rather than rubber-stamped: _basic_daily_summary and
generate_comprehensive_daily_summary both dump a
DailySummaryDayStatsPayload. Neither subject is a Conversation, so neither
dump can carry client_processing, and the display-only trust boundary is
intact. Pinned with that reasoning in a comment beside the entries.

2. task_intelligence_sources_v1.json

44d48884cf ("remove the retired onboarding wizard views") deleted
OnboardingChatView.swift and OnboardingView.swift, which
backend/config/task_intelligence_sources_v1.json still lists as
desktop_manual owner paths — so the manifest fails validation before any
contract is checked.

Removing the dead paths uncovers a second failure the first was masking:
ProactiveAssistants/ContextReminders/ContextReminderCoordinator.swift calls
client.createActionItem and client.updateActionItem and is registered
nowhere.

This one is a judgement and deserves a second opinion. It is registered here
under desktop_manual (policy_class: direct_command), not as a proactive
writer. The directory is named ProactiveAssistants, which is exactly why the
code was read rather than assumed:

  • the create runs inside a user-invoked reminder flow, on the user's own text,
    and its failure strings are tool replies — "Bring the document to the front
    and ask again"
    ;
  • updateActionItem is reached from markDone, a button on a card;
  • neither fires on a timer, nor on observed context alone.

Under INV-TASK-2 — "automatic capture proposes" — that is a direct command, not
automatic capture. If the intent is that context reminders propose rather than
write, this manifest entry is wrong and the code is what should change.

Automatic-or-dead check

The two repaired tests are themselves the check, and they are exact-set pins:
revert either hunk and they fail again. What this PR does not fix is the reason
they were able to go red unobserved — that is #12727, which gives the
slow-marked guardrails a lane at all and explains the same selector gap in
detail.

Proof

  • tests/unit/test_client_processing_trust_boundary.py +
    tests/unit/test_task_intelligence_contract_freeze.py → 70 passed.
  • Confirmed red before the change on a clean origin/main checkout, with the
    exact assertions quoted above.
  • Confirmed the same two failures on SCA-441: map account-gate delete contention to 409 #12707, a PR by another author that touches
    none of these files.

Cut list

Product invariants

  • INV-TASK-2 — this PR registers a previously unregistered action-item writer
    and classifies it as direct_command. No capture behaviour changes; the
    manifest gains the writer it was already missing. See the judgement above.

Failure class

Failure-Class: none

🤖 Generated with Claude Code

Review in cubic

Two exact-set pins fail on main, so any PR whose test selection reaches them
goes red for reasons unrelated to its diff. #12707 is failing on this today.

Both share a cause: the change that broke each one did not touch a file that
selects the test that pins it, so the selector never ran it on the PR that
introduced it.

25a7d76 added two model_dump() calls in external_integrations.py. The
trust-boundary scanner keys on the call, not the receiver's type, so both are
reported as conversation serialization sites. Both dump a
DailySummaryDayStatsPayload, so neither can carry client_processing; pinned with
that reasoning beside the entries.

44d4888 deleted two onboarding views the task-intelligence manifest still
lists as desktop_manual owner paths. Removing them uncovers a second failure the
first was masking: ContextReminderCoordinator writes and updates action items and
is registered nowhere.

That one is a judgement. It is registered as desktop_manual / direct_command, not
as a proactive writer. The directory says ProactiveAssistants, which is why the
code was read: the create runs inside a user-invoked reminder flow on the user's
own text, its failure strings ask the user to try again, and updateActionItem is
reached from markDone, a button. Nothing fires on a timer or on observed context
alone. Under INV-TASK-2 that is a direct command. If context reminders are meant
to propose rather than write, the code is what should change, not this entry.

Co-Authored-By: Claude Opus 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit 3c69cea into main Sep 4, 2026
43 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/red-guardrails-on-main branch September 4, 2026 08:25
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