Rulings as hard lines, trigger lines and a language (kdnrg, 2026-11-14)
A session reads rulings only through the capped session notice, so the notice lists them by what a session needs to act on instead of newest first. A ruling recorded with --hard shows as always: <rule> in every session. A ruling recorded with --when "<trigger>" (an action or path such as before git push or before editing .cyberine/accept/) is grouped with every other ruling of that trigger into one line, <trigger> (<n> rulings): cyberine rulings show --when "<trigger>". A ruling with neither stays a dated gist line as before. Hard lines come first, then trigger lines, then gists; the cap and the +N more line work as before.
Recording: cyberine rulings add refuses, with nothing written, a rule over 120 characters (it prints where the notice would cut it) and one that starts with an option label such as D1-B: or A:. The --quote stays verbatim and uncapped, in the language the owner used. A ruling with no --when and no --hard is still recorded, with a hint. cyberine tasks decide --status owner takes the same --when and --hard and warns about the same shapes without refusing.
Language: the config key language (a tag such as en or vi) is the language sessions write a ruling's rule, title and trigger in. Precedence: CYBERINE_LANGUAGE, then .cyberine/config.local.json, .cyberine/config.json, then ~/.cyberine/config.json, then en; a hub's submodules read the board root's files. cyberine rulings add prints it in its receipt, cyberine rulings --json carries it, and cyberine rulings consolidate asks its worker to write in it.
Consolidate rewrites: besides retire and merge, each round may rewrite a ruling that is over 120 characters, starts with a label or has no trigger, into one short rule with a trigger (or hard) in the configured language. A rewrite is written only when a second worker, a different one from the worker that proposed it, approves it against the original rule and the owner's words; a refused or unchecked rewrite is listed under skipped. A merge is checked the same way when a second worker exists. A rewrite is a journal event that supersedes the original, so cyberine tasks decide --revert <ref> restores the original.
Run recipe:
cyberine config set language vi --local
cyberine rulings add "Run the typecheck before every push" --when "before git push" --quote "<the owner's words>"
cyberine rulings add "Never deploy to production without the owner saying deploy" --hard --quote "<the owner's words>"
cyberine rulings show --when "before git push"
cyberine rulings # counts per tier and how many the session notice here shows
cyberine rulings consolidate --dry-runKnown Limitations and Deferred Work: the CLI cannot tell which language a rule is written in, so the language is an instruction to the session and the consolidate worker, not a check. Rulings recorded before kdnrg have no trigger and show as gists until consolidate rewrites them. More than five hard rulings are all shown, so hard should stay rare. A trigger is matched by its text after lowercasing and collapsing spaces, so two spellings of one trigger make two lines. Nothing injects a ruling when a tool call matches its trigger yet (RULINGS-TRIGGER-HOOK, backlog). The byte budget (rulings.budgetBytes) is still the target consolidate shrinks towards; cyberine rulings no longer flags it as OVER, since no session loads the rendered ledger.
cyberine rulings add: record a standing owner ruling from plain words (kt2tk, 2026-11-13)
Run recipe: in Claude Code, say what you allow in your own message, naming Cyberine: "cyberine ruling: when the app needs a relaunch, do it yourself", "cyberine tu gio cu relaunch app, dung hoi...
Replacing an old ruling: may-replace candidates, --supersedes and --dry-run (k8s30, 2026-11-14)
Adding a ruling lists the active rulings it may replace, so a changed price or rule retires the old line instead of leaving two. No model runs: a ruling is a candidate when it has the same --when...