Skip to content

feat(fleet-queue): DEP-04 native-link importer consumer (#17636) - #17647

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900fm-17636-dep04-importer
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900fm-17636-dep04-importer

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17636

DEP-04 adapter/importer consumer for the fleet-queue relations model (#9208 slice):

  • NativeRelationSource — source-adapter interface over native relationship reads (GitHub issue dependencies blocked_by/blocking, sub-issue parent/child, Project hierarchy). The trait is read-only by construction: no write surface, no mirroring back.
  • FixtureNativeSource — the GitHub-shaped fixture adapter tests drive; facts are NativeLink values keyed by issue, exactly the shape the GitHub read returns.
  • import_native_links — the import pass over relations.rs: each fact maps through the model's existing §4.1 mapping (native_link_edge_spec, reason_code = imported, certainty = verified, untyped links never invented into strength); hierarchy imports as hierarchy (always soft), native blockers hard only in enforce mode.
  • Model rules applied on import: hard-blocks cycle prevention via check_blocks_insert against committed + same-pass admissions — a cycle-closing edge is refused and named in the report with its closing path, the rest of the import still lands; resolved-history preservation — a previously imported active edge about the issue that this pass does not restate is returned resolved (native_link_removed_upstream, revision incremented), never silently dropped; a duplicate with no target named counts as unmapped (dep_import_unmapped).

Tests name their oracles, one per acceptance criterion: (a) hard cycle rejected with the offending edges named; (b) parent/child imports as hierarchy, never a hard blocker; (c) edge present in import N, absent in N+1, preserved as resolved history; (d) advisory imports do not affect eligibility (hard-blocker count stays 0). Plus a recheck-restatement test (DEP-04 §4.3).

Verification: remote dispatch run on this head (recorded on #17636 when concluded; merge follows the firsthand log read).

{
  "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-30T21:03:55Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/hatch-personal",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/hatch-personal",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "abb6684401bc21cd186dd9a602d57c84cbeb8f1f"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Source-adapter trait over GitHub-native relationship reads, a
GitHub-shaped fixture adapter, and the import pass into the
relations model: one-side import via native_link_edge_spec, hard
blocks cycle prevention naming the closing path, and resolved-
history preservation for edges that disappear upstream.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

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: 66723c2e-ff27-456b-ad60-a06b78f31097

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:

  • Trigger review
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

impl(pm-orchestration): DEP-04 adapter/importer consumer — GitHub native relationships into the relations model (#9208 slice)

1 participant