Repository navigation
fix(config): retain source updates with unchanged runtime values - #173334
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR publishes authored configuration changes even when their resolved runtime values remain unchanged. Example: Publish runtime {} after explicitly enabling plugins.entries.fixture.enabled in the authored source.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: it repairs a real source-publication defect, but introduces unnecessary full session invalidation for ordinary preference writes. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe config publisher receives resolved runtime values and authored source values, records their publication facts, and supplies snapshots and invalidation events to plugin, model, and session consumers. flowchart TD
A[Authored configuration] --> C[Runtime preparation]
B[Resolved runtime values] --> C
C --> D[Config publication owner]
D --> E[Captured reads]
D --> F[Plugin activation policy]
D --> G[Session and model projections]
Technical reviewBest possible solution: Retain source-aware publication while preserving narrow session invalidation for presentation and profile changes. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the discarded-source path, and the existing disabled-by-default facade test exercises its consumer; no reproduction was executed during this read-only review. Is this the best way to solve the issue? Fixing the shared publisher is appropriate, but source publication and session-row invalidation must remain separate decisions so display changes preserve their existing narrow scope. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5da0c5547cf1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +42, Tests +79. Total +121 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 15, 2026, 1:47 PM ET / 17:47 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…nclaw#173334) * fix(config): retain source updates with unchanged runtime values * fix(config): preserve narrow authored publication scopes
What Problem This Solves
Fixes explicitly enabled plugins being rejected when a newer authored configuration resolves to unchanged runtime values.
User Impact
Authored policy updates now reach consumers even when runtime values remain equal. Existing captured reads retain their original source; fresh reads see the replacement. Equal publications and version-only restamps remain no-ops. Display preferences and agent identities keep their narrow refresh scopes.
Why This Change Was Made
The publication shortcut compared only runtime values and discarded meaningful source updates. Publication now compares runtime and authored policy against their recorded values and resolution provenance. The existing session-change owner combines their effects, preserving full invalidation for model-policy and in-place changes without rebuilding every session for presentation-only edits. Config hashes remain with the existing value-fact owner.
Evidence
git diff --checkpassed.The exact-head hosted run failed in two jobs: pinned Bun setup exhausted downloads with HTTP 504 responses before tests started, and the cron registry-owner shard failed its selected/fallback provider and recurring startup-plugin cases. The aggregate CI gate failed downstream. The automated failure report marks these unknown because its scheduled-main comparison has no matching shard; preflight checkout receipts establish the exact tested merge, and direct source inspection attributes both failures to unchanged setup/account-admission owners. Landing uses the authorized inherited-failure exception, subject to native authority and review/security checks. These results are not green CI.
The cron fixtures and account-admission owners predate this change. The selected providers supply deferred runtime auth without a stored account; the recurring fixture uses a provider-config key. Later main PR #173509 admits the latter route, while deferred runtime credentials remain subject to account admission. Those repairs stay separate from this configuration publication fix.