Skip to content

feat: add TOML role parser in internal/rolecfg#25

Open
fkautz wants to merge 2 commits intogastownhall:mainfrom
fkautz:polecat/slit-mmhzzwma
Open

feat: add TOML role parser in internal/rolecfg#25
fkautz wants to merge 2 commits intogastownhall:mainfrom
fkautz:polecat/slit-mmhzzwma

Conversation

@fkautz
Copy link
Copy Markdown

@fkautz fkautz commented Mar 8, 2026

Summary

  • New internal/rolecfg/ package with TOML-based role definition parser
  • ParseFile, Parse, and Validate functions for declarative agent role configs
  • MVP covers: name, version, goal, tools (allow/deny), context, constraints
  • 10 unit tests covering valid configs, missing fields, unknown keys, negative constraints, invalid TOML, and file I/O

Closes w-gc-002.

Test plan

  • All 10 rolecfg tests pass
  • Full test suite passes (go test ./...)
  • go vet clean

🤖 Generated with Claude Code

slit and others added 2 commits March 8, 2026 10:12
Add ParseFile, Parse, and Validate for Gas Town role definition files.
MVP fields: name, tools, context, constraints (max_file_size, read_only_paths).
Rejects unknown keys and validates required fields.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add .beads/ and other GT runtime directories to .gitignore.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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