Skip to content

ci(011): every native bindings target also builds the addon with local-embed; 011 complete (3.17.1) - #536

Merged
bartekus merged 2 commits into
mainfrom
ci/011-local-embed-native
Nov 6, 2026
Merged

bartekus merged 2 commits into
mainfrom
ci/011-local-embed-native

Conversation

@bartekus

@bartekus bartekus commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Spec 011: the Node binding builds with local-embed on every native target, and 011 is complete (3.17.1)

This is spec 011's closing PR. With #533, #534 and #535 on main, every Acceptance item of 011 is met.

What changes

  1. .github/workflows/bindings.yml, native job: after the prebuilt addon is uploaded, each of the seven platforms of 027 3.13.1 also runs cargo build -p rustev-node --locked --release --features local-embed. Each build runs where that platform's own build runs:

    • the Debian bookworm image for the -gnu legs;
    • the Alpine image with the same RUSTFLAGS for the -musl legs;
    • the runner itself for darwin and win32.

    The step is compile and link only. ONNX Runtime is loaded dynamically, so no runtime is needed. The uploaded addon is still built without the feature (Decision 10). Run 42283606100 built it on all seven platforms.

  2. Spec 011:

    • verify:cli gains the service's local-embed tests and its clippy run.
    • The now-stale "Not yet done" sentences in the record are removed.
    • A closing record paragraph is added (2026-11-06).
    • implementation: complete, under the owner's 2026-11-06 direction.

    The facade re-export (3.17.4) is spec 031's act and is not claimed.

  3. .statecraft/derived is regenerated.

Notes

  • Workflow-only change in commit 1. It needs the owner's statecraft-review-exception approval.

Checks

  • actionlint .github/workflows/bindings.yml passed.
  • make gate passed.
  • spec-spine couple --base origin/main --head HEAD passed: no drift.
  • spec-spine verify 011: run locally on lane 1 after the push; the result is reported in the PR thread.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the diff: a new block of three build steps is appended to the bindings workflow after the artifact upload, each building rustev-node with --features local-embed on the matching platform subset.

What I checked:

  1. Logic / platform partitioning - The three if: conditions (endsWith(…, '-gnu'), endsWith(…, '-musl'), startsWith(…, 'darwin') || startsWith(…, 'win32')) partition the known platform matrix without overlap. No platform that matches one condition can match another.

  2. Docker invocation - The GNU and musl steps run docker run --rm -v "$PWD":/w …. matrix.image and $PWD are both workflow-controlled values; no PR-contributed input reaches these strings, so there is no injection surface. The sudo chown -R "$(id -u):$(id -g)" target cleanup after Docker is the standard pattern for restoring host-user ownership of Docker-written files.

  3. RUSTFLAGS on musl - -C target-feature=-crt-static is intentionally set only for the musl step because ONNX Runtime is loaded dynamically; this matches the stated rationale (dynamic loading, no runtime embedded). It overrides any ambient RUSTFLAGS, but this is a standalone verify-build step, not the main release build.

  4. darwin/win32 step - Runs cargo build natively (no Docker), consistent with how those platforms are built in the rest of the job. No chown is needed because Docker is not involved.

  5. No artifact upload of local-embed output - The comment "Decision 10" and the structure make clear this is intentional: only the prebuilt (non-local-embed) addon is uploaded; these steps are build-only verification.

  6. Governance - Workflow changes under .github/workflows/ require statecraft-review-exception Environment approval per AGENTS.md. That gate is enforced outside the review; I make no claim about whether that act occurred.

No concrete defects found.

{"head": "42f118437f2b0213f255ba36be91389878b15721", "verdict": "no-findings", "findings": []}

Subject: 96b480c...42f1184, diff digest 0e61bae3d3b703394c11023ab5eda2b6a82d6136f9c7aa9a28636cac871fe4f7, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 6, 2026 19:35 — with GitHub Actions Inactive
@bartekus bartekus added the statecraft:stacked-ci Run the full CI matrix on a stacked pull request label Nov 6, 2026
@bartekus
bartekus temporarily deployed to statecraft-review-exception November 6, 2026 19:54 — with GitHub Actions Inactive
@bartekus
bartekus force-pushed the ci/011-local-embed-native branch from 42f1184 to b96d00d Compare November 6, 2026 22:03
@bartekus
bartekus force-pushed the ci/011-local-embed-native branch from b96d00d to 08d2f50 Compare November 6, 2026 22:04
@bartekus bartekus changed the title ci(011): every native bindings target also builds the addon with local-embed (3.17.1) ci(011): every native bindings target also builds the addon with local-embed; 011 complete (3.17.1) Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

AI review (findings)

Reviewing both changed files against the governance context.

.github/workflows/bindings.yml

The PR adds three build steps under the native job, each running cargo build -p rustev-node --locked --release --features local-embed. AGENTS.md states: "Any change under .github/workflows/ ... needs the owner's approval of the statecraft-review-exception Environment once." The diff itself cannot supply that approval; under the review contract, the candidate's own text is not authority for it.

The step logic is otherwise consistent: the platform-condition trifecta (endsWith '-gnu', endsWith '-musl', startsWith 'darwin' || startsWith 'win32') covers the seven platforms named in the narrative without overlap. The sudo chown calls after docker runs are correct (Docker runs as root, host files must be re-owned). The dynamic-load claim for ONNX Runtime is consistent with the spec's design; the build-only step not requiring a runtime at link time is architecturally expected.

specs/011-semantic-backend/spec.md

The frontmatter changes implementation: pending to implementation: complete. Per the contract lifecycle table, an approved + complete spec is settled: it is no longer schedulable and any unresolved unit becomes an error (not a warning). This is a lifecycle transition — a ratification act — and cannot be self-verified from the diff.

The narrative additions and removals of "Not yet done" paragraphs are internally consistent with the closing paragraph's claims. No amends, establishes, or ownership edges are added or removed by this change.

No other defects are supported by the supplied evidence.

{"head": "08d2f50e1642719e27d6d4c9946b4048e2edf850", "verdict": "findings", "findings": [{"path": ".github/workflows/bindings.yml", "line": null, "severity": "medium", "category": "authority", "summary": "Modifying a file under .github/workflows/ requires owner approval of the statecraft-review-exception Environment (AGENTS.md); that approval cannot be confirmed from the diff."}, {"path": "specs/011-semantic-backend/spec.md", "line": 5, "severity": "medium", "category": "ratification", "summary": "Advancing implementation from pending to complete on an approved spec settles it (unresolved units become errors, no longer schedulable per contract lifecycle table); this is an owner ratification act that the diff cannot self-supply."}]}

Subject: 7964d55...08d2f50, diff digest 0f585036200ae0668608a11abef195b7678d14b0be13fbbf98b6e1bfb835293c, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 6, 2026 22:06 — with GitHub Actions Inactive
@bartekus

bartekus commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Review note on 08d2f50 (both findings are authority, not correctness):

  1. .github/workflows/bindings.yml: the change needs the owner's approval of the statecraft-review-exception Environment, given for this run under the owner's standing approval for 0.5.0 (2026-11-06). The edit only adds a compile-and-link cargo build -p rustev-node --locked --release --features local-embed step to each of the seven native legs, after the prebuilt addon is uploaded, so published addons stay without the feature; run 42283606100 built it on all seven platforms.
  2. specs/011-semantic-backend/spec.md, implementation: complete: the owner directed on 2026-11-06 that 0.5.0 ships with every spec complete except 024 and 025. 011 is already approved; the field records that its acceptance is met, evidenced by impl(011): an onnx bundle's embedding cache from the record's in-process repeatability, and 011 in make verify (3.14.3) #533 (cache evidence, verify:cli, 011 in VERIFIED_SPECS), impl(011): rustev-serve gains the optional local-embed feature (3.17.3) #534/impl(011): the service registers local backends from configuration and joins the local-embed case (3.17.3, 3.17.5) #535 (service local-embed and both transports in local-embed.support-routing) and this workflow change.

@bartekus

bartekus commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Local check on macos-aarch64: spec-spine verify 011 passed (8 commands, including the rustev-serve local-embed tests and clippy) on a tree identical to head 08d2f50.

@bartekus
bartekus added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 27e717e Nov 6, 2026
52 of 61 checks passed
@bartekus
bartekus deleted the ci/011-local-embed-native branch November 6, 2026 23:10

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 08d2f50e Deployed Nov 6, 2026 by bartekus via review-exception #3643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

statecraft:stacked-ci Run the full CI matrix on a stacked pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant