Commit Graph
371 Commits
Author SHA1 Message Date
swaitsandClaude Opus 5.5 13021cdde6 fault18: restore squashed lines to plain form
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 10:14:20 -07:00
swaits ee333dedb9 rules: validate and bound drops.jsonl before reading or replacing in organize_record 2026-12-03 10:13:35 -07:00
swaitsandClaude Opus 5.5 10688425c9 Tests: hide the running harness from in-process calls too, so the suite passes inside any harness
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 08:45:51 -07:00
swaitsandClaude Opus 5.5 7e0ff4f7bf Deadlock attack test on a fresh store: pick may refuse while the chore can still be handed out
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 08:32:29 -07:00
swaitsandGemini 4 Hydrogen 6cd06055c3 Fix offered-models review findings, warn on duplicate node worker, update docs
Co-Authored-By: Gemini 4 Hydrogen <noreply@google.com>
2026-12-03 08:31:42 -07:00
swaits 308def95ca Merge branch 'offered-review' into offered-fix 2026-12-03 08:21:33 -07:00
swaitsandGLM-5.4 09a930d89f join-fix: offered-list bugs, judge --node, suite green, cap at the measured count
sisi/models.py
- judge(): a worker listed in both the table and the wheel was found twice, so
  every `out` verdict was refused as "not one worker"; one row per worker now,
  the wheel's first (fault behind 9 of the 21 failing tests).
- wheel() and `models offered --record`: a row's id is matched as written, not
  lower-cased, so ids like opencode-go/Claude-Haiku-5-5 stay on the wheel.
- choose(): takes `tried` (from track(), one pass over the log) instead of
  re-reading the outcomes log per row; it is a pure function of its arguments again.
- judge --node ID: closes the job that runs that plan node when one worker runs
  two (sisi fault #19); refuses, changing nothing, when that node is not a job
  of the named worker here. Works for `extend` too.
- offered(): calls store.harness() (the temporary stub is gone).

sisi/store.py: DEFAULTS and harness() take 4 fewer lines.
sisi/cli.py: HELP lists --node and the offered_hours setting.
canon/core.md rule 5: restores "and keep being tried on such work"; paid for
  by three wording changes in the same rule. 134 lines, 11263 chars.

tests/test_core.py: 21 failing tests fixed (fixtures with an offered list or a
judged record; tests of the removed `out until` notes trimmed to their
log-based parts); one new test for judge --node; cap 3080 -> 3153 (measured).

Co-Authored-By: GLM-5.4 <noreply@z.ai>
2026-12-03 08:20:00 -07:00
swaitsandGemini 4 Hydrogen c39c9de25b Add adversarial review tests for offered models wheel
Co-Authored-By: Gemini 4 Hydrogen <noreply@google.com>
2026-12-03 07:47:08 -07:00
swaits 75f3035141 Merge branch 'offered-canon' into offered-join 2026-12-03 07:38:51 -07:00
swaits 2fcf281e8e Merge branch 'offered-fixtures' into offered-join 2026-12-03 07:38:51 -07:00
swaits 00e29b57a8 Merge branch 'offered-tests' into offered-join 2026-12-03 07:38:51 -07:00
swaits 1d4edfe011 Merge branch 'offered-core' into offered-join 2026-12-03 07:38:51 -07:00
swaitsandClaude Sonnet 5.5 e35dd49828 Pick only from models the harness offers: saved raw list is truth, table is a hint
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 07:38:35 -07:00
swaitsandClaude Sonnet 5.5 49375e76d0 Rule 5: lead feeds sisi models offered the host's model list before picking
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 07:36:42 -07:00
swaitsandClaude Haiku 5.5 b95c9ee37f Tests: sisi pick only returns offered models (black-box, 8 cases; fail until the feature lands)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-12-03 07:36:19 -07:00
swaitsandClaude Haiku 5.5 8c4fdf944e tests: write the offered-models list beside every models table fixture
Adds an offered(data_dir, text) helper, called from Core.table() and from each direct models.md write in the store; pops CLAUDE_CODE_ENTRYPOINT in the test env.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-12-03 07:36:01 -07:00
swaitsandClaude Haiku 5.5 f1dbc535a5 Harness name from the tool's own env var; offered_hours default
store.harness() returns the first canon/harnesses.json entry whose
'here' env var is set (claude: CLAUDE_CODE_ENTRYPOINT), as name-value,
else 'unknown'. Adds offered_hours: 24 to DEFAULTS.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-12-03 07:35:29 -07:00
swaitsandClaude Fable 5.2 3a349a3859 Planner prefers many small exact nodes; slow checks wait for a downstream join
ci / test (push) Waiting to run
The planning brief now asks for many small, exactly specified nodes a near-free
model can do well and fast, each proven by the quick test of its own change, with
the full suite deferred to a join node that merges its needs, runs it once and
fixes what broke. The pick header names each needed node's branch so a join
knows what to merge. Rule 5 says the same in one character less.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 17:19:17 -07:00
swaitsandClaude Opus 5.5 2af7a5ae01 Project rule from retro: size check before merging lines into sisi/
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:34:17 -07:00
swaitsandClaude Opus 5.5 dec84678e9 rules: fold the read-order comment onto its line (product size back to 3079 of 3080)
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:27:54 -07:00
swaitsandClaude Opus 5.5 f7f37dffe3 Session start reads the store's old rules before the project file
ci / test (push) Waiting to run
_move and _apply write the project file first and remove or commit the
store copy second, so a reader that never waits must read the store copy
first: it then either sees the lines there or the project file is already
complete. Reading the project file first could miss both (fault 6).
Adds a deterministic test that runs a whole move between the two reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:07:18 -07:00
swaits cb442e7d6f Fix command-name substitution and rules move with duplicate at destination
ci / test (push) Waiting to run
2026-12-02 11:49:32 -07:00
swaits 6477fc66d2 Project rules organized: merge the two loaded-text budget rules
ci / test (push) Waiting to run
Keeps every owner rule and the suite-time rule from 51ec1e1; the earlier
organize had deleted eight owner lines without a store record.
2026-12-02 11:26:31 -07:00
swaitsandClaude Opus 5.5 51ec1e1b75 Project rules organized: product lines queued for core, generic test rules to user
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:21:43 -07:00
swaitsandClaude Opus 5.5 87d5fb8336 Shared models baseline re-checked 2026-12-02; project rule from retro
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:15:40 -07:00
swaitsandClaude Opus 5.5 f0ff5845ca Gate: keep check and retro blocks when only a lead node is ready; only the join's own block goes
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:59:21 -07:00
swaitsandClaude Haiku 5.5 caefb1eaa6 Gate: a turn may end while only a lead-class node is ready
The lead's own join node no longer blocks the end of turn; worker nodes
ready and undispatched still block. The lead may be waiting on its own
background job.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-12-02 10:58:14 -07:00
swaitsandClaude Opus 5.5 9ae16c17d0 test: models research brief first line carries the chore id
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:22:00 -07:00
sisi 8aa79ab492 Chore briefs carry a one-time id: delegate the first line, worker prints the brief by id 2026-12-02 10:21:31 -07:00
swaitsandClaude Opus 5.5 62e79b8342 Hook import-time test: best of 5, and on a loaded machine judge sisi's share against the standard library of the same run
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:53:16 -07:00
swaitsandClaude Opus 5.5 5f83524b5f Plan: chores bound to their printed brief, longest field is the brief, shell node lines on any line, no --fail on running nodes, damaged needs and orphan state dropped; budgets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:28:28 -07:00
swaitsandClaude Opus 5.5 91036fa6d2 Size budgets: code 3070 lines, rulebook 11269 chars (plan, efficiency, auto-update)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:18:06 -07:00
swaits 3dc3ee3816 Merge join (auto-update) into plan-dag 2026-12-02 09:15:23 -07:00
swaitsandClaude Opus 5.5 df744edc7c Plan fixes: issued chores only, brief from any field, first-line node, exact judge match, concurrency-based isolation, running nodes kept on re-record, lead join, damaged state; single claim path, one outcomes pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:15:23 -07:00
swaits ffb38fc7f6 README: auto-update 2026-12-02 09:15:08 -07:00
swaits c2f94ac76c Merge branch 'auto-update' into join 2026-12-02 09:15:00 -07:00
swaits a03568ed46 Auto-update: detached daily check at session start releases new main; one-line notice next session 2026-12-02 09:13:08 -07:00
swaits c3dc6b6e35 Keep SPEC.md unchanged (it is checksummed) 2026-12-02 09:08:35 -07:00
swaitsandClaude Opus 5.5 a8974c02cc Rule 5: total-cost class choice, plan graph before handoff, one efficient model per provider; docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:01:14 -07:00
swaits a3e717af36 Merge branch 'plan-dag' into join
# Conflicts:
#	sisi/store.py
2026-12-02 09:00:17 -07:00
swaitsandClaude Opus 5.5 cadae3cc8c Plan graph before delegating: sisi plan, pick --node, deny delegations outside the plan, gate on ready nodes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:59:35 -07:00
swaitsandClaude Opus 5.5 2175b566a8 Models table: one most-efficient row per provider per class, spread load by plan windows
Research brief asks for provider and efficiency columns (published allowance with URL and
5h/week/month request windows), at most one row per provider per class, most efficient first,
and is marked as a sisi chore; ASK sends it to a hard-class worker with web search.
research_record refuses missing provider/efficiency and duplicate provider+class rows.
The wheel weights each worker by its plan's share left (sisi's own delegations against the
table's request windows, floored at 0.05); sisi models prints estimated plan use.
research_days 7 -> 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 08:47:02 -07:00
swaitsandClaude Opus 5.5 25b5e90c6b Merge duplicate problems via rules organize alias map
ci / test (push) Canceled after 0s
- List every canonical problem (number, name, one cause) in organize_brief and ask for optional `## same problems` lines `N = M`.
- Record validated aliases into `rules/problems.json` with the organize commit, skipping unknown numbers, cycles, and bad lines with messages while still recording the rest of the organize; include `rules/problems.json` in `rules.revert()`.
- Resolve cited numbers, names, misses, 2nd-miss faults, drop lookups, and per-rule recurrence notes through the alias map while preserving existing problem numbers; show merged names under their canonical problem in `sisi retro`.
- Add tests with 3 real duplicate pairs from the blind set (watched failing on main first), update `test_the_product_stays_small` (2481 -> 2530, +49), and add CLAUDE.md guards to all touched test classes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:02:03 -07:00
swaits 68b6226aa6 Revert "Merge branch 'p3-problem-suggest'"
ci / test (push) Canceled after 0s
This reverts commit 2e3a114c8e, reversing
changes made to 0660ee13d6.
2026-12-01 16:51:04 -07:00
swaits 6edfa6d860 Merge branch 'p4-rule-problem'
# Conflicts:
#	tests/test_core.py
2026-12-01 16:50:48 -07:00
swaits 2e3a114c8e Merge branch 'p3-problem-suggest'
# Conflicts:
#	tests/test_core.py
2026-12-01 16:50:48 -07:00
swaitsandClaude Opus 5.5 9f167f8f50 Tag retro rules with problem number and show recurrence in rules listing and organize brief
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:50:15 -07:00
swaitsandClaude Opus 5.5 4b0326ba7c retro: suggest an existing problem when a new name looks like it
Content-word overlap (stemmed, filler dropped), threshold 0.3 picked on
12 labelled real pairs (11/12) with 12/12 held out. The retro always
records as given; the suggestion is one line, never a refusal. The
report listing annotates the top lookalike pair. Product 2426->2454 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:49:23 -07:00
swaits 0660ee13d6 Move edge cases: exact match, dash-prefixed rules, two-level organize, final canon, rolled-back commit failures
ci / test (push) Canceled after 0s
- move prefers an exact whole-line match over a strict prefix,
  otherwise refuses listing the candidates; a leading '- ' on the
  prefix and extra spaces are accepted by collapsing whitespace.
- organize says plainly when identical lines from two levels become
  one copy, or now sit at two levels, instead of printing move-back
  commands that would lose one copy; those lines are excluded from
  the printed back commands.
- move to canon is final: it is recorded as such, revert says so
  plainly, and refusal messages name the exact command to run.
- A failed store git commit in _apply restores every file (store
  files and last-project.json included) so the store is clean, and
  both move and organize refuse naming the exact command to rerun.
- Tests: seven new reproducers (each watched failing on main), one
  updated commit-failure test whose organize half asserted the old
  leave-it-dirty behavior, size budget 2426 -> 2444.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:48:01 -07:00
swaitsandClaude Opus 5.5 1e1f26616e Project rules: two rules moved here from the user list (placement cleanup)
ci / test (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:31:39 -07:00