GeezerVison is showing github.com — feat(pm-stack): primary-parent validation + audit output + label family sync (#9066) by dezren39 · Pull Request #13700 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements the collector-side half of #9066 (design §3 + §11 semantics), from doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy/note.md.
What lands here
-
Primary-parent invariants are now checked, not silently resolved (pm-stack/aggregator/src/metadata-ingestion.ts):
- at most one
primary-parent/* label per issue;
- when a native sub-issue parent exists, the label must agree with it or name one of its ancestors (program-level parent);
- a
primary-parent/<slug> naming no known epic is reported.
collectPrimaryParentViolations only reports — resolution stays a reconcile/human decision, per the design's "violations are reported, never silently resolved".
-
The sweeper surfaces those findings in its audit output (scripts/metadata-sweeper.ts): every repo row in the JSON summary now carries primaryParentViolations and the violations[] list. The native-parent ancestor chain is fetched only when a primary-parent/* label is present; an unreadable chain is logged and never manufactures a finding.
-
scripts/sync-primary-parent-labels.ts creates the primary-parent/<slug> family from today's epic/<slug> family (idempotent, --dry-run, strict argv contract Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352). Slug-too-long-for-50-chars are skipped and reported, never truncated.
-
Tests: test/primary-parent-validation.test.ts pins each invariant and the label planner (13 tests). Existing metadata tests still pass.
Not in this slice (remaining #9066 acceptance)
Refs #9066
{
"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-23T20:53:19Z",
"session_id": "ses_e5df613d66effe3gUy3c1n1m5g",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/20430-9066-primary-parent-impl",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/20430-9066-primary-parent-impl",
"repo": "developing-today/code",
"branch": "queue/20430-9066-primary-parent-impl",
"sha": "fa271715267979280c1d4cda74d7a1c6a557c25f"
},
"auth_subject": "oc-code-05",
"stamped_by": "fleet 0.1.0 (native)"
}
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… sync (#9066)
- metadata-ingestion: collectPrimaryParentViolations enforces at-most-one
primary-parent/* label, label/native agreement or ancestor rule, and
reports unresolved labels; never resolves them.
- metadata-sweeper: runs the validator per item, reads the native parent
ancestor chain when a label is present, and reports violations in the
JSON audit output.
- scripts/sync-primary-parent-labels: idempotently creates
primary-parent/<slug> for each epic/<slug> (strict argv, --dry-run).
Refs #9066
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 15 minutes.
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:
df85b05f-9c60-473c-b838-788ea9b0d8fd
Commits
-
Reviewing files that changed from the base of the PR and between 3d519b0 and 6fee1b3.
Files selected for processing: 4
-
pm-stack/aggregator/scripts/metadata-sweeper.ts
pm-stack/aggregator/scripts/sync-primary-parent-labels.ts
pm-stack/aggregator/src/metadata-ingestion.ts
pm-stack/aggregator/test/primary-parent-validation.test.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
… combine checked-var rename with main formatting)
Uh oh!
There was an error while loading. Please reload this page.
|
Batch A merge (lane code-i, task 21622): merge-main-in 6fee1b3 pushed (no force), verified, PR merged as af52642.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|