Skip to content

0.3.1: roadmap, Python 3.15, PyPI + npm trusted publishing, plain-language README - #34

Merged
cluster2600 merged 9 commits into
mainfrom
docs/roadmap
Oct 22, 2026
Merged

cluster2600 merged 9 commits into
mainfrom
docs/roadmap

Conversation

@cluster2600

@cluster2600 cluster2600 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

This PR adds the roadmap (docs/roadmap.md) and does its first four items, as 0.3.1.

1. Python 3.15

  • islpy 2026.2.2 ships cp315 wheels (check_py315.py now reports READY), and Python 3.15.0 was released on 2026-10-09.
  • tests.yml now runs the whole suite on a 3.14 + 3.15 matrix (fail-fast: false).
  • Classifiers added for 3.14 and 3.15.
  • The README's 3.15 section and check_py315.py now say 3.15 is supported. Only free-threaded 3.15t is still waiting, on a cp315t islpy wheel.

2. polyhedral_multi.py removed

  • No production code imported it any more. Since 0.3.0, multi-statement and stencil kernels check each statement with polyhedral.py and fusion with union.py, and imperfect nests use union.py.
  • test_multistatement checks the same three cases (fused legal, distributed legal, reordered illegal), now as a union.UnionProgram.
  • test_fusion now runs fuse(j) on gesummv through the real MultiEnvironment. That path checks every dependence of the statement union, generates the fused code with ISL and checksums it. The comparison against the hand-fused kernel stays.
  • The README layout table, multikernel.py, how-it-works and the user guide no longer describe the old module. union.py has a row in the layout table.

3. PyPI + npm without a local login

  • New .github/workflows/publish.yml, triggered only by a published release. A failed run is re-run from the Actions tab.
    • build: checks that pyproject.toml, npm/package.json and the release tag carry the same version, then builds the sdist and wheel.
    • pypi: publishes through PyPI trusted publishing (OIDC, environment pypi), with skip-existing.
    • npm: publishes through npm trusted publishing (OIDC, environment npm). It makes sure npm is at least 11.5.1 and skips a version that is already on npm.
  • Only the two publish jobs get id-token: write. Both run in environments (pypi and npm, already created on the repo) whose deployment policy admits only v* tags. The tag must equal the version in both manifests. Together with the tag ruleset below, this addresses Codex's security finding. The npm job also keeps contents: read, because job-level permissions replace the workflow's.
  • Action SHAs are pinned the same way as in the existing workflows, and actionlint is clean.
  • Packaging bug fixed: the wheel shipped without compilot/backends, because pyproject.toml listed only the top-level package. It now uses packages.find with compilot.*.
  • The npm README's prerequisite is now pip install compilot (a clone with pip install -e . still works). The launcher's error message says the same.
  • Doc bug fixed: COMPILOT_PYTHON=… claude mcp add … only set the variable for the claude command itself, so the variable never reached the stored server config. The npm README and the user guide now use claude mcp add compilot -e COMPILOT_PYTHON=… -- npx ….

Before the first run, the owner has to register the workflow on both registries:

  • pypi.org → Account → Publishing → Add a new pending publisher (GitHub):
    • project compilot
    • owner cluster2600
    • repository cluster_compilot
    • workflow publish.yml
    • environment pypi
  • npmjs.com → @cluster2600/compilot-mcp → Settings → Trusted publishing → GitHub Actions:
    • user cluster2600
    • repository cluster_compilot
    • workflow publish.yml
    • environment npm

A tag ruleset (release tags (v*): admins only) now allows only admins to create, move or delete v* tags, and admins bypass it. A writer therefore cannot mint a release tag that the environments would accept. Optionally, add yourself as a required reviewer on both environments.

Then publishing the v0.3.1 release publishes the GHCR image (existing workflow), PyPI compilot 0.3.1 and, only once PyPI has succeeded, npm 0.3.1.

Order matters (Codex security finding): a PyPI pending publisher does not reserve the name; only the first upload does. Register the pending publisher, merge, and publish the v0.3.1 release right away, so the first upload claims compilot before the README's pip install compilot line has been public for long. The npm job waits for the PyPI job, so the npm README (which says the same) never goes out if PyPI fails.

4. Review of the commits #33 merged without a review

The last Codex pass on #33 never finished, so I reviewed db3f4a1 and 0e89429 here.

  • db3f4a1 (loop depth from the transformed schedule): no findings.
    • n_loops is read from the unpadded time vectors that every caller passes, so it agrees with schedule()'s padding.
    • It also agrees with to_c's depth, which comes from ISL's iterator index.
    • Statement-declared scalars now land at the innermost loop of the transformed nest, which is their original scope.
  • 0e89429 (LARGE numbers): every number matches the raw bench.py and baselines.py logs. One claim did not hold: "the matvec kernels are memory-bound at ~1×". The same parallel(i) schedule for gesummv measured 0.95× in bench.py and 8.60× in baselines.py. Those 4–9 ms runs are simply too short to time on a loaded host.
    • The docs now say that.
    • Roadmap item 6 now also asks for repeating short kernels within one timed run.

5. README for non-specialist readers

  • The README now opens with a jargon-free part for readers such as recruiters:
    • a plain overview diagram (docs/images/overview.png, with its mermaid source in docs/architecture.md);
    • the four steps: the AI proposes, the math proves, the run measures, the feedback goes back to the AI;
    • the results in plain terms, what the project includes, the skills it shows, and a short glossary.
  • Everything technical follows under For engineers, word for word, except:
    • the Parallelism and Mixture-of-Agents subsections are condensed to summaries;
    • their README-only details moved to docs/parallelism.md: thread count, busy-host warning, COMPILOT_OMP_BIND, the model spec format and OPENAI_API_KEY.
  • The README's claude mcp add command now uses -e, like the other docs.

Testing

  • Full suite, each module on its own, with PYTHONWARNINGS=error::DeprecationWarning:
    • Python 3.14.8 (compilot:local): all 19 modules pass.
    • Python 3.15.0 (python:3.15-slim-trixie + clang/libomp): 18 of 19 passed on the first run. test_union hit the run timeout on jacobi2d parallel(j) + shift(i, 1)/fuse(i) while another process held the host's load at about 13. With the load back down it passed twice on 3.15 (36 s, 76 s) and once on 3.14 (46 s).
  • Wheel and sdist:
    • Built from this branch; twine check passes.
    • The wheel now contains compilot/backends.
  • End to end, 3.14 and 3.15, run from /tmp (not the repo):
    • Installed the 0.3.1 wheel in the container.
    • Drove the MCP server over stdio: initialize reports 0.3.1, then tools/list, list_kernels, and check_legality on gemm (reorder(i,k,j)+parallel(i) is legal, parallel(k) is parallel_illegal).
    • Ran optimize with the mock backend.
    • Did the same through npm/bin/compilot-mcp.js with COMPILOT_PYTHON, started from a directory that holds a planted ./compilot package. The installed package was used, not the planted one.
  • Workflows: actionlint is clean on all three.
    • The npm version gate was tested on 10.9.2, 11.5.0, 11.5.1, 11.6.0 and 12.0.2.
    • npm view …@0.3.0 returns the version and @0.3.1 returns nothing, so the skip logic works.
  • Lint: pyflakes is clean.

🤖 Generated with Claude Code

cluster2600 and others added 5 commits October 21, 2026 14:43
Fifteen items in priority order, each with the evidence behind it and a
done-when: Python 3.15 (islpy now ships cp315), dropping the test-only
polyhedral_multi.py, PyPI + npm trusted publishing, a Polly baseline (the
image's clang 19 already has it), JSON benchmark output, quiet-machine and
live-LLM numbers, then parallel reductions and tiling for imperfect nests.
Linked from the README and the docs index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
islpy 2026.2.2 ships cp315 wheels (check_py315.py reports READY) and
Python 3.15.0 was released on 2026-10-09, so the suite now runs on both.
Free-threaded 3.15t still waits on a cp315t islpy wheel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only test_multistatement and test_fusion still imported it: since 0.3.0 the
multi-statement and stencil kernels check statements with polyhedral.py and
fusion with union.py, and imperfect nests use union.py. test_multistatement
checks the same three cases as a UnionProgram; test_fusion runs fuse(j) on
gesummv through MultiEnvironment (union legality, ISL codegen, checksum).
README layout, multikernel docstring, how-it-works and user guide updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
publish.yml (release published, or manual): check that pyproject, npm and
the tag agree, build sdist + wheel, publish to PyPI (OIDC, environment
pypi, skip-existing) and to npm (OIDC, npm >= 11.5.1, skipped when the
version is already there). No stored tokens and no local 2FA round trip.

The wheel shipped without compilot/backends (packages listed only the top
package); packages.find now includes compilot.*. Classifiers for 3.14/3.15.
npm README: prerequisite is pip install compilot. The Claude Code command
now stores COMPILOT_PYTHON with -e: as a shell prefix it only reached the
claude CLI, never the server's config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
db3f4a1 (loop depth from the transformed schedule): no findings. 0e89429:
the numbers match the raw logs, but "the matvec kernels are memory-bound at
~1x" did not hold: gesummv's parallel(i) measured 0.95x in bench.py and
8.60x in baselines.py in the same session, because 4-9 ms runs are too short
to time on a loaded host. Docs say so; roadmap item 6 now asks for short
kernels to repeat inside one timed run. Roadmap table gets a status column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T16:03:02.939414Z ee8a0b0 Manual request
🔒 Security Review ✅ Completed 2026-10-21T18:01:04.715996Z 875e1ec Manual request

Security findings

Advisory findings (2)

ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

🛡️ Codex Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 66b1e9d268

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread .github/workflows/publish.yml Resolved
…ment

Codex security review: a writer could dispatch the workflow from any
branch (skipping the tag check) and the npm job got an OIDC token with no
environment. Now there is no manual trigger (re-run a failed release from
the Actions tab), the tag must equal both manifest versions, and both
publish jobs run in environments (pypi, npm) whose deployment policy only
admits v* tags; the registries tie trust to publish.yml + environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cluster2600

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79f27feea8

ℹ️ 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 thread .github/workflows/publish.yml Resolved
Job-level permissions replace the workflow's, so with only id-token: write
actions/checkout had no contents permission. (Codex review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cluster2600

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: ee8a0b00f9

ℹ️ 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".

@cluster2600

Copy link
Copy Markdown
Owner Author

@codex security review

@chatgpt-codex-connector chatgpt-codex-connector 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.

🛡️ Codex Security Review

Here are some automated security review suggestions for this pull request.

Reviewed commit: ee8a0b00f9

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread npm/README.md Resolved
… name

The npm README tells users to pip install compilot, and a PyPI pending
publisher does not reserve the name (only the first upload does), so npm
must never publish before PyPI holds the release. (Codex security review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cluster2600

Copy link
Copy Markdown
Owner Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 875e1ec7e4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

The README now opens with what the project does and why it matters,
without jargon: a plain overview diagram, the four steps (AI proposes,
math proves, run measures, feedback), results in plain terms, what the
project includes, the skills it shows, and a short glossary. The
technical content follows under "For engineers", unchanged except that
the Parallelism and Mixture-of-Agents subsections are condensed; their
README-only details (thread count, busy warning, OMP binding, model spec
format, OPENAI_API_KEY) moved to docs/parallelism.md. The diagram's
mermaid source is in docs/architecture.md. Also fixes the README's
claude mcp add command (-e, so COMPILOT_PYTHON reaches the stored config).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cluster2600 cluster2600 changed the title 0.3.1: roadmap, Python 3.15, PyPI + npm trusted publishing, drop polyhedral_multi 0.3.1: roadmap, Python 3.15, PyPI + npm trusted publishing, plain-language README Oct 22, 2026
@cluster2600
cluster2600 merged commit 41b4daa into main Oct 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant