diff --git a/INTENT.md b/INTENT.md index 16a7cff..c3b8fe6 100644 --- a/INTENT.md +++ b/INTENT.md @@ -50,9 +50,17 @@ owns the open-weight-model-specific agentic loop and tool execution. Minimal agentic loop implemented and unit-tested (26 tests, all mocked at the network/subprocess boundary): tool surface, OpenRouter client, credential acquisition, commit-verified success criterion, State Hub -reporting. See `workplans/REIN-OW-WP-0001-bootstrap.md`. Not yet -executed against a real OpenRouter model or a real OpenBao instance — -those are human-triggered follow-ups (real API cost, real credentials). -No glas-harness adapter (`reins/rein_openweights.py`, mirroring -`reins/rein_aharness.py`) yet — that's a `GLAS-WP-0001` follow-up once -this CLI is considered stable enough to shell out to. +reporting. See `workplans/REIN-OW-WP-0001-bootstrap.md`. + +**Live-proven (2026-07-26):** run for real through glas-harness's +gateway (`glas_harness.reins.rein_openweights.ReinOpenWeights`) inside a +real `ext.bwrap` sandbox, against the real OpenRouter API +(`qwen/qwen-2.5-72b-instruct`) — a 2-turn tool-calling loop produced a +real, verified git commit. Credential reused the `OPENROUTER_API_KEY` +already present in the environment (the same one llm-connect resolves), +via this repo's own `credentials.py` env-var short-circuit — no OpenBao +round trip needed for this run. + +The glas-harness adapter (`glas_harness/reins/rein_openweights.py`, +mirroring `reins/rein_aharness.py`) now exists and is what performed +this run. diff --git a/workplans/REIN-OW-WP-0001-bootstrap.md b/workplans/REIN-OW-WP-0001-bootstrap.md index 5b71f88..adb0bdf 100644 --- a/workplans/REIN-OW-WP-0001-bootstrap.md +++ b/workplans/REIN-OW-WP-0001-bootstrap.md @@ -1,14 +1,23 @@ --- id: REIN-OW-WP-0001 title: "Bootstrap: minimal open-weight agentic loop" -status: proposed +status: active --- First working milestone for rein-openweights: prove an agentic tool-use -loop against a current open-weight model via OpenRouter/llm-connect, -comparable in scope to rein-aharness's `green-commit-only` profile, ready -to implement the glas-harness rein contract once -`glas-harness/GLAS-WP-0001-T01` defines it. +loop against a current open-weight model via OpenRouter, comparable in +scope to rein-aharness's `green-commit-only` profile, implementing the +glas-harness rein contract (`glas-harness/GLAS-WP-0001-T01`). + +**Live-proven end-to-end (2026-07-26):** via glas-harness's gateway +(`glas_harness.reins.rein_openweights.ReinOpenWeights`), inside a real +`ext.bwrap` sandbox, against the real OpenRouter API with model +`qwen/qwen-2.5-72b-instruct` — a 2-turn tool-calling loop produced a +real git commit (`2effe57a`), verified via `git rev-parse HEAD`, +2449 tokens spent. Not a mock; real credentials, real API cost, run +with the user's explicit go-ahead. `executor-sandbox` (the disposable +target repo) was left untouched — bwrap only mutates its ephemeral +copy. ## Task: Pick the starter open-weight model + OpenRouter path