This commit is contained in:
eddiesoehnel committed 2026-08-15 15:05:39 -06:00
1 parent eac3d5dc45
commit 2a2b00733b
83 files changed
+4840

No files matched your search

+1
View File
@@ -0,0 +1 @@
+3
View File
@@ -0,0 +1,3 @@
# Schemas
This directory contains versioned email-operation contracts plus the AI-ready repository metadata schemas. Update a schema and its tests when a declared contract changes.
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Email-list CLI result v1.0",
"type": "object",
"required": ["schema_version", "command", "status"],
"properties": {
"schema_version": {"const": "1.0"},
"command": {"type": "string", "pattern": "^[a-z]+\\.[a-z_]+$"},
"status": {"enum": ["ok", "planned", "failed"]},
"dry_run": {"type": "boolean"}
},
"additionalProperties": true
}
+179
View File
@@ -0,0 +1,179 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projects.eddiesoehnel.com/adminprojects/repo-template/schemas/repository-variables.schema.json",
"title": "Repository Structure Skill Variables",
"description": "Verified stable identity, repository, rights, profile, and workflow inputs reused by repository-structure skills.",
"type": "object",
"required": [
"schema_version",
"purpose",
"repository_profile",
"identity",
"repository",
"rights",
"skill_defaults",
"verified_by",
"verified_at"
],
"properties": {
"$schema": {
"type": "string"
},
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"purpose": {
"type": "string",
"minLength": 1
},
"repository_profile": {
"enum": [
"documentation-guide",
"skill-workflow",
"software-automation",
"dataset",
"custom"
]
},
"identity": {
"type": "object",
"required": [
"authors",
"publisher",
"maintainer"
],
"properties": {
"authors": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/namedEntity"
}
},
"publisher": {
"$ref": "#/$defs/namedEntity"
},
"maintainer": {
"$ref": "#/$defs/namedEntity"
}
},
"additionalProperties": false
},
"repository": {
"type": "object",
"required": [
"repository_id",
"name",
"title",
"canonical_url"
],
"properties": {
"repository_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"canonical_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"organization": {
"oneOf": [
{
"$ref": "#/$defs/namedEntity"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"rights": {
"type": "object",
"required": [
"license",
"license_file"
],
"properties": {
"license": {
"type": "string",
"minLength": 1
},
"license_file": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
},
"skill_defaults": {
"type": "object",
"required": [
"task_id",
"require_plan_approval",
"preserve_existing_content",
"use_smallest_fitting_profile"
],
"properties": {
"task_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"require_plan_approval": {
"type": "boolean"
},
"preserve_existing_content": {
"type": "boolean"
},
"use_smallest_fitting_profile": {
"type": "boolean"
}
},
"additionalProperties": false
},
"verified_by": {
"type": "string",
"minLength": 1
},
"verified_at": {
"type": "string",
"format": "date"
}
},
"$defs": {
"namedEntity": {
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
+397
View File
@@ -0,0 +1,397 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projects.eddiesoehnel.com/adminprojects/repo-template/schemas/repository.schema.json",
"title": "AI-Ready Repository Manifest",
"description": "Machine-readable identity, discovery, rights, provenance, maintenance, and AI retrieval metadata for an AI-ready repository.",
"type": "object",
"required": [
"schema_version",
"repository_id",
"name",
"title",
"description",
"authors",
"publisher",
"repository_status",
"visibility",
"maturity",
"version",
"resource_types",
"entrypoints",
"rights",
"maintenance",
"ai_retrieval"
],
"properties": {
"$schema": {
"type": "string"
},
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"repository_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"summary": {
"type": "string"
},
"canonical_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"organization": {
"$ref": "#/$defs/namedEntity"
},
"authors": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/namedEntity"
}
},
"publisher": {
"$ref": "#/$defs/namedEntity"
},
"repository_status": {
"enum": [
"draft",
"active",
"deprecated",
"archived",
"superseded"
]
},
"visibility": {
"enum": [
"public",
"restricted",
"private"
]
},
"maturity": {
"enum": [
"concept",
"experimental",
"prototype",
"beta",
"stable",
"production"
]
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
},
"created_at": {
"type": "string",
"format": "date"
},
"updated_at": {
"type": "string",
"format": "date"
},
"resource_types": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"topics": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"audiences": {
"$ref": "#/$defs/stringArray"
},
"problems_solved": {
"$ref": "#/$defs/stringArray"
},
"capabilities": {
"$ref": "#/$defs/stringArray"
},
"use_cases": {
"$ref": "#/$defs/stringArray"
},
"required_inputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"required",
"sensitivity"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"required": {
"type": "boolean"
},
"sensitivity": {
"type": "string"
}
},
"additionalProperties": false
}
},
"expected_outputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"format"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"format": {
"type": "string"
}
},
"additionalProperties": false
}
},
"entrypoints": {
"type": "object",
"required": [
"human",
"ai"
],
"properties": {
"human": {
"type": "string"
},
"ai": {
"type": "string"
},
"primary_skill": {
"type": [
"string",
"null"
]
},
"primary_agent": {
"type": [
"string",
"null"
]
},
"primary_script": {
"type": [
"string",
"null"
]
},
"primary_template": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"contents": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"type",
"title",
"description",
"required_for_use"
],
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"required_for_use": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"relationships": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/stringArray"
}
},
"access": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"rights": {
"type": "object",
"required": [
"license",
"license_file"
],
"properties": {
"license": {
"type": "string"
},
"license_file": {
"type": "string"
},
"usage_guidance": {
"type": "string"
}
},
"additionalProperties": false
},
"provenance": {
"type": "object",
"properties": {
"origin_type": {
"type": "string"
},
"creation_method": {
"type": "string"
},
"contributors": {
"type": "array"
},
"source_references": {
"$ref": "#/$defs/stringArray"
}
},
"additionalProperties": false
},
"maintenance": {
"type": "object",
"required": [
"maintainer",
"review_frequency",
"deprecated",
"archived"
],
"properties": {
"maintainer": {
"type": [
"string",
"null"
]
},
"review_frequency": {
"type": "string"
},
"last_reviewed_at": {
"type": [
"string",
"null"
],
"format": "date"
},
"deprecated": {
"type": "boolean"
},
"archived": {
"type": "boolean"
}
},
"additionalProperties": false
},
"ai_retrieval": {
"type": "object",
"required": [
"read_first",
"retrieve_as_needed",
"exclude_by_default",
"instructions"
],
"properties": {
"read_first": {
"$ref": "#/$defs/stringArray"
},
"retrieve_as_needed": {
"$ref": "#/$defs/stringArray"
},
"exclude_by_default": {
"$ref": "#/$defs/stringArray"
},
"instructions": {
"type": "string"
}
},
"additionalProperties": false
}
},
"$defs": {
"stringArray": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"namedEntity": {
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
+18
View File
@@ -0,0 +1,18 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Private subscriber operation v1.0",
"type": "object",
"required": ["schema_version", "operation_id", "operation", "email", "requested_at"],
"properties": {
"schema_version": {"const": "1.0"},
"operation_id": {"type": "string", "minLength": 1},
"operation": {"enum": ["subscribe", "unsubscribe"]},
"email": {"type": "string", "format": "email"},
"source": {"type": "string"},
"reason": {"type": "string"},
"requested_at": {"type": "string", "format": "date-time"},
"consent_at": {"type": "string", "format": "date-time"},
"consent_note": {"type": "string"}
},
"additionalProperties": false
}
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Ops Monitor telemetry API v1.0",
"type": "object",
"required": ["schema_version", "campaign_id"],
"properties": {
"schema_version": {"const": "1.0"},
"campaign_id": {"type": "string"},
"apparent_non_openers": {"type": "array", "items": {"type": "string", "format": "email"}},
"summary": {"type": "object"}
},
"additionalProperties": false
}