feat: v0.8.2 — config templates + agent diagnose + richer error dumps - #28
Merged
Merged
Conversation
The recipe (paste-ready):
pais agent create --template field-proven \
--name <n> --model openai/gpt-oss-120b --index-id <uuid>
Added:
- Named config templates for kb/index/agent (`pais templates list`)
- --template flag + 3 new agent flags (--completion-role,
--index-reference-format, --chat-system-instruction-mode)
- pais agent dump <id> — full server-side agent JSON + __diagnostic
- pais agent diagnose <id> — pass/fail check vs. field-proven recipe
Improved (zero-config):
- chat-errors/*.json now includes prompt_token_estimate (no HF needed),
request_body, response_headers (auth stripped), inline agent_dump
- PaisError carries response_headers; transport plumbs them through
- pais.dev.token_budget gracefully falls back to char-based estimation
when HF unreachable (corp networks, SSL cert issues, etc.)
Memory: feedback_pais_agent_undocumented_defaults.md documents the
5-field recipe and why server defaults can break gpt-oss-120b chat.
Tests: 429 passed (+13 new).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The recipe (paste-ready):
```bash
pais agent create --template field-proven \
--name --model openai/gpt-oss-120b --index-id
```
That sets the 5 fields whose null-server-defaults were 502'ing on the user's deployment: `completion_role="assistant"`, `session_max_length=10000`, `session_summarization_strategy="delete_oldest"`, `index_reference_format="structured"`, `chat_system_instruction_mode="system-message"`.
Added
Improved (zero-config)
Test plan
🤖 Generated with Claude Code