feat: legacy fallback tests and docs (PR 3)

- Add test_tool_instances_legacy.py with 8 unit tests:
  - dockerfile definition type builds from template
  - dockerfile build failure raises HTTP 500
  - compose definition type renders template
  - manifest compiler is NOT called for legacy types
  - start_instance legacy/compose/dockerfile types all skip manifest flow
  - start_instance manifest type correctly invokes compiler
- Mark T3.2 and T3.3 tasks complete in OpenSpec
- Add openspec/docs/tool-workshop-guide.md with user guide covering
  definition types, manifest creation workflow, base definitions,
  migration path, and permissions
This commit is contained in:
Alex Blank
2026-05-28 14:54:32 +02:00
parent e46b4f9249
commit 3e99e7f197
3 changed files with 890 additions and 5 deletions
+5 -5
View File
@@ -80,10 +80,10 @@
- [ ] Update existing pi-agent tool_type row
### T3.2 Legacy Fallback
- [ ] Ensure `definition_type == "legacy"` still uses old flow
- [ ] Ensure `dockerfile_template` / `compose_template` still work
- [ ] Tests for legacy path
- [x] Ensure `definition_type == "legacy"` still uses old flow
- [x] Ensure `dockerfile_template` / `compose_template` still work
- [x] Tests for legacy path
### T3.3 Documentation
- [ ] Update API docs
- [ ] Add Tool Workshop user guide
- [x] Update API docs
- [x] Add Tool Workshop user guide