Repository navigation
impl(067): Node binding live preconditions: cost checks, rule authorizer, journal by path (increment 1b) - #546
Conversation
AI review (no-findings)Reviewing the diff for bugs, security issues, and governance inconsistencies.
No concrete bugs, security issues, or governance violations found. {"head": "f14c99411e5f2aa80914ade88264a6fc3c4639a4", "verdict": "no-findings", "findings": []}Subject: 78dfabd...f14c994, diff digest 3c4bad082d2e2086f0b9b8ea81e1359a22ed97b740b418e1d03cc6816a111bba, 1 call(s). An AI comment is not an approval. |
…zer, journal by path (increment 1b)
f14c994 to
9e3a158
Compare
AI review (no-findings)Reviewing the three changed files: a new
The
The
The implementation record accurately describes what the code does. It explicitly states "No acceptance item is claimed yet," which is correct — the spec's No concrete defects found. {"head": "9e3a158f8d419f8d826512bc94e74fec0a1cba27", "verdict": "no-findings", "findings": []}Subject: b409354...9e3a158, diff digest 83f60a0b082d8e49ea086baec5d03032559f9d7a20c21665e27e3885f8102e26, 1 call(s). An AI comment is not an approval. |
Summary
Spec 067 increment 1b (half of increment 1; the manifest change landed alone in #547 under the policy-isolation guard; increment 1a carries the journal identity and
--require-existing-journalinrustev-liveand the CLI).rustev-nodegains a normal dependency onrustev-liveand a crate-private modulesrc/live.rswith the binding's live preconditions as Rust functions; no JavaScript method yet (engine.liveRunis increment 2):LiveRefusal: outcomes as values (3.2.4),invalid_inputcode 4, I/O code 3, same split as the CLI'slive_error.check_config:LiveConfig::checkwithMode::Cli, so the binding requiresauthorize(live-config, 3.5.2, A-86 decision 3).RuleAuthorizer: the CLI's rule authorizer logic (043 3.12, 067 3.5.1), first matching rule, operation andmax_exposure_units, reference<LiveConfigId>#<index>; not exported, no permission value (2.1).check_backends: 3.3.3 against the engine's registered backends before any journal is opened (I-1):unknowncost modelspend-unit; unregistered backend, descriptor artifact differing from the binding entry, reached-without-entry or entry-not-reachedlive-config;cost_unit: noneaccepted (3.3.4;rustev-livealready recordsdeclared_no_spend).open_journal: by path,testingbudget, injectedSpendClock, CLI error mapping (journal-budget4,journal-locked3, other I/O 3; 3.4.1). Uses the existingSpendJournal::open; increment 1a's identity-aware opening andrequireExistingJournalare wired in increment 2.check_durable_paths: memory host refusedInvalidDocumentdurable-paths-required(3.4.2).The lib's unit tests run outside Node, so a
napidev-dependency enablesdyn-symbolsfor test builds only (resolver 2 does not unify dev-dependency features into normal builds); the shipped addon is unchanged.Spec:
specs/067-node-live-repeat-runs/spec.md3.2.4, 3.3, 3.4.1, 3.4.2, 3.5; implementation record paragraph added,implementation: pendingkept, no acceptance item claimed.Tests
Unit tests in
integrations/rustev-node/src/live.rswith scripted RustDecisionBackends, a temp dir andSetClock; no network, no live or paid call. Local:cargo test -p rustev-node --locked(9 tests),cargo clippy --workspace --all-targets --locked -- -D warnings,cargo fmt --all --check,cargo build -p rustev-node --features local-embed --locked,make gate.