Skip to content

Include the complete engine runtime harness - #154

Merged
luisleo526 merged 3 commits into
mainfrom
fix/sync-quota-harness
Nov 3, 2026
Merged

luisleo526 merged 3 commits into
mainfrom
fix/sync-quota-harness

Conversation

@luisleo526

Copy link
Copy Markdown
Contributor

The synced harness imports quota and report-supervision helpers that were missing from the image inventory, causing the runtime and sink paths to fail on import.

Sync all sixteen runtime files from engine v1.10.0, include them in the image COPY and strict manifest checks, and keep the import-closure and negative-control tests aligned. The HPO image inherits the same checked harness.

Validation: all 10 HarnessSyncTest tests passed on the committed head, including the unchanged import-closure test. The full PR suite remains required before merge.

🤖 Generated with Claude Code

Sync the missing runtime helpers from engine v1.10.0 and include them in
the image COPY inventory and strict hash check. Keep the harness tests
aligned with the complete fifteen-file runtime, inherited by the HPO image.
Sync the supervisor's remaining runtime dependency from engine v1.10.0.
Keep all sixteen files in the image inventory and strict hash checks,
with the import-closure detector and negative controls unchanged.

@graphify-labs graphify-labs Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphify reviewed this change.

No issues found by static checks — no coupling regressions or blocking issues in the code graph. That is not the same as safe to merge: see what was not checked.

Not checked: tests were not run; no formal proof of the changed code.


Graphify review — findings

Adds four more engine harness files to the Docker image (pineforge_report_deadlines.py, pineforge_report_supervise.py, quota_columns.py, run_quota.py) and raises the pinned harness set from twelve to sixteen. The build still recomputes HARNESS-SHA256SUMS on the installed files and fails if bin/ or the sums file differs from the exact sorted list of sixteen. The new deadlines module is opt-in, so importing it installs no handlers, threads or descriptors. It gives bounded socket and pipe reads and writes with wall and stall deadlines, and reports expiry or peer-close as typed errors. The other new modules add a supervisor that reports failures as a document, plus a run-quota client and ledger with tickets, limit parsing, commit and refusal paths. The release-workflow tests are also extended; the diff was truncated before I could read their changes.

Review partial — this diff was larger than one review pass covers, so later files were not reviewed; some findings may be missing.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 652 functions depend on the 645 functions this change touches.

Health — this change adds coupling hotspots:

  • new: read() — 4 callers, 3 callees
  • new: validate_candidate() — 1 callers, 9 callees
  • worse: _convert() — 1 callers, 7 callees
  • worse: main() — 1 callers, 7 callees
  • new: serve() — 0 callers, 12 callees
  • new: relay() — 0 callers, 7 callees

Verification — 652 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 652 function(s) in the blast radius were not formally verified this run

Risky patterns (advisory)

  • medium no-unbounded-fetch in docker/run_quota.py:554: unbounded read (no limit/bound): record = source.read()
  • medium no-unbounded-fetch in docker/run_quota.py:565: unbounded read (no limit/bound): boot_id = str(UUID(source.read().strip()))

Docs that may be stale (advisory)

…and 10 more.

· 2 grounded finding(s) anchored inline below; 4 more finding(s) on lines outside this diff (see the check run).

return data, not data


def relay(src_fd, dst_fd, allowance_bytes, deadline, stage_hint, chunk=65536):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Health regression — relay()

fans out to 7 callees (efferent coupling).

Grounded coupling-delta finding (deterministic), not an LLM guess.

Comment thread docker/run_quota.py
return _CREDENTIALS.unpack(raw) == (owner.pid, owner.uid, owner.gid)


def serve(ledger, channel, owner):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Health regression — serve()

fans out to 12 callees (efferent coupling).

Grounded coupling-delta finding (deterministic), not an LLM guess.

Pin the sixteen synced harness files and their exact COPY instructions.
Keep the historical runtime digest and strict normalization checks intact,
and exercise missing, duplicate and altered copies of all added helpers.
@luisleo526
luisleo526 merged commit fc20c62 into main Nov 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant