Issue #2786: bounds rules: a found rule whose fact was evicted at the 256-fact cap is retried, not dropped (sv_simplex 647/692/703)

Open and answer this issue on GitHub.

wip, solver · opened 2026-11-23 · updated 2026-11-23 · 2 comments

Filed by the driver from the Found: of the run of issue-1755 (#1755) (owner, 2026-11-06).

Found

sv_simplex form_var lines 647/692/703 (self.var_form[s], self.row_of[s], self.values[s] after let s = self.new_var(-1)) stay checked: SvSimplex has 1414 found-rule candidates, and in rules_holding round 0 every length rule (len(bound_at) == len(var_form) etc.) fails at self calls (lines 1947, 2130, 2141) and exits (1291, 2160) of check/feasible/big_feasible/form_var because the walk holds 256 facts there with 82-244 evicted, so the facts are evicted, not disproved; only result new_var var_col survives (--bounds-trace 647 shows s < self.var_col.len(), rules: SvSimplex: result new_var var_col); should: the length rules survive, as each method keeps them (ADR-369 D4); suspected rules_give/rules_holding (bounds_rules.nika, pushing every candidate’s fact) against the 256-fact cap in bounding_push (bounds_walk.nika), check: raise the cap in a probe and see 647 proved; which facts to give first is a policy, no decision yet

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Comments

keywan-ghadami, 2026-11-23

Supervisor decision (2026-11-23). This is not an owner question. A rule that fails only because its fact was evicted at the 256-fact cap has not been disproved, and ADR-369 D4 says each method keeps the rules that hold. Eviction therefore must not decide a rule. The fix:

  1. rules_holding checks the candidates in batches that fit under the cap in bounding_push, together with the walk’s own facts. Rule facts are never evicted while their batch is checked. A rule whose fact was evicted anyway is retried in a smaller batch. A rule fails only where its fact is disproved, or where it cannot be checked even alone; in that second case it counts as failed, which is the sound default.
  2. The cap stays at 256 for the walk itself. This changes no budget.
  3. Done when the sv_simplex sites 647/692/703 print proved, a tests/compiler/tests/ probe pins one length rule that survives a method holding more than 256 facts, and the callgrind count of check --bounds packages/logic/src/main.nika is in the report (docs/measuring.md). A large increase is reported, not hidden.

Relabelled ready, lane solver.


Generated by Claude Code

keywan-ghadami, 2026-11-23

Brief queued: issue-2786


agent: builder model: opus max_turns: 200 budget_usd: 30 effort: medium —

Issue #2786

Your work order is issue #2786, inlined below with its comments. There is no brief written around it: plan your own steps from its To build list, build them in order, commit after each finished step, and end when its Done when holds (or at the limits of builder.md, reporting what is left). The facts in your prompt are Core of docs/builder-facts.md; more on a topic: nikaia run scripts/syntax.nika -- KEYWORD, a probe: nikaia run scripts/probe.nika -- SNIPPET.

Measure the issue against docs/issues.md while you work: what it lacked, what was wrong in it. That answer goes into the report’s Issue: field. A finding, a changed plan or a finished item also goes into the issue as a comment (gh api repos/Nikaia-Foundation/Nikaia/issues/2786/comments -F body=@file, ending with the Claude Code footer), rule I13.

Rules (CLAUDE.md; shared checkout)

Report (at most 15 lines, to exactly /home/user/Nikaia/docs/briefs/solver/issue-2786.md.report.md)

Fields: Result, Files, Commit, Body (optional), Fixes, Pushed, Tests, Gate, Deviation, Found, Needs, Changelog, Issue, Owner (a question for the owner), Comment (#N <text>, what to say on another issue; the driver posts it, one line each), Friction, Disk freed, and last Attribution: with your commit trailer lines below it.


Generated by Claude Code

Back to Open Issues