#1 [high] PR 540 injection screening — All Clear
Repo: NVIDIA/hyperflare-inference. PR #540 "Retain bounded timing-refresh credit across idle and exclude readiness wait" (head 982a9ce, base main, 10 files +647/−47, no CI checks).
Checked:
- Full diff read in three passes (results 4,5,6): docs/scheduling-runtime-design.md (+29/−17), docs/scheduling-theory.md (+16/−7), helios/src/scheduler.rs (+5/−1, removes RefreshState::idle call), helios/src/scheduler/cost.rs (+89), helios/src/scheduler/policy_tests.rs (+394/−7), helios/src/scheduler/refresh.rs (+12/−10), scripts/scheduling_sim/learning.py (+7/−4), scripts/scheduling_sim/learning_policy.py (+5/−1), tests/test_scheduling_learning_experiments.py (+47), tests/test_scheduling_learning_policy.py (+43). All content is legitimate scheduler/credit-accounting work and matching tests.
- Grep for injection phrasing (ignore previous instructions / disregard / you are an AI / system prompt / do not report / all clear / LGTM / approve) across helios/src/scheduler, docs/scheduling*, tests, scripts/scheduling_sim: no matches.
- Grep for invisible/zero-width Unicode (U+200B/E, U+202A–E, U+FEFF, U+2060) and long base64 blobs in changed files: none.
- Grep for HTML comment hiding in changed docs: none. No shell/network exfil additions (curl/wget/socket/subprocess/eval) in the changed test files.
- No changes to CI workflows, git hooks, .githooks/commit-msg, docs/design-review.md, or the Design-Signed-Off-By mechanism (verified those exist on main / not touched here).
- Conversation thread (results 1,3,7,25): bot case-file notices, two Autobot review bodies with technical blockers, a peer review from shieldstar with a patch, a human testing report from voipmonitor, and the author's point-by-point responses/rework note. All engineering discussion; nobody asks an agent to approve, skip checks, or run commands. Only noted instruction-ish text is the repository's own standing automation footer "Opt-out: Include #autobot:ignore" from flare-autobot — standard repo automation, not targeted at this review.
Conclusion: All Clear. Minor non-security note: the PR body leans on indirectly verified evidence ("byte-identical tree on 3e2fcd27") and bundles the main validator figures in prose, which is a verification-attribution weakness for human reviewers, not an injection.
#2 [high] Research summary
All Clear. I screened PR #540 (head 982a9ce, 10 files, +647/−47) end to end and found no prompt injection or other content aimed at steering an agent.
Coverage: I read the complete diff in three passes (both docs, scheduler.rs, cost.rs, refresh.rs, policy_tests.rs, the two simulator scripts, and the two Python test files), the whole discussion thread, and the file list. Every hunk is ordinary scheduler work — retaining bounded timing-refresh/acceptance credit across idle (removing RefreshState::idle), new observed_compute_duration_ns / timing_refresh_duration_ns helpers that exclude embedding-delivery readiness wait, a --retain-idle-credit / PolicyConfig.retain_idle_credit simulator flag, and matching Rust/Python regression tests and doc updates. The two new Python tests are behavioural tests of that flag (default false, boolean-only, not overridable from --configs).
Negative results: greps for injection phrasing ("ignore previous", "disregard", "you are an AI", "system prompt", "do not report", "approve", "LGTM", "all clear") across helios/src/scheduler, docs/scheduling*, tests and scripts/scheduling_sim returned nothing; no zero-width/Unicode bidi characters or base64 blobs in the changed files; no HTML-comment hiding in the changed docs; no new shell/network/exfil primitives in the changed tests; and no edits to CI workflows, .githooks/commit-msg, docs/design-review.md (not opened) or the Design-Signed-Off-By mechanism. The conversation is engineering discussion only — two Autobot review bodies, a peer patch from shieldstar, a hardware test report from voipmonitor, and the author's rework note. The only instruction-like text is the repository's own standing automation footer ("Opt-out: Include #autobot:ignore"), which is standard tooling, not directed at this review.
Non-security note for the human reviewer: the PR body's evidence relies on figures produced on a "byte-identical code tree" at a different commit (3e2fcd27) rather than on the head itself, and bundles several validation results in prose, which weakens attribution and bisectability — a verification-quality concern, not a manipulation attempt.
#3 [medium] PR #540 — line-level citations for the changed hunks
Companion to entry 1. Anchors taken from the diff of PR #540 at head 982a9ce (base main, 10 files, +647/−47, no CI checks).
Scheduler core:
- helios/src/scheduler.rs:1155-1166 —
RequestScheduler::idlenow only validates that no submission is in flight; theself.refresh.idle()call is removed, with a doc comment stating credit<= CREDIT_CAP_NSand debt survive idle. - helios/src/scheduler/refresh.rs:71-93 —
RefreshState::complete:PlanOrigin::Ordinaryearns timing credit fromcost::observed_compute_duration_ns(line 74) and acceptance credit fromcost::observed_duration_ns(line 77); probe arm charges acceptance on raw physical duration (83-85) and timing refresh oncost::timing_refresh_duration_ns(86-89). - helios/src/scheduler/refresh.rs:95-99 —
idle()deleted; itsmin(0.0)clamps moved intoabort(). Constants at refresh.rs:9-11 (CREDIT_CAP_NS = 5_000_000.0,INCOME_RATE = 0.002/0.998,ACCEPTANCE_INCOME_RATE = 0.01/0.99). - helios/src/scheduler/cost.rs:31-45 — new
observed_compute_duration_ns:wait_nsfromtiming.readiness,gpu_nsmax positive,Nonewhengpu_ns <= wait_ns(line 40-42), else(queued ? gpu_ns : max(gpu_ns, wall_ns)) - wait_ns(43-44). - helios/src/scheduler/cost.rs:47-57 — new
timing_refresh_duration_ns: compute duration, elseobserved_duration_ns, elsewall_ns, guaranteeing a strictly positive charge. - helios/src/scheduler/cost.rs:442-503 — unit test
compute_refresh_duration_excludes_readiness_wait_and_charges_positive_on_zero_computecovering<,==,wall_ns == 0and> 0.
Tests (helios/src/scheduler/policy_tests.rs, +394/−7):
- Renamed :2471
ordinary_income_excludes_queued_wall_wait_and_idle_retains_credit_while_abort_discards_positive(idle keeps credit, abort zeroes positive, abort preserves −5 ms/−4 ms debt). - :2551 idle-retains in
refresh_funding_requires_earned_credit_and_accounts_for_repeated_attempts...(also 249→248 loop and the credit arithmetic at :2613). - :3548
state.idle()→state.abort()in the acceptance-probe debt test. - New tests appended from :5811:
idle_separated_short_requests_accumulate_refresh_credit_and_recover_stale_shape,expensive_stale_shape_does_not_starve_smaller_stale_shapes_under_credit_refill(D = 145 ms > ttl_ns/499),timing_refresh_excludes_readiness_wait_from_episode_debt,readiness_wait_exceeding_gpu_duration_does_not_cause_zero_charge_refresh_loop.
Simulator (scripts/scheduling_sim):
- learning_policy.py:47
retain_idle_credit: bool = False; :83-84 boolean validation; :674idle()clamps credit only whennot self.config.retain_idle_credit. - learning.py:106-109 parameter list, :132-135 sweep rejection for boolean params, :439-440
--retain-idle-creditargument, :479-483 exclusion from validation--configsoverrides. - tests/test_scheduling_learning_experiments.py:744-790 (
..._cli_option_is_boolean_and_excluded_from_validation_overrides); tests/test_scheduling_learning_policy.py:1530-1571 (..._recovers_across_short_bursts_without_starvation).
Docs: docs/scheduling-runtime-design.md:433-480 (funded timing refresh rewritten; 2,495 ms cumulative across idle-separated requests), :489-502 (acceptance ledger boundary); docs/scheduling-theory.md:574-590 and :723-740 (simulator default unchanged, --retain-idle-credit documented as matching Helios).