Repository navigation
impl(042): increment 1, remote context and sink contract documents - #176
Conversation
AI review (no-findings)I reviewed the PR carefully, examining the new
Governance — spec 042 moves from No concrete defects found. {"head": "a4d7da24770a3bfdf81e5a2ec00ca39dd71caedc", "verdict": "no-findings", "findings": []}Subject: 57a3166...a4d7da2, diff digest d922e8012214a10aa447adb6b5aa4e611edf47905143e5483e23645597c2923d, 1 call(s). An AI comment is not an approval. |
AI review (findings)Reviewing the PR for concrete defects: new Finding 1 — Derived artifact not regenerated with the spec edit
Finding 2 —
Finding 3 — Percent-encoding in
{"head": "e9823e078c059ee19d688c7b6342d902f36b7ce3", "verdict": "findings", "findings": [{"path": "specs/042-decision-service-and-remote-seams/spec.md", "line": 4, "summary": "Frontmatter changes implementation status from pending to in-progress but the staled derived registry shard (.statecraft/derived/spec-registry/by-spec/042-decision-service-and-remote-seams.json) is not regenerated and committed alongside the spec edit, violating the AGENTS.md rule to commit shards with the spec edit that stales them."}, {"path": "crates/rustev-contract/src/remote_context.rs", "line": 242, "summary": "validate_traceparent returns Err(invalid(\"invalid_trace_context\")) with an underscore-delimited token that is inconsistent with surrounding error surface and makes the diagnostic harder to match programmatically."}, {"path": "crates/rustev-contract/src/remote_context.rs", "line": 257, "summary": "valid_fetch_attempt only accepts uppercase percent-encoded sequences (%2F, %2C, %25) and silently rejects RFC 3986-conforming lowercase equivalents (%2f, %2c, %25), causing valid attempt IDs from standards-compliant hosts to be rejected."}]}Subject: 57a3166...e9823e0, diff digest ba53ad2a60b367327a9de43c6349e831751f0700c80799486fd54cbf68acd58c, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)I reviewed the diff carefully for bugs, security issues, and spec/governance inconsistencies. Rust contract modules (
Schema files — limits in TypeScript bindings — Generated by the existing emitter. The Spec 042 — Archive policy — No concrete new defects found. {"head": "6263b227b10540f50a11666dcb34ea93837d7a11", "verdict": "no-findings", "findings": []}Subject: 57a3166...6263b22, diff digest 27addc80e40d8067cca17cbd0cccc39eb0c78c1adf5369f458804b4ceb056bf2, 1 call(s). An AI comment is not an approval. |
6263b22 to
34f29ea
Compare
AI review (no-findings)I'll review the diff for bugs, security issues, and inconsistencies.
|
34f29ea to
16444d5
Compare
AI review (findings)Reviewing the PR, which introduces Rust implementation ( The double-layer validation pattern is sound: outer documents parsed with bounded limits, embedded documents (snapshots in
Concrete defect: TypeScript In both TypeScript binding files, the value: {
[k: string]: unknown | undefined;
};This types This same incorrect type appears identically in both files (they are identical diffs). Spec / governance The Archive policy
{
"head": "16444d583df1088678a0221c2be9c3cf7bd862e8",
"verdict": "findings",
"findings": [
{
"path": "integrations/rustev-node/types/rustev-documents.d.ts",
"line": null,
"summary": "RustevRemoteContextFetch1Response.Entry.value is typed as an object index signature ({ [k: string]: unknown }), but context entry values can be any JSON type (bool, integer, string, list, etc.); the correct type is `unknown`."
},
{
"path": "integrations/rustev-wasm/types/rustev-documents.d.ts",
"line": null,
"summary": "Same incorrect over-constrained object type for RustevRemoteContextFetch1Response.Entry.value as in the node bindings."
}
]
}Subject: 503a72e...16444d5, diff digest 27addc80e40d8067cca17cbd0cccc39eb0c78c1adf5369f458804b4ceb056bf2, 1 call(s). An AI comment is not an approval. |
16444d5 to
084fb73
Compare
AI review (no-findings)Reviewing the PR, which adds new remote contract documents for spec 042: the Spec governance: The Schema and limits consistency: Security boundaries: The Traceparent validation: The length, separator positions, all-hex requirement, all-zero trace-id, and all-zero span-id checks are correct and match W3C Trace Context format. Tests cover both the happy path and key rejection cases.
TypeScript type generation: The
No concrete defects found. {"head": "084fb73e979e8c1012cad30e81e06f3650f9f8be", "verdict": "no-findings", "findings": []}Subject: 503a72e...084fb73, diff digest 71a44dbd852e508526a6f98eb4f6753105a813ad92ad75f2e23e8f900f3bec1e, 1 call(s). An AI comment is not an approval. |
084fb73 to
c698af2
Compare
AI review (no-findings)Reviewing the PR diff carefully across all changed paths.
The double-parse pattern in
The renaming of
The
The lifecycle transition from Schema / archive-policy consistency
No concrete defects found. {"head": "c698af2922f47a26ea5af596e208c1b573a0e609", "verdict": "no-findings", "findings": []}Subject: efc1da9...c698af2, diff digest 71a44dbd852e508526a6f98eb4f6753105a813ad92ad75f2e23e8f900f3bec1e, 1 call(s). An AI comment is not an approval. |
Spec 042 increment 1 (serve half), stacked on #176: `rustev.serve/1` with its operation table and every `rustev.serve-*/1` document, plus `rustev.plan-bundle/1`, `rustev.plan-bundle-signature/1` and `rustev.plan-registration/1`, with emitted schemas and regenerated binding declarations (the `.d.ts` growth is generated: serve envelopes inline the run record and judgment types). Embedded evidence is carried as original bytes (`serde_json` `raw_value` feature; no new dependency). Items that depend on 034 or 036 are held back with extension points. Bounds the spec leaves unstated are recorded as engineering choices in the implementation record. Checks: `cargo test -p rustev-contract`, clippy, fmt, `make gate`, couple, gen-types --check.
Amends the spec 010 section 3.4 `rustev-serve` binding record, stacked on #180. - Item 2 (schemas): refuse -> pass. Spec 042's documents now exist in `rustev-contract` (#176, #180) with bounds, emitted schemas and negative fixtures. - Sigstore row: unverified -> pass. `sigstore-verify` 0.15.0 with `default-features = false, features = ["aws-lc-rs"]` verifies a v0.3 bundle offline against a host-supplied trusted root, with no HTTP client, tokio or TUF in its tree (checked with `cargo tree`). Crypto is `aws-lc-rs` 1.18.2, which needs a C compiler and CMake at build time. This is the owner's review act under 3.4 (R-44): implementation of `rustev-serve` waits for the owner's approval of this text, which will be recorded as a dated decision.
Spec 042 increment 1 (remote half): the
rustev.remote-context/1andrustev.remote-sink/1documents inrustev-contract(3.10, 3.11) with emitted JSON Schemas. Spec 2.2 allows these before the rustev-serve binding record. Acquire and the describe source descriptor are held back until spec 036, as 3.10 states. Implementation record added; 042 moves to in-progress. Checks:cargo test -p rustev-contract, clippy-D warnings, fmt,make gate.