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
2 changes: 1 addition & 1 deletion Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Multiple agents can work on the same repo simultaneously. Two problems must be solved:

**1. Script isolation** — each scope gets its own directory under `.steplock/sessions/`. The dir name is the scope key — session ID for `reset = "session"`, branch name for `reset = "branch"`. `ack.sh` and `preview.sh` live there and read `state.json` from the same dir — no params needed from the agent.
**1. Script isolation** — each scope gets its own directory under `.steplock/sessions/`. The dir name is the scope key — session ID for `reset = "session"`. `ack.sh` and `preview.sh` live there and read `state.json` from the same dir — no params needed from the agent.

**2. State races** — `ack.sh` writes `state.json` atomically via temp + `mv`. On POSIX `mv` is atomic same-filesystem — a concurrent reader always sees a complete file.

Expand Down
8 changes: 5 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ Each state blocks the agent until acknowledged. On the fifth invocation, the pus
```
git-push-quality-gate/
├── .claude/settings.json ← Claude Code hook registration
└── .steplock/checklists/git-push-quality-gate/
├── config.toml ← trigger and behaviour
└── flow.mmd ← checklist items as Mermaid diagram
└── .steplock/
├── .gitignore ← excludes sessions/ and audit.log
└── checklists/git-push-quality-gate/
├── config.toml ← trigger and behaviour
└── flow.mmd ← checklist items as Mermaid diagram
```

### Usage
Expand Down
2 changes: 2 additions & 0 deletions examples/git-push-quality-gate/.steplock/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sessions/
audit.log
1 change: 0 additions & 1 deletion examples/git-push-quality-gate/.steplock/audit.log

This file was deleted.

24 changes: 0 additions & 24 deletions examples/git-push-quality-gate/.steplock/sessions/s1/ack.sh

This file was deleted.

20 changes: 0 additions & 20 deletions examples/git-push-quality-gate/.steplock/sessions/s1/preview.sh

This file was deleted.

This file was deleted.

Loading