Repository navigation
khive v0.24.0
khive 0.24.0 adds the operation pack (khive-pack-operation), which describes multi-step work over loaded forms: operation types with slots and steps, which subject of a form fills which slot, and step types that name the values they require and produce. The forms pack now records what kind of document each form revision is, including outside systems, and names a field by its known names in other vocabularies. git.issue, git.pr_list and git.issue_list read a configured repository, neighbors and search answer in one call what used to take a get per record, and gtd.tasks has a compact page.
Added
neighborstakesprojection="full": each neighbor carries the record fields plus its
propertiesanddescriptionand the edge's metadata asedge_metadata, so one call answers
what took agetper neighbor.searchacceptsfollow=<relation>: each hit carriesfollowed, the targets its outgoing
edges of that relation reach, so a search for a wording returns the concept it names in one
call. Targets are read with the same visibility asneighbors; more than 100 targets per hit
setsfollowed_truncated. A multi-backend search refuses it.gtd.tasksacceptscompact=truefor smaller task pages with description lengths. Compact
pages use the same filters, task order, and continuation as full pages (#6914).git.issuereads one issue of a configured repository: its title, state, author, dates, label
names, whole body and comments in platform order, one hundred to a page for at most ten pages,
with the platform's comment count and whether fewer were returned. It says whether the number is
a pull request. Terminal escapes and control and format characters are removed from the text and
text_alteredsays when that changed anything; the text is returned as untrusted data. It is a
read: a[[git_write.allowed]]row withaccess = "read"admits it, and it writes no receipt.operation.resolvesays which slot of an operation type each subject of a loaded form fills: by
a recorded decision, by kind, role and qualifier, by a relation to a subject in another slot, or
carried by a subject that has a slot. A subject with more than one candidate is undecided, and
one nothing reaches has no slot.operation.deciderecords, with a reason, that subjects fill a
slot or are not of the type; decisions are kept beside the type, never changed, and keep
applying while their subject and their slot exist. A slot may now name a kind, a role, a
qualifier or a relation to another slot, andoperation.definerefuses a term the namespace has
not loaded, so the operation pack is selected besideformsandkg.forms.termslists the loaded terms with their aliases, andforms.subjectslists the subjects
of one form revision. A term may carry aliases, and two more term lists,counting_qualifiers
andcarrying_relations, sit beside kinds, roles and relations.operation.definepublishes step types on their own, and a step of an operation type may pin
one by id and version. A step may name the values it requires and produces and take a value
another step produces; a step that requires a value comes after the step that produces it.- The
formspack records what kind of document each form revision is. Adocument_typenode
(id,name,originofapplicant,third_partyorwork, optionalissuer_class)
contains its revisions;forms.loadtakes it asdocument_typeand mints one, markedminted,
for a form that declares none, and a later declaration replaces the guess. An item'srelation
says whether it asks for its field (the default), states it (a value printed on every document
of the type, whichforms.checknever asks and which an answer cannot fill) or requires an
attached document of a loaded type other than its own.forms.lintlists minted types and forms
no type contains, without counting them againstclean(#6892, ADR-223). forms.loaddeclares an outside system the way it declares a document type:
document_typewithsystem: truein place of anorigin. Every line of a system's record
states its field; an asking or requiring line on one is refused atforms.loadand
forms.add_item(#6904, ADR-222 Amendment 1).forms.neighbourhoodtakes a document type asdocument_type:<id>and gives its node whether
the type is a system and the forms it contains. On a field it addsstated_by: every line that
states the field, with its document type, form, revision, subject and role (ADR-222 Amendment 2).forms.loadtakesknown_as: [{vocabulary, name}]on a field and holds each name as the key
forms/<vocabulary>/field/<name>on the field, written with the load. A name another field
holds in the same vocabulary is refused, the same name in another vocabulary is accepted, and a
vocabulary named after an operation node type is refused (reserved_vocabulary). Export and
replay keep the names (ADR-222 Amendment 2).git.pr_listandgit.issue_listlist the pull requests or issues of a configured repository
in the requested state (openunlessclosedorallis named), newest created first, one
hundred to a page for at most ten pages, and say intruncatedwhether more matched.
git.issue_listomits the pull requests the platform lists among issues and counts them.
Hidden characters are removed from titles, refs, labels and logins andtext_alteredsays so;
the text is returned as untrusted data. Both are reads, admitted by a row with
access = "read", and write no receipt.- The runtime adds a caller key to an entity that already exists (
add_entity_key, and
entity_key_add_plansfor a caller that joins the add to its own atomic unit), under the rules of
a keyed create: the same limits and secret scan on the key, the same uniqueness per namespace and
base kind,key_conflictagainst another live holder, and nothing written for a key the entity
already holds. An add to a deleted entity is refused asentity_deletedand to a merged-away one
asentity_merged(ADR-221 Amendment 1).
Breaking (Rust crates)
khive_storage::scope_request_correlationandkhive_storage::current_request_correlation
are nowkhive_storage::scope_request_idandkhive_storage::current_request_id. These names
matchrequest_idin daemon frames and writer attempt rows (#6773).