feat(PR-01): 0.2.0 Tool v1 bundle, scripts/ layout and CI lanes

- bump View product version to 0.2.0 (Cargo.toml, Cargo.lock, tool.json, CLI)
- move all maintenance scripts from tools/ to scripts/ per RFC-0002 §5.3
- add scripts/verify-frozen-cli.sh: records version/SHA and fails if the frozen
  CLI changes across a command sequence
- add .github/workflows/ci.yml: quality lane + frozen-CLI acceptance lane with
  archive SHA verification and evidence upload; update .woodpecker.yml paths
- record PR-01 black-box evidence: tool install/list/view --help/version,
  tamper rejection, tool remove, frozen CLI SHA unchanged
This commit is contained in:
cflmy committed 2026-11-22 12:51:36 +08:00
1 parent d0f1834e98
commit 5a61788bc9
26 files changed
+269 -57

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Contract-focused gate: formatting, lints, all tests, Tool v1 install smoke,
# static verify and static export against the frozen core. No browser.
#
# Usage: MARQDO_BIN=/abs/path/marqdo scripts/test-contract.sh
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"
: "${MARQDO_BIN:?set MARQDO_BIN to the frozen marqdo binary}"
export PATH="${HOME}/.cargo/bin:${PATH}"
export CARGO_HOME="${CARGO_HOME:-$repo_root/.cargo-home}"
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
cargo test --locked
cargo build --release --locked
MARQDO_BIN="$MARQDO_BIN" ./scripts/package.sh
export MARQDO_TOOL_HOME="$repo_root/dist/contract-tool-home"
rm -rf "$MARQDO_TOOL_HOME"
"$MARQDO_BIN" tool install "$repo_root/dist/marqdo-view/tool.json" >/dev/null
"$MARQDO_BIN" view --help >/dev/null
"$MARQDO_BIN" view verify examples/mixed-modes/index.mq.md
"$MARQDO_BIN" view export examples/tables-math --out "$repo_root/dist/contract-site"
test -f "$repo_root/dist/contract-site/manifest.json"
echo "contract: PASS"