GeezerVison is showing github.com — fix(pm-stack): resolve native parents consistently in sweeper and webhook (#16011) by developing-today-fleet[bot] · Pull Request #16247 · developing-today/code
Conversation
Implements #16011: one authoritative native-parent contract shared by the Metadata sweeper and webhook ingestion paths.
Sweeper fetchNativeParent: a confirmed parent-endpoint 404 for an existing item means no native parent (null — label resolution proceeds); auth/transport/server failures stay retryable (undefined — skip, next sweep retries).
Webhook listener: new required resolveNativeParent dependency; issues events resolve native parentage before the shared check finalizes an ascertained outcome. Failed lookups answer non-2xx with no store, enqueue, or body writes (GitHub redelivers). PRs skip the lookup (same rule as the sweeper).
Shared contract in metadata-ingestion.ts: parseNativeParentResponse / isConfirmedParentAbsent / buildEpicSlugMap.
Supersedes #16020 (same change, merge-conflicted since 09:30Z): rebased onto current main, resolving the server.ts import conflict (kept both sides: native-parent imports + fleetMetadataDbPath) and the webhook-listener.ts conflict by combining both sides — epic-map hoist + authoritative-native-parent resolution + stale-snapshot (#16012) re-read now preserves the resolved native parent across the recompute. Also migrated artifact-ID assertions to the current gh:repo#kind:number format (one pre-existing main failure in webhook-listener.test.ts fixed alongside) and added the missing resolveNativeParent/readCurrent deps to test handler blocks.
Evidence:
bun test test/metadata-native-parent-16011.test.ts test/webhook-listener.test.ts test/metadata-ingestion.test.ts test/metadata-sweeper.test.ts → 40 pass, 0 fail.
- Full aggregator suite: 3606 pass / 79 fail — spot-checked failures (home-resolution, schedule-registry, quota-retention) reproduce identically on clean origin/main, pre-existing and unrelated.
Closes #16011.
{
"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-27T17:11:12Z",
"session_id": "ses_e5de23d6bb0ffeGdZzCPWk744U",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/sweep-16020",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/sweep-16020",
"repo": "developing-today/code",
"branch": "sweep/16020-native-parents-merge",
"sha": "921a826652517603b5e7d58625a373b5b5a54453"
},
"auth_subject": "oc-code-03",
"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.
…hook (#16011)
Sweeper fetchNativeParent maps a confirmed parent-endpoint 404 to
absent (label resolution proceeds) and keeps every other failure
retryable; the webhook listener resolves native parentage through the
same authoritative contract before finalizing, answering non-2xx with
no writes on lookup failure; the webhook epic catalog filters
server-side by kind/epic like the sweeper.
Tests: 9 new in metadata-native-parent-16011.test.ts (contract,
webhook 404/conflict/parentless/PR-skip, sweeper 404/500 subprocess);
existing webhook/metadata/sweeper suites green (31 + 19 tests).
…rents-merge
# Conflicts:
# pm-stack/aggregator/src/server.ts
# pm-stack/aggregator/src/webhook-listener.ts
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
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:
5627375d-7192-4845-83a1-571b231db375
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- 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 27, 2026
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
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.
|