Repository navigation
Warning: There are no backward compatibility guarantees and no migrations until v1, as the README says. A pool or store written by v0.5.0 or earlier may not load in v0.6.0, and the same will hold between 0.x releases and for v1 itself when it ships. Keep your pool in git, and expect to re-save.
v0.5.0 made checks honest. v0.6.0 is about knowing who wrote what, and what you are about to run. Pool records are now signed and can be timestamped, reviews are bound to the exact hash they read, and several functions can answer to one name without bb guessing which you meant.
Highlights
Signed records and anchoring
- With
bb whoami signing-key, everything you save is signed withssh-keygen: functions, mappings, lineage steps, worklogs and reviews.bb logshowsSigned:, andbb showprints what vouches for a function. bb anchorstamps every record with an OpenTimestamps proof, and takes a snapshot of the pool so a record removed later is noticed.- Signatures gate nothing. Only reviews decide what may run. A save never fails because signing did.
Reviews you can rely on
bb reviewasks security, correctness and readability one by one, and records the answers. A peer's approval counts only when it names all three.- Reviews are written once and signed. A new verdict is another review that supersedes yours.
- Approval is bound to the hash, not to whatever bytes sit under it.
bb run,bb show,bb edit,bb compile,bb updateandbb refactorall re-check the hash of what they run or rewrite. A swapped object is refused. - This came out of an adversarial review of the branch. Around twenty holes were closed, from review key matching to
bb updaterunning checks on a body nobody approved.
One name, several functions
- Several functions may answer to one name.
bb search NAMEsays how they relate (fork, same lineage, another origin, code alike, shared checks), and--compareruns each against the other's checks. bb.resolve("name")andbb.latestrefer to a name.bb.ref("<hash>")pins an exact version. A name is settled once, at the terminal or with--pick NAME=HASH. Agents should pass--no-ask.bb scratchpad --showandbb edit --showtell you what saving would do, before saving.bb search --pinnedandbb search --outdatedfind pins and debt,bb updatewalks lineage steps and pays it.
Smaller things
- A name on one code is one function, and a second lineage landing there is refused.
- A top-level name that means two things is refused, in a function and across a scratchpad.
bb logrunsssh-keygenonce per record, then remembers.- Python 3.11 is supported again.
bb migrateis gone, since there are no migrations before v1.
Where to chime in
Four open issues are where the design is still soft. Comments, counter-proposals and new issues are all welcome, including "this is wrong because...".
bb search --near(#95): query by example. Rank the pool by closeness to a function, across languages, with a reason for each match. How should "close" be measured?- Symbolic checks (#94): a check that returns a property is proved by Z3 for every input in a domain, or yields a counterexample. We would also like to hear how this could hint at property testing, such as generated inputs when a proof is out of reach, or a nudge when a check looks like a property. If you have a view, comment on #94, or open a new issue if it deserves its own thread.
- Predicate typing (#93): a type is a predicate stored in the pool, entry and exit
asserts state a function's domain and result, and signatures stay bare. - Sandboxing (#91): bb runs pool code in-process with your authority, and review is the only barrier. What should
bb run, checks andbb compileoutput run inside?
If you want something smaller, the good first issues are #79 (audit CLI error messages), #77 (proofread and translate the README into your language) and #76 (a fourth language in the "langue du feu" transcript). #81 asks for a transcript in your own language.
Thank you
- Chirag Jangir (@chiragjangiir) ran the tests on macOS in CI (#84) and wrote the "first 15 minutes" quickstart in CONTRIBUTING (#85).
- Niveditha Nagappan (@NivedithaNagappan) wrote the Tamil README (#92).
- To the stargazers, @tkersey, @braillescreen, @amazerisme, @lojikil and @shivanshjain456: thank you for the stars. A star tells a one-person project that someone is reading.
Anyone is welcome to open an issue, comment on one, or send a pull request, in any language.
Install
pip install beyondbabel==0.6.0
https://pypi.org/project/beyondbabel/
Full changelog: v0.5.0...v0.6.0