Skip to content
Open
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
11 changes: 7 additions & 4 deletions .wave/pipelines/wave-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,21 @@ steps:
source: .wave/output/config-check.json
schema_path: .wave/contracts/hello-world-result.schema.json
on_failure: retry
edges:
- target: sub-pipeline-test

# Step 2: Sub-pipeline composition — validates child pipeline invocation
- id: sub-pipeline-test
type: pipeline
pipeline: ops-hello-world
dependencies: [check-config]
edges:
- target: run-tests

# Step 3: Command step — validates shell execution without adapter
- id: run-tests
type: command
dependencies: [check-config]
dependencies: [sub-pipeline-test]
workspace:
mount:
- source: ./
Expand All @@ -80,7 +84,7 @@ steps:
type: conditional
dependencies: [run-tests]
edges:
- target: generate-report
- target: approval-gate
condition: "outcome=success"
- target: diagnose-failure

Expand All @@ -105,7 +109,7 @@ steps:
type: non_empty_file
source: .wave/output/diagnosis.md
edges:
- target: generate-report
- target: approval-gate

# Step 6: Human gate — validates approval workflow (auto-approved)
- id: approval-gate
Expand All @@ -121,7 +125,6 @@ steps:
target: _fail
default: "a"
timeout: "10s"
dependencies: [test-gate, diagnose-failure]

# Step 7: LLM-as-judge — validates subjective quality assessment
- id: generate-report
Expand Down
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
mkdir -p "$HOME/.local/share/uv"
mkdir -p "$HOME/notes"
touch -a "$HOME/.local/bin/wave"
touch -a "$HOME/.local/bin/opencode-patched"
touch -a "$HOME/.claude.json"

BWRAP_ARGS=(
Expand Down Expand Up @@ -163,6 +164,7 @@
# Read-only: local tools
--ro-bind-try "$HOME/.local/bin/notesium" "$HOME/.local/bin/notesium"
--ro-bind-try "$HOME/.local/bin/claudit" "$HOME/.local/bin/claudit"
--ro-bind-try "$HOME/.local/bin/opencode-patched" "$HOME/.local/bin/opencode-patched"

# Writable: wave binary (go build target)
--bind-try "$HOME/.local/bin/wave" "$HOME/.local/bin/wave"
Expand Down Expand Up @@ -255,7 +257,7 @@
echo " Read-only: / (entire root)"
echo " ~/.ssh, ~/.gitconfig, ~/.config/git"
echo " ~/.config/gh, ~/.npmrc, ~/.config/nvm"
echo " ~/.local/notesium, ~/.local/claudit"
echo " ~/.local/bin/{notesium,claudit,opencode-patched}"
echo ""
exec wave-sandbox ${pkgs.bash}/bin/bash --rcfile <(cat << 'WAVE_BASHRC'
PS1="[sandbox] \w \$ "
Expand Down
Loading