Repository navigation
impl(011): increment 3 part a, text, tasks, tokenization and check_plan - #456
Conversation
AI review (findings)Reviewing the three new source files and spec update.
The deduplication guard at line 57 compares let entry = (
f.step.as_str(),
Some(&f.descriptor) == my_descriptor.as_ref(),
);
// A step is checked once however often it reaches this backend.
if !bound.contains(&entry) {
bound.push(entry);
}If the same step appears as a primary binding (e.g.
The projection size gate, parse limits, task matching, text assembly, length accounting, tokenizer override (
Test coverage is broad; the dedup case (step present as both primary binding and fallback with differing descriptors) is not exercised.
The increment note accurately describes the code added. {"head": "1ba8dd49260bb39fe717161b65c335585b7e3c9b", "verdict": "findings", "findings": [{"path": "backends/rustev-backend-embed-linear/src/check.rs", "line": 57, "summary": "Deduplication key is (step_id, descriptor_match_bool), so a step that appears as both a primary binding and a fallback to the same backend with differing descriptor-match status is added to `bound` twice, causing duplicate mismatch reports in the loop below despite the comment stating the step is checked only once."}]}Subject: daea92e...1ba8dd4, diff digest a784c9b95fc21bb3e701f93df9fabe1abf2c22ad0928753254f307efe3fcc7c5, 1 call(s). An AI comment is not an approval. |
4c8edd6 to
37bb6a1
Compare
1ba8dd4 to
5162bee
Compare
AI review (findings)Reviewing the six changed files for bugs, security issues, and inconsistencies.
{"head": "5162beef56563219b51537e2ac1124bf19575032", "verdict": "findings", "findings": [{"path": "backends/rustev-backend-embed-linear/src/check.rs", "line": 59, "summary": "Deduplication of `bound` entries uses the full `(step, same_descriptor)` tuple; when the same step appears in both the primary binding (descriptor matches) and a fallback (descriptor does not match), both `(step, true)` and `(step, false)` are inserted, causing `fields()` to run twice for that step and every NotProjected/Incompatible mismatch to be reported twice."}]}Subject: 3dca8fd...5162bee, diff digest 4bf29e5afe9a872af1672da55ceee84faf00a076c38d6f0c17a9ad24389aa98a, 1 call(s). An AI comment is not an approval. |
AI review (findings)Reviewing the five changed source files for bugs, security issues, and inconsistencies.
let (key, member) = field_ref(&reference).expect("checked manifest field");
let (key, member) = field_ref(&f.reference).ok_or_else(|| error(C::FieldMissing))?;Both call sites read from
{"head": "67eb55ea54e51464dff08b2cc944e4e4f806dcd9", "verdict": "findings", "findings": [{"path": "backends/rustev-backend-embed-linear/src/check.rs", "line": 112, "summary": "fields() panics via expect() if a manifest head field reference is unparseable by field_ref, violating check_plan's Result return type; the identical call in request.rs::assemble handles the None case with ok_or_else."}]}Subject: 3dca8fd...67eb55e, diff digest 6c73750656368fe885a81d440cb86d7880aef46c70ac6eb6f390970481b527b8, 1 call(s). An AI comment is not an approval. |
AI review (findings)Reviewing the six changed paths for bugs, security issues, and inconsistencies.
let (key, member) = field_ref(&f.reference).ok_or_else(|| error(C::FieldMissing))?;When No other concrete defects found. The {"head": "8a7e4736d5fd2d92caa7ac7f525ad41d88b7acdf", "verdict": "findings", "findings": [{"path": "backends/rustev-backend-embed-linear/src/request.rs", "line": null, "summary": "assemble() returns FieldMissing when field_ref() cannot parse a manifest reference, but the semantically correct code is Incompatible (as check.rs uses for the same case); a malformed reference is not a missing projection value."}]}Subject: 3dca8fd...8a7e473, diff digest 7d0d7c4e9787932d558451bf9694a00fc98c3e6cc94d4ef32dd8e5b1ba7006e3, 1 call(s). An AI comment is not an approval. |
|
Review note on the finding at Not changed, for two reasons:
Requesting the review exception for this head. |
AI review (no-findings)I reviewed the PR, which adds Locking correctness (backend.rs): The pool-state lock is always acquired before the per-job lock throughout Capacity accounting: Charge semantics (3.11.4): Cancel semantics (3.12):
Spec notes: The two increment paragraphs (3a and 3b) accurately describe the code's behavior relative to spec sections 3.7.1, 3.8, 3.10.4, 3.11, 3.11.4, and 3.12. No claim of qualified ONNX support is made; the No concrete defects found. {"head": "2bf621f42ab5ab7e0b5e813f9089e68354aed640", "verdict": "no-findings", "findings": []}Subject: 3dca8fd...2bf621f, diff digest 2080f689c6b405f51ef74ea68823a168410413f37707dc9fdf1e305d433ee49d, 1 call(s). An AI comment is not an approval. |
2bf621f to
1cea8d6
Compare
AI review (no-findings)Reviewing the PR diff across all changed paths.
Spec 011
Dependency
No concrete defects found. {"head": "1cea8d6853065481ded2087f9e00c582224b3722", "verdict": "no-findings", "findings": []}Subject: 1485f17...1cea8d6, diff digest 544d1abd171aa1e0488b129e8e3e1e20522d059b0e217821f12aed563e6f44c7, 1 call(s). An AI comment is not an approval. |
1cea8d6 to
5da9d20
Compare
AI review (findings)Reviewing the diff against the governance context and repo state. Rust code ( Workflow and artifact script removals: The Derived artifact staleness:
Neither of these paths appears in SUBJECT's changed-path list. AGENTS.md requires: "commit the shards with the spec edit that staled them." With the spec source removed, {"head": "5da9d209f04ecc2c9d641ac927d3a72abf2346c5", "verdict": "findings", "findings": [{"path": "specs/060-the-service-image-in-the-release/spec.md", "line": null, "summary": "Spec 060 source is deleted but the corresponding derived shards (.statecraft/derived/spec-registry/by-spec/060-the-service-image-in-the-release.json and .statecraft/derived/codebase-index/by-spec/060-the-service-image-in-the-release.json) are not removed, leaving stale artifacts that will cause make gate to fail."}]}Subject: 646eee3...5da9d20, diff digest b9d27a1e3a56611b9247543071a2dd00ef6a90efd37220cb2f3d09357d410343, 1 call(s). An AI comment is not an approval. |
… DecisionBackend over the synthetic encoder Part a: request preparation on the caller (projection bound, task matching, text assembly, tokenization through the verified tokenizer), typed refusals with no charge, and check_plan, which checks a step once when its primary and a fallback both reach the backend and reports an unparseable field reference instead of panicking. Part b: the DecisionBackend for synthetic bundles, with a bounded worker pool behind a FIFO queue, charges per 3.11.4 and cancellation per 3.12; onnx bundles are refused unqualified_platform.
5da9d20 to
998be6f
Compare
AI review (no-findings)I'll review the diff carefully, focusing on correctness of the concurrent state machine in
|
Spec 011 increment 3 part a: requests are prepared on the caller before any handoff.
Stacked on #455 (the feasibility record). It retargets to
mainonce #455 merges.What changes
src/request.rs: a request is prepared on the caller, in this order:input:andbind:references and an optional member; strings only, nothing coerced (3.8.1);tokenizer.jsonthrough the pinnedtokenizerscrate, loaded once and never from a hub (3.8.3).refuseortruncate_endapplies (3.8.4).projection_too_large,task_not_found,field_missing,field_type,text_empty,text_too_long,too_many_tokens), and none incurs a charge.src/check.rs:check_plan(3.10.4) reports each kind of mismatch, covers fallbacks, and ignores steps bound to other backends.Checks
tests/requests/mod.rsexercises synthetic bundles with a generated WordPiece tokenizer.make gatepasses at this commit.cargo test -p rustev-backend-embed-linearpasses locally with part b on top (34 tests).