Skip to content

chore: drop duplicate /api/explain route; correct ROADMAP HOMFLY bound - #93

Merged
hyperpolymath merged 2 commits into
mainfrom
chore/housekeeping-dup-route-roadmap
Aug 3, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
chore/housekeeping-dup-route-roadmap

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Two small accuracy fixes found while auditing DB-6 (#34).

1. Duplicate route registration

/api/explain was registered twice in route() — serve.jl:1017 and :1019, byte-identical lines:

path == "/api/explain" && return handle_explain(db, sdb, params)

path == "/api/explain" && return handle_explain(db, sdb, params)

The second is unreachable (the first returns), so removing it is not a behaviour change — it's dead code. Looks like a merge artifact from #89 landing alongside the earlier explain route.

2. ROADMAP quoted a stale bound

ROADMAP.adoc:36 claimed HOMFLY-PT is "bounded to ≤12 crossings". The code says HOMFLY_MAX_CROSSINGS = 15.

The ≤12 figure was the old Alexander bound — which since #85 (post-Bareiss, KnotTheory#46/#48) is 128. So the roadmap was quoting a number that is now wrong for both polynomials.

Corrected to 15, and annotated with why HOMFLY keeps a tight bound when Alexander no longer needs one: the Kauffman-bracket skein recursion is genuinely 2^n, whereas Bareiss elimination is O(n³).

Verification

  • grep -c 'path == "/api/explain"' server/serve.jl → 1
  • Meta.parseall(read("server/serve.jl", String)) parses clean
  • ROADMAP figure now matches HOMFLY_MAX_CROSSINGS

🤖 Generated with Claude Code

Two small accuracy fixes found while auditing DB-6 (#34).

1. `/api/explain` was registered TWICE in `route()` (serve.jl:1017 and
   :1019, byte-identical lines). The second is unreachable — the first
   returns — so this is dead code, not a behaviour change. A merge
   artifact from #89 landing alongside the earlier explain route.

2. ROADMAP.adoc claimed HOMFLY-PT is "bounded to ≤12 crossings", but
   `HOMFLY_MAX_CROSSINGS = 15`. The ≤12 figure was the OLD Alexander
   bound, which since #85 (post-Bareiss, KnotTheory#46/#48) is 128 —
   so the roadmap was quoting a number that is now wrong for both
   polynomials. Corrected to 15 and annotated with why HOMFLY keeps a
   tight bound when Alexander no longer needs one: the Kauffman-bracket
   skein recursion is genuinely exponential, whereas Bareiss elimination
   is O(n^3).

Verified: `grep -c 'path == "/api/explain"'` → 1; `Meta.parseall` on
serve.jl parses clean.

Co-Authored-By: Claude Opus 5 <[email protected]>
@gitar-bot

gitar-bot Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Note

Automatic reviews are paused because your trial's included automatic processing has been used for this period. Upgrade now, or comment "Gitar review" to run a review anytime.
Learn more

Code Review ✅ Approved

Removes duplicate /api/explain route registration in serve.jl and corrects the stale HOMFLY-PT bound in ROADMAP.adoc to match the code. No issues found.

Auto-approved and auto-merge armed: No blocking issues found.
Please see Auto-approve Docs for details on setting custom approval criteria. — merges when pipeline and required approvals pass.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Important

Your trial ends in 7 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more.

Was this helpful? React with 👍 / 👎 | Gitar

@gitar-bot gitar-bot 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.

Gitar has auto-approved this PR and enabled auto-merge (configure)

@gitar-bot gitar-bot Bot added the gitar-approved Added by Gitar label Aug 3, 2026
@hyperpolymath
hyperpolymath marked this pull request as ready for review August 3, 2026 13:15
@hyperpolymath
hyperpolymath merged commit a4ddf65 into main Aug 3, 2026
@hyperpolymath
hyperpolymath deleted the chore/housekeeping-dup-route-roadmap branch August 3, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gitar-approved Added by Gitar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant