Skip to content

fix(ui): retry failed schema reads through Solid boundaries - #179476

Closed
steipete wants to merge 2 commits into
mainfrom
solid2/w-s2-config-schema
Closed

steipete wants to merge 2 commits into
mainfrom
solid2/w-s2-config-schema

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Family (production files) 1 handlers 2 lifecycle 3 reads base → head 4 commands base → head 5 lazy 6 collections 7 JSX 8 context 9 Reveal 10 owner APIs Production LOC base → head
Agents editor / non-memory (22) 0→0 0→0 12C/0E/0U/0N → 12C/0E/0U/0N 7C/0E/0U/0N → 7C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 5,258 → 5,258
Agents memory (12) 0→0 0→0 4C/0E/0U/1N → 4C/0E/0U/1N 2C/0E/0U/0N → 2C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 2,702 → 2,702
Config Appearance / shared (13) 0→0 0→0 4C/1E/0U/3N → 4C/1E/0U/3N 3C/1E/0U/0N → 3C/1E/0U/0N 0→0 0→0 0→0 0→0 1E→1E 0→0 4,005 → 4,005
Config other (30) 0→0 0→0 4C/0E/0U/0N → 3C/0E/0U/1N 4C/1E/0U/0N → 4C/1E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 5,183 → 5,220
Config health (3) 0→0 0C/3E → 0C/3E 1C/0E/0U/0N → 1C/0E/0U/0N 1C/0E/0U/0N → 1C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 1,182 → 1,182
Config memory (5) 0→0 0→0 0C/1E/0U/1N → 0C/1E/0U/1N 2C/0E/0U/0N → 2C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 1,279 → 1,279
Config Talk (4) 0→0 0→0 2C/0E/0U/1N → 2C/0E/0U/1N 2C/0E/0U/0N → 2C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 1,394 → 1,394
Sessions (22) 0→0 0→0 4C/0E/0U/0N → 4C/0E/0U/0N 8C/0E/0U/0N → 8C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0 3,972 → 3,972
Total (111) 0→0 0C/3E → 0C/3E 31C/2E/0U/6N → 30C/2E/0U/7N 29C/2E/0U/0N → 29C/2E/0U/0N 0→0 0→0 0→0 0→0 1E→1E 0→0 24,975 → 25,012 (+37)

Legend: C = remaining candidate; E = retained source-backed exception; U = unresolved owner assessment; N = native group. E is not native completion credit. Items 1, 2, 5–10 count applicable candidates/exceptions, separately from raw API counts.

The census covers all 111 production files in Agents, Config, and Sessions at base 7d732724b77369bc8627001a1cad3a5a9a49c4b2. Only Runtime schema changes C→N here. Runtime-config loading remains C; native permission is E while test delivery is a separate C. Appearance catalogs retain independent reveal, and the three lifecycle survivors belong to primitive computations. Pending PRs receive no credit. Session placement is C. The broad Update lifecycle/reporting group is counted once and remains C until its remaining commands are adopted; the merged Hold action earns no second group. The mixed Talk command groups remain candidates; only synchronous Appearance/preferences/theme writes and native OS permission handoff retain command exceptions.

An initial config.schema failure leaves the form saying “Schema unavailable.” without a retry action. This change gives the existing admitted request a typed completion receipt and presents cold loading/failure through Solid’s Loading and Errored boundaries, including Retry. The renderer does not start another request.

The TypeScript capability retains request deduplication, connection retirement, canonical errors, and synchronous edit admission. Loaded Form/Setup nodes remain mounted during a refresh; the owner’s existing synchronous read-only/aria-busy interlock remains so a refresh cannot briefly re-enable editing. Warm refresh errors continue through the canonical owner banner. No dependency, tag, class, route, or lazy-boundary change.

Proof Base Head
UI typecheck (tsrs) — Passed
Changed owner suite, pinned Bun, one worker — 31 passed
Changed browser unit file, one worker — 2 passed
Scoped lint/format — Passed, including commit hooks and line-cap ratchet
Production Knip — Passed, no findings
Independent Codex P0–P2 review — Scoped-clean, no actionable findings
Production build, same host/fixed metadata Passed Passed, repaired source
Startup JS gzip 331,072 B 331,098 B (+26 B; within 64 B variance)
Startup JS requests 8 8
Startup CSS gzip / requests 40,439 B / 1 40,439 B / 1
Chat / New Session JS gzip 1,499,843 / 1,017,462 B 1,499,867 / 1,017,481 B; both under cap
Locale caps All 42 pass All 42 pass
Synthetic visual capture, 1440×1000 Inspected, no page errors Inspected loading/error frames, no page errors

Strict performance exits 1 on both sides only for the inherited startup cap. The repaired head adds 26 B on the already-over-cap startup surface, within the 64 B allowance; the former campaign ceiling is not used. Builds use identical release metadata. The first CI run (39600605217) passed every test job but its performance build put Chat at 1,500,001 B. Removing an unnecessary schema-success wrapper reduced the local Chat delta from +70 B to +24 B; the replacement CI artifact adds only 9 B to Chat, within the 64 B allowance (details below). The 31 owner tests also pass after this correction.

Before (synthetic cold failure):

Before: schema unavailable without Retry

After (synthetic cold failure with Retry):

After: exact schema failure with Retry

Production LOC in the four touched production files: 2,615 → 2,667 (+52). Tests/support: 1,041 → 1,105 (+64). Necessary growth carries the request receipt and accessible retry/error presentation; no second loading/error/data state or request owner is introduced. pr-simplify: retained one owner and removed the manual cold-schema branch.

The installed Solid rc.16 contract and migration note were read. The separate async-and-actions recipe is absent at this base and the latest observed main. Broad proof belongs to PR CI; ci:full is selected because runtime config has many importers.

Proof selection: the two changed test files cover the owner's deduplicated immutable failure receipt, cold failure/Retry recovery, and warm Form/Setup retention. Bounded built-UI captures cover loading and cold-error appearance; the browser unit proves retry recovery. The final build includes the behavior-preserving inlining of two single-use route aliases, which keeps the page adapter below its existing line-cap ratchet.

Current CI observation

Run 39607627288 completed with performance and two real-Gateway jobs red. CI measured startup 331,179 B (absolute cap), Chat 1,500,304 → 1,500,313 (+9 B), and New Session 1,017,898 → 1,017,933 (+35 B); CSS remains 40,439 B in one request. Both route deltas are within the 64 B allowance.

The failed names are manual code folding through a real Gateway, Control UI command palette search with a real Gateway, Control UI agent file lifecycle with a real Gateway > reads and saves the selected agent workspace through an isolated Gateway, and Control UI profile page real Gateway E2E > shows the authenticated user instead of the default agent through a real Gateway. The fixture setup supplies retired agents.defaults.heartbeat configuration; Gateway startup fails with exit 78 / INVALID_CONFIG. The later completed scheduled main run 39608923095, at bedbf6761e085133eb03badab3d116e0e33343de, fails all four exact test names with the same retired-heartbeat INVALID_CONFIG setup error. Its performance job also exceeds the same startup and Chat caps. These failures are now qualified as inherited; the candidate adds only 26 B locally to startup, 9 B in CI to Chat, and 35 B in CI to New Session. The PR remains blocked by its retained workflow supporting state schema 29 while the shared state database uses schema 30; no guard or workflow binding has been bypassed.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T12:52:24.724551Z 9e7f0cf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e7f0cfcba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (state.configSchemaVersion !== null && canLoadConfigSchema()) {
// Config success clears lastError; load the schema afterward to preserve its failures.
void config.then(() => run(() => loadConfigSchema(state), "schema"));
void config.then(() => loadOnce("schema", admitSchemaRead));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Preserve plugin-generation invalidation when joining schema reads

When pluginCapabilities.generation changes while an earlier config.schema request is still pending, the refresh path in config-write-coordinator.ts reaches refreshConnectionState(), but this loadOnce now joins the pre-generation request instead of issuing the fresh request that the previous run call started. If that older response was produced before the plugin change, it can publish a schema without the newly enabled or updated plugin fields, with no trailing read to correct it until another refresh occurs. Key the in-flight schema read by plugin generation or ensure this invalidation schedules a distinct/trailing request.

AGENTS.md reference: AGENTS.md:L68-L68

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

I checked the pending-schema/plugin-generation sequence against both the pinned base (7d732724b77369bc8627001a1cad3a5a9a49c4b2) and this PR head (185d22d308fe6bab1559f5f96998b358540dd3e0). Both have the same observable result: the generation change issues the second config.get, leaves the existing second config.schema pending, and then adopts its old-plugin schema response without a third schema request.

The base loader already returns early while configSchemaLoading is true (base source). Consequently, the previous run(...) path also skipped the invalidation's schema RPC. Joining that request preserves its actual pending receipt; restoring run(...) alone would publish a resolved empty receipt while the underlying read remains pending.

The invalidation limitation is real and remains a separate owner issue, but the claimed regression is absent from this diff. No new request-generation or trailing-refresh machinery is added to this renderer migration. The focused owner probe passed on both source variants, and all temporary base modules were removed afterward.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #180127, merged as 8c64e9f.

I verified the replacement on current main: the runtime-config capability retains the admitted schema-read completion, the Config view presents initial failure with Retry, and loaded fields remain available during revalidation. The replacement includes focused coverage for failed initial reads, Retry, and retained loaded fields. These cover this PR's schema-read and recovery changes.

Closing this stale predecessor; #180127 owns the landed fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant