Orrery.
← All Stars

public Star · 0.1.0

orrery/manifest-preflight

Preflight a caller file manifest against a named versioned policy.

Use this when

  • You need to check files before run against a named policy
  • You want pass/fail plus violation codes with no egress

Not for

  • Inventing new policy names at call time
  • Writing files or applying patches
  • Hosting the caller's repository

Inputs / Outputs

Inputs

NameTypeNotes
files required array
policy required string orrery/docs-only@v1 or orrery/max-100-files@v1
manifest_digest string optional digest claim

Outputs

NameTypeNotes
passed boolean
violation_codes array
envelope signed-envelope

Example

{
  "method": "tools/call",
  "params": {
    "name": "check",
    "arguments": {
      "files": [],
      "policy": "orrery/docs-only@v1"
    }
  }
}

Tools

check Preflight a caller-supplied file manifest against a named versioned policy · schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "maxItems": 10000,
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "sha256": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "size": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "path",
          "sha256",
          "size"
        ],
        "additionalProperties": false
      }
    },
    "policy": {
      "type": "string",
      "enum": [
        "orrery/docs-only@v1",
        "orrery/max-100-files@v1"
      ]
    },
    "manifest_digest": {
      "type": "string",
      "minLength": 64,
      "maxLength": 64
    }
  },
  "required": [
    "files",
    "policy"
  ],
  "additionalProperties": false
}

In constellations