Repository navigation
fix(ci): repair two guardrails that are red on main and blocking unrelated PRs - #12729
Merged
Merged
Conversation
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]>
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.
mainis red on two backend guardrails, and it is blocking other people's PRsNot a refactor and not a shard — this is stop-the-line. Two exact-set pins fail
on
mainright now, so any PR whose test selection reaches them goes red forreasons that have nothing to do with its own diff. #12707
(
agent/memory-delete-gate) is failing on this, as are #12726, #12727 and thisauthor'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_DUMPS25a7d764bc("fold desktop watching and proactive counts into daily summaries")added two
model_dump()calls inutils/llm/external_integrations.py. The S4trust-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_summaryandgenerate_comprehensive_daily_summaryboth dump aDailySummaryDayStatsPayload. Neither subject is aConversation, so neitherdump can carry
client_processing, and the display-only trust boundary isintact. Pinned with that reasoning in a comment beside the entries.
2.
task_intelligence_sources_v1.json44d48884cf("remove the retired onboarding wizard views") deletedOnboardingChatView.swiftandOnboardingView.swift, whichbackend/config/task_intelligence_sources_v1.jsonstill lists asdesktop_manualowner paths — so the manifest fails validation before anycontract is checked.
Removing the dead paths uncovers a second failure the first was masking:
ProactiveAssistants/ContextReminders/ContextReminderCoordinator.swiftcallsclient.createActionItemandclient.updateActionItemand is registerednowhere.
This one is a judgement and deserves a second opinion. It is registered here
under
desktop_manual(policy_class: direct_command), not as a proactivewriter. The directory is named
ProactiveAssistants, which is exactly why thecode was read rather than assumed:
and its failure strings are tool replies — "Bring the document to the front
and ask again";
updateActionItemis reached frommarkDone, a button on a card;Under
INV-TASK-2— "automatic capture proposes" — that is a direct command, notautomatic 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 indetail.
Proof
tests/unit/test_client_processing_trust_boundary.py+tests/unit/test_task_intelligence_contract_freeze.py→ 70 passed.origin/maincheckout, with theexact assertions quoted above.
none of these files.
Cut list
slow-marked files that are red (test_subscription_restructure,test_firestore_query_coverage_ratchet,test_sys_modules_hermeticity). Theydo not block anything today because nothing runs them; chore(ci): run the slow-marked backend guardrails — they have never run, and #12701 slipped past the LLM inventory pin because of it #12727 names them.
for the class and is a bigger change than a stop-the-line repair should carry.
Product invariants
INV-TASK-2— this PR registers a previously unregistered action-item writerand classifies it as
direct_command. No capture behaviour changes; themanifest gains the writer it was already missing. See the judgement above.
Failure class
Failure-Class: none
🤖 Generated with Claude Code