Live finding: a refused edit shown by the transcript is not a change (the tree decides), sisi commands may pipe into read-only filters, a cache folder is as ignorable as its files; docs. done: live scenario 1 deadlock / next: rerun live checks, stress, timing
This commit is contained in:
1 parent
410391a189
commit
5cbd558a2d
7 files changed
+107
-10
No files matched your search
+8
-2
@@ -363,8 +363,14 @@ session's own model exists. Every entry point fails open.
|
||||
only the outcome and the check. A worker other than the router's pick is allowed and recorded
|
||||
(`chosen_against_route`); `sisi workers` shows how often and how those turned out (too few under five).
|
||||
`sisi route --retry-of ID` keeps the same worker with an instruction to improve the brief after the first
|
||||
rejection and moves to a stronger one (judged record, else benchmark standing, else host-native) after a
|
||||
second.
|
||||
rejection and then moves to a worker whose evidence is strictly better (`routing.retry_choice`: the cheapest
|
||||
capable one with better evidence, else the strongest known usable one) after a second.
|
||||
- **One before-tool path, one refusal at a time.** `sisi/watch.py` runs, for every tool: workers and subagents
|
||||
are exempt from all of it; then the contract guard (a call that would change a project file, or delegate a
|
||||
build, with no valid unit: rule 3); then the delegation guard (a model is named and is not the main thread's
|
||||
own; a routing decision exists); then the direct-work budget. The agent sees only the first refusal in that
|
||||
order, so an agent told to delegate is never refused afterwards for a contract it was not told about. A
|
||||
refused call is not counted by the meter. Every stage fails open on its own.
|
||||
- **Repeat failure.** The fourth identical failing shell command (whitespace-normalised) with no file changed
|
||||
in between is refused once (rule 5).
|
||||
- **Unavailable workers.** A limit, quota, login or connection failure arriving as a delegation result or as a
|
||||
|
||||
+6
-2
@@ -25,9 +25,13 @@ Before any release that touches the hooks or the rulebook, run
|
||||
|
||||
python3 tools/live_orchestration_check.py
|
||||
|
||||
It starts the host's command-line tool headless with its least expensive model in two small temporary
|
||||
It starts the host's command-line tool headless with its least expensive model in small temporary
|
||||
projects, with the hooks from this checkout and a temporary `SISI_DATA` and `SISI_STATE` (the real sisi data is
|
||||
never read or written; the script asserts that it did not change). Scenario 1 asserts that the meter refused a
|
||||
never read or written; the script asserts that it did not change). Scenario 3 starts from a project with no
|
||||
open unit and a task that needs more than six calls, with a witness hook recording whether a valid unit stood
|
||||
behind each call: no file may change before one does, and the agent must meet the guards in the order the rules
|
||||
give (the contract before the budget), each refusal in at most twelve lines. `--model NAME` sets the main
|
||||
thread's model. Scenario 1 asserts that the meter refused a
|
||||
tool call with its message, that the session then ran `sisi route` and delegated with a named model or recorded
|
||||
a reason with `sisi unit direct`, and that the ledger or events hold the matching record. Scenario 2 uses a fake
|
||||
provider that always answers with a quota error and a reset time: the provider must be marked down until that
|
||||
|
||||
+5
-1
@@ -99,7 +99,11 @@ the host's own tool is written to the ledger by the hooks as a pending run with
|
||||
completed when it returns; `sisi delegate judge ID --outcome O --check C` then needs nothing else. A worker
|
||||
other than the router's pick is recorded as an override, and `sisi workers` ends with one line on how often
|
||||
and how they turned out. After a rejection `sisi delegate judge` prints `sisi route --retry-of ID`: the same
|
||||
worker with a better brief first, a stronger one after a second rejection.
|
||||
worker with a better brief first, then a worker whose evidence is strictly better (`routing.retry_choice`, the
|
||||
same ladder the capability routing uses). `sisi route --kind K` takes only the ledger's kinds (`impl`, `impl-multi`,
|
||||
`edit`, `tests`, `debug` build; `read`, `search`, `research`, `review`, `docs` do not; the list is data in
|
||||
canon/guard.json) and names them when given another; the decision is kept in the session's orchestration meter,
|
||||
which is also where the contract guard reads it to tell a build delegation from a read.
|
||||
|
||||
When a worker fails for a reason that is not about its work (a quota, limit, login or connection failure,
|
||||
arriving as a delegation result or as a host notice), the hooks record it down until the reset time in the
|
||||
|
||||
Reference in new issue
Block a user