GeezerVison is showing github.com — id: split pkgs/id/src/directory.rs (2,610 production lines) — remove the F11.10 line-guard grandfather entry · Issue #8591 · developing-today/code
id: split pkgs/id/src/directory.rs (2,610 production lines) — remove the F11.10 line-guard grandfather entry #8591DescriptionProblem
pkgs/id/src/directory.rs is at 2610 production lines, over the F11.10 production-line guard's 2,500-line limit (#1411). The guard was re-armed on 2026-11-11 under Drew's #7089 ruling (it had been dark since the 2026-11-04 trigger sweep — #6959), and this file is grandfathered in .github/scripts/check-production-line-limit.sh in the same change so the restored guard lands green on main.
A grandfather entry is a tracked debt, not a waiver: the guard prints a warning naming this issue on every run until the split lands.
Acceptance criteria
-
pkgs/id/src/directory.rs is split so every resulting production .rs file is under 2,500 production lines by the guard's own counting (bash .github/scripts/check-production-line-limit.sh).
- The grandfather entry for this file in
.github/scripts/check-production-line-limit.sh is deleted in the same PR.
- The package's existing tests pass; no behavior change beyond the module split.
Refs: #1411 (guard origin), #6959 (guard re-arm), #7089 (agreement contract + ruling). Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 12, 2026 Builder’s Advocate CI evidence (2026-11-12): PR #8849, which changes only pkgs/fleet/crates/fleet-queue, ran basic: production line limit (2500) in run 43185285923 against its merge ref and failed with OVER LIMIT pkgs/id/crates/id-worlds/src/directory.rs: 2536 production lines (limit 2500). This confirms the split tracked here is still required on the current base; this is not a regression introduced by #8849. dezren39 commented on Nov 13, 2026 Builder's Advocate CI evidence (2026-11-13 02:30 CST run) — the directory.rs line-guard debt has moved paths and is now a HARD failure on main, not a grandfathered warning:
- Workflow
production-line-guard, check basic: production line limit (2500), step Guard passes on this tree (#1411).
- Run 43376996518 (2026-11-13T06:11:41Z, main):
##[error]OVER LIMIT pkgs/id/crates/id-directory/src/directory.rs: 2559 production lines (limit 2500) - split the module or, if it predates this guard, grandfather it with a linked split issue (#1411) — guard FAILED, exit code 1.
- Same signature verified in run 43375100557 (2026-11-13T05:54:48Z) and run 43369462754 (2026-11-13T05:03:21Z), both on main, both 2559 lines at the same path.
This issue (#8591) tracks splitting pkgs/id/src/directory.rs (2,610 lines, grandfathered). The failing file today is the crate-split successor at pkgs/id/crates/id-directory/src/directory.rs, which has NO grandfather entry, so every main run of the guard is red until it is split or grandfathered with a linked split issue. Re-scoping this issue to the current path (or filing its split as the linked successor here) closes the gap; the acceptance test is one line: production-line-guard completes green on main.
Brief line: Line 1 (keep the fleet itself able to work — a red guard on main) and Line 2 (the ID program's crate-split tracks, #3447). dezren39 commented on Nov 13, 2026
Path update (task 16066, lane code-b, 2026-11-13): this split's file now lives at pkgs/id/crates/id-directory/src/directory.rs (2558 production lines on main 8e2cc10). Its F11.10 grandfather key named the pre-move id-worlds path and silently stopped matching (#8894), which took production-line-guard red on main (#9526); PR #9547 re-pointed the key to the current path under this issue and updated the #8894 contract-test fixture to match. The split itself is still owed here — when it lands, delete the grandfather entry for pkgs/id/crates/id-directory/src/directory.rs in the same PR.
dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged (inline triage — debt verified live at the file's current path; split routed to task 20186)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18701
- Found via: queue claim (bulk-intake triage packet, 2026-11-16)
Triage verdict (fresh, 2026-11-17, via gh + tree read):
- Issue id: split pkgs/id/src/directory.rs (2,610 production lines) — remove the F11.10 line-guard grandfather entry #8591 is OPEN with decided labels (
kind/refactor, task/small-fix, priority/normal, effort/m, app/id, meta/enriched). No hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit). No label changes needed.
- Work kind: small-fix (pure module split). Priority: normal (stands). Effort: m (stands).
- Debt verified live on current main: the file moved in the crates restructure — it now lives at
pkgs/id/crates/id-directory/src/directory.rs (4,909 total lines) — and the grandfather entry moved with it: .github/scripts/check-production-line-limit.sh line 50 maps ["pkgs/id/crates/id-directory/src/directory.rs"]="#8591". The issue body's path (pkgs/id/src/directory.rs) is stale; the obligation is unchanged.
- First concrete step: split along the file's existing module seams, public API unchanged.
- Acceptance check (the issue's, path-updated):
bash .github/scripts/check-production-line-limit.sh green with the grandfather entry deleted and no warning naming id: split pkgs/id/src/directory.rs (2,610 production lines) — remove the F11.10 line-guard grandfather entry #8591; the crate's existing tests pass; no behaviour change beyond the split.
Routing: scoped split packet queued as task 20186 (small_fix, 45 min). Task 18701 completes as triaged naming it. Issue #8591 stays open for the split PR. dezren39 commented on Nov 17, 2026
state: picked_up
task: 20186
lane: code-b
worker: repo-worker-code
Picked up by lane code-b (task 20186) to split pkgs/id/crates/id-directory/src/directory.rs under the F11.10 limit and remove its grandfather entry.
Revalidated fresh this shift: issue #8591 is OPEN with decided labels (kind/refactor, task/small-fix, priority/normal, effort/m, app/id); no held / user/owned / do-not-merge / do-not-auto-edit labels; no open PR references #8591. Guard on current main (557dd4f) reports: GRANDFATHERED pkgs/id/crates/id-directory/src/directory.rs: 2558 production lines (limit 2500) - split tracked by #8591.
Plan: pure module split along natural seams — move the validation/normalization helper functions and the replica_facts_for impl into submodules, re-exporting the public names (normalize_key, normalize_email, hex_to_array) at their existing path so the public API and behaviour are unchanged. Remove the grandfather entry in the same PR. Acceptance: guard passes with no #8591 warning, cargo test -p id-directory passes. dezren39 commented on Nov 17, 2026
state: done
task: 20186
lane: code-b
worker: repo-worker-code
Done: PR #11282 merged (merge commit 1a2431c); issue #8591 closed by the merge.
Split of pkgs/id/crates/id-directory/src/directory.rs along natural seams, pure refactor with public API unchanged:
- directory/replica.rs — the replica_facts_for impl block (moved verbatim).
- directory/validate.rs — the validation/normalization helpers; normalize_key, normalize_email and hex_to_array are re-exported from the directory module at their historical paths.
- Grandfather entry for the file deleted from .github/scripts/check-production-line-limit.sh in the same PR.
Verification: guard script passes with no #8591 warning (file was 2,558 production lines, limit 2,500); cargo test -p id-directory: 210 passed, 0 failed; moved blocks diff-verified byte-identical apart from module headers, the impl wrapper, and pub(super) visibility on private helpers; cargo fmt clean. A final downstream check (id-worlds/id-cli) was queued behind the fleet build lock for ~55 minutes and did not gate the merge — the moved items keep their exact public paths.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|