Skip to content

docs(architecture): refine Qt migration, Tauri exit & PWA reuse strategy - #477

Open
qnbs wants to merge 14 commits into
mainfrom
docs/desktop-migration-rev3-332
Open

docs(architecture): refine Qt migration, Tauri exit & PWA reuse strategy#477
qnbs wants to merge 14 commits into
mainfrom
docs/desktop-migration-rev3-332

Conversation

@qnbs

@qnbs qnbs commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

Refines the Qt-first desktop migration strategy using the accumulated #332 packaged Linux evidence and now codifies the cross-cutting reuse/ownership discipline required to execute the migration and the first-class PWA program without parallel product architectures.

This remains an architecture/governance PR. It changes no shipped runtime authority and introduces no production Qt UI.

What changes

Revision-3 native migration refinement

Cross-cutting architecture reuse / ownership governance

  • adds docs/architecture/ARCHITECTURE-REUSE-OWNERSHIP.md as a governance companion, not another roadmap;
  • establishes ONE PRODUCT MODEL / ONE VERSIONED PROJECT TRUTH / ONE AUTHORITY PER SEMANTIC CAPABILITY;
  • introduces a mandatory existing-authority/seed audit before non-trivial new services, stores, crates, managers, queues, registries, capability detectors, or state machines;
  • establishes capability boundaries before package/crate boundaries — roadmap responsibility names do not automatically authorize new crates/packages;
  • defines the preferred order: fix existing owner → extend → narrow adapter → extract real duplication → refactor authority → only then new subsystem;
  • distinguishes product feature truth, runtime capability truth, subsystem admission and diagnostics;
  • codifies existing reuse seeds for persistence, encryption admission, local-AI coordination, OPFS, Service Worker/update state, external launch/import and diagnostics;
  • prevents silent dual storage authority when OPFS or File System Access is added;
  • requires PWA update hardening to refine/retire the current SW/update path instead of building a second update manager;
  • requires deferred/background PWA work to reuse existing task/application executors rather than create a second general task framework;
  • defines cross-renderer evidence as shared semantic scenarios/fixtures/metrics with renderer-specific drivers rather than one artificial mega-driver.

Mechanical enforcement

scripts/check-native-readiness.mjs now also verifies that the reuse/ownership policy retains critical invariants, including:

  • capability-before-crate/package governance;
  • explicit reuse-first existing-authority audit;
  • one semantic authority per capability;
  • shared scenario semantics without forced driver parity;
  • separation of PWA runtime capability from feature-flag product admission;
  • no second live-project authority for OPFS/File System Access;
  • no duplicate PWA update manager;
  • no duplicate general task framework for deferred PWA work.

Repository issue reconciliation performed alongside this refinement

The related GitHub issues now carry maintainer-level architecture refinements so implementation agents do not reinterpret the umbrella work as greenfield:

Non-goals

Governance

Wave / gate: roadmap refinement; proposed Wave 2.5 / G1.5 / G2.5
Authority changed? NO
DesktopPlatform boundary affected? NO — preserved/strengthened as policy
Direct Tauri import added? NO
Qt-specific API leaked into shared code? NO
R-15 / #357/#359/#360/#361 invariant affected? NO implementation; explicitly preserved
#332 acceptance scenario affected? YES — expanded into canonical cross-renderer evidence
PWA architecture affected? GOVERNANCE ONLY — reuse/ownership constraints; no runtime code
Data format changed? NO
Security boundary changed? NO
Evidence maturity: documentation / FIELD_OBSERVED inputs from #332
Rollback: revert documentation/tooling commits; no runtime state affected

Validation expected

  • documentation/native-readiness policy checks;
  • normal repository CI;
  • CodeQL/security checks as configured;
  • review quiescence after the new governance commit set;
  • no product/runtime behavior claim from documentation-only evidence.

Closes no issue.

Summary by Sourcery

Codify the refined Qt migration and first-class PWA strategy around shared semantic evidence, explicit ownership, and reuse of existing architectural authorities.

Enhancements:

  • Refine the Qt-first desktop migration with explicit Tauri stop-loss rules, cross-renderer lifecycle/performance evidence, and earlier Qt graphics and lifecycle qualification gates.
  • Establish reuse-first architecture governance requiring one semantic authority per capability across PWA, native, and shared Core work.
  • Expand the PWA audit into a living architecture and acceptance specification covering offline behavior, storage, updates, local AI, external inputs, mobile, accessibility, security, and release evidence.

CI:

  • Extend native-readiness checks to mechanically enforce Revision-3 migration gates and critical reuse/ownership invariants.

Documentation:

  • Add the normative Revision-3 desktop migration roadmap and the cross-cutting architecture reuse/ownership policy, while evolving the PWA audit into the central living PWA architecture specification.
  • Clarify Qt early-killer gates and Tauri transitional maintenance guidance, including Linux graphics differentials, clean process-tree requirements, and Qt handoff criteria.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@codeant-ai

codeant-ai Bot commented Aug 23, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Incremental review completed 884a016 Aug 24, 2026 · 11:45 11:46
✅ Reviewed your PR b82d081 Aug 23, 2026 · 19:23 19:24

@codeant-ai

codeant-ai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@sourcery-ai sourcery-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.

Sorry @qnbs, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldscript-studio Ready Ready Preview Aug 24, 2026 12:45pm

@sourcery-ai

sourcery-ai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Reviewer's Guide

Refines the native desktop migration strategy docs by adding a detailed Qt-first roadmap revision and tightening the Tauri transitional maintenance policy around #332, emphasizing portable-vs-runtime classification, cross-renderer acceptance criteria, and strict renderer-neutral architecture invariants.

Sequence diagram for cross-renderer lifecycle acceptance

sequenceDiagram
    participant Harness as BenchmarkHarness
    participant PWA as PWA
    participant Tauri as Tauri
    participant Qt as Qt
    participant Core as RustCore
    Harness->>PWA: run GOLDEN_DESKTOP_LIFECYCLE_332
    PWA->>Core: edit_and_autosave
    Harness->>PWA: background_and_resume
    Harness->>Tauri: run GOLDEN_DESKTOP_LIFECYCLE_332
    Tauri->>Core: edit_and_autosave
    Harness->>Tauri: background_and_resume
    Harness->>Qt: run GOLDEN_DESKTOP_LIFECYCLE_332
    Qt->>Core: edit_and_autosave
    Harness->>Qt: background_and_resume
    Harness->>Harness: compare latency_memory_and_lifecycle_results
Loading

Flow diagram for Tauri evidence exit and Qt transfer readiness

flowchart TD
    S[#332 observed symptom] --> C{Portable or runtime-specific?}
    C -->|Data, security, app/Core, or portable memory defect| F[FIX or DEFER-TO-CORE]
    C -->|Narrow adapter defect| A[FIX or MITIGATE]
    C -->|Runtime, compositor, driver, or WebProcess correlation| E[Bounded evidence]
    C -->|Unknown ownership| I[Instrument until ownership narrows]
    E --> X[G1.5 Tauri Evidence Exit]
    I --> C
    X --> H[Reusable lifecycle and benchmark scenarios]
    H --> Q[G2.5 Qt Renderer Differential Gate]
    Q -->|Pass| M[Proceed with broad Qt migration]
    Q -->|Fail| R[Pause Qt investment and review architecture]
Loading

File-Level Changes

Change Details Files
Introduce a Revision 3 desktop migration roadmap that canonically defines the Qt-first strategy, gates, waves, and evidence program. docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md
Tighten Tauri transitional maintenance around #332 with explicit classification, memory semantics, cross-renderer benchmarks, and a Qt handoff rule. docs/native/TAURI-TRANSITIONAL-MAINTENANCE.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codeant-ai codeant-ai Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files label Aug 23, 2026
@codeant-ai

codeant-ai Bot commented Aug 23, 2026

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit: 2a6da40b
Scan Time: 2026-08-24 12:45:33 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality Gate Status Details
Secrets ✅ PASSED 0 secrets found
Duplicate Code ✅ PASSED 0.0% duplicated
SAST ✅ PASSED No security issues
Bugs ✅ PASSED Rating S: No bugs
IAC ✅ PASSED No IAC issues

View Full Results

@amazon-q-developer amazon-q-developer 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.

This PR successfully refines the desktop migration strategy documentation without introducing any blocking issues. The changes are documentation-only and appropriately scoped:

Key Additions:

  • Comprehensive Desktop Migration Roadmap Revision 3 with clear gates, waves, and decision criteria
  • Enhanced Tauri Transitional Maintenance policy with portable-vs-runtime classification
  • Formal investment gates (G1.5, G2.5) and Wave 2.5 for evidence-based migration
  • Cross-renderer benchmark framework and GOLDEN-DESKTOP-LIFECYCLE-332 acceptance scenario

Governance Alignment:
The PR correctly declares no changes to authority, runtime code, CI requirements, or security boundaries. The documentation strengthens architectural invariants around the DesktopPlatform boundary and renderer-neutral Core.

Recommendation: Approved for merge after normal CI/documentation checks pass.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 54 minutes.

View limit details

Limit details: You’ve used the included review currently available. Your 111 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1ad4c72a-23b7-4b14-948e-b6506cc9378c

📥 Commits

Reviewing files that changed from the base of the PR and between fdd60c9 and 2a6da40.

📒 Files selected for processing (6)
  • docs/PWA-AUDIT.md
  • docs/architecture/ARCHITECTURE-REUSE-OWNERSHIP.md
  • docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md
  • docs/native/QT-EARLY-KILLER-GATES.md
  • docs/native/TAURI-TRANSITIONAL-MAINTENANCE.md
  • scripts/check-native-readiness.mjs

Warning

Your free Security trial is over. An organization admin can activate billing to continue.


Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b82d081176

ℹ️ 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".

Comment thread docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md
Comment thread docs/native/TAURI-TRANSITIONAL-MAINTENANCE.md Outdated
Comment thread docs/native/TAURI-TRANSITIONAL-MAINTENANCE.md Outdated
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

qnbs commented Aug 23, 2026

Copy link
Copy Markdown
Owner Author

Review reconciliation on head f833bf6:

  • ✅ P1 Revision-3 authority gap: added an explicit normative roadmap chain in TAURI-TRANSITIONAL-MAINTENANCE.md and extended native-readiness:check so G1.5, G2.5, Wave 2.5 and GOLDEN-DESKTOP-LIFECYCLE-332 are mechanically required.
  • ✅ P2 orphan-process regression: restored clean-process-tree/no-orphan acceptance for close/relaunch and added it to the cross-renderer metric set / Qt handoff.
  • ✅ P1 conflicting stop rules: removed the shorter legacy rule and established exactly one authoritative [Desktop/Tauri→Qt]: Linux responsiveness, Alt-Tab hang & memory — cross-renderer acceptance baseline #332 Tauri exit rule, with retirement kept as a separate later gate.
  • ✅ all three ChatGPT-Codex-Connector review threads resolved.

No production/native runtime authority changed. CI/CD and CodeQL are running on the corrected head. This PR remains intentionally open and must not be merged until the separate in-progress VS Code/Codex execution has fully completed and the branch is reconciled against the resulting main.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f833bf6af8

ℹ️ 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".

Comment thread scripts/check-native-readiness.mjs
Comment thread scripts/check-native-readiness.mjs Outdated
Comment thread docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md
Comment thread docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md Outdated
Comment thread docs/native/TAURI-TRANSITIONAL-MAINTENANCE.md Outdated
@codeant-ai

codeant-ai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot removed the size:XXL This PR changes 1000+ lines, ignoring generated files label Aug 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 169bcb6543

ℹ️ 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".

Comment thread scripts/check-native-readiness.mjs Outdated
Comment thread docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md Outdated
Comment thread docs/architecture/ARCHITECTURE-REUSE-OWNERSHIP.md

qnbs commented Aug 24, 2026

Copy link
Copy Markdown
Owner Author

Commit-signing note — 2026-08-24

The architecture/governance refinements added in this pass were committed directly through the GitHub connector and are intentionally treated as temporary unsigned commits on the existing PR branch.

Before merge, the branch owner plans to rewrite/rebase this commit stack locally through Codex CLI / VS Code and recreate the affected commits with the repository's normal verified signing configuration.

Therefore:

  • do not treat the current connector-created commit identities/signature state as merge-ready evidence;
  • preserve the content and semantic scope during the signed rewrite;
  • after rewriting, rerun the full PR CI/CodeQL/signature/review cycle on the new head SHA;
  • use the rewritten signed head as the only merge candidate;
  • do not merge this PR solely because the current unsigned head is otherwise green.

qnbs commented Aug 24, 2026

Copy link
Copy Markdown
Owner Author

Review-correction reconciliation — 2026-08-24

All currently reported inline review findings have now been reconciled and the threads resolved.

Corrections include:

The current commits remain temporary unsigned connector-created commits per the earlier signing note. After the planned signed local rewrite, all CI/CodeQL/signature/review evidence must be regenerated against the rewritten head SHA.

@qnbs qnbs changed the title docs(native): refine Tauri exit and Qt migration acceptance strategy docs(architecture): refine Qt migration, Tauri exit & PWA reuse strategy Aug 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f010dae61

ℹ️ 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".

Comment thread docs/PWA-AUDIT.md Outdated
Comment thread docs/native/DESKTOP-MIGRATION-ROADMAP-REV3.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant