GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Architecture] Decouple Web UI from Core Library · Issue #6377 · developing-today/code

[Architecture] Decouple Web UI from Core Library #6377

New issue
Copy link
New issue
Copy link
Done
Done
[Architecture] Decouple Web UI from Core Library#6377
Copy link
Labels
effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item
Milestone
ID platform program

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Description

The current architecture tightly couples the web UI with the core library, making it difficult to:

  • Test web features independently
  • Support headless environments
  • Optimize build times
  • Maintain separate release cycles

Acceptance Criteria

  • Web UI can be built and tested independently
  • Core library has no web dependencies
  • Build system automatically detects variant changes
  • Documentation updated for new architecture
  • CI/CD pipelines updated

Rationale

The current dual-variant approach creates maintenance complexity and prevents optimal deployment scenarios.

Scope

  • Refactor web UI components into separate crate structure
  • Update build system to support independent builds
  • Modify CLI to dynamically load web assets
  • Update Nix flake to support separate packages

Dependencies

None

Priority

High - Architecture modernization needed for scalability

Activity

Next
  1. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1893

  2. dezren39
    added
    kind/enhancement
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/needs-triageNot yet triaged; needs a first look
    source/humanFiled directly by a human
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: issue [Architecture] Refactor Web UI into Separate Crate #6382 (Refactor Web UI into Separate Crate) is the near-twin of this item — see the note there. Treat the pair as one decision.
    • Notes: Filed by Drew; acceptance criteria already in the body. Labelled kind/enhancement, priority/normal, effort/l, status/needs-triage.
    • Risks: Two overlapping Web UI separation efforts diverging; also a wide refactor while pkgs/id extraction work (issues pkgs/id crate split — step 1: extract id-caps (workspace + leaf foundation already landed as id-core) #4403–pkgs/id crate split — step 7: extract id-cli; facade slimming #4411) is in flight.
    • Suggested approach: One boundary decision covering both [Architecture] Decouple Web UI from Core Library #6377 and [Architecture] Refactor Web UI into Separate Crate #6382, then a stepped extraction with the compiler as the oracle at each step.
  4. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 6, 2026
  5. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-h
    • Session / ID: task 11089
    • Found via: queue claim
    • Task: task 11089 (triage for issue [Architecture] Decouple Web UI from Core Library #6377) claimed by lane code-h; issue [Architecture] Decouple Web UI from Core Library #6377 verified OPEN with no hard-stop labels; execution-lane assignment returned opencode, so task 11089 is handed off to the opencode claimant per the worker instruction §1b and parked 1200s pending the claimant launching the bound session; if the park expires first, task 11089 returns to the queue.
    • Expectation: claimant launches the bound opencode session and drives task 11089 to its terminal state
    • Links: issue [Architecture] Decouple Web UI from Core Library #6377
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  7. 56 remaining items

  8. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Triaged — updated verdict: queue task 18480 (bulk-intake triage of issue #6377), Muse lane code-b, 2026-11-17.

    The triage of record (task 11170, 2026-11-08) routed issue #6377's work to the sequenced program on issue #3447. Fresh this shift: issue #3447 is now CLOSED as COMPLETED (2026-11-13T08:55:54Z) — the pkgs/id monolith split landed, with id-web and id-cli as separate crates and a separate Nix id-web package. That delivers the crate-structure half of issue #6377's scope (web UI components in a separate crate; Nix flake supporting separate packages).

    Not evidenced as done in #3447's closing record: the remaining acceptance items of issue #6377 — CLI dynamically loading web assets, build-system variant-change detection, documentation and CI/CD updates for the new architecture. Issue #6377 therefore stays OPEN (no hard-stop labels, no status/needs-triage; priority/normal, effort/l stand), and its remainder is a scoped verification-then-fix follow-on against current main: check each remaining acceptance item, close what the split already delivered with evidence, and packet the rest. Reconciliation should enqueue that follow-on; this triage does not duplicate it into a second architecture program.

  10. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    Verify-and-close pass (repo-health queue task 20720, openchamber scheduled lane, 2026-11-18) against origin/main.

    Evidence per acceptance item:

    • Core library has no web dependencies: done by the pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447 split. id-web and id-cli are separate crates; web support is gated behind the optional web feature (pkgs/id/Cargo.toml, pkgs/id/crates/id-cli/Cargo.toml).
    • Web UI can be built and tested independently: partly done. id-web is its own crate with rust-embed assets (pkgs/id/crates/id-web/src/assets.rs), and pkgs/id/WEB.md documents the build.
    • Build system detects variant changes: not done as written. pkgs/id/build.rs checks web/dist for assets in release builds but emits no cargo:rerun-if-changed for web/dist.
    • Documentation updated: mostly done. pkgs/id/WEB.md and pkgs/id/ARCHITECTURE.md reference the split.
    • CI/CD updated: partly done. .github/test-suite-registry.json lists id-web.
    • Scope item 'CLI dynamically loading web assets': not done as written. Assets are compiled in with rust-embed, not loaded at runtime.

    Outcome: #6377 stays OPEN. The two not-done items (variant-change detection in build.rs, and the dynamic-loading wording, which needs an owner decision on whether embedded assets satisfy it) are re-routed to the id-program owner as a separate packet. Closing waits on that decision.

  11. dezren39
    removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Agent note — Lane DW (Muse sandbox lane, archer) claiming the next slice of #6377

    Fresh premise check (2026-11-22): issue OPEN; the #3447 split is closed and delivered the crate separation; the 2026-11-18 verify-and-close pass on this issue recorded two not-done items. One of them is landable without an owner decision:

    • Build system automatically detects variant changes — not done as written: pkgs/id/build.rs checks web/dist in release builds but emits no cargo:rerun-if-changed for it, so frontend asset changes under web/dist are not a declared build-script input.

    This lane's slice: emit cargo:rerun-if-changed for web/dist from pkgs/id/build.rs on the web-feature path (release assertion branch + dev branch), with unit tests in build.rs's existing test module. One PR.

    The other not-done item (CLI "dynamically loading web assets" wording vs rust-embed compile-time embedding) still needs the owner decision recorded on 2026-11-18 and is NOT part of this slice. #6377 stays open after this slice for that decision.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Agent note — Lane DW progress: PR open for the #6377 variant-detection slice

    PR #12874 — fix(id): declare web/dist as a build-script input so asset changes rebuild (#6377) (head 4226a4285bb, one file: pkgs/id/build.rs).

    Emits cargo:rerun-if-changed for web/dist on the web-feature path (release branch after the asset assertion; dev branch after ensuring the directory exists), via a pure helper with a unit test in build.rs's existing test module. Verified so far: rustfmt clean; build.rs unit tests 3/3 (incl. the new directive test); behavioral harness with this exact build.rs under cargo — directive present in captured build-script output, no re-run when dist is unchanged, re-run after a dist asset changes, no directive with the feature off. In-tree cargo check -p id running; merge + completion record follow when it passes.

  14. developing-today
    added
    status:in-review
    on Nov 23, 2026
  15. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12874 from developing-today/lane-dw/6377-rerun-if…

    d6d1e20
  16. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Agent note — Lane DW completion record: #6377 slice "build system detects variant changes" LANDED

    PR #12874 merged 2026-11-23T04:15:46Z, merge commit d6d1e206f8ecd65485b738cd6b2569b15576cf4e (head 4226a4285bb, SHA-guarded). Verified read back from main: pkgs/id/build.rs on main contains the helper, both emission sites, and the new test.

    What landed (one file, pkgs/id/build.rs, +26/−2): a pure helper rerun_if_changed_directive(web_dist); main emits cargo:rerun-if-changed for web/dist on the web-feature path only — release branch after the asset assertion passes, dev branch after ensuring the directory exists. The non-web path still returns before any directive, so cargo's default whole-package watch is preserved for that variant.

    Verification (oracle: does cargo re-run the build script when a web asset changes?):

    • rustfmt --edition 2024 --check on build.rs: clean.
    • build.rs unit tests via rustc --test: 3 passed / 0 failed, incl. new rerun_directive_declares_the_dist_dir.
    • Behavioral harness (this exact build.rs as a scratch package's build script, web feature): captured build-script output = cargo:rerun-if-changed=<pkg>/web/dist; no re-run when dist unchanged; re-run after a dist asset changed; no directive with the feature off.
    • In-tree cargo check -p id (pkgs/id nix develop shell, worktree off origin/main): Finished, 0 errors (156 pre-existing lib warnings, unrelated to this one-file build.rs change).

    Acceptance-criteria state after this slice:

    • ✅ Core library has no web dependencies — pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447 split (prior record).
    • ✅ Web UI built/tested independently — id-web crate (prior record).
    • ✅ Build system automatically detects variant changes — this PR.
    • ✅ Documentation updated — WEB.md / ARCHITECTURE.md (prior record).
    • ◐ CI/CD pipelines updated — test-suite-registry lists id-web (prior record: partly done).
    • ❓ Scope item "CLI dynamically loading web assets": still needs the owner decision recorded 2026-11-18 (rust-embed compile-time embedding vs runtime loading). [Architecture] Decouple Web UI from Core Library #6377 stays OPEN for that decision — it is the only remaining item, and it is a decision, not a build task.
  17. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Agent note — task 21496 blocked as packet_defect (lane code-f)

    Fresh premise + ownership check: #6377 OPEN, no hard-stop labels; only live queue claim on this issue is this task (verified via claimed-list grep); no open PR for #6377.

    The design packet cannot be executed as written — its premise is stale:

    1. It asks for a new design record deciding the web/core decoupling, but that architecture is already decided and implemented: design record doc/2026-11-01T16-53-00Z_design_id_crate_split exists; the pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447 split landed (CLOSED 2026-11-13 — id-web + id-cli verified as separate crates on current main); [Architecture] Refactor Web UI into Separate Crate #6382 CLOSED; PR fix(id): declare web/dist as a build-script input so asset changes rebuild (#6377) #12874 merged 2026-11-23 delivering the variant-change detection the packet lists as undecided. A second full design record would be a competing duplicate.
    2. It names [Innovation] AI-Powered File Management Integration #6381 as the embed-vs-runtime-loading decision gate depending on this record, but [Innovation] AI-Powered File Management Integration #6381 is OPEN as "[Innovation] AI-Powered File Management Integration" — unrelated to web assets. Wrong link.
    3. Its acceptance demands crate build/test evidence via the dispatch route while forbidding code implementation in the same packet.

    Recommended re-scope (not executed here): a narrow follow-on deciding embed-vs-runtime-loading only — rust-embed compile-time embedding is what ships today, and the 2026-11-18 verify-and-close pass left exactly that as the single open item on #6377 — plus close-out verification. No branch created, no files written.

  18. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Second-pass verify-and-route (task 21883, lane code-i, 2026-11-24): verdict — decide, record, close with evidence.

    Decision (decide-and-proceed, recorded here for overturn): KEEP rust-embed compile-time embedding; the scope's "dynamically load web assets" is corrected, not implemented. Rationale: pkgs/id/crates/id-web/src/assets.rs documents embedding as the single-binary deployment strategy — which directly serves this issue's own goals (headless environments, separate release cycles, independent builds). Runtime loading would reintroduce asset-path/deployment coupling for no stated requirement; no acceptance item requires swapping assets without a rebuild. The crate-split design record (doc/2026-11-01T16-53-00Z_design_id_crate_split) is the architecture of record; no competing design record (the cancelled task 21496 packet would have been a duplicate).

    Close-out verification against main (fresh this pass):

    • Core library has no web dependencies ✓ — pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447 CLOSED; web is an optional feature (pkgs/id/crates/id-cli/Cargo.toml:13,25: web = [..., dep:id-web, ...], id-web ... optional = true).
    • Web UI built/tested independently ✓ — id-web separate crate; pkgs/id/WEB.md documents the build; registry lists pkgs/id/crates/id-web/tests/web_router_security.rs (.github/test-suite-registry.json:1657).
    • Build detects variant changes ✓ — PR fix(id): declare web/dist as a build-script input so asset changes rebuild (#6377) #12874 MERGED 2026-11-23; pkgs/id/build.rs on main emits cargo:rerun-if-changed for the web dist input (helper :26, emission :72).
    • Documentation updated ✓ — pkgs/id/WEB.md, pkgs/id/ARCHITECTURE.md reference the split.
    • CI/CD updated ✓ — id-web in the test-suite registry; dispatch/nightly regime per standing CI policy.

    No follow-on packet: both queue lineages for this issue are consumed by done tasks (triage 18480, fix 20720 — the verify passes themselves), and nothing actionable remains. #6377 resolves here.

  19. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Closed as implemented.

  20. dezren39
    closed this as completedon Nov 24, 2026
  21. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      • ID platform programNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.