feat: migrate View 0.3.0 to marqdo 3.0.0-rc.4 contracts
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Replace the retired rc.2 Analysis v2/Trace v2/Execution Events v1 stack with the
single current contract family:
- Analysis v3 (ADR-0069 public boundary): one check --emit artifact carries the
exact source, Markdown AST, heading scopes (heading_span + complete span),
anchors, state-bearing references, calls, resources and diagnostics; the old
revision-3 shape is rejected with a rebuild hint.
- Observation v1: one run/call --output jsonl stream (+ atomic
--observation-file snapshot) decoded by one decoder and projected into the
reader/SSE/export layers; stale/malformed/truncated/incomplete never render
as success.
- CLI Tool revision 1: requires {api_revision:1, analysis:3, observation:1},
product range >=3.0.0-rc.3,<4.0.0, only MARQDO_BIN and
MARQDO_API_REVISION are consumed.
- Remove compatibility branches, retired flags/env vars and duplicate decoders;
re-record Analysis v3 and Observation v1 fixtures; rewrite contract,
integration and security tests (173 passing locally).
- Add check-no-legacy/check-docs/check-observation gates, rc.4 pins in the
CI pipelines, 0.3.0 Tool bundle and evidence manifest support.
See issues #4, #5 and #6; acceptance baseline is CLI source
452e9a32bd9e40dba427d4180691c58bab74449e, archive
9c3f166b5e5b8840d39d10019074e4e1c42432fc23e26c69670e64fdcf4e15d8.
This commit is contained in:
1 parent
7b34199c96
commit
a802f96b6e
109 files changed
+14000
-6461
No files matched your search
+25
-22
@@ -15,17 +15,18 @@ use crate::common::http::{
|
||||
fn control_flow() -> TestServer {
|
||||
http::start(
|
||||
"examples/control-flow",
|
||||
"tests/golden/analysis-v2/control-flow.json",
|
||||
Some("tests/golden/trace-v2/control-flow.run.json"),
|
||||
Some("tests/golden/trace-v2/control-flow.trace.json"),
|
||||
"tests/golden/analysis-v3/control-flow.json",
|
||||
Some((
|
||||
"tests/golden/observation-v1/control-flow.jsonl",
|
||||
"tests/golden/observation-v1/control-flow.snapshot.json",
|
||||
)),
|
||||
)
|
||||
}
|
||||
|
||||
fn welcome() -> TestServer {
|
||||
http::start(
|
||||
"examples/welcome",
|
||||
"tests/golden/analysis-v2/welcome.json",
|
||||
None,
|
||||
"tests/golden/analysis-v3/welcome.json",
|
||||
None,
|
||||
)
|
||||
}
|
||||
@@ -160,8 +161,7 @@ fn oversized_and_unknown_fields_are_rejected_before_execution() {
|
||||
fn session_cookie_and_headers_are_hardened() {
|
||||
let server = http::start(
|
||||
"examples/welcome",
|
||||
"tests/golden/analysis-v2/welcome.json",
|
||||
None,
|
||||
"tests/golden/analysis-v3/welcome.json",
|
||||
None,
|
||||
);
|
||||
let page = http::get(server.port, "/");
|
||||
@@ -196,9 +196,11 @@ fn session_cookie_and_headers_are_hardened() {
|
||||
fn sec_fetch_site_cross_site_is_rejected_even_with_a_valid_token() {
|
||||
let server = http::start(
|
||||
"examples/control-flow",
|
||||
"tests/golden/analysis-v2/control-flow.json",
|
||||
Some("tests/golden/trace-v2/control-flow.run.json"),
|
||||
Some("tests/golden/trace-v2/control-flow.trace.json"),
|
||||
"tests/golden/analysis-v3/control-flow.json",
|
||||
Some((
|
||||
"tests/golden/observation-v1/control-flow.jsonl",
|
||||
"tests/golden/observation-v1/control-flow.snapshot.json",
|
||||
)),
|
||||
);
|
||||
let (session, _) = open_session(&server, "/");
|
||||
let body = run_body(
|
||||
@@ -225,8 +227,7 @@ fn symlink_escape_outside_the_project_root_is_rejected() {
|
||||
symlink(&outside.dir, project.dir.join("link")).expect("create symlink");
|
||||
let server = http::start(
|
||||
project.dir.to_str().expect("utf8 path"),
|
||||
"tests/golden/analysis-v2/welcome.json",
|
||||
None,
|
||||
"tests/golden/analysis-v3/welcome.json",
|
||||
None,
|
||||
);
|
||||
for path in [
|
||||
@@ -247,8 +248,7 @@ fn symlink_escape_outside_the_project_root_is_rejected() {
|
||||
fn adversarial_markdown_never_injects_markup_or_handlers() {
|
||||
let server = http::start(
|
||||
"tests/fixtures/security-project",
|
||||
"tests/golden/analysis-v2/welcome.json",
|
||||
None,
|
||||
"tests/golden/analysis-v3/welcome.json",
|
||||
None,
|
||||
);
|
||||
let page = http::get(server.port, "/");
|
||||
@@ -266,9 +266,11 @@ fn adversarial_markdown_never_injects_markup_or_handlers() {
|
||||
fn sse_requires_a_session_and_only_the_owning_session_can_read_or_cancel() {
|
||||
let server = http::start(
|
||||
"examples/control-flow",
|
||||
"tests/golden/analysis-v2/control-flow.json",
|
||||
Some("tests/golden/trace-v2/control-flow.run.json"),
|
||||
Some("tests/golden/trace-v2/control-flow.trace.json"),
|
||||
"tests/golden/analysis-v3/control-flow.json",
|
||||
Some((
|
||||
"tests/golden/observation-v1/control-flow.jsonl",
|
||||
"tests/golden/observation-v1/control-flow.snapshot.json",
|
||||
)),
|
||||
);
|
||||
let (owner, _) = open_session(&server, "/");
|
||||
let (other, _) = open_session(&server, "/");
|
||||
@@ -318,8 +320,7 @@ fn sse_requires_a_session_and_only_the_owning_session_can_read_or_cancel() {
|
||||
fn aggressive_markdown_links_cannot_become_a_file_read_api() {
|
||||
let server = http::start(
|
||||
"examples/welcome",
|
||||
"tests/golden/analysis-v2/welcome.json",
|
||||
None,
|
||||
"tests/golden/analysis-v3/welcome.json",
|
||||
None,
|
||||
);
|
||||
let page = http::get(server.port, "/");
|
||||
@@ -336,9 +337,11 @@ fn aggressive_markdown_links_cannot_become_a_file_read_api() {
|
||||
fn cancel_cannot_be_replayed_to_start_a_new_process() {
|
||||
let server = http::start(
|
||||
"examples/control-flow",
|
||||
"tests/golden/analysis-v2/control-flow.json",
|
||||
Some("tests/golden/trace-v2/control-flow.run.json"),
|
||||
Some("tests/golden/trace-v2/control-flow.trace.json"),
|
||||
"tests/golden/analysis-v3/control-flow.json",
|
||||
Some((
|
||||
"tests/golden/observation-v1/control-flow.jsonl",
|
||||
"tests/golden/observation-v1/control-flow.snapshot.json",
|
||||
)),
|
||||
);
|
||||
let (session, _) = open_session(&server, "/");
|
||||
let body = run_body(
|
||||
|
||||
Reference in new issue
Block a user