Skip to content

Harden cross-cutting runtime contracts - #357

Merged
smiggleworth merged 1 commit into
mainfrom
fix/adversarial-bug-hunt
Aug 24, 2026
Merged

Harden cross-cutting runtime contracts#357
smiggleworth merged 1 commit into
mainfrom
fix/adversarial-bug-hunt

Conversation

@smiggleworth

Copy link
Copy Markdown
Contributor

Summary

  • scope resolved auth to each SSR render and preserve it through deferred streaming boundaries
  • make successful superseded actions and mutations invalidate confirmed data while keeping visible state generation-safe
  • coalesce queued query refreshes and fence reconciliation retries against newer work
  • make horizontal roving focus direction-aware, repair range ownership transfer, preserve idle hydration with permanent skips, and centralize safe ref writes
  • document the corrected SSR, data, hydration, and RTL behavior

Pattern audits

  • audited all generation/controller comparisons in actions, mutations, queries, and reconciliation; they now use shared current-operation predicates
  • audited render-context global fallbacks and context setters; low-level route resolution now transfers resolved auth into the request render context, including deferred passes
  • audited renderer ref writes; mount, update, cleanup, and rollback use the canonical readonly-safe helper
  • audited renderer range identity guards and hardcoded horizontal arrow handling in this package
  • added overlapping async-cell tests, a concurrent deferred-auth test, an eight-cell hydration option matrix, a real RTL navigation test, and pathological readonly-ref coverage

Validation

  • npm run fmt -- --check
  • npm run lint
  • npm run build
  • npm test (238 unit, 37 checks, 1,498 jsdom, 52 browser)
  • npm run test:types

No package versions, dependency ranges, release metadata, tags, or publish workflows were changed.

Closes #347
Closes #348
Closes #349
Closes #350
Closes #351
Closes #352
Closes #353
Closes #354
Closes #355
Closes #356

@smiggleworth
smiggleworth marked this pull request as ready for review August 24, 2026 17:13
Copilot AI lite review requested due to automatic review settings August 24, 2026 17:13

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@smiggleworth
smiggleworth merged commit b847da3 into main Aug 24, 2026
3 checks passed
@smiggleworth
smiggleworth deleted the fix/adversarial-bug-hunt branch August 24, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants