Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.

Run model work only on selected branches and show the execution - #20

Merged
0thernet merged 2 commits into
mainfrom
feat/readable-language
Sep 20, 2026
Merged

0thernet merged 2 commits into
mainfrom
feat/readable-language

Conversation

@0thernet

@0thernet 0thernet commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Algal source could select an instruction, but could not put model effects inside a branch. This adds guarded if and exhaustive match arms so only the selected path performs work, then makes that behavior visible through readable source annotations and real recorded executions on the marketing site.

  • Lower effectful branches to existing guarded dependencies and checked single-result merges. Gate pure operands as well as model cells, keep control inputs outside model context, and budget the largest mutually exclusive arm. Existing pure-program manifest digests remain unchanged.
  • Show source binding names, decision questions, match arms, and source locations while preserving every exact cell and edge. Source annotations require recompiling the original text and matching its manifest digest; the CLI accepts --source for compiled manifests.
  • Add routing and nested uncertainty examples with seven scripted paths. The site executes and replay-verifies three route cases during its build, then displays their actual outputs, call counts, skipped cells, and downloadable receipts.
  • Update the README and language/diagram references, generate documentation from source mappings, and allocate separate edge-label rows so dense branch diagrams remain readable.

Validation: final bun run check passed with 455 tests, one Linux-only skip on macOS, typecheck, lint, generated-documentation checks, and site build. Native parity passed all 54 cases with matching semantics and receipt verification in both directions. Focused coverage includes inactive branch failures, nested guards, all 16 choice arms, exact context isolation, malformed decision metadata, branch budgets, source binding, and SVG/Mermaid escaping. Independent reviews completed. Desktop, mobile, and narrow-mobile browser checks passed at 1440, 390, and 320 pixels: no overflow, broken images, placeholders, or browser errors; both tabsets and keyboard navigation work independently; displayed results and counts match their receipts. Without JavaScript, all recorded paths and advanced examples remain visible. Screenshots were visually reviewed. Vercel preview and all current-head CI checks passed on d294b8c, including both native platforms and CodeQL. The final aggregate gate was rerun successfully after fixing an existing command-cache test fixture to consume its request before exiting; the focused six-test native cache suite also passed. No unresolved review threads or merge conflicts remain.

@vercel

vercel Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
algal Ready Ready Preview Sep 20, 2026 2:04am UTC

Request Review

@0thernet
0thernet merged commit 9a8ad43 into main Sep 20, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
Preview — d294b8c9 Deployed Sep 20, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant