Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/sdk-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ jobs:
env:
CONFORMANCE_SPEC_REPO: ${{ github.workspace }}

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
if: matrix.rust == 'stable'
with:
node-version: '22'

- name: Test the in-memory Core Profile on WASI
if: matrix.rust == 'stable'
env:
CARGO_TARGET_WASM32_WASIP1_RUNNER: node tests/run-wasi.mjs
run: |
rustup target add wasm32-wasip1
cargo test --locked --target wasm32-wasip1 --no-default-features \
--test core_profile in_memory_assembly_invokes_streams_and_shuts_down -- --test-threads=1

- name: Run tests
run: cargo test --locked --workspace --all-features
env:
Expand Down
2 changes: 2 additions & 0 deletions conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ declared extension. Adapter wire projections are verified in Surfaces.
| `extension_point_lookup.json` | D-108 | `get`/`get_all`/`unregister` reject an UNREGISTERED extension point with `GENERAL_INVALID_INPUT`, and do not raise for a registered point holding nothing (spec v1.51.0) |
| `config_env.json` | — | Configuration environment variable override |
| `context_serialization.json` | — | Cross-language Context serialize/deserialize round-trip |
| `durable_input.json` | [Opt-in durable input contract](../planning/atlas-durable-input/contract.md) | Cross-process request shape and owner, caller, deadline, and answer validation. |
| `artifact_reference.json` | [Opt-in artifact reference contract](../planning/atlas-artifact-reference/contract.md) | Closed wire shape, media and byte assertions, local references and schema dialect checks. |
| `schema_validation.json` | §4.15 | Schema validation edge cases, plus the **opt-in library-level** coercing mode. Cases carrying `expected_valid_strict` / `expected_valid_coerce` document BOTH modes and SHOULD be asserted against both, naming the mode explicitly rather than relying on a constructor default. The coercing mode is a knob on the standalone validator API only — it never reaches the module-invocation boundary, which is covered by `schema_keyword_parity.json` (TYPE_MAPPING §17.3). |
| `schema_hardening_union.json` | §4.15 Hardening | anyOf/oneOf union evaluation: all-branches, exactly-one, ambiguous-error |
| `schema_hardening_recursive.json` | §4.15 Hardening | Recursive schema support: TreeNode pattern, depth 1-5 |
Expand Down
3 changes: 2 additions & 1 deletion conformance/decision_coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@
],
"rust": [
"tests/test_deprecation_warning_cadence.rs",
"src/registry/registry.rs::deprecation_metadata_tests"
"src/registry/registry_tests.rs::deprecation_warning_fires_on_the_read_not_on_registration",
"src/registry/registry_tests.rs::the_deprecation_dedupe_key_carries_the_notice_and_survives_unregister"
]
},
"discriminates": "Six dimensions, each isolated by its own mutation: the dedupe guard itself (ten reads must warn once), the version in the key (a newly registered version is a new notice), per-INSTANCE scope (a process-global set silences a second registry's advisory for a module its operator has never been told about), the EMISSION POINT, the NOTICE in the key, and a control — a module with no `x-deprecation` block must never warn, without which 'exactly one warning' also holds for an SDK that warns once for any module at all.\n\nEvery test counts the warning THE OPERATOR RECEIVES. apcore-rust's original unit test asserted the size of the private `deprecation_warned` set instead, and measured: with the `log_deprecation_warning` call deleted, that test still PASSES while four of the five original tests fail. The set is the artifact that records the decision; the emitted warning is the mechanism it exists for.\n\n**The two dimensions v1.49.0 left open were adjudicated at v1.59.0 and are now asserted.** (a) EMISSION POINT — the read, never registration. `the_warning_fires_on_the_read_not_on_registration` asserts zero warnings from `register` and exactly one from the first `get_definition`. Mutation: emitting at registration as apcore-rust did reddens it, and reddens every other read-counting case with it — not noise, but the failure itself: the marker is written whether or not a subscriber was listening, so the read is then deduped and the notice is lost outright. (b) DEDUPE KEY — `(module_id, version, x-deprecation block)`, never cleared on `unregister`. Two cases, each the other's control: the SAME notice on a re-registration must be silent (mutation: clearing on unregister reddens it, which is the hot-reload spam apcore-python shipped), and a CHANGED notice must warn (mutation: dropping the block from the key reddens exactly this one, which is the new notice apcore-typescript and apcore-rust swallowed). Both mutations were measured on all three SDKs and each reddens exactly its own case."
Expand Down
Loading
Loading