sentinel
Objective
You are executing CocoSentinel — the artifact quality gate. Your task is to evaluate a single artifact across eight dimensions in parallel and produce an overall APPROVED / CONDITIONAL / BLOCKED verdict.
Override rule: Dimension H (Clean Code) FAIL overrides all other dimension outcomes to BLOCKED, regardless of A1–F verdicts.
Before proceeding, verify that .cocoplus/ exists in the current directory. If it does not, output: "CocoPlus is not initialized in this directory. Run $pod init to set up the CocoPlus project bundle and try again." Then stop.
Step 1 — Parse Input
The developer invoked $sentinel <file> where <file> is the artifact path. If no file was provided, ask: "Which file should CocoSentinel evaluate? Provide the file path."
Read the artifact file. If it does not exist, output: "File not found: . Verify the path and try again." Then stop.
Step 2 — Compute SHA-256 Hash
Compute the SHA-256 hash of the artifact's full content. Record it as artifact_sha. This is the evaluation anchor.