Skip to content

Conversation

@seveibar
Copy link
Contributor

Summary

  • add an assignable-via-specific capacity pathing solver that rewards layer transitions
  • introduce a hyper-parameter supervisor to explore ordering and reward combinations
  • update the assignable via autorouting pipeline to use the hyper solver and cover it with a regression test

Testing

  • bun test tests/unassigned-obstacles/AssignableViaAutoroutingPipelineSolver.test.ts
  • bunx tsc --noEmit
  • bun run format

https://chatgpt.com/codex/tasks/task_b_6901bf9173f4832e858ecc6df1169a24

@vercel
Copy link

vercel bot commented Oct 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
capacity-node-autorouter Ready Ready Preview Comment Oct 30, 2025 8:19pm

…rove obstacle and used node filtering logic and update visualization steps

fix pathfinding to exclude nodes containing obstacles unless they contain targets and exclude already used nodes early
remove large cost penalties for reused nodes in cost and heuristic calculations to simplify logic
enhance visualization by adding green lines for solved subpaths and update stroke colors and step numbering for clarity
@seveibar seveibar changed the title Add hyper-tuned capacity pathing for assignable via pipeline Add hyper-tuned capacity pathing for assignable via pipeline - first working solver for global planning with assignable vias against viagrid test Oct 30, 2025
@seveibar seveibar marked this pull request as ready for review October 30, 2025 05:06
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 210 to 214
{
onSolved: (cms) => {
const winningSolver = cms.initialPathingHyperSolver?.winningSolver
if (winningSolver) {
// cms.initialPathingSolver = winningSolver

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Propagate hyper-solver winner to initial pathing solver

The hyper-parameter step constructs initialPathingHyperSolver but the onSolved handler never assigns its winningSolver to initialPathingSolver. As a result initialPathingSolver stays undefined and the following pathingOptimizer step falls back to a default greedy solver instead of using the tuned directive solver. The regression test added in this commit also asserts that winningSolver equals initialPathingSolver, so leaving this assignment commented out causes the test (and the pipeline’s downstream visualization) to fail and the hyper search has no effect.

Useful? React with 👍 / 👎.

@seveibar seveibar merged commit d697c08 into main Oct 30, 2025
8 checks passed
@seveibar seveibar deleted the codex/add-custom-capacity-pathing-for-assignableviapipeline branch October 30, 2025 20:33
@tscircuitbot
Copy link

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Comment posted by tscircuitbot

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants