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 — pm-stack: production line guard covers only .rs, so render.ts (8.5k lines) and server.ts (4.7k) are unchecked · Issue #12671 · developing-today/code

pm-stack: production line guard covers only .rs, so render.ts (8.5k lines) and server.ts (4.7k) are unchecked #12671

New issue
Copy link
New issue
Copy link
Done
Done
pm-stack: production line guard covers only .rs, so render.ts (8.5k lines) and server.ts (4.7k) are unchecked#12671
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/debtTechnical debt worth paying down deliberatelystatus:done

Description

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

Finding

The production line-count guard covers Rust only, so the largest PM-stack TypeScript file has no size check.

  • .github/scripts/check-production-line-limit.sh:4 says it checks "any production .rs file under pkgs/ (or apps/)". Its limit is LIMIT=2500 (:29).
  • pm-stack/aggregator/src/render.ts is 8,515 lines (wc -l). Its header says it is pure HTML rendering for every view. Measured across pm-stack/aggregator/src/*.ts, it is well above the Rust limit that the guard enforces.
  • pm-stack/aggregator/src/server.ts is 4,748 lines, also unguarded.

Why it matters

  • Code health: one file renders every dashboard view (charts, tables, filters, boards). Each change reviews a very large diff and is hard to test in isolation. The Rust guard exists for this reason, and its grandfather list is the established way to handle legacy files.
  • Drift: the gap is silent. New TypeScript can grow without any check.

Suggested fix shape

  1. Decide whether the TypeScript limit should match Rust (2500) or be higher. This is a judgement call for the owner.
  2. Extend the guard to pm-stack/**/src/*.ts and grandfather the existing oversize files with a split issue, as the Rust guard does.
  3. Split render.ts by view (for example charts, tables, filters) behind the existing renderX exports.

Activity

  1. dezren39
    added
    kind/debtTechnical debt worth paying down deliberately
    effort/mMedium: expected under 1 day of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

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

    CODE-4660

  3. developing-today
    added
    status:in-review
    on Nov 23, 2026
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Claim — Lane KV (archer), 2026-11-23. Taking the remaining slice of #12671.

    Premise check (fresh, first-hand): the guard extension already landed — commit 4d314d3ac0 (2026-11-22T21:07Z) extended .github/scripts/check-production-line-limit.sh to production .ts files under pm-stack src/ at the same 2500 limit, grandfathering render.ts, server.ts, and sources/live.ts with their splits tracked here. Measured on current main: render.ts 8,515 lines, server.ts 5,251, sources/live.ts 2,532 — all still over the limit.

    Remaining slice I am landing: give each grandfathered file its own split issue (the guard's convention is that each entry names the issue that removes it), re-point the three grandfather entries at those issues, and verify the guard still passes. The splits themselves stay tracked in their new issues.

  5. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Reconciliation + slice landed — Lane KV (archer), 2026-11-23.

    State of this issue, verified first-hand on current main:

    1. Limit decision + guard extension: already landed. Commit 4d314d3ac0 (2026-11-22T21:07Z) extended .github/scripts/check-production-line-limit.sh to production .ts files under pm-stack src/ at the same 2500 limit as Rust, grandfathering the three oversize files. Steps 1–2 of the suggested fix shape are done.
    2. Splits now tracked per file. Filed split(pm-stack): render.ts (8,515 lines) under the production line limit (#12671) #13051 (render.ts, 8,515 lines), split(pm-stack): server.ts (5,251 lines) under the production line limit (#12671) #13052 (server.ts, 5,251 — it grew from the 4,748 in this issue's body), and split(pm-stack): sources/live.ts (2,532 lines) under the production line limit (#12671) #13053 (sources/live.ts, 2,532). PR #13058 (merged, e4879b8c268e) re-pointed the three grandfather entries at those issues, per the guard's convention that every entry names the issue that removes it. Verified by running the guard in the worktree: the warnings now read "split tracked by split(pm-stack): render.ts (8,515 lines) under the production line limit (#12671) #13051 / split(pm-stack): server.ts (5,251 lines) under the production line limit (#12671) #13052 / split(pm-stack): sources/live.ts (2,532 lines) under the production line limit (#12671) #13053", and the entries are confirmed on main.

    This issue stays open as the umbrella until the three splits land and their grandfather entries are deleted.

    New problem found in the same pass, filed as #13057: the guard is currently red on main for three Rust files that crossed the limit after it last ran green — pkgs/id/crates/id-caps/src/world_caps.rs (2547), pkgs/id/crates/id-cli/src/commands/world.rs (2596), pkgs/id/crates/id-worlds/src/world_session/mod.rs (2504). Unrelated to the TypeScript half; tracked there.

    Also closed in this pass: #12670 (its fix had already landed in PR #12676 before pickup; done-check record posted there).

  6. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage verdict (oc-code-01): the guard extension landed in 4d314d3ac0. Open follow-ons: #13051 (render.ts), #13052 (server.ts) are still open; #13053 (live.ts) is closed. #13057 is covered by the PR #13058 split batch. Umbrella stays open until #13051 and #13052 land. No new follow-on needed.

  7. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Verified: PR #12683 (merged) brings the production line guard to cover pm-stack TypeScript (.github/workflows/production-line-guard.yml covers production .ts under pm-stack src/). render.ts and server.ts are now inside the guard's scope. Closing as implemented.

  8. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Closed as implemented.

  9. dezren39
    closed this as completedon Nov 24, 2026
  10. 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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/debtTechnical debt worth paying down deliberatelystatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      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.