Skip to content

Add scoped Code Mode foundation - #137

Closed
kortiene wants to merge 3 commits into
nuclia:mainfrom
kortiene:scoped-codemode-foundation
Closed

kortiene wants to merge 3 commits into
nuclia:mainfrom
kortiene:scoped-codemode-foundation

Conversation

@kortiene

@kortiene kortiene commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add create_codemode_tool() with an explicit immutable capability set instead of discovering all harness tools.
  • Validate capability names, schemas, arguments, outputs, result projections, and exactly-once output(...) behavior.
  • Add nested capability event ancestry and explicit child-tool inheritance policy.
  • Keep the existing exported codemode tool and sandbox behavior unchanged for compatibility.

Testing

  • uv run --python 3.12 pytest tests/harness_sdk -q (104 passed, 1 skipped)
  • make lint
  • git diff --check

Stack

This is the minimal foundation extracted from #119. The independently reviewable hardening follow-up is kortiene#2; it targets this foundation branch in the contributor fork until the foundation can merge.

@arnaugrispg arnaugrispg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!! 👍

@kortiene

Copy link
Copy Markdown
Contributor Author

Superseded by internal-branch PR #139. The replacement uses the exact same reviewed head commit, d75f099787ea3d9da2c604fd1ab301fd0985f63d, and fresh trusted-ref checks have started there.

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.

3 participants