Skip to content

fix(aggregator): board/roadmap link provenance says "projector links unavailable" when the registry read fails (#8570) - #14382

Open
dezren39 wants to merge 1 commit into
mainfrom
fix/8570-board-link-provenance-oc07
Open

dezren39 wants to merge 1 commit into
mainfrom
fix/8570-board-link-provenance-oc07

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

pm-stack Phase 3 (#8570) acceptance: a dead projection-module intake must
degrade link data visibly without taking the board down. Today a failed
registry read is indistinguishable from "no links", so the board claims
+ projector links for links it never fetched.

 projectorLinks(baseUrl, subject)
-  !ok → []
+  !ok → null            # registry unreachable ≠ no links

 enrichWithRegistryLinks(entries)
-  Promise<T[]>
+  { entries: T[], linksDegraded: boolean }   # never throws, keeps own links

 provenance.board
-  "live (Kaneo + projector links; ...)"
+  linksDegraded ? "live (Kaneo + projector links unavailable (registry unreachable); ...)"
+                : "live (Kaneo + projector links; ...)"

Roadmap (Grist) provenance gets the same treatment.

Evidence

New failing-first test pm-stack/aggregator/test/board-link-degradation-8570.test.ts
drives the real liveSource against a refused port (127.0.0.1:1,
ECONNREFUSED via the real fetch — not a stubbed ok: false):

  • Before: projectorLinks returned []; provenance read
    live (Kaneo + projector links; ...) with no links.
  • After: board still serves the Kaneo card, provenance reads
    live (Kaneo + projector links unavailable (registry unreachable); ...);
    projectorLinks is null, and a reachable registry still resolves links.
bun test test/board-link-degradation-8570.test.ts test/registry-ref-filter-6211.test.ts
 6 pass / 0 fail
bun test <10 projector/registry/board files incl. the two above>
 83 pass / 0 fail
bunx tsc --noEmit
 1 pre-existing error in src/prompts.test.ts (present on origin/main)

Merge Danger

Door: two-way — revert restores the old empty-list path.

Blast Radius: aggregator board/roadmap provenance wording only; the
projectorLinks return type is exported and now nullable, with in-repo
callers updated.

Part of #8570 (not closing it: timer cutover #14169 and the projector
module fold-in remain).

{
  "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-24T13:38:30Z",
    "session_id": "ses_e5df25d8845ffehPvnTOcbaFeb",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/oc-code-07-8570-links",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/oc-code-07-8570-links",
      "repo": "developing-today/code",
      "branch": "fix/8570-board-link-provenance-oc07",
      "sha": "1db28226a04d6fbf1e066c5f4b799703f78989b6"
    },
    "auth_subject": "oc-code-08",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

…read fails (#8570)

pm-stack Phase 3 acceptance: killing the projection module's intake must
degrade board link data visibly without taking the board down.

- projectorLinks now returns null on a failed read (fail-soft like
  projectorItems/projectorComments) so "registry unreachable" stays
  distinguishable from "reachable, no links for this subject".
- enrichWithRegistryLinks propagates that as linksDegraded and keeps every
  entry's own links; it never throws.
- The board and roadmap provenance chips say "projector links unavailable
  (registry unreachable)" instead of claiming "+ projector links" for
  links that were never fetched.

New failing-first test test/board-link-degradation-8570.test.ts drives the
real live source against a refused port (ECONNREFUSED) and asserts the
board stays up with degraded provenance.

Part of #8570
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

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 12 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: ddb75448-50d5-447a-94f8-c6d819fb6206
Commits

Reviewing files that changed from the base of the PR and between 1ca2bc4 and 1db2822.

Files selected for processing: 4

  • pm-stack/aggregator/src/sources/live.ts
  • pm-stack/aggregator/src/sources/projector.ts
  • pm-stack/aggregator/test/board-link-degradation-8570.test.ts
  • pm-stack/aggregator/test/registry-ref-filter-6211.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

This branch has not been deployed

No deployments
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.

1 participant