Repository navigation
console: split edge.ts into five stores (#16255 slice 22) - #17029
Merged
Merged
Conversation
edge.ts was 3,742 lines, over the 2,500 production-line limit. Five clusters move into sibling modules along the file's own seams, each fed by the Edge through a small host interface, no behavior change: - relays.ts: the relay markers for actions asked of a host - config-store.ts: what this side goes by, and the owner's settings - machines.ts: machine keys, enrolment, worker checks, transport probes - held.ts: what is held, handed over, and taken to do - wake.ts: the waking — scheduling, the alarm, and what changed edge.ts is now 2,467 lines. The Edge keeps thin delegating wrappers only where its public surface or many call sites use them.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 30, 2026
Contributor
Author
|
Gate adjudication — lane 0640-EW, log of run 46328646691 read firsthand:
Merge recommendation stands on the suite result; the tsc leg is confirmatory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 22 of #16255 (production-line guard):
pm-stack/console/edge/src/edge.tswas 3,742 lines, over the 2,500 limit. Five clusters move into sibling modules along the file's own seams, following the pattern of slices 18/19 (PRs #16988/#16995) — each store is fed by the Edge through a small host interface of closures, so a store asks at the time it acts. No behavior change.relays.ts(140 lines): relay markers for actions asked of a hostconfig-store.ts(244): what this side goes by, route flips, the owner's settingsmachines.ts(232): machine keys, enrolment, worker checks, queue-transport probesheld.ts(755): what is held, handed over, and taken to do, plus the hold/keep intakewake.ts(278): scheduling, the alarm, and change/trend watchingedge.tsis now ~2,468 lines and no longer appears in the guard's over-limit list (the guard still fails overall on the files other slices own). The Edge keeps thin delegating wrappers only where its public surface or many call sites use them (config(),setOwnerSetting/clearOwnerSetting,alarm(),lastWorkerChecks(),lastQueueTransport()); imports the moved clusters no longer need were dropped from edge.ts.Local evidence (iteration only; the remote gate is the record):
tsc -p tsconfig.jsonclean; localbun testrun shows no failure that a pristine origin/main run on the same seat does not also show (this seat times out a set of environment-sensitive tests under load in both).Gate: fleet-command run of the console suite (
bun testfrom pm-stack/console) + typecheck at this head, dispatched by lane 0640-EW; verdict will be posted here and on #16255.Refs #16255 (does not close it: atlas-search/fleet-search parity, fleet-cert cli.rs, fleet gh.rs (slice 20), and id-cli serve.rs (slice 21) remain).
{ "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-30T00:22:55Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.