Skip to content

feat: egress schema and constitution checks at high bind (#78) - #87

Merged
rosspeili merged 1 commit into
ARPAHLS:mainfrom
rosspeili:feature/issue-78-schema-checks
Sep 28, 2026
Merged

rosspeili merged 1 commit into
ARPAHLS:mainfrom
rosspeili:feature/issue-78-schema-checks

Conversation

@rosspeili

Copy link
Copy Markdown
Contributor

Summary

Adds JSON Schema validation at egress for tool.call args and tool.result payloads (#78).

  • variables.schema_refs — named schema specs per tool (on: call | result | both)
  • schema_check — explicit constraint rule type (works at any spectrum level)
  • High/full auto-wire — refs become egress rules unless spectrum.schema_enforcement: false
  • Audit — finding SCHEMA_VIOLATION; conformance schema check on close
  • merged_profile_rules() — shared merge path for sessions and aura agent show
  • Dependency — jsonschema>=4.21

Type

  • Core framework — session, spine, constraints, audit report
  • Integration — membrane egress
  • Documentation
  • Packaging / CI — new core dependency

Fixes #78

Checklist

  • Linked issue (Fixes #78)
  • pytest passes (238 tests)
  • black aura tests — clean
  • flake8 aura tests — clean
  • CHANGELOG.md updated

Test plan

  • tests/test_schema_checks.py — deny malformed / pass valid, mid vs high auto-wire, opt-out, tool.result, egress, audit report, conformance, CLI show
  • scripts/aura_host_stress_sim.py — schema_high_bind (34/34)
  • scripts/aura_capability_stress_sim.py — regression (16/16)

Add variables.schema_refs and schema_check constraint rules for JSON Schema
validation on tool.call args and tool.result payloads. Spectrum high/full
auto-wires refs unless schema_enforcement is false. Audit finding
SCHEMA_VIOLATION, conformance schema check, merged_profile_rules helper,
tests, docs, and host stress sim scenario.
@rosspeili
rosspeili merged commit 3413017 into ARPAHLS:main Sep 28, 2026
6 checks passed
@rosspeili
rosspeili deleted the feature/issue-78-schema-checks branch September 28, 2026 10:13
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.

[Core]: Egress schema and constitution checks at high bind

1 participant