Compare commits

..

No commits in common. "bf935b0ad4d13f1da14f288f02c4dca048171db8" and "1dd0e6e13363e1b1492b08802922c07ea0b5f894" have entirely different histories.

2 changed files with 5 additions and 25 deletions

View File

@ -20,24 +20,16 @@ python3 -m src.release_engine \
--dry-run
```
Execute one ticket after implementing and committing its change directly on
the deterministic branch printed by `--dry-run`:
Execute one ticket:
```bash
export GITEA_TOKEN='<scoped-token>'
export RELEASE_AGENT_COMMAND=true
export RELEASE_AGENT_COMMAND='codex exec "Implement Gitea issue #{issue_number}: {issue_title}. Follow the issue body and run tests."'
python3 -m src.release_engine \
--repo stackchain/stackchain-dashboard \
--agent timmy \
--issue 19 \
--test-command 'python3 -m pytest tests/ -q'
```
`GITEA_TOKEN` needs issue and repository write scopes. The engine verifies the
claim, reruns the test command, pushes the branch, and opens a PR containing
`Closes #19` plus test evidence. Replace `19` with the selected issue number;
do not run without `--issue` when processing a preselected ticket.
Durable state defaults to `.release-engine/state.json`. Full behavior and
safety gates are documented in
[`docs/release-engine-spec.md`](docs/release-engine-spec.md).
Required secret: `GITEA_TOKEN`. Durable state defaults to
`.release-engine/state.json`. Full behavior and safety gates are documented in
[`docs/release-engine-spec.md`](docs/release-engine-spec.md).

View File

@ -1,12 +0,0 @@
from pathlib import Path
README = Path(__file__).parents[1] / "README.md"
def test_release_worker_instructions_use_direct_agent_execution():
text = README.read_text()
assert "codex" not in text.lower()
assert "RELEASE_AGENT_COMMAND=true" in text
assert "--issue 19" in text