Protocol convergence for 3.0.0-rc.3 (issue #8) #9

Merged
cflmy merged 17 commits from architecture/issue-8-protocols into master 2026-11-24 19:23:26 +08:00
2 changed files with 17 additions and 7 deletions
Showing only changes of commit 4f3a9bff29 - Show all commits

No files matched your search

+5 -1
View File
@@ -209,7 +209,11 @@ fn has_hex_sha(text: &str) -> bool {
#[test]
fn ci_configuration_uses_only_current_protocols() {
let root = repo_root();
for relative in [".woodpecker/main.yml", ".github/workflows/ci.yml"] {
for relative in [
".woodpecker/main.yml",
".github/workflows/ci.yml",
"docs/ci.md",
] {
let text = read(&root.join(relative));
for retired in [
"--event-stream",
+12 -6
View File
@@ -19,12 +19,14 @@ test:
apt install curl/ca-certificates/python3/python3-jsonschema + Node.js 22
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo build --locked -p marqdo-provider-worker
cargo build --locked -p marqdo-cli -p marqdo-provider-worker
cargo test --workspace --locked
cargo run --locked -p marqdo-cli -- run \
tests/consumers/fixtures/execution-events/basic.mq.md --event-stream jsonl \
> /tmp/execution-events.jsonl
python3 tests/consumers/execution_events_consumer.py /tmp/execution-events.jsonl
check + run tests/consumers/fixtures/observation/basic.mq.md
analysis_consumer.py / observation_consumer.py (stream + snapshot)
check + run the nested-loop control-flow conformance fixture
validate_protocols.py / analysis_consumer.py --require-transfers
observation_consumer.py (stream, snapshot, stale-Analysis rejection)
stream JSONL == snapshot events assertion
cargo test -p marqdo-cli --test docs_consistency
cargo test -p marqdo-cli --test architecture_boundaries
cargo test -p marqdo-cli --test stdlib_product
@@ -34,9 +36,13 @@ test:
build (depends on test):
cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
package + cold-install smoke (which now validates live Execution Events v1)
package + cold-install smoke (current Analysis/Observation contracts)
```
The pipeline is a protocol consumer itself: it must exercise only the current
Analysis and Observation contracts. `docs_consistency::ci_configuration_uses_only_current_protocols`
fails if a retired option or consumer name returns.
Node.js 22 is required because the optional foreign-kernel tests use ES-module
syntax; Debian bookworm's Node 18 fails those tests.