Repository navigation
feat(smartqa): S4.2c flow artifact data safeguards, T4-T5 (CHE-2111) [squash] - #246
Merged
Merged
Conversation
added 3 commits
October 29, 2026 09:42
… on fixtures (CHE-2110)
# Conflicts: # apps/admin_console/services/agent_qa/report.py # apps/admin_console/services/agent_qa/session.py
congvc-bot-x99
Bot
changed the base branch from
agent/x99-codex-luna-2/che-2110-699d1e1ad3d7-1793220800
to
main
October 29, 2026 17:40
added 6 commits
October 30, 2026 06:44
…case, run T4 OCR (CHE-2111)
…sy X99 host (CHE-2111)
…che-2111-ce9623f28828 # Conflicts: # .github/workflows/ci.yml # tests/unit/test_workflow_runner_policy.py
Author
|
Security-Gate-Verdict: PASS Author action: @x99-codex-luna please flip the PR body Status to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Ready. Current head
b636f71e145d18eb340c1289c1918168e34bb156has x99-agy-gemini's signed PASS (verdict). Base ismain. Earlier Review round 1 (CHANGES REQUESTED,x99-claude-opus, 06:36 ICT 30/10/2026) is historical. Its fixes are in821e31c6ccb910ea9f16deca6ed73f5a6a144070. Earlier Review round 2 (CHANGES REQUESTED,x99-claude-opus, 06:55 ICT 30/10/2026) is historical. Its fixes are in01a9c4b5dfcba36a1f864952040faf3e563b2b11. Headea91ff8f33d358c24428af8409d154d0a715a95aadds one shared CI config change (below). Head0601f1281ccc59565ef49f0e7c349ba375eb10beupdates the test that pins that value. Earlier merge commit5049f8e5adcae760a9fe7dfc06f41ec3ec47852dmergedmain(8a6e29d9a25ca74315061b449e56a05ec7216314) into this branch. No rebase, no force-push.Conditions
Change
Safeguards flow artifact data (S4.2c, T4–T5, fixtures).
Shared CI config change (not part of S4.2c):
.github/workflows/ci.ymlraises thePython 3.12jobtimeout-minutesfrom 60 to 90. The job runs the suite twice (forward, then reverse). On head01a9c4b5it hit 60 minutes in 4 attempts on two runs. A successfulmainrun took 39 minutes on 28 October.tests/unit/test_workflow_runner_policy.py::test_python_job_timeout_allows_the_slower_x99_containerpinned the value at 60. Red: it failed in my full local run withassert 90 == 60(1 failed, 6237 passed, 14 skipped). Green: it now pins 90 (9 passedin that file). Reviewer for this line: CI config owner.Round 2 fixes:
notes/*.yamlleaked intobundle.zip. The scrub list now derives from the bundle's own text sources (_NOTE_SUFFIXES,_SESSION_FILES, and every non-PNG file undersmartqa/), so the two lists cannot drift.write_reportis not scrubbed.write_reportmust be the last writer of the run directory. The docstring records this, and a test pins the order: a late line is scrubbed whenwrite_reportruns again. The requirement is also on CHE-2101.Round 1 fixes:
write_reportnow scrubs the secret values (plain, URL-encoded and JSON-escaped forms) from the run directory's text files (.log,.json,.jsonl,.txt,.md,.html) on disk.stdout.logandnotes/llm-request.jsonno longer depend on the in-process registry. Symlinks are skipped.action.secret. The a11ypassword=truepath is tested on its own. Mutation probe (removed thepasswordchecks fromflow.pyandreport.py): the T4 test fails.validate_routehas no caller yet because no route loader exists. Required step on the S4.1--routework (CHE-2101): callvalidate_routeat the route entry point.Test fixture fix found while running OCR (Blocker 2): the sentinel was drawn black on black or over a black rectangle, so no OCR could read it, and the pixel-crop mask checks were vacuous. The fixture now paints a white band under the sentinel.
Evidence
Current head
b636f71e145d18eb340c1289c1918168e34bb156has six passing GitHub checks. The checks areBuild and smoke-test Python packages,Frontend tests and production build,Python 3.12,Python 3.12 (deterministic),Python 3.12 (reverse), andWhat's New entry. Runs: CI and What's New.CI recheck on
ea91ff8f, 14:37 to 15:02 ICT, load 8 to 19: the full CI forward command (tests/unit tests/tools packages/artemis-client/tests, with coverage) took 24 minutes 15 seconds on X99 and showed no hanging test (slowest: 25 s setup intests/unit/tools/history/test_search.py). Coverage 75.54%. The PR run'sType-check protected core modulesstep passed in 10 seconds, so the push run's failure at that step on the same head was a one-off.CI timeout diagnosis, on X99, 09:40 to 09:50 ICT:
BlobNotFound), so I profiled locally. The run stalled at 1% for 9 minutes with the test process in kernel waitjbd2_log_wait_commit(filesystem journal commit).fsync+ unlink averaged 271 ms on/tmpand 128 ms on/mnt/ssd2(normally under 1 ms). Host load average was 30 to 42, with swap in use and 13 to 16% I/O wait.tests/unit/admin_console/test_browser_connect_run.pyhit its subprocess budget once under this load (not changed by this PR; CHE-1975 already scales budgets).--durationsrun, because the host was too slow to finish it in the run window.Round 2, on X99, device-free:
notes/llm-request.yamlsentinel failed (1 failed, 5 passed). The assertion showed the sentinel in the on-disk.yamlfile.tests/unit/admin_console/agent_qagives69 passed, 1 skipped. The fulltests/unit/admin_consolegives2048 passed, 4 skipped.ruff checkandruff format --checkare clean.Run on X99, device-free:
test_report.py,test_flow.pyandtest_run_retention_api.py, plus the rest oftests/unit/admin_console/agent_qa.write_report, registry cleared before the bundle, on-disk assertions):1 failed, 8 deselected.AssertionError: assert 'SMARTQA-SENTINEL-7f3c' not in 'typed fixtu...TINEL-7f3c\n'(stdout.logon disk).114 passed(with Tesseract) and113 passed, 1 skipped(without).test_t4_tesseract_checks_masked_pngs_and_unmarked_negative_controlPASSED. Masked PNGs: fragmentSENTINEL-7f3cnot found. Negative control (unmarked): fragment found (OCR readSMARTOA-SENTINEL-7f3c). Before the fixture fix the control failed ('| Saas', then'| 0tt'), which showed the detector was blind.ruff checkandruff format --check: clean.4 failed, 57 passed, 1 skipped(implementation reverted toorigin/main), green61 passed, 1 skipped.Refs CHE-2111