Skip to content

ci(guards): retire 75 floor= pins in 73 guard files, computed from the base instead (#19676) - #20733

Merged
mrveiss merged 6 commits into
mainfrom
issue-19676-pins-2
Nov 4, 2026
Merged

mrveiss merged 6 commits into
mainfrom
issue-19676-pins-2

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

This is the second of two batches retiring the population-derived floor= pins (#19676). It is stacked on #20731, which computes a floor nobody pinned from the base commit, so it lands after #20731 in the same train. Its 73 guard files plus #20731's 10 files come to 83 files changed against main.

What Changed

  • 75 literal floor= keywords are removed from module-level declare(...) calls in 73 guard files. Those guards now use population at the base - skips - growth.
  • Comments that cited the removed pinned value, window or re-pin history are deleted or reworded, in 15 files. Any reasoning for growth= and skips= is kept. Only comments changed; no other code.
  • The three declarations whose floor is an expression rather than a literal (env_fork_guard_18094_test.py, env_var_bare_cast_test.py, frontend_reduced_motion_guard_test.py) are not touched here.

Verification

  • pytest on all 73 changed guard files: 1178 passed, 3 skipped.
  • After the edits, grep -E "#.*(floor[= ]+[0-9]|mid-window|[Ww]indow \[|re-pin)" over the 73 files has no hits.

After review (#20731 reworked)

  • Re-synced on ci(guards): a reach floor nobody pinned is computed from the base commit (#19676) #20731's fix: the base floor is now measured by the base's own declaration.
  • Every remaining stale pin comment is removed, including the case variants the first pass missed ("Mid-window, from REACH.window()", "Re-pinned MID-window ..."). A case-insensitive grep for mid-window|window [n|window (n|re-pinned over this batch's files now finds nothing.
  • Small guards keep floor=, because their growth is as large as their population, so a computed floor would be zero or less, which computed_floor refuses:
    • gateway-adapter-package-scan, windows-install-scripts-stage-constraints-19681, slm-scripts-importing-services, post-sync-branch-functions
  • Now: 71 pins in 69 files, 80 files against main including ci(guards): a reach floor nobody pinned is computed from the base commit (#19676) #20731's 11. Its guard files: 1171 passed, with 7 failures all from these four guards; after restoring their pins, 67 passed in those 4 files.

Refs #19676. Stacks on #20731.

Model Used

Claude Opus 5.5, with Claude Sonnet 5.5 for the comment rewording.

🤖 Generated with Claude Code

@mrveiss mrveiss added enhancement New feature or request ci phase:M5.6 M5 phase 6: conflict-free guard state (nothing regenerable is committed) labels Nov 3, 2026
@coderabbitai

coderabbitai Bot commented Nov 3, 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 29 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 59ec30b and caa13f4.

Files selected for processing: 80
  • docs/developer/RATCHET_BASELINES.md
  • repo_tests/_reach.py
  • repo_tests/_reach_base.py
  • repo_tests/_reach_window.py
  • repo_tests/guard_reach_meta_test.py
  • repo_tests/node_major_one_home_19328_test.py
  • repo_tests/npm_audit_covers_its_workspaces_test.py
  • repo_tests/oauth_bundle_no_app_secret_13630_test.py
  • repo_tests/one_actor_id_15754_test.py
  • repo_tests/one_anthropic_message_split_16815_test.py
  • repo_tests/one_backoff_formula_15402_test.py
  • repo_tests/one_bm25_formula_18183_test.py
  • repo_tests/one_brand_mark_and_announcer_18240_test.py
  • repo_tests/one_circuit_breaker_18554_test.py
  • repo_tests/one_claim_model_18086_test.py
  • repo_tests/one_claim_registry_16653_test.py
  • repo_tests/one_content_digest_15722_test.py
  • repo_tests/one_deployment_mode_detector_12771_test.py
  • repo_tests/one_doc_indexer_18129_test.py
  • repo_tests/one_fact_read_authorization_18184_test.py
  • repo_tests/one_fake_async_session_18883_test.py
  • repo_tests/one_hybrid_search_17599_test.py
  • repo_tests/one_internal_api_key_reader_17856_test.py
  • repo_tests/one_paths_filter_job_15360_test.py
  • repo_tests/one_permission_gate_18263_test.py
  • repo_tests/one_playwright_server_18549_test.py
  • repo_tests/one_semantic_chunker_14485_test.py
  • repo_tests/one_serving_predicate_18820_test.py
  • repo_tests/one_session_ownership_validator_14016_test.py
  • repo_tests/one_session_scope_15068_test.py
  • repo_tests/one_shared_authority_callers_17855_test.py
  • repo_tests/one_ssh_restart_executor_18186_test.py
  • repo_tests/one_static_data_copy_18556_test.py
  • repo_tests/one_sync_command_runner_18180_test.py
  • repo_tests/operational_docs_name_real_playbooks_19611_test.py
  • repo_tests/opt_autobot_literal_ratchet_18880_test.py
  • repo_tests/optimization_taxonomies_13049_test.py
  • repo_tests/pr_comment_upsert_12984_test.py
  • repo_tests/primary_fill_label_reads_text_on_primary_20425_test.py
  • repo_tests/provenance_accessor_17527_test.py
  • repo_tests/provider_key_env_reads_route_through_vault_18094_test.py
  • repo_tests/reach_base_floor_19676_test.py
  • repo_tests/reach_declarations_test.py
  • repo_tests/reach_floor_window_17356_test.py
  • repo_tests/reach_scope_claim_17844_test.py
  • repo_tests/redaction_concept_census_test.py
  • repo_tests/redaction_placeholder_one_home_19337_test.py
  • repo_tests/redis_direct_constructor_18553_test.py
  • repo_tests/redis_keys_runtime_18999_test.py
  • repo_tests/relative_reach_floor_17142_test.py
  • repo_tests/role_registry_units_are_installed_19076_test.py
  • repo_tests/role_source_paths_depth_proof_20509_test.py
  • repo_tests/root_resolver_single_source_18101_test.py
  • repo_tests/router_auth_coverage_test.py
  • repo_tests/script_module_names_unique_14873_test.py
  • repo_tests/search_mode_one_home_19335_test.py
  • repo_tests/service_port_homes_test.py
  • repo_tests/severity_enum_fork_guard_18098_test.py
  • repo_tests/severity_order_one_home_19336_test.py
  • repo_tests/shadowed_literal_routes_18720_test.py
  • repo_tests/sigterm_grace_one_home_19340_test.py
  • repo_tests/single_attribute_writer_18240_test.py
  • repo_tests/slm_agent_single_definition_19040_test.py
  • repo_tests/slm_backend_no_embedded_playbook_18606_test.py
  • repo_tests/slm_frontend_bare_ui_literals_test.py
  • repo_tests/slm_frontend_i18n_parity_test.py
  • repo_tests/slm_login_needs_no_users_db_19406_test.py
  • repo_tests/slm_node_id_one_home_19322_test.py
  • repo_tests/ssot_rehardcode_19730_test.py
  • repo_tests/store_fact_chokepoint_guard_test.py
  • repo_tests/tool_effect_single_source_18294_test.py
  • repo_tests/torch_pair_one_home_19330_test.py
  • repo_tests/undefined_css_var_ratchet_17552_test.py
  • repo_tests/user_mode_values_19437_test.py
  • repo_tests/v_html_sanitiser_guard_19118_test.py
  • repo_tests/vnc_password_not_in_frontend_source_16299_test.py
  • repo_tests/websocket_subprotocol_echo_guard_test.py
  • repo_tests/workflow_names_say_company_os_19546_test.py
  • repo_tests/workflow_rc_capture_test.py
  • scripts/repin_reach_floors.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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@github-actions

github-actions Bot commented Nov 3, 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 3, 2026

Copy link
Copy Markdown
Contributor

Auto-sync: merging main into issue-19676-pins-2 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 ae35848bb7. Merge main in yourself and push; the label clears on the first run that finds this branch 0 behind.

repo_tests/node_major_one_home_19328_test.py

side commit subject issue refs
main 73b09af8e fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) #20589
this branch 3daec19c5 ci(guards): retire 75 floor= pins in 73 guard files, computed from the base instead (#19676) #19676

repo_tests/one_claim_registry_16653_test.py

side commit subject issue refs
main 73b09af8e fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) #20589
this branch 3daec19c5 ci(guards): retire 75 floor= pins in 73 guard files, computed from the base instead (#19676) #19676

repo_tests/search_mode_one_home_19335_test.py

side commit subject issue refs
main 73b09af8e fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) #20589
this branch 3daec19c5 ci(guards): retire 75 floor= pins in 73 guard files, computed from the base instead (#19676) #19676

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

mrveiss commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20733 (head caa13f4): APPROVE

The stack carries #20731's head 761018e, so this was checked against that, not against main.

# Check Result Evidence
1 Mechanical OK All 69 changed files are modified .py. With comments dropped and the floor= keyword removed from declare() calls in the base copy, the AST equals the head copy in 69 of 69 files. This covers every changed file, not a sample. 71 floor= keywords were removed. No other token changed.
2 Keeps floor= OK Four files from the original retire commit were restored and are unchanged vs #20731, each with a literal floor=: one_gateway_adapter_package_15024 (floor 13, growth 30), post_sync_step_order_17867 (4, 4), script_importing_services_reaches_repo_root_17452 (1, 20), windows_install_constraints_resolve_19681 (1, 2).
3 Small-population risk LOW, unverified npm_audit_covers_its_workspaces had floor 5 and growth 6, and the pin was retired. If its base population is 6 or less, the computed floor is <= 0. It fails closed (BaseUnavailable), never passes silently. Worth a CI confirmation.

Not checked: the count of 8 named guards (this PR keeps 4 declarations, #20735 keeps 7), and CI execution.

This was referenced Nov 3, 2026
mrveiss added a commit that referenced this pull request Nov 4, 2026
@mrveiss
mrveiss merged commit 86da211 into main Nov 4, 2026
39 of 66 checks passed
@mrveiss
mrveiss deleted the issue-19676-pins-2 branch November 4, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci enhancement New feature or request phase:M5.6 M5 phase 6: conflict-free guard state (nothing regenerable is committed) sync-conflict Set by the branch sync (#19548)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant