Skip to content

docs(issues): close #008 as false-positive; fix #014 broken doc path#1049

Merged
BigSimmo merged 1 commit into
mainfrom
claude/close-008-false-positive
Jul 22, 2026
Merged

docs(issues): close #008 as false-positive; fix #014 broken doc path#1049
BigSimmo merged 1 commit into
mainfrom
claude/close-008-false-positive

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

Docs-only ledger update resolving #8 and fixing a pre-existing broken doc link.

  • Close Bump gitleaks/gitleaks-action from 2 to 3 #8 as a false positive. The ledger claimed documentReaderHref / documentEvidenceHref (+ *MockHref variants) in src/lib/document-flow-routes.ts were "exported but never called in src". They are not dead code: the mock wrappers mockDocumentReaderHref / mockDocumentEvidenceHref are used by src/components/document-search-mockups.tsx and src/components/master-document-flow-mockups.tsx (rendered by the src/app/mockups/document-search/* routes), those wrappers call the base builders (and use their Parameters<typeof …> types), and tests/document-flow-routes.test.ts covers them. Removing any of them breaks typecheck/build + a test. Moved to Resolved/archive. (The only kernel of truth — the production, non-mock /documents/source hrefs aren't linked from production UI — is a wiring gap, not dead code.)
  • Fix Clean stale frontend identity and CSS #14 Source pathsrc/components/document-viewer/signed-image.tsxsrc/components/clinical-dashboard/signed-image.tsx. The document-viewer/ path never existed, so it was failing docs:check-links on main; this repairs it.

Verification

Governance

  • RAG impact: no retrieval behaviour change — docs-only ledger edit (no code touched).
  • Clinical governance preflight: N/A — single file changed: docs/outstanding-issues.md.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated the outstanding issues tracker to archive a resolved dead-link recommendation.
    • Documented that the related links remain required and are covered by automated tests.
    • Corrected the source path for the signed preview image optimization item.

- #8 "dead href builders" is NOT dead code: documentReaderHref /
  documentEvidenceHref are live via the mock wrappers
  (mockDocumentReaderHref / mockDocumentEvidenceHref) used by the rendered
  /mockups/document-search/* routes, and are covered by
  tests/document-flow-routes.test.ts. Removing them breaks the build. Moved
  to Resolved/archive as a false positive (only the production non-mock
  hrefs are unlinked from prod UI — a wiring gap, not dead code).
- Fix #14 Source path document-viewer/signed-image.tsx ->
  clinical-dashboard/signed-image.tsx (the document-viewer/ path never
  existed; it was failing docs:check-links on main).

Docs-only. No code/protected-surface edits, no provider/CI/dashboard action.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@supabase

supabase Bot commented Jul 22, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo enabled auto-merge (squash) July 22, 2026 00:04
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation archives issue #008 with evidence that its href builders are exercised and tested, and updates issue #014 to reference the clinical-dashboard signed-image component.

Changes

Outstanding issues documentation

Layer / File(s) Summary
Issue status and source path updates
docs/outstanding-issues.md
Moves issue #008 to the resolved archive with mock-wrapper and test references, and corrects issue #014’s source path to src/components/clinical-dashboard/signed-image.tsx.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the docs-only ledger update: closing #008 as false-positive and fixing the broken #014 doc path.
Description check ✅ Passed The description covers the change summary and verification, and is mostly complete despite missing the template's Risk/Rollout and Notes sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/close-008-false-positive

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

@BigSimmo
BigSimmo merged commit ce32fe1 into main Jul 22, 2026
18 checks passed
@BigSimmo
BigSimmo deleted the claude/close-008-false-positive branch July 22, 2026 00:06

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/outstanding-issues.md`:
- Line 59: Update the `#008` entry in docs/outstanding-issues.md to use the actual
resolution or merge date instead of the future-dated 2026-07-22 value,
preserving the existing issue description and status.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 32808127-58e1-4aa6-9585-ab18cd871448

📥 Commits

Reviewing files that changed from the base of the PR and between b981caa and 5678bd4.

📒 Files selected for processing (1)
  • docs/outstanding-issues.md

| ---- | ---- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| #003 | task | Staging tenancy release evidence outstanding | Ran GitHub Action and validated isolation | 2026-07-21 |
| #002 | task | Process-ownership fix not yet isolated on `main` | Fixed process isolation using child.pid termination | 2026-07-21 |
| #008 | rec | Dead href builders in `document-flow-routes.ts` | Not dead code (false positive): `documentReaderHref`/`documentEvidenceHref` are live via the mock wrappers in `src/components/document-search-mockups.tsx` + `src/components/master-document-flow-mockups.tsx` (rendered under `src/app/mockups/document-search/`) and covered by `tests/document-flow-routes.test.ts`; removing breaks the build. Only the production non-mock hrefs are unlinked from prod UI — a wiring gap, not dead code. | 2026-07-22 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the relevant section with line numbers.
sed -n '45,75p' docs/outstanding-issues.md | cat -n

# Show the file metadata and current system date available in the sandbox.
stat -c 'mtime=%y size=%s file=%n' docs/outstanding-issues.md
date -u '+utc=%Y-%m-%d %H:%M:%S %Z'
date '+local=%Y-%m-%d %H:%M:%S %Z'

Repository: BigSimmo/Database

Length of output: 7037


Avoid future-dating the archive entry. docs/outstanding-issues.md:59 records #008 as resolved on 2026-07-22, which is later than this change; use the actual resolution/merge date so /issues stays historically accurate.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/outstanding-issues.md` at line 59, Update the `#008` entry in
docs/outstanding-issues.md to use the actual resolution or merge date instead of
the future-dated 2026-07-22 value, preserving the existing issue description and
status.

BigSimmo pushed a commit that referenced this pull request Jul 22, 2026
…cile issue IDs

Review findings on PR #1050 (Codex P2 + CodeRabbit major, converged): a case
that attempted generation but lost the provider response (timeout, missing
output) has real-but-unrecorded token spend — keying $0 off hasOpenAIUsage
alone would report those as fully priced. $0 now applies only when no request
id, no model, and no generation time were recorded; provider-attempted cases
without usage metadata stay null (n/a total). Also resolves the ledger merge
conflict against #1049's concurrent ID allocation: main's #12-#17 stand, this
session's six items renumber to #18-#23 (next-id 024), the cost-readout row
is rewritten as post-fix validation only (CodeRabbit), and the unbalanced
strikethrough tildes in the E-3d row are fixed (CodeRabbit).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EXsJcLrbZUXwnBeG91cVo9
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