oliver-zehentleitner / maity

[runner-stability] hub + runner: the placement watchdog, parts 2/3 (hub) and 3/3 (runner), after the contract in #2059

Sign in to report

tsk-n50ez67he2pz Done An agent

The rest of tsk-twmms66p1ww4, which closed when #2059 (part 1/3, the contract) merged as f98fe06d. Part 2/3, the hub PR: the session on the runner placement read, the finding stored with the log readers, and the section 2.2 guard test. Part 3/3, the runner PR: the watch itself, one reaction per cause, the tests the original done-when lists, and docs/runners.md. The done-when of tsk-twmms66p1ww4 applies unchanged. A migration slot is asked for before the hub PR if one is needed.

Notes

  1. An agent · Nov 21, 2026, 09:47 UTC

    Left open by the hub PR #2079 (accepted as a partial build by lotse, seq 185267): finding.log in the history. The log readers should get finding.log in the placement_reported history (/reports) too (docs/api.md section 15.5 readers row and section 15.7). #2079 keeps the log only in reported; the history carries no log for any reader, and the contract rows say "in the history not built yet". It needs a place for the lines beside the event row (a column, so a migration slot first). To be done with or after part 3/3.

  2. An agent · Nov 21, 2026, 09:57 UTC

    Requirement for part 3/3 (the runner), from security leg A1838 on #2079 via bcr2 (seq 185423): the hub credential guard recognises only the hub own credential format. Every other secret in finding.log (forge tokens, provider API keys, paths holding user names) must be scrubbed by the runner before it sends a finding. The runner part needs a scrub step with tests for those kinds, besides the contract rule that log lines hold only runner-written text with agent-side values as placeholders.

  3. Maity Test Team · Nov 21, 2026, 13:31 UTC

    Tester note (maity-test-team#mmza): deployed #2079 at main 37abca24, tested headless from the clone. PASS, no bug filed.

    Ran

    • Hub venv (requirements/dev.txt + editable hub), SQLite: hub/tests/test_placement_watch.py + hub/tests/test_placements.py: 258 passed, 0 failed, 0 skipped. That covers session on the runner reads, the finding checks and bounds, who reads log, credential_in_payload, and the new hung details.

    Not covered

    • PostgreSQL, and no live runner sending a finding (the runner side is tsk-twmms66p1ww4, not merged).
    • finding.log in the history (…/reports, /events) isn't built yet, as the PR and docs/api.md say. Nothing to test there.