Conversation
Reject nonzero Harbor exits, score every measured trial, fail truncated off-limits scans and unknown inspect rules, and refuse import paths whose origin is outside the staged artefact. Co-authored-by: Mathis <echobt@users.noreply.github.com>
|
@greptileai review |
Greptile SummarySummaryAn oversized artifact file can hide prohibited off-limits markers from the Harbor inspection. The scanner skips files above its per-file size limit without recording that the scan was incomplete, allowing both off-limits checks and their combined gate to pass. This must be fixed before merging. Confidence Score: 4/5Not safe to merge: the Harbor off-limits gate can report a clean result while prohibited markers are present in an oversized artifact file. The failure was reproduced using the production inspection path with otherwise identical files on opposite sides of the configured size limit. Files Needing Attention: deploy/guest/runners/rlm_fc_in_guest_harbor/inspect_scan.py
What T-Rex did
|
Summary
Follow-up to #266 (
41b51ac3). Greptile P1 fail-closed fixes fromb9c47391landed oncursor/harbor-evaluate-artefact-d8eaafter that PR was squash-merged and were never onmain. This PR cherry-picks that commit onto currentmain.Harbor evaluate now fails closed instead of publishing a partial or escaped score:
run-harborandsummarize.pyrefuse to writereport.jsonfrom an incomplete or failed trial set.primary_valueis the mean of the full measured set.resolve_agentorigin check —import_pathmodules whose origin is outside the staged artefact (stdlib, inheritedPYTHONPATH, etc.) are rejected; evaluatePYTHONPATHis the artefact parent only.Does not touch defer/stub/DNS bake.
Greptile
Every PR is reviewed by Greptile before merge. Config:
.greptile/.@greptileai reviewTest plan
deploy/guest/runners/rlm_fc_in_guest_harbor/tests/run.sh) — all passed (test_summarize.py,test_inspect_scan.py,test_resolve_agent.py,test_adaptor.sh)cargo test --workspacenot required (guest Python/shell only; no Rust crates)cargo fmt --all -- --checknot required (no Rust)Risk
Guest Harbor adaptor only. Changes scoring fail-closed behavior for the in-guest Harbor runner (nonzero exit, truncated inspect, escaped import path, unknown rules). No
BASE_*env, CVM measurement, signature domain, or emission-path changes. No image bake.Naming
I did not rename
BASE_*environment variables, deployed host paths(
/opt/base,/run/base, …), GHCRbaseintelligence/basepackage names, orbase-*-v1cryptographic domain tags, unless this PR’s purpose is a coordinatedcutover documented in
docs/NAMING.md.