Skip to content

Experiment 0.5: migrate arrow optimization into routing #4

Closed

Description

@anandpant

Context

  • Current experiment: packages/backend/experiments/arrow-optimization.ts
  • Uses Excalidraw element assumptions; no artifacts on disk.

Acceptance Criteria

  • Fold arrow optimization into deterministic routing module (or remove if redundant).
  • Input: IntermediateFormat edges, output: routed paths + bindings.
  • Provide clear defaults by diagramType + graphOptions (no per-edge overrides).
  • Add Convex test (*.test.ts next to action) that:
    • validates optimized arrow routes for sample graph
    • writes artifacts under packages/backend/test-results/ (JSON + summary entry)
    • includes scenario status in vitest JSON + summary report
  • Delete/cleanup experiment script once migrated.
  • Update docs/TODO.md + packages/backend/experiments/README.md.
  • Run bun dev and confirm Next + Convex typecheck pass.

Activity

  1. anandpant commented on Jan 26, 2026

    @anandpant
    CollaboratorAuthor

    Note: any Convex tests added here must emit packages/backend/test-results/summary.md entries with per-scenario details (incl. scores/issues/strengths when applicable) and CI artifacts should be published as test-results-packages-backend-convex-YYYYMMDD-HHMMSS.

  2. anandpant commented on Jan 26, 2026

    @anandpant
    CollaboratorAuthor

    Implemented arrow optimization in deterministic routing (diagram-layout). Added Convex test + artifacts, removed experiment script, updated docs/summary integration.\n\nArtifacts (local + CI): packages/backend/test-results/arrow-optimization-*.json/.png + arrow-optimization.md; summary.md includes per-scenario details.\n\nCommands run: bun run dev:server (Convex typecheck pass), bun run test, bun run test:report.

  3. linked a pull request that will close this issuemigrate arrow optimization into routing #17on Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions