Skip to content
Sign in

opengantry

v0.2.3

OpenGantry governance for iii. Kernel verify and middleware gate before promote-class calls.

license: Apache-2.0Used in 1 kitgovernancegxtopengantrypolicyverify

Install

bash
iii call compose::add worker=opengantry@next

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions5

gantry::middleware

Function
Request
  • contextobject
    • holder_idstring
    • mission_relstring
    • mission_rel_pathstring
    • msn_idstring
    • repo_rootstring
    • verdict_tokenstring
    • worktree_pathstring
  • function_idstringrequired
  • payloadobject
    • branchstring
    • verdict_tokenstring
Response
Empty object

gantry::on-function-registration

Function
Request
  • args_formatobject
  • contextany of
    any of (2)
    Variant 1
    Empty object
    Variant 2
    valuenull
  • descriptionany of
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • function_idstringrequired
  • metadataany of
    any of (2)
    Variant 1
    Empty object
    Variant 2
    valuenull
  • namespacestring
  • observableboolean
  • privateboolean
Response
  • function_idstringrequired

gantry::on-observer-registration

Function
Request
  • argsobject
  • contextany of
    any of (2)
    Variant 1
    Empty object
    Variant 2
    valuenull
  • filtersany of
    any of (2)
    Variant 1
    Empty object
    Variant 2
    valuenull
  • function_idstringrequired
  • metadataany of
    any of (2)
    Variant 1
    Empty object
    Variant 2
    valuenull
  • namespacestring
  • observer_idstringrequired
  • target_function_idstringrequired
  • target_namespacestring
Response
Empty object

gantry::on-verdict

Function

Called once per completed gantry::verify with its verdict: { status, error_code, repo_root, msn_id, mission_rel_path }. Private: observe it; only opengantry calls it.

Request
  • error_codeany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • mission_rel_pathany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • msn_idany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • repo_rootany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • statusstringrequired
Response
  • error_codeany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • mission_rel_pathany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • msn_idany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • repo_rootany ofrequired
    any of (2)
    Variant 1
    valuestring
    Variant 2
    valuenull
  • statusstringrequired

gantry::verify

Function

Verify a mission by running the repo's own build and test gates. Returns a signed verdict token bound to that mission revision, which promote-class calls must carry.

Request
  • mission_rel_pathstring
  • msn_idstring
  • optionsobject
  • repo_rootstringrequired
Response
  • error_codestring
  • exit_codenumber
  • findingsobject[]
    • failed_gatestring
    • linenumber
    • offending_filestring
    • resolution_hintstring
    • severitystring
  • fix_hintsstring[]
  • messagestring
  • mission_file_pathstring
  • msn_idstring
  • next_actionsstring[]
  • phasestring
  • statusstringrequired

Search the registry

Find workers, kits and executables, or jump to a page.