Skip to content

Drop the idle #1159 row from KNOWN_STRICT_FINDINGS - #1188

Merged
brettheap merged 1 commit into
mainfrom
chore/1159-drop-known-strict-row
Sep 27, 2026
Merged

brettheap merged 1 commit into
mainfrom
chore/1159-drop-known-strict-row

Conversation

@brettheap

@brettheap brettheap commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-5 (openXfactory-5)

The refresh lane's KNOWN_STRICT_FINDINGS held one row, for #1159's three dangling cl-plane-1 refs. #1184 repaired the corpus and #1159 closed, so the row now tracks a finding that no longer occurs. Had the finding recurred, the nightly would have cited a closed issue.

This PR drops the row, on Brett Heap's word "remove the idle #1159 row, skip the gate for now". No regression gate is added.

What this changes

  • scripts/ideation_dashboard/dashboard_refresh_lane.py: only the constant. KNOWN_STRICT_FINDINGS becomes an empty tuple, annotated tuple[tuple[str, str, str], ...] so the row shape stays documented now that no example row is left. The citation machinery is untouched: known_finding_citation and its one call site, which consults the table only when the strict precheck rejects.
  • tests/ideation-dashboard/test_dashboard_source_seal.py: the three citation tests are re-pointed, and one test is new.
    • test_a_strict_rejection_is_a_verdict_carrying_the_findings now asserts the current state. The stand-in validator's four findings draw no citation, including the three in Corpus snapshot: 3 dangling cluster refs to cl-plane-1 #1159's cl-plane-1 shape.
    • Its citation half moves to a new sibling, test_a_strict_rejection_cites_the_issue_of_every_finding_it_tracks. That test installs a stand-in row (stand-in/tracker#1) and asserts the same counted clause.
    • test_a_tracked_finding_past_the_detail_cap_is_still_cited and test_a_citation_is_made_only_for_the_finding_it_tracks now run against that stand-in row, so the machinery stays covered while no row is real.
    • New: test_no_strict_finding_is_tracked_today asserts that the table is empty and that Corpus snapshot: 3 dangling cluster refs to cl-plane-1 #1159's finding draws no citation.

The lane-module hunk covers old lines 2512–2515 and nothing else. Seat t's #1185 edits the same module in other places; this branch merges cleanly with #1185's head 725f92e0 and with main.

Evidence

Test-first. Against the unchanged module, with the row present:

FAILED test_a_strict_rejection_is_a_verdict_carrying_the_findings
  - arning(s)); the child's publication gate would refuse it the same way, so nothing is dispatched
  + arning(s)), a known defect, tracked as opensoft/openxFactory#1159 (3 of 4 finding(s); 1 tracked by no known issue); the child's publication gate would refuse it the same way, so nothing is dispatched
FAILED test_no_strict_finding_is_tracked_today
  Left contains one more item: ('snapshot-dangling-cluster-ref', "'cl-plane-1'", 'opensoft/openxFactory#1159')
2 failed, 7 passed

The five stand-in-row tests already pass there, which shows the machinery is unchanged. With the row removed: 9 passed.

  • Real seal at this head. Seat z's kit, with a probe that counts known_finding_citation calls, reports:
    • "sealed": true
    • "precheck": {"documents": 400, "strict": true, "outcome": "validated", "returncode": 0}
    • "known_strict_findings": [] and "known_finding_citation_calls": 0
  • Seal and refresh-lane modules (test_dashboard_source_seal.py, test_dashboard_refresh_lane.py): 354 passed.
  • tests/ideation-dashboard: 1385 passed in the full clone (the earlier 1383 plus the two new tests). A scratch worktree gives 1372 passed and 13 skipped; the skips are specific to that checkout kind.
  • CI at this head: pytest-suite success ("8727 passed, 6 skipped, 338 deselected, 9 warnings, 412 subtests passed"; failures=0 errors=0), and all 14 check-runs completed with success. Copilot review 5331415148: "Findings: None", 0 threads.
  • doc-health (python3 scripts/doc-health.py --single-repo .): rc 0 at base a9e7db75 and at head, both reporting "Findings: 31 critical, 26 error, 49 warning, 21 info. New regressions vs previous report: 0". The critical/error/warning set is identical, and none of it is in a touched file.
  • OpenSpec pin gate (python3 scripts/validate-openspec-cli-pin.py --all): rc 0 at both, with identical output apart from a node warning line.

Held for

  • This PR is a DRAFT, held for Brett Heap's landing word to lane openXfactory-5.
  • This seat neither un-drafts nor merges it.

Refs #1159

🤖 Generated with Claude Code

#1184 repaired the corpus and #1159 closed, so the table's one row
tracked a finding that no longer occurs. It was idle rather than
harmful, but a recurrence would have been cited against a closed issue.
Brett Heap's word: "remove the idle #1159 row, skip the gate for now".

The table is now empty (annotated with its row shape, since no example
row is left). Nothing else in the refresh lane changes: the citation
machinery stays, and its one call site consults it only when the strict
precheck rejects.

The three citation tests are re-pointed, test-first:

- The rejection test asserts the current state: the stand-in's four
  findings, three of them #1159's cl-plane-1 shape, draw no citation.
  Its citation half moves to a sibling test that installs a stand-in row
  ("stand-in/tracker#1") and asserts the same counted clause.
- The detail-cap test and the citation unit test run against that
  stand-in row, so the machinery stays covered while no row is real.
- A new test states the table: empty, and #1159's finding draws no
  citation.

Failing-first against the unchanged module (the row still present):

  FAILED test_a_strict_rejection_is_a_verdict_carrying_the_findings
    - arning(s)); the child's publication gate would refuse it ...
    + arning(s)), a known defect, tracked as #1159
      (3 of 4 finding(s); 1 tracked by no known issue); the child's ...
  FAILED test_no_strict_finding_is_tracked_today
    Left contains one more item: ('snapshot-dangling-cluster-ref',
    "'cl-plane-1'", '#1159')
  2 failed, 7 passed

With the row removed: 9 passed. No regression gate is added.

Refs #1159

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 27, 2026 17:48
@sourcery-ai

sourcery-ai Bot commented Sep 27, 2026

Copy link
Copy Markdown

Reviewer's Guide

Drops the stale #1159 entry from KNOWN_STRICT_FINDINGS after the corpus repair, and updates source-seal tests to verify both the empty production table and the unchanged citation machinery through an isolated stand-in row.

Flow diagram for strict finding citation behavior

flowchart TD
    Precheck[Strict precheck] --> Findings[Validator findings]
    Findings --> Lookup{Finding in KNOWN_STRICT_FINDINGS?}
    Lookup -->|No| Verdict[Return findings without citation]
    Lookup -->|Yes| Citation[known_finding_citation]
    Citation --> Verdict
    Table[KNOWN_STRICT_FINDINGS = empty tuple] -.-> Lookup
    StandIn[Tests install stand-in row] -.-> Lookup
Loading

File-Level Changes

Change Details Files
Remove the obsolete production tracking entry for the repaired #1159 finding while preserving the documented tuple shape.
  • Replace the single known strict finding row with an explicitly typed empty tuple.
  • Leave citation parsing and call-site behavior unchanged.
scripts/ideation_dashboard/dashboard_refresh_lane.py
Rework source-seal tests to distinguish the empty production tracking table from citation-mechanism coverage.
  • Update strict rejection expectations to assert no citation for the former Corpus snapshot: 3 dangling cluster refs to cl-plane-1 #1159 finding.
  • Add a stand-in tracking row for tests that verify issue citation, counting, and detail-cap behavior.
  • Add an explicit regression test asserting the production table is empty and the former finding is uncited.
  • Retarget finding-specific citation parameterizations to the stand-in row.
tests/ideation-dashboard/test_dashboard_source_seal.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

All reviewed changes are covered by passing tests with no unresolved issues.

Review effort: Lite
Findings: None

What changed in this PR

Removes the obsolete #1159 strict-finding entry while preserving citation coverage with stand-in test data.

Changes:

  • Clears and annotates KNOWN_STRICT_FINDINGS.
  • Updates source-seal tests for empty production tracking and citation behavior.
File Description
tests/​ideation-dashboard/​test_dashboard_source_seal.py Updates and expands strict-finding citation tests.
scripts/​ideation_dashboard/​dashboard_refresh_lane.py Removes the retired #1159 tracking row.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 27, 2026 19:05

@sourcery-ai sourcery-ai 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.

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 2 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-27T19:07:08Z, PR #1188 into opensoft/openxFactory main

@brettheap
brettheap merged commit 2737471 into main Sep 27, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-27T19:07:24Z, PR #1188 into opensoft/openxFactory main → merge 2737471; Drop the idle #1159 row from KNOWN_STRICT_FINDINGS

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.

2 participants