Commit Graph
350 Commits
Author SHA1 Message Date
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) Waiting to run
- 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) Waiting to run
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) Waiting to run
- 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) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:31:39 -07:00
swaitsandClaude Opus 5.5 2a68ead05f revert no longer undoes moves between levels; it names the command back
A change that moves rules between levels (sisi rules move, or an organize
that moves lines across levels) prints the exact reverse command when it
succeeds, and revert after it changes nothing and prints the same command.
Revert keeps undoing learn, retro and single-level organize. The multi-file
undo record and its restore loop are gone.

Fixes the five findings of the fix review: a store with no .git starts its
history with the rules as they are (no undo goes past them); revert reads the
undo record even when its bytes did not change; a trailing slash in SISI_DATA
is still the store; organize takes the user lock and refuses a linked
drops.jsonl. Also: rules usage names canon; a non-UTF-8 file is named.
Product code 2427 -> 2426 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:28:30 -07:00
swaitsandClaude Opus 5.5 064cd6f5ca rules move and organize never lose or duplicate a rule; one move is one undo
ci / test (push) Waiting to run
Validate source and target before any write; write project files then one store
commit carrying every project file's undo record, rolling all back on a failed
write. Queued core rules load as user rules until moved to canon. Organize
records user-only work outside git so the level audit runs there. Fixes the
ten findings of the strict-placement review, each with an acceptance test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:06:45 -07:00
swaits 058d6e3e56 Merge branch 'strict-placement'
ci / test (push) Waiting to run
# Conflicts:
#	tests/test_core.py
2026-12-01 15:46:08 -07:00
swaitsandClaude Opus 5.5 c07ce2176b Retro prompts and usage show --level, so the strict level never trips an agent that copies them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:45:56 -07:00
swaitsandClaude Opus 5.5 bbf21ef178 Strict rule placement: every rule names its level; core queue; rules move; level audit; unknown flags refused
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:45:21 -07:00
swaitsandClaude Opus 5.5 64b748b32e Project rule (owner): regular automatic placement audit
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:34:31 -07:00
swaitsandClaude Opus 5.5 d4e11600cb Size budget back to the product's size (2288)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:31:33 -07:00
swaits 6632a82f77 Merge branch 'p5-wheel-bad' 2026-12-01 15:31:28 -07:00
swaitsandClaude Opus 5.5 33ca3d3c4d Scale wheel weight by recent good/bad quality factor
Multiply each worker's wheel weight by a normalized Laplace quality
factor over its last 10 good/bad verdicts, ((good+1)/(n+2))/((n+1)/(n+2))
= (good+1)/(n+1), ignoring out and extend. Workers with no bad runs keep
their full weight (factor 1.0); workers with all bad runs floor at 1/11
so they remain pickable and picks are never refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:24:09 -07:00
swaitsandClaude Opus 5.5 4e549dedde Shorter rulebook stamp; size budget 2290 for the approved proposal
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:20:05 -07:00
swaitsandClaude Opus 5.5 2083bbbd78 Retro records name the rulebook they ran under
Each retro record carries rules: a 12-hex sha256 of the loaded core rulebook plus the project's rules, its char count and its rule-line count, so work before and after a rule change can be compared.

Known: tests/test_core.py test_the_product_stays_small now fails (2293 lines vs the 2283 budget; this adds 10 lines).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:16:52 -07:00
swaitsandClaude Opus 5.5 5e39baaa30 Project rules organized
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:53:49 -07:00
swaitsandClaude Opus 5.5 d65ee6e547 README: hooks remind and note, they do not refuse (only the Stop hook blocks)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:53:49 -07:00
swaitsandClaude Fable 5.2 2055d4bb48 Project rule: in-process tests use the temp home; guard the person's rules file
ci / test (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 16:41:53 -07:00
swaitsandClaude Fable 5.2 6e73cca4a1 Merge: store files are written under the store lock with their commit; tests cannot write the person's rules file
ci / test (push) Canceled after 0s
Fixes the CI failure in run 46195092165 (short read while indexing rules/last-project.json).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 16:39:10 -07:00
swaitsandClaude Fable 5.2 c91d5ed8a5 Project rule: probe a worker reported as not confirmed before accepting the table
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 16:39:10 -07:00
swaitsandClaude Fable 5.2 62e494de8e Tests: no background git upkeep in test projects
The setup commit started a detached git gc that pruned the tripwires test's fake .git/worktrees folders later under load (7 of 16 runs failed with four loops at once; 0 of 40 after).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 16:39:10 -07:00
swaitsandClaude Fable 5.2 6292f5c45e Store commit fix: fit the size budget (put paths are committed without being named twice)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 16:09:59 -07:00
swaitsandClaude Fable 5.2 6477f22933 Tests: in-process helper uses the temp home; guard fails any test that writes the person's own rules file
The new organize test rebuilt the rulebook in-process with the real home folder and re-pointed ~/.claude/CLAUDE.md at a deleted temp store.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 15:55:47 -07:00
swaits 4c32469a58 Store commits: write the files they stage under the store lock; reads take no optional lock
A commit under the store lock read a store file as another process replaced it
outside that lock. git: "short read while indexing rules/last-project.json"
(CI run 46195092165), then "rules/user.md" from rules organize. The undo
snapshot and organize's two store files are now written inside store.commit,
under the lock. sisi's own unlocked `git status` also held index.lock against
those commits ("Unable to create index.lock: File exists"): git calls take no
optional lock. The first line of git's stderr stays in the message.
2026-11-28 15:53:39 -07:00
swaits 94178e9b04 Merge: note at delegation when a brief for something the person will look at states no look
ci / test (push) Canceled after 0s
2026-11-28 15:02:38 -07:00