Repository navigation
Releases
role-set 0.3.0
First PyPI release of role-set (a prototype): pip install role-set.
The one runtime dependency is now aspire-si-gates==1.7.6 from PyPI, in place of the git URL PyPI does not accept; 1.7.6 is the same source, so no gate changed. Added: PyPI metadata, a release workflow with trusted publishing, a dependency audit of the site tree in CI, and refreshed README translations. role-set --version now reports 0.3.0.
See the CHANGELOG.
v0.2.0
Prototype. Interfaces and data shapes can change without notice. Nothing this
version writes is training data until a person checks it. The headline is the
T10 generator: puzzles on the strict size words are now built in code, proven,
spread over structural cells, and held to R&D's variety floors by a record CI
checks.
Added
- The puzzle generator (
role_set.generate). Code builds a kind B puzzle and proves it, and a model only words it. The builder samples a hidden solution, adds clues that are true in it until the answer is fixed, deletes every clue the answer does not need, and proves that a named lazy reading of the trait gives a different answer. The readings are kept as data in a shortcut registry thatpuzzle-checkshares. Template wording round-trips throughcheck_text. Each receipt records the seed, tries, readings, three difficulty metrics, and the skeleton, pack and solver hashes. The design and R&D's rulings are indocs/generator-design.md. - The T10 cell table (#53). Each pack, question and seed maps to a structural cell: entity count (3 to 5), count word, k, and 0 to 2
ifclues. The usable cells are probed once and committed ast10_cells.jsonbyscripts/t10_usable_cells.py. Clues are now deleted in tiers (is, thenis_not, thenif). The variety comes from the cell table; tiered deletion is not credited with it. - The trait-clue test (#54). A T10 puzzle carries one count clue, and it is kept only when one of R&D's four readings ("exactly" as "at least", "exactly" as "at most", "at least" as "exactly", "at most" as "exactly"), applied to that clue alone, changes the answer. Claim cells use "exactly" only, because the other two words cannot change a claim's verdict. Set cells keep all three.
- The allocator (#49). For one question and one value count, a file of 20 seeds is assigned once, before anything is built, by a min-cost flow. Each pack's 20 seeds take 20 different cells. A cell with no
ifclue is used at most twice in a file. Other visits favour cells that gave more distinct skeletons on the tuning seeds (t10_capacity.json, fromscripts/t10_cell_capacity.py). - The capacity gate.
scripts/t10_usable_cells.py --checkreports supply, demand and headroom for each stratum, with each pack'sif-cell count, and fails with those numbers when a file cannot be placed. It reads the table and does not run inside a build. - The committed record and the dispatch sweep.
t10_record.jsonholds every recorded build with its cell, tries and canonical skeleton, and a sha256 over the files that decide those builds. The normal CI test job checks the hash and computes the variety floors from the record in minutes. The exhaustive rebuild runs as thesweepjob onworkflow_dispatchonly, and fails on any difference from the record.scripts/t10_variety_record.pyregenerates it, and--checkverifies it. - The
if_shapeclaim axis (#55). A claim cell also names the shape of itsifclues:none;posornegfor oneif;chain,shared_consequent,shared_antecedentordisjointfor two. Three-value packs go from 27 usable claim cells to 61 between them, no pack needs a cell without anif, and a test places twelve three-value packs with no repeat inside a file. On the locked seeds 101 to 120, three-value claims reach 118 of 120 distinct skeletons with a top repeat of 2. The record now covers seeds 1–20, 61–80, 81–100 and 101–120 (1,280 builds) and storesif_shapeon every entry. - The hash closure. A test holds the record's hashed file list closed under role-set's own imports, so a change to any module a hashed file imports also changes the hash.
- The T12 recipe: which edition was in force on a date, solved on
contains, with R&D's four T12 readings (the newest edition, the highest number, a boundary day handed to the next span, the month alone) registered as answer readings. - The selector (
role_set.generate.select): chooses a lesson's review file from receipts under the per-file shortcut floor and a position floor for dated lessons. Receipts record the answerposition. - Clue wording: at least three sentences for each clue form, and five more domain packs (a kitchen's pans, a workshop's machines, a train timetable, a garden's beds, a clinic rota) beside lamps, cups and doors, each with a sense block.
contains: the solver works out which edition was in force on a date from typed day records and spans. A date or clock time used as an entity is refused. The skeleton key records the span.roles/verifier/defects.jsonl: one row per defect class the reviews found, with how role-set handles it.readoutends with the open classes (--catalognames another file).write --closed-form: the gates' closed-form settings for written kind-E variants, resolved through the pinned gates. Every receipt records the settings.puzzle-checklists, without refusing, each puzzle that asks which entity holds a value while its Question line names neither the value nor a stem of it.docs/generator-design.md: the agreed design of the generator, with R&D's rulings.
Changed
- The README, the handbook and the landing page describe 0.2.0: the two role packs (the verifier, and the Advocate, approved and being built on #56), the T10 generator, the commands and the coverage floor. The handbook adds two pages, "The T10 generator" and "Role packs".
SECURITY.mdsupports 0.2.x. - Capacity weights are kept apart for two-value and three-value packs, and a cell's weight rises above 1 only when its tuning-seed probe had no failed build (#55).
- The zero-if cap is 2 in every stratum. It had been raised to 3 for three-value claims as a stopgap before
if_shape(#55). - An underdetermined puzzle's Question asks what could be ("could", "can", "might", "may", "possible").
puzzle-checkreads a two-value attribute's clues by what they say when it compares skeletons ("is not lit" is "is dark"; "at least 2 of 3 lit" is "at most 1 of 3 dark").- Clinic sessions are morning, afternoon or evening, and garden beds are damp, dry or waterlogged, so no state in a pack can be read as another.
- aspire-si-gates is pinned at 1.4.0 (aspire-si 388a6bc). The closed-form carry rule is the gates' own.
docs/role-set-design.mdmatches the program.- The README, handbook and landing page state the coverage floor instead of a test count.
Fixed
- Three-value claim items with an "at least" or "at most" trait passed on a second "exactly" count clue, so they tested "exactly" (class
trait_not_tested). The trait-clue test refuses them (#54). - Two-value and three-value packs pooled capacity weights, which over-weighted a set cell and made
cupsseed 84 fail its try budget at787ccf8(#55). - Three-value claims missed the top-repeat floor (a skeleton 4 times on the locked seeds) under the zero-if cap of 3.
if_shapeclears it (#55). - An underdetermined key that lists possible groups writes each group with "and" and separates groups with semicolons, so a flattened key no longer passes (aspire-si#106 round 3).
- The B solver refuses a puzzle whose Question line does not name the entity the model asks about (aspire-si#106).
puzzle-checknow refuses three copies that had passed under a negated or flipped two-value clue (T10-B-02 and T11-B-05 against T10-B-01, and T06-B-02 against T02-B-02).
Known
- One moderate Dependabot alert on the default branch is in the documentation site's build-time npm tree, not in the Python package:
postcss-selector-parser6.1.4 (CPU exhaustion on hostile selectors), pulled in by Starlight through expressive-code andpostcss-nested6. The fix is 7.1.6, whichpostcss-nested6 does not accept; it waits on expressive-code.
Not on PyPI: this release is a GitHub release only.
role-set 0.1.0
First release. Prototype. Interfaces and data shapes can change without notice.
Nothing this version writes is in a training set.
Added
planfixes every slot for a batch from a seed. It does not call a model.costestimates pod hours and dollars for a plan (two-cardorfrontier) before anything is launched. The figure is an estimate.pack syncandpack verifytake the role pack from a local aspire-si clone at a commit, and check the copy on disk.harvestcopies licence-checked excerpts into a local pool.writeis the runner.--mockruns it with no model and no spend. A real run talks only tohttp://127.0.0.1.readoutreports one run per lesson and kind.critic-controlmeasures the critic on reviewed items. The trait and answer legs are advisory until they pass their bars.ingestandstorerecord receipts. The firewall refuses sealed material, interview material, and DEV material during a stage. There is no read path for held-out material.pilot-autowaits for a loopback lane, writes, and can relaunch after a lost-call stop.puzzle-checkruns the kind B solver over a reviewed data file and its models sidecar. It covers finite assignment puzzles in its closed set of rule forms, at most 6 entities, 3 attributes, and 200,000 assignments.puzzle-checkrefuses a puzzle whose fact skeleton repeats an earlier one across the files checked together. Entities, attributes and values are renamed, and line order and clue direction are set aside, so a renamed or mirrored copy is caught.- The writer pin is Qwen3-235B-A22B-Instruct-2507, AWQ build, Apache-2.0. The critic pin is
gemma4:31b, by digest, Apache-2.0 inwriters.json. - Verdict and evidence checks refuse. Trait, answer, and flaw checks are recorded and do not refuse, until their controls pass.
- Every accepted receipt carries the plan hash and the pack hash. When the run used exemplars, the receipt also carries the exemplar commit and the exclude-file hash. When it used the stuck rule, the receipt carries that rule's hash. Every writer call is kept in
drafts.jsonl.