Expand description
G6, the test gate of process v1 (leanctx-cloud docs/process-v1.md §5,
contracts/process-v1/gate-record.schema.json): what the Instance checks
and records on submit (E47) and again before verify (E48).
LockedPathsV1: every locked path is byte-identical tospec_commitin the judged commit;okexactly whenchangedis empty, each path once, each under a checked path (under_locked).RerunV1: the gate’s own run of the declared command at the judged commit (rerun.commit == artifact.ref), never a worker’s report.G6RecordV1: both, as the Instance sends them, withG6RecordV1::validatekeeping the contract’s rules (locked_paths_changed,locked_paths_unique,locked_paths_changed_unchecked,locked_paths_spec_commit,rerun_commit, S: nothing checked and no feature results; M/H: a non-empty check). The Instance does not read CI (§5.1), so its record is never apass: its best isblockedonci_pipeline, which Cloud completes withci.CloudG6RecordV1: the G6 record Cloud stores and serves (lenient: the whole contract record), green only withcifor the judged commit and every required job green (ci_commit,ci_required_jobs).
The checks themselves run in the Instance (lean-ctx-cloud tasks::gate),
never through an agent’s shell.
Structs§
- Artifact
RefV1 artifactof a stored gate record: what was judged.- Changed
Path V1 - One differing locked path.
- CiJobV1
- One CI job of a pipeline (§5.1).
- CiV1
gate_record.ci(§5.1,gate-record.schema.json#/$defs/ci) in its three forms: a pipeline, no pipeline yet (status: missing), or no CI (provider: none). Response type: unknown fields are accepted.- Cloud
G6Record V1 - The G6 record Cloud stores and serves for a task (
process.g6): the whole contract record, read leniently (unknown fields accepted), so a contract-complete record withid,task,author,checker,evidenceandatparses. OnlyCloudG6RecordV1::greenlets a verify on. - Feature
Result V1 - One feature’s result from the gate’s own run.
- G6Record
V1 - The G6 part of a gate record as the Instance builds and sends it: the
judged commit, the locked-path check and the gate’s own rerun. Cloud adds
what only it knows (id, task, author, checker,
ci) when it stores the record. - Locked
Paths V1 gate_record.locked_paths(G6, required on every G6 record).- Rerun
Report V1 gate_record.rerun.report: what the test harness itself reported, so a greenexit_codefrom code that ended the test binary early does not count (§5, the contract follow-up).formatislibtest-jsonorlibtest-text;names_checkedlists every locked test the feature list names with its reported status (empty for an S task).- RerunV1
gate_record.rerun: the gate’s own run of the locked tests.- Task
Process Gate V1 - What G6 needs beyond a task’s process fields (model v1
task.process_gate, core only): for M/H the feature list’s locked paths, commands and feature ids atspec_commit, for S the repo’s declared command, and the newest G6 record Cloud stored. Response type: unknown fields are accepted. - Task
Process Passed Gate V1 - One passed gate and its record.
- Task
Process RefV1 task-process.schema.jsontask: the task the process fields belong to.- Task
Process Risk Change V1 - One change of the risk level;
fromis null for the first. - Task
Process Stage Entry V1 - One entry into a stage (§13).
- Task
Process V1 - The process fields of a task view, exactly process v1
task-process.schema.json(model v1task.process). A task view without them is not a process task. Response type: unknown fields are accepted; every member the contract requires is required here. - Test
Status V1 - One locked test with the status the harness report gives it (§5,
bb1a533e):
passed,failed,ignored, ornot_run(absent).
Enums§
- Gate
Result - A gate’s result.
- Locked
Change - How a locked path differs from
spec_commit(§5). - NotGreen
- Why a stored G6 record does not let a verify on.
- Task
Risk - A process task’s risk level (§2).
Constants§
- CLOUD_
CLOUD_ PG_ JOB - CLOUD_
CLOUD_ PROJECT - The Postgres job every LeanCTX Cloud (relay project 37) record requires.
- GATE_
RECORD_ SCHEMA - The gate record’s schema id (process v1).
- MAX_
LOCKED_ PATHS - At most this many checked or changed paths in one record.
- MISSING_
CI_ PIPELINE - The evidence kind a G6 record without a pipeline misses (§5.1).
- PROCESS_
VERSION - The process contract version a record names.
- RULE_
LOCKED_ PATHS_ CHANGED - The one rule a locked-path failure names.
- TASK_
PROCESS_ SCHEMA - The schema id of a task’s process fields (process v1).
Functions§
- under_
locked pathlies under the locked pathpattern: the path itself, a file below it, or a glob match (*within one segment;**/zero or more whole segments; a trailing**everything below). The same matcher as leanctx-cloudunder_locked(routes/tests_process_v1.rs, process v1 §5).- validate_
repo_ path - A locked path is repository-relative: not absolute, no
..segment (feature-list.schema.json#/$defs/repo_path).