Skip to content

chore: ignore local environment files - #133

Merged
bartekus merged 1 commit into
mainfrom
chore/gitignore-env
Oct 20, 2026
Merged

bartekus merged 1 commit into
mainfrom
chore/gitignore-env

Conversation

@bartekus

Copy link
Copy Markdown
Contributor

Ignore local environment files (.env*), which hold publication credentials (NPM_TOKEN) that must never be committed. The codebase index records .gitignore as an input, so its shard is refreshed with the change.

@bartekus
bartekus enabled auto-merge (squash) October 20, 2026 17:17
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

The diff adds .env* to .gitignore. This is a standard pattern to prevent committing environment files. The pattern is broad (matches .env, .env.local, .envrc, etc. in any directory), but that's typical and intentional. Nothing in the repo context shows any .env*-prefixed files that should be committed. No issues found.

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

Subject: f7437ce...dc4ab2f, diff digest 24f10f51deefc1d85166a541a09d2a0c22b5e179e897d9a9fd39b1300b864c25, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus force-pushed the chore/gitignore-env branch from dc4ab2f to 0293bdc Compare October 20, 2026 17:32
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

The change adds .env* to .gitignore. The pattern is intentionally broad — it covers .env, .env.local, .env.production, etc., and will also match .envrc (direnv config) anywhere in the tree, which teams sometimes intentionally track. That's a minor style consideration, not a bug or security issue.

No bugs, security problems, or inconsistencies found.

{"head": "0293bdc1793c103c2b6ced4af0fd08ccf067e17d", "verdict": "no-findings", "findings": []}

Subject: d29059a...0293bdc, diff digest 24f10f51deefc1d85166a541a09d2a0c22b5e179e897d9a9fd39b1300b864c25, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus merged commit da2ccd6 into main Oct 20, 2026
7 checks passed
@bartekus
bartekus deleted the chore/gitignore-env branch October 20, 2026 17:48
bartekus added a commit that referenced this pull request Oct 21, 2026
Spec 027, increment 6 (second change): the native conformance adapter.
Stacked on #131.

- `tools/rustev-conformance/js/run.mjs` gains the `native` adapter:
every CLI case runs natively (pure commands compared whole with exit
codes; `run` compared on the judgment and the run record, the envelope's
paths, receipt and exit code being CLI presentation), and every runtime
case runs with TypeScript scripted seams driven on a manual clock. All
34 native cases produce their expected bytes, repeatedly; the 23
WebAssembly cases still pass.
- The manifest names each case's surfaces explicitly (pure commands
`cli`/`native`/`wasm`, `run` `cli`/`native`, runtime cases
`rust-api`/`native`).
- The runtime-case driver is now deterministic for asynchronous host
seams: `advance_timer { delay_ms }` advances only when that retry delay
is pending and no attempt is in flight (via
`ManualClock::pending_delays`, #131). Both runners use it.
- The cancellation case shared by both runners mirrors
`cancel.rs::no_answer_means_local_waiting_stopped_and_nothing_more`; the
confirmed-stop case stays Rust-only (`runtime.cancel-stop`), because the
runtime polls a cancelled attempt once and a host seam can never answer
within that poll (recorded in the spec as an owner finding).
- `make bindings` runs the native conformance after the native tests.

Review round 1 (3 findings, fixed): (1) `rawMember` walks the document's
structure and matches only a top-level key, never a nested key or text
inside a string. (2) The sink's records are now checked: a `run` case
requires the sink to have received exactly the bytes the result carries.
(3) An attempt whose scripted backend ignores cancellation is settled
when its case ends, as the late resolution the engine discards, so no
promise is left pending. Restacked on #131; native 34/34 (three runs)
and wasm 23/23.

Review round 2 (2 findings, fixed): (1) `rawMember` tolerates whitespace
around the colon and before the value (canonical goldens are compact,
but nothing depends on it); checked on nested keys, spaced JSON and a
key inside a string. (2) An attempt whose scripted backend ignored
cancellation is settled after its case by resolving, never rejecting, so
a discarded late settlement cannot surface as an unhandled rejection.
Restacked after #133 merged; native 34/34 (twice), wasm 23/23.

Review round 3 (3 findings, fixed): (1) an unknown `on_cancel` value
rejects at once as a script error instead of leaving the attempt
waiting. (2) the sink check runs for every `run` case, whatever outputs
it pins: the sink must have received exactly the result's record bytes.
(3) `rawMember`'s string scans are bounded by the text's length, so
malformed JSON ends the scan. Native 34/34 (twice), wasm 23/23.

Review round 4 (1 finding): by design: the native package links the
rules backend (3.3.2) and reads a rules program itself, as the CLI does,
so the native adapter passes the program's own bytes and every check and
compile case with a rules program produces the CLI's bytes natively
(34/34); only the WebAssembly adapter, which cannot read a rules program
(3.10.1), substitutes the derived descriptor. The code now says so.

Restacked after #130 stopped recording derived descriptors on `run`
cases: this PR now records them for `run` cases itself (the harvest
gives them to pure and `run` cases; the native runner prepares a
compiled plan against them), restored byte-identical to the descriptors
the pure cases carry. Native 34/34, wasm 23/23.

Review round 5 (3 findings): (1) `ManualClock::pending_delays` is in
`crates/rustev-runtime/src/clock.rs` from #131, this PR's base, so it is
in the tree this PR builds on; the workspace compiles and the Rust
runner uses it. (2) fixed: `valueAt` has one exit per kind of value: a
container ends at its matching bracket, a scalar before the delimiter
after it; checked on nested, spaced, string and number members. (3)
fixed: each runtime case keeps its own list of ignored attempts and
settles it when the case ends, however it ends, so none reaches a later
case. Native 34/34 (twice), wasm 23/23.

Review round 6 (1 finding, fixed): a record output is compared byte for
byte, and every normalization its case declares must already hold:
`timing` requires the record's timings to be the normalized zeros (they
are, under the manual clock), and any other normalization fails the
case, so none passes unchecked. Native 34/34 (twice), wasm 23/23.

Review round 7 (2 findings, both verified against #131):
`DecideResult.completion` is the declared field (`index.d.ts`), and the
native gauges object's key is `backendInFlight` (`src/lib.rs` builds it
in camelCase for JavaScript); every runtime case drives `advance_timer`
through it, and native passes 34/34.

Review round 8 (1 finding, fixed): the WebAssembly adapter's store
resolver returns an item that exists but is empty; only an absent item
is null. Restacked after #129 was split (#134 holds the runtime cases).

Review round 9 (1 finding): the late settlement's value is never read:
the native seam (`integrations/rustev-node/src/seams.rs`, #131) takes a
host's settlement as plain JSON, and when the attempt has already
finished it discards and counts it before anything parses it, so no
shape can cause a rejection; the runner's comment now says so.
Restacked; native 34/34 (twice), wasm 23/23.

Restacked on #134's fixes: the native runner gains the `wait_sleeper`
step (the deadline case now waits for the runtime's timer) and fails a
`release_all` that frees nothing, as the Rust runner does. Native 34/34
(twice), wasm 23/23.

CI `code` failed on the previous head: this PR had removed the Rust
runner's `wait_sleeper` step (its retry case moved to `advance_timer`)
while #134 now uses it in the deadline case. Restored, with both runners
supporting it; verified from a clean build of `rustev-runtime` and
`rustev-conformance` (an earlier local run had used a stale shared
build). Native 34/34 (twice).

Restacked on #130's last round: the runner's pure-command comparison
(`comparePure`) checks written outputs against the published artifact
(never skipping one), and the WebAssembly path requires its commands'
flags by name. Native 34/34 (twice), wasm 23/23.

Review round 10 (2 findings): (1) The record goldens hold the normalized
form (timings zero, written by the CLI tests through the shared
normalization), and a decision under the manual clock produces exactly
those bytes, so the byte comparison is the right one; native passes
34/34. The comment says so. (2) fixed: the pure-command engine decides
nothing, so its sink now throws if ever delivered to, failing the case,
instead of answering a placeholder receipt.

Restacked on #135 after #131 was split: this PR is now increment 6's
third change, on the JavaScript layer. Native 34/34 (twice), wasm 23/23.

Rebased after #130 merged: the harvest keeps main's staleness checks
(inputs, derived descriptors, surfaces) with this PR's surfaces
(`native` on every CLI case) and derived descriptors on `run` cases; the
runner keeps its scope object with main's required fields. A re-harvest
reproduces every case file (the wall-clock replay bundle aside). Native
34/34 (twice), wasm 23/23.

Review round 11 (3 findings): (1) fixed: the attempt loop no longer
shadows the flags object. (2) Not so: the native `command` takes its
arguments as a JSON value and deserializes `scope` from an object
(`integrations/rustev-node/src/commands.rs`, `replay_config`), and the
native replay cases pass; the comment says why it differs from the
WebAssembly call, which takes a string. (3) Repeated:
`ManualClock::pending_delays` is in #131, this PR's base.

Review round 12 (1 finding, raised before): the record goldens are
written in their normalized form by the CLI tests (timings zero), so
normalizing them would change nothing; the runner now checks that on the
golden too, failing with a message naming it if a golden were ever
stored unnormalized, as it checks the record. Native 34/34 (twice).

Split (the AI review was cancelled at its 15-minute limit twice): this
PR is now increment 6's third change, the native conformance cases
(surfaces, derived descriptors on `run` cases, the runtime driver's
corrections and the Rust-only cancel-stop case); the JavaScript runner's
native adapter (`run.mjs` and its `make bindings` step) moves to a PR
stacked on this one.

Review round 13 (1 finding, raised before):
`ManualClock::pending_delays` is on main
(`crates/rustev-runtime/src/clock.rs`, from #131, increment 6's first
change), so this PR does not change that file and the crate builds; the
spec record now names where the accessor comes from rather than reading
as if this change adds it.
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