Skip to content

Add planning traceability families - #75

Merged
flyingrobots merged 1 commit into
mainfrom
traceability-planning-families
Jul 6, 2026
Merged

Add planning traceability families#75
flyingrobots merged 1 commit into
mainfrom
traceability-planning-families

Conversation

@flyingrobots

Copy link
Copy Markdown
Owner

Summary

  • Add constraint, assumption, risk, and spike node families to the traceability model.
  • Extend the dashboard trace view, observed projection, and doctor counts to surface the new planning data.
  • Add CLI commands and pure analysis helpers for planning gaps and risk hotspots.
  • Update the canonical docs and ontology catalog.

Validation

  • npx tsc --noEmit
  • npx vitest run test/unit/TraceabilityAnalysis.test.ts test/unit/TraceabilityCommands.test.ts test/unit/DashboardTraceCommand.test.ts test/unit/DiagnosticService.test.ts test/unit/AgentBriefingService.test.ts test/unit/AgentActionService.test.ts test/unit/AgentContextService.test.ts test/unit/DoctorCommands.test.ts
  • npm run lint
  • npm run test:local

Graph closeout

  • TRC-012 and TRC-013 are now READY, claimed, submitted, approved, merged, and auto-sealed in XYPH.
  • Commit: a072d05

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@flyingrobots, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 18c62d09-da48-4523-935c-504f00f8aca0

📥 Commits

Reviewing files that changed from the base of the PR and between 20923a4 and a072d05.

📒 Files selected for processing (21)
  • docs/canonical/GRAPH_SCHEMA.md
  • docs/canonical/ONTOLOGY_CATALOG.md
  • docs/canonical/TRACEABILITY.md
  • src/cli/commands/dashboard.ts
  • src/cli/commands/traceability.ts
  • src/domain/models/dashboard.ts
  • src/domain/services/DoctorService.ts
  • src/domain/services/TraceabilityAnalysis.ts
  • src/infrastructure/ObservedGraphProjection.ts
  • src/schema.ts
  • src/tui/render-status.ts
  • test/helpers/observation.ts
  • test/helpers/snapshot.ts
  • test/unit/AgentActionService.test.ts
  • test/unit/AgentBriefingService.test.ts
  • test/unit/AgentContextService.test.ts
  • test/unit/DashboardTraceCommand.test.ts
  • test/unit/DiagnosticService.test.ts
  • test/unit/DoctorCommands.test.ts
  • test/unit/TraceabilityAnalysis.test.ts
  • test/unit/TraceabilityCommands.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch traceability-planning-families

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

Comment @coderabbitai help to get the list of available commands.

@flyingrobots
flyingrobots merged commit 303e0a8 into main Jul 6, 2026
9 checks passed
@flyingrobots
flyingrobots deleted the traceability-planning-families branch July 6, 2026 04:42

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a072d05884

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

.command('assumption <id>')
.description('Create an assumption node (assumption:*)')
.requiredOption('--description <text>', 'Assumption description (min 5 chars)')
.option('--validated', 'Mark the assumption as validated')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Default new assumptions to unvalidated

When users create the common open assumption without --validated, Commander leaves opts.validated undefined (Commander README: boolean options are undefined unless specified), but the projection only accepts assumptions whose validated prop is a boolean. Those CLI-created open assumptions are therefore omitted from snapshots and never show up in the new planning-gap counts; default this flag to false before writing/returning it.

Useful? React with 👍 / 👎.

onProgress({
stage: 'neighbors',
message: 'Scanning workflow, narrative, and comment node families.',
message: 'Scanning workflow, narrative, planning, and comment node families.',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include planning nodes in doctor edge scans

When the audit snapshot contains the new constraint/assumption/risk/spike nodes, this now claims the doctor is scanning planning families, but the allKnownIds set used by collectDanglingEdges still never adds snapshot.constraints, snapshot.assumptions, snapshot.risks, or snapshot.spikes. In graphs where one of these planning nodes points at a deleted req/task, doctor reports the planning count but never visits that node's neighbors, so the dangling planning edge is missed and the report can stay healthy.

Useful? React with 👍 / 👎.

Comment on lines +1974 to +1977
typeof likelihood !== 'number' ||
!Number.isFinite(likelihood) ||
typeof impact !== 'number' ||
!Number.isFinite(impact)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject out-of-range risk scores at projection

The new risk schema and CLI define likelihood and impact as normalized values from 0 to 1, but this projection accepts any finite number. When a malformed risk comes from graph history or a non-CLI writer, computeRiskHotspots multiplies it directly, so status --view trace can surface impossible scores and let them dominate hotspot ordering; reject values outside [0, 1] here like the write path does.

Useful? React with 👍 / 👎.

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