Skip to content

fix: split actor.rs and edge.ts under the 2500-line production guard (#14547) - #14582

Closed
dezren39 wants to merge 1 commit into
mainfrom
felix/14547-prod-line-guard-split
Closed

dezren39 wants to merge 1 commit into
mainfrom
felix/14547-prod-line-guard-split

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Splits the two files that pushed the production-line guard over its limit, so check-production-line-limit.sh goes green again.

pkgs/id/crates/id-worlds/src/world/actor.rs (2562 production lines)

  • Move the journal-compaction methods (compact_if_due, force_compact_for_replication, publish_replication_reset) into a new world/actor/compaction.rs submodule, the same pattern as the existing world/actor/execution.rs split. The free function oversized_journal_compaction_error stays in actor.rs.

pm-stack/console/edge/src/edge.ts (2975 production lines)

  • Move the held/acts/ready machinery (heldList .. refusedReads, including the stood/taken/handed/draining state of Edge.create) into a new edge-held.ts module as an export abstract class EdgeHeld, which Edge now extends. Since Edge keeps ownership of that state, the moved property accesses are widened to protected (private -> protected is a visibility widening, not a behaviour change) and the cross-called Edge members are declared abstracted on the base.
  • Edge, KV, SILENT_MS and next remain reachable from edge.ts; the test surface in test/edge.test.ts, test/timed.test.ts and test/console.test.ts is unchanged.

Verification:

  • bash .github/scripts/check-production-line-limit.sh -> OK (limit and counting rules untouched; grandfather list untouched)
  • cargo test -p id-worlds --lib world::actor -> 35 passed, 0 failed
  • bun test in pm-stack/console -> 660 passed, 0 failed
  • npx tsc --noEmit -p ../tsconfig.json in pm-stack/console/edge -> clean

Closes #14547

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T20:03:44Z",
    "session_id": "ses_e5df11341c5ffebd0UpxzETIxR",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/14547-prod-line-guard",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/14547-prod-line-guard",
      "repo": "developing-today/code",
      "branch": "felix/14547-prod-line-guard-split",
      "sha": "f0b6ac27b9adb5db01f2a6718cfb8d356206ca0d"
    },
    "auth_subject": "code-j",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…console/edge/src/edge.ts for production-line guard (#14547)
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2d8cf5af-5ef7-4448-89d5-f0bb86f85297
Commits

Reviewing files that changed from the base of the PR and between 5112315 and f0b6ac2.

Files selected for processing: 4

  • pkgs/id/crates/id-worlds/src/world/actor.rs
  • pkgs/id/crates/id-worlds/src/world/actor/compaction.rs
  • pm-stack/console/edge/src/edge-held.ts
  • pm-stack/console/edge/src/edge.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Closed as cancelled. Duplicate: the #14547 split already landed via PR #14566 (merge commit 5365caf). This branch conflicts with main because that fix is merged; no changes from this PR are needed.

@dezren39 dezren39 closed this Nov 24, 2026
@developing-today-fleet
developing-today-fleet Bot deleted the felix/14547-prod-line-guard-split branch November 24, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[main-ci] production-line-guard failing on main — actor.rs (2562) and edge.ts (2975) over 2500-line limit

1 participant