Skip to content

python_repl,unharnessed: add persistent Python REPL tool and single-tool mode (ADR 0348) - #1904

Open
justrach wants to merge 1 commit into
mainfrom
feat/python-repl-unharnessed
Open

justrach wants to merge 1 commit into
mainfrom
feat/python-repl-unharnessed

Conversation

@justrach

Copy link
Copy Markdown
Owner

Summary

  • Add a persistent per-owner Python 3 REPL worker (src/python_repl.zig, src/python_repl_worker.py) using isolated CLOEXEC protocol fds, per-call fd 1/2 capture, AST trailing-expression evaluation with _ binding, SIGALRM and watchdog timeouts, and python_repl folded registration via load_tool_schemas / direct-call auto-load.
  • Add opt-in single-tool mode (--unharnessed / --no-unharnessed, GRAFF_UNHARNESSED, .harness/settings.json "unharnessed", REPL /unharnessed [on|off|reset|status], --json set_unharnessed, and ACP configOptions id: "unharnessed") exposing only the python tool and a single-tool system prompt (docs/adr/0348-persistent-python-repl-and-unharnessed-mode.md).
  • Regenerate SDKs and add unit tests and offline Tier-2 regressions.

Verification

  • zig build test (4028 tests passed)
  • python3 spec/conformance.py
  • scripts/eval-tier1.sh (all gates passed including sdk)
  • python3 scripts/eval-tier2.py --port 0 --only python-repl-persistent-session-state --only unharnessed-mode-single-tool-and-json-control

…ool mode (ADR 0348)

- Add persistent per-owner Python 3 REPL worker (src/python_repl.zig, src/python_repl_worker.py) with isolated CLOEXEC protocol fds, per-call fd 1/2 capture, AST trailing-expression evaluation + _ binding, SIGALRM / watchdog timeouts, and python_repl folded catalog registration (load_tool_schemas / direct-call auto-load).
- Add opt-in --unharnessed / --no-unharnessed, GRAFF_UNHARNESSED, .harness/settings.json "unharnessed", REPL /unharnessed [on|off|reset|status], --json set_unharnessed, and ACP configOptions unharnessed (Off / On) switching the root catalog to a single python tool and compact single-tool prompt (ADR 0348).
- Regenerate SDKs and add unit and Tier-2 regressions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant