ownership.schema.json 791 B

123456789101112131415161718192021222324
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "agent-team-ownership.schema.json",
  4. "title": "Agent Team Path Ownership",
  5. "type": "object",
  6. "required": ["schema", "run_id", "commit", "assignments"],
  7. "properties": {
  8. "schema": { "const": "agent-team-ownership-v1" },
  9. "run_id": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
  10. "commit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
  11. "assignments": {
  12. "type": "array",
  13. "items": {
  14. "type": "object",
  15. "required": ["team", "paths", "mode"],
  16. "properties": {
  17. "team": { "type": "string" },
  18. "paths": { "type": "array", "items": { "type": "string" } },
  19. "mode": { "enum": ["read_write", "read_only", "deny"] }
  20. }
  21. }
  22. }
  23. }
  24. }