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
25 changes: 25 additions & 0 deletions .github/workflows/live-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# HOOK PARITY note: this workflow is the OPT-IN tier-3 live-contract run
# (#36) — deliberately host-dependent, never part of PR CI (ci.yml is the
# host-independent gate mirrored by .githooks/pre-push). Scheduled so mock
# fixture drift against real CLIs surfaces on a cadence, not at 7am.
name: Live contract

on:
workflow_dispatch:
schedule:
- cron: "17 9 * * 1" # weekly, Monday

jobs:
live:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Live-contract tests (tools present on the runner run; absent skip)
env:
MODULEX_LIVE_TESTS: "1"
# gh is preinstalled on GitHub runners; authenticate it with the
# workflow token so the gh --json shape test runs.
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cargo test -p modulex-core --test live_contract -- --nocapture
5 changes: 4 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ Standing law from it:
for engine faults (bad config, unknown routine, leash denial of the run).
6. **Unit tests never spawn real processes.** Use
`exec::test_support::MockSpawner`. Real-subprocess coverage lives in the
dedicated gated integration test only.
dedicated gated integration test plus the opt-in live-contract tier
(`just live-test`, `MODULEX_LIVE_TESTS=1`) which verifies mock fixtures
against real tools — mock fixtures mimicking a real CLI carry a
FIXTURE-SYNC comment citing their live test.

## Build & validate

Expand Down
222 changes: 222 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading