Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/sdk-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ jobs:
tests/harness/test_reading_entry.py
tests/harness/test_agent_reading.py
tests/harness/test_scan_walk.py
tests/harness/test_browser_scan_cut.py
tests/harness/test_save_child.py
tests/harness/test_save_checker.py
tests/harness/test_scan_folders.py
tests/harness/test_scan_document.py
tests/harness/test_scan_ai.py
Expand Down
3 changes: 2 additions & 1 deletion src/fi/alk/harness/HOW-IT-WORKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ conversation**, so the model corrects and resubmits rather than a bad contract l

A browser reading gets one second look first, naming any browser, crawling or
computer-use tool the code check found in the source. So does a chat or voice reading of source
where the check found one. The next submission stands: a browser answer is refused to
where the check found one, or where the check stopped before reading all of it. The next
submission stands: a browser answer is refused to
`failure.json` and the build exits 78, and a chat or voice answer is saved. The look gives a value
to send back, which only tells apart calls in one model message: those run before the model reads
any result. The rule and its state are `SecondLook` in `agent_type_check.py`. A browser answer to a chat or voice look is refused at once, since that look said browser stops the build. When calls in one message run one after another, or together once the first scan is done, a later call is taken as the answer before the model has read the look. Once an answer with the value has come back, a later browser answer without it gets a look again, so answers that keep switching cost turns, up to the reading's turn limit (70, or 140 for a generic job read unattended), never a refusal without a look.
Expand Down
254 changes: 215 additions & 39 deletions src/fi/alk/harness/agent_type_check.py

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/fi/alk/harness/forkserver_preload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""The modules the kit's fork server loads once, for every child it starts.

`multiprocessing` keeps one fork server per process, and the last `set_forkserver_preload` call
before it starts is the one that counts. The folder checks and the save checks share it, so both
set this one list, and whichever starts first preloads what the other needs too. Module names
only: importing them here would load the kit into every process that reads the list.
"""

PRELOAD = [
"fi.alk.harness.framework_detection",
"fi.alk.harness.tools",
"fi.alk.harness.bundle_author_v2",
"fi.alk.harness.source_tool_evidence",
"fi.alk.harness.instrumentation_evidence",
"fi.alk.harness.source_folder",
"fi.alk.harness.model_citation",
"fi.alk.harness.runtime_repair",
"fi.alk.harness.save_child",
]
Loading
Loading