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 — feat(pm-stack): primary-parent validation + audit output + label family sync (#9066) by dezren39 · Pull Request #13700 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

  1. 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".

  2. 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.

  3. 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.

  4. 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)

  • Running the label sync against GitHub and reading the created labels back.
  • Backfill of the crate-split chain (steps → pkgs/id: split the monolith crate into sub-crates along module seams (prioritized by Drew 2026-11-01) #3447 → pkgs/id: build-time review — runtime performance first, then build time (cold check build ~16 min, tests run 12 s) #3195 → epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056) with blocks + labels, and the chain genealogy readback.
  • project-reconcile maintaining the pm-metadata block with divergence findings (that surface lives outside this repo — hatch-personal's project-reconcile.sh; the validator added here is the shared rule it can call).

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)"
  }
}

Prove it works
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.

All reactions
@dezren39
feat(pm-stack): primary-parent validation, audit output, label family…
fa27171
… 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

coderabbitai Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
Shorten primary-parent label descriptions under GitHub's 100-char limit
83ed1ee
This was referenced Nov 24, 2026
AUDIT-7 Lane 1 follow-up: rebase-and-merge queue for 90 blocked PRs (batches A–H) #13903
Closed
impl(pm-stack): primary-parent convention + historical link semantics + crate-split backfill #9066
Closed
@dezren39
Merge origin/main into queue/20430-9066-primary-parent-impl (Batch A:…
6fee1b3
… combine checked-var rename with main formatting)
@dezren39
dezren39 merged commit af52642 into main Nov 24, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/20430-9066-primary-parent-impl branch November 24, 2026 03:10
@dezren39

dezren39 commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Batch A merge (lane code-i, task 21622): merge-main-in 6fee1b3 pushed (no force), verified, PR merged as af52642.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
Audit programme: seven-lane review of PRs, issues and designs (2026-11-23) #13871
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@dezren39
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.
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.