Skip to content

ci(guards): new unconnected code fails a repo_tests guard, existing cases frozen shrink-only (#20512) - #20538

Closed
mrveiss wants to merge 3 commits into
mainfrom
issue-20512-unconnected-code-gate
Closed

mrveiss wants to merge 3 commits into
mainfrom
issue-20512-unconnected-code-gate

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

Code keeps merging with nothing connected to it, such as the approval resume route and file_cleanup_queue. check-new-module-callers.sh exists but no workflow runs it, it matches by substring, and it sees only new modules. A repo_tests guard runs in the required python-suite, so new unconnected code fails there, while a frozen list holds existing cases until they are wired in.

What Changed

Verification

  • Gate: 26 passed, 16s at load 12 to 22, not measured on an unloaded runner. Reach tests: 1198 passed.
  • Controls: planted module, route, queue and table fire; connected twins stay clean; test-only callers do not count. Removing, adding and unlinking baseline lines each fail the right test. Population floors stop a short sweep reading as clean.
  • The roots record was edited by hand, because regenerating it under this venv dropped other entries.

What it cannot see

A client held in a field or returned by another function, a path in a variable, a relative fetch, a module imported only by another unused module, a dead function in a live module, a dead frontend caller, runtime-built paths and keys, directory-scan loading, other Redis types, verb mismatches, and unwired frontend, Ansible or shell code. A comment naming a path counts as a caller.

Landing note

#20401 and #20234 wire in baseline entries, so whichever lands after this removes its line, or the stale test fails.

Model Used

Claude Sonnet for the implementation, Claude Opus for coordination.

Single-issue rationale

Refs #20512 and does not close it: a frontend-only PR that removes a route's last caller is not judged until the next Python change, because shards run on Python paths.

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 1, 2026
@mrveiss mrveiss added the phase:M3.9 Chat, Agents, Analytics and Settings screens label Nov 1, 2026
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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 40 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

Commits

Reviewing files that changed from the base of the PR and between bb1f46a and bd73c6a.

Files ignored due to path filters: 1

  • repo_tests/unconnected_code_baseline.txt is excluded by !**/*_baseline.txt
Files selected for processing: 12

  • pipeline-scripts/check-new-module-callers.sh
  • repo_tests/_reach_policy_verdicts.py
  • repo_tests/_reach_roots_record.py
  • repo_tests/_unconnected_clients.py
  • repo_tests/_unconnected_code.py
  • repo_tests/_unconnected_common.py
  • repo_tests/_unconnected_modules.py
  • repo_tests/_unconnected_routes.py
  • repo_tests/_unconnected_stores.py
  • repo_tests/reach_scope_claim_17844_test.py
  • repo_tests/unconnected_clients_20512_test.py
  • repo_tests/unconnected_code_gate_20512_test.py
  • 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

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Auto-sync: merging main into issue-20512-unconnected-code-gate conflicts

The sync aborted the merge and pushed nothing. Conflicts are information, so it never resolves one itself. Below, for each conflicted file, are the commits that touched it on each side since the merge base 25ab945e81. Merge main in yourself and push; the label clears on the first run that finds this branch 0 behind.

repo_tests/autobot_has_no_pro_edition_19982_test.py

side commit subject issue refs
main 2c5b5b73f fix(train): reach floors return to mid-window on the merged tree (#20452) #20452
this branch f7867bfde fix(frontend): re-pin the reach floors this branch moved (#20512) #20512

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20538 (head 10ba675): changes needed.

Read only; the guard wasn't run or timed.

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20538 (head f7867bf): changes needed.

Read only; the detector wasn't run. The relative-client reading and the /api-keys fix are right, with a real-file known positive, and 9 of 10 sampled removed routes have real callers. Needed:

  • Medium: 7 removed routes have no caller that could be found: integration_cicd.py (status, logs, trigger under /{provider}/pipelines/{pipeline_id}/), integration_communication.py (/{provider}/channels/{channel_id}/history), integration_version_control.py (branches, commits, pulls). Routes starting with {provider} may match loosely on a wildcard first segment. A guard wrongly passing unconnected routes is what this PR exists to prevent: print the matching caller for each, then cite it, or restore those lines and tighten the match.
    Low: the /api base for createAutobotBackendClient is an assumption that errs toward connected. feat(company-os): work items follow a parent rule table on create and update (#18978) #20478's project-backfill routes should still flag on the merged tree; confirm when they meet.

@github-actions github-actions Bot removed the sync-conflict Set by the branch sync (#19548) label Nov 1, 2026
@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20538 (head 365fab7): approve, landing after #20401 and #20540.

Read only; the guard wasn't run. Leading-parameter routes no longer match loosely, while mounted forms still do; the 7 integration routes are back on the baseline, and a sample of removals have real callers. Limit as documented: a wildcard inside a route still matches any one-segment caller.

@github-actions github-actions Bot removed the sync-conflict Set by the branch sync (#19548) label Nov 2, 2026
@mrveiss

mrveiss commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Code review (code-reviewer pass) at 8bd45c2

Verdict: APPROVE

Checked: route grammar is reused from audit_api_wiring / dead_surface rather than re-implemented; detectors have planted-positive, connected-twin and decoy controls plus population floors, so an empty sweep cannot read as clean; the baseline is shrink-only against the base, entries must still be unconnected, and the header states what it cannot see; every new .py file is under 600 lines (largest is the gate test at about 324).

Severity File:line Issue Fix
medium (non-blocking) repo_tests/unconnected_code_baseline.txt The PR body says 893 entries (752 routes) but the file holds 985 (844 routes, 119 modules, 10 queues, 9 tables, 3 declared). The body also says each entry is linked to its own wiring issue; 983 of 985 point at the umbrella #10603, and test_every_baseline_entry_links_its_wiring_issue only checks the #<digits> shape. Correct the body counts and wording before merge; follow up by splitting the umbrella into per-area wiring issues so entries are individually owned.
low (non-blocking) repo_tests/_unconnected_modules.py (_path_suffixes) A bare file name such as utils.py named anywhere in a launcher file marks every module of that name launched. This errs toward connected (documented), but weakens the check for common names. Optional: require at least the package directory in the match.
low (non-blocking) repo_tests/unconnected_code_gate_20512_test.py (docstring) Frontend-only edits are not judged until the next Python change (stated). Tracked by the stated gap; no action in this PR.

No blocking findings.

@mrveiss

mrveiss commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Train T82 (#20897) carries two train-side fix commits so the merged tree passes CI. 7ed68b0 re-measures repo_tests/unconnected_code_baseline.txt on the merged tree: the baseline was generated at this PR's head and main has moved since, so 12 items that are already unconnected on main were added (all unchanged by the train) and 10 entries that the T82 passengers wired in were removed, shrink-only on the stale side. efa0c60 moves T82 passengers onto the shared comment syntax and design tokens (#20465 work). Nothing needed from the author.

@mrveiss

mrveiss commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Landed on main via merge train #20897 (merge 19e62c8): commit 8bd45c2 taken by the train is in main and the three-dot diff of this PR's head against main is empty. Closing.

@mrveiss mrveiss closed this Nov 6, 2026
timothybrush pushed a commit to timothybrush/AutoBot-AI that referenced this pull request Nov 6, 2026
@mrveiss
mrveiss deleted the issue-20512-unconnected-code-gate branch November 8, 2026 10:29
@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Branch deleted after verification: every commit is in main and the branch shows 0 changed files against main. Restore it from this PR if needed.

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

Labels

phase:M3.9 Chat, Agents, Analytics and Settings screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant