Changelog
All notable changes to this project are documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[22.1.0] - 2026-11-30
Section titled “[22.1.0] - 2026-11-30”Generated from engine main 662392b87e: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Minor: no closed
union of the SDK widened or narrowed, and no method, request or response
shape changed. OsfqlErrorType is an open union, so its new member breaks
no switch. The engine changes below are behaviour, as 18.2.0’s were.
Behaviour changes on the engine
Section titled “Behaviour changes on the engine”AGENTstatements need an attested user (reasoninglayer#1259). Every agent item records the user (user:<uuid>) whose statement wrote it, and anAGENTstatement sees and changes only the caller’s own items, unless the caller’s gateway policy grants Write on the agent item records. A request withoutX-Authenticated-Useris refused withrefusal.codeprogram_registrant_not_actor. SetClientConfig.authenticatedUser, orRequestOptions.authenticatedUserfor one call (22.0.0). A plan id is now opaque (p<uuid>); do not parse it.- The agent routes answer
403, not503, for a gateway context (#1273).listAgents,createAgent,addBelief,addGoal,runCycleanddeleteAgentanswer a request that carries a gateway authorization context with aForbiddenErrorwhose code iscognition_profile_unavailable(Cognitive.CognitiveAgentErrorCode), where they answered an uncoded503(ServiceUnavailableError). Code that caught the503for this case must test the code instead.agent_not_yoursrefuses a caller that is not the agent’s owner. - A lost commit on a program door is a
409(#1268). OSFQL answers it witherrorTypeterm_changed_concurrently(isOsfqlTermChangedConcurrently); GQL, Cypher, Gremlin, the causal, CDL, demo-seed, ontology-import, scenario, channel-webhook, SPARQL-update, KIF and RDF doors answer the coded body (isTermChangedConcurrently,refs.termwhere the body has it). Nothing is written; read again and retry. - RDF imports judge bound constraints (#1260).
ingestRdfanswers a refused term with the409ofterms.createTerm; withsync: false, and in a chunked upload, the session document fails with theerrorCodeanderrorRefusal. - OSFQL reports the caller’s own demons only (#1272). The answer lists
refused firings and deferred demons as counts, and why a release stopped
on its budget;
DESCRIBE TRIGGERSshows a demon’s refusal status to its registrant.
isOsfqlTermChangedConcurrently(error);term_changed_concurrentlyinOsfqlErrorType.Cognitive.CognitiveAgentErrorCode(agent_not_yours,cognition_profile_unavailable).@throwsfor the lost-commit409on the program doors, the RDF bound refusal, the agent routes’403, and theAGENTnotes onosfql.execute.
Contract run against the dev engine (build bee2d8af58: main 662392b87e at runtime; its served spec equals main’s)
Section titled “Contract run against the dev engine (build bee2d8af58: main 662392b87e at runtime; its served spec equals main’s)”593 tests: 569 passed, 0 failed, 24 skipped (2026-11-30). The skips are the
same 24 as the 22.0.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-662392b87e.contract.test.ts (3 tests) proves the
AGENT refusal without an attested user, its registration with
RequestOptions.authenticatedUser, and the coded 403 of an agent route
under a gateway context. The lost-commit 409s need a concurrent writer,
and the RDF bound refusal an RDF fixture with a bound constraint; unit
tests and the spec cover their wire.
[22.0.0] - 2026-11-30
Section titled “[22.0.0] - 2026-11-30”Generated from engine main 9a0535d897: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Major, because
two closed unions widened: TermWriteErrorCode gains
engine_feature_write_refused, and SortBoundConstraintErrorCode gains
bound_feature_undeclared.
Migrating to 22.0.0
Section titled “Migrating to 22.0.0”AWAITneeds an attested user (reasoninglayer#1256). An OSFQLAWAITregisters its demon as the user that sent it, and the demon fires with that user’s grants. The engine reads the user fromX-Authenticated-User(user:<uuid>). The SDK sends it fromClientConfig.authenticatedUser, and now also from the new per-callRequestOptions.authenticatedUser. A request without it is refused withrefusal.codeprogram_registrant_not_actor; anAWAITon a trigger sort the caller may not read is refused withprogram_trigger_unreadable. Behind a gateway that sets the header, nothing changes. A server that calls the engine directly must name the user.- Add the new arms to exhaustive switches.
Terms.TermWriteErrorCodegainsengine_feature_write_refused:POSTandPUT /api/v1/termsandPOST /api/v1/inference/factsanswer it as a422for a feature only the engine writes (_derived_by,_pref_user, …), and OSFQL answers it asrefusal.code(#1269).Sorts.SortBoundConstraintErrorCodegainsbound_feature_undeclared. - A bound constraint may not hold a constant (#1265).
createSortand OSFQLCHECK ONrefuse a target or a source name that no feature of the sort declares, when the name is all digits or the sort is@closed(422bound_feature_undeclared). Bound a feature by a constant with@range(min, max). On an open sort,CHECK ONadmits another undeclared name and reports a warning indiagnostics. updateTermwithoutifMatchcan answer409(#1258). The patch commits on the stored term it was applied to; when another write changes the term first, the engine runs the patch again, and after a few runs answersterm_changed_concurrentlywith nothing written. Before, the write was last-writer-wins. SendifMatchto get412instead.
Engine main 9a0535d897 (round 37)
Section titled “Engine main 9a0535d897 (round 37)”RequestOptions.authenticatedUser: theX-Authenticated-Userheader of one call, overClientConfig.authenticatedUser.OsfqlRefusaldocumentsengine_feature_write_refused,program_registrant_not_actor,program_trigger_unreadableandbound_feature_undeclared.osfql.executedocuments thatAWAITneeds an attested user, thatMARK READnames a message by its message id, and that runtime-record setters are durable and check the record’s owner.terms.createFrameCommentdocuments its409s:term_id_unavailablefor an occupied comment id (#1265) andterm_changed_concurrently.
Changed
Section titled “Changed”- An action’s put and remove edits record term history in the action’s
commit (#1264). A same-id re-post of a sort may not loosen its
data_class(data_class_loosened, #1265).
Contract run against the dev engine (build 9208a7f58e: main 1a8b5798bb and #1256; its served spec equals main 9a0535d897’s)
Section titled “Contract run against the dev engine (build 9208a7f58e: main 1a8b5798bb and #1256; its served spec equals main 9a0535d897’s)”590 tests: 566 passed, 0 failed, 24 skipped (2026-11-30). The skips are the
same 24 as the 21.0.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-9a0535d897.contract.test.ts (7 tests) proves that
AWAIT is refused without an attested user and registers with
RequestOptions.authenticatedUser, engine_feature_write_refused on OSFQL
and createTerm, and bound_feature_undeclared with the open-sort warning.
The 21.0.0 test of an engine-written feature now asserts its code. The dev
build does not hold every commit of main: the 409 of an updateTerm
without ifMatch after re-runs (#1258) needs a concurrent writer and rests
on the spec, and the action term history (#1264) is behaviour without a
wire change.
[21.0.0] - 2026-11-30
Section titled “[21.0.0] - 2026-11-30”Generated from engine main 62c752370f: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Major, because
two closed unions widened: SessionDocumentFailureCode gains sixteen
refusal codes, and ConstraintViolationCode gains
term_changed_concurrently.
Migrating to 21.0.0
Section titled “Migrating to 21.0.0”- Add the new arms to exhaustive switches.
Ingestion.SessionDocumentFailureCode(SessionDocument.errorCode,DocumentBatchResultDto.errorCode,RefusedDocument.errorCode) gains the bound refusals (bound_constraint_violated,constraint_over_unread_data,dependant_not_writable,dependants_exceed_commit_budget,dependant_changed_concurrently), the write refusals (governed_sort_write_refused,reserved_sort_write_refused,sort_write_not_granted,filing_term_unread,operational_authority_denied,operational_authority_undetermined,operational_rule_conclusion,authz_rule_shape,authz_parent_of_sort_refused,authz_relation_derived) andterm_changed_concurrently(reasoninglayer#1253).Terms.ConstraintViolationCodegainsterm_changed_concurrently. - A broken read premise is now coded (reasoninglayer#1263). The
uncoded
409that 20.0.0 described is the coded bodyterm_changed_concurrently, with the changed term inrefs.term. Test it withisTermChangedConcurrently(error); read the term witherrorBodyRefs(error)?.term. Every premised write answers it. - A second decision on a review is a coded
409(#1263). Approve, reject, merge and correct answerreview_not_pending(read it witherrorBodyCode) when another decision took the review. Do not retry it. ConstraintViolationError.constraintchanged its text (#1262). It is the declared relation, asCHECK ONwrites it (paid <= about.limit), where it was a debug rendering (UpperBound { target: "paid", … }). Code that parsed the old text must change.- Ingestion refuses a whole document (#1253). A document a bound
constraint refuses throws a
409ConstraintViolationErroron the synchronous routes (ingestDocument,ingestMarkdown,ingestAudio,resumeDocumentIngestion), and a write the caller may not make throws a403ForbiddenErrorwith aGovernanceRefusalCodebody. Nothing of the document is committed. In a session or a batch, the document fails with the code anderrorRefusal, and the batch lists it inIngestionStatsDto.documentsRefused. @keywrites (#1255).inference.bulkAddFactsmerges every item by@key, against the store and against earlier items;factsAddedcounts only new facts. An action put of a stored id writes the term it names, and a key rewrite onto another stored term’s value is422rejected. A write whose keys name several stored terms is refused (OSFQLkey_identity_conflict).- OSFQL runtime records are engine records (#1254). A client write to
a runtime record sort answers
governed_sort_write_refused;INSERT,UPDATE,CURRYandAPPLYrefuse an engine-written feature with a422(“feature … is written by the engine”);POP GOALneeds a write grant on the goal’s sort.
Engine main 62c752370f (round 36)
Section titled “Engine main 62c752370f (round 36)”isTermChangedConcurrently(error).Ingestion.SessionDocumentRefusal(termId,feature,constraint; an empty wire string is read as absent) onSessionDocument.errorRefusalandDocumentBatchResultDto.errorRefusal;DocumentBatchResultDto.errorCode;Ingestion.RefusedDocumentandIngestionStatsDto.documentsRefused.OsfqlRefusaldocumentskey_identity_conflict(candidates2, read as “two or more”).@throwsfor the new409and403of the ingestion routes, thereview_not_pendingandterm_changed_concurrently409s of the review routes,term_changed_concurrentlyonterms.updateTerm, and the key refusals ofactions.applyAction.
Known engine gap
Section titled “Known engine gap”- The OSFQL refusal of an engine-written feature has no
refusal.code(reasoninglayer#1269); only its message identifies it.
Contract run against engine main 62c752370f (dev engine build f71ef9a6ac; its served spec equals main’s)
Section titled “Contract run against engine main 62c752370f (dev engine build f71ef9a6ac; its served spec equals main’s)”583 tests: 559 passed, 0 failed, 24 skipped (2026-11-30). The skips are the
same 24 as the 20.0.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-62c752370f.contract.test.ts (5 tests) proves the
declared form of a broken constraint, review_not_pending on a second
approval, the OSFQL key_identity_conflict, the bulk-fact @key merge, and
the refusal of an engine-written feature. A bound refusal of an ingested
document and term_changed_concurrently need a document parser or a
concurrent writer; unit tests cover their wire.
[20.0.0] - 2026-11-29
Section titled “[20.0.0] - 2026-11-29”Generated from engine main d779b31031: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Major, because
three closed unions widened: GovernanceRefusalCode gains
constraint_over_unread_data, ConstraintViolationCode gains
dependant_not_writable and dependant_changed_concurrently, and
SortCreateErrorCode gains bound_constraint_over_engine_records.
Migrating to 20.0.0
Section titled “Migrating to 20.0.0”- Add the new arms to exhaustive switches.
Governance.GovernanceRefusalCode(GovernanceRefusedError.code,OsfqlRefusal.denialCode,RejectedBulkItem.code) gainsconstraint_over_unread_data;Terms.ConstraintViolationCodegainsdependant_not_writableanddependant_changed_concurrently;Sorts.SortCreateErrorCodegainsbound_constraint_over_engine_records. - The two uncoded dependant refusals of 19.0.0 are coded
(reasoninglayer#1251). A dependant the caller may not write as adjusted
answers
codedependant_not_writable(isDependantNotWritable); a dependant another writer changed while the write was judged answersdependant_changed_concurrently(isDependantChangedConcurrently), with the dependant inrefs.dependant(errorBodyRefs). Code that readcode === undefinedfor these refusals must test the new codes. - A broken read premise is a
409, not a400(reasoninglayer#1249). When another writer changes, removes or re-owns a term that a premised write read (a review merge or correction, a facet narrowing, a governed rename cascade, frame comments, page revisions), the write throws aConstraintViolationError(409), where it threw aBadRequestError. Nothing was written; read again and retry. A governed cascade declines instead and reports it incascadeSkipped. - No bound constraint above engine records (reasoninglayer#1249). A
bound constraint on a sort whose subtree holds a
@governedor engine-authored sort is refused:sorts.createSortand the ontology imports answer409bound_constraint_over_engine_records, and OSFQLCHECK ONanswers it asrefusal.code(422). Declare the constraint on a sort below it.
Engine main d779b31031 (round 35)
Section titled “Engine main d779b31031 (round 35)”isDependantNotWritable(error),isDependantChangedConcurrently(error)anderrorBodyRefs(error), which reads therefsmap (role → term id) of a coded error body.inference.bulkAddFactsdocuments its new409: with ownership declarations, a fact that breaks afailbound constraint refuses the whole batch; and the dependant refusals of #1245. An item a bound constraint over unread data refuses is rejected withcodeconstraint_over_unread_data(#1238).OsfqlRefusaldocumentsbound_constraint_over_engine_records(#1249),reference_term_unknownonCOPY,MERGE,IMPORTandUSE(#1239), andbound_constraint_violatedfor a dependant’s axiom (#1245), whosesortnames the dependant’s sort.
actions.applyActiondocumented a dependant refusal of a put as a409ConstraintViolationError(ts-sdk#88). The engine answers422with outcomerejectedand areasonthat names the dependant, for a refused dependant, an unwritable dependant and more adjusted dependants than one action holds. Only the bareconstraint_over_unread_datarefusal and a concurrently changed dependant (the conflict outcome) are409s.
Contract run against engine main d779b31031 (dev engine build be9846b623; its served spec equals main’s)
Section titled “Contract run against engine main d779b31031 (dev engine build be9846b623; its served spec equals main’s)”578 tests: 554 passed, 0 failed, 24 skipped (2026-11-29). The skips are the
same 24 as the 19.0.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-d779b31031.contract.test.ts (4 tests) proves the
422 rejected answer of an action put that a dependant refuses, the
coded bulk-fact item constraint_over_unread_data, and
bound_constraint_over_engine_records on createSort (409) and OSFQL
CHECK ON (422). The PUT test for an unwritable dependant in
engine-430dc1ede4.contract.test.ts now asserts dependant_not_writable.
[19.0.0] - 2026-11-29
Section titled “[19.0.0] - 2026-11-29”Generated from engine main 430dc1ede4: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Major, because
two inputs narrowed and one closed union widened: BoundConstraintDto’s
constraintType and onViolation are closed unions, not string, and
ConstraintViolationCode gains dependants_exceed_commit_budget.
Migrating to 19.0.0
Section titled “Migrating to 19.0.0”- Type bound-constraint kinds and actions as the closed unions
(reasoninglayer#1247).
Sorts.BoundConstraintDto.constraintTypeisSorts.BoundConstraintKindDto(upper,lower,less_than,equal), andonViolationisSorts.ViolationActionDto(update,fail,warn,residuate). A caller that passes astringvariable stops compiling: type it as the union, or narrow it first. The engine now refuses any other value onPOST /api/v1/sortswith a plain-text422that has no code, so a misspelt value that the engine used to accept is now refused. - Handle
dependants_exceed_commit_budget(reasoninglayer#1245). An exhaustiveswitchoverTerms.ConstraintViolationCode(ConstraintViolationError.code) needs the arm. Test it withisDependantsExceedCommitBudget(error). - Expect a
409from a write to a referenced term. A write now re-judges every term whose bound constraint reads a feature it changes (a dependant), onterms.updateTerm, a@keymerge ofterms.createTerm,terms.bulkCreateTerms,inference.addFact,inference.bulkAddFactsandactions.applyAction. A dependant’sfailconstraint refuses the write with aConstraintViolationErrorwhosetermIdis the dependant, not the written term. A dependant’supdateconstraint changes the dependant in the same commit. OSFQLUPDATEanswers the same refusal as anOsfqlError(422,refusal.codebound_constraint_violated,refusal.sortthe dependant’s sort).
Engine main 430dc1ede4 (round 34)
Section titled “Engine main 430dc1ede4 (round 34)”Sorts.BoundConstraintKindDtoandSorts.ViolationActionDto, the closed sets ofBoundConstraintDto.constraintTypeandonViolation.Sorts.SortBoundConstraintErrorCode: the422codes ofsorts.createSortfor a bound constraint the engine cannot read exactly.bound_target_not_localwhentargetis not one local feature (#1246);bound_source_path_malformedwhensourcePathis empty or has an empty segment (#1247). Read it witherrorBodyCode.isDependantsExceedCommitBudget(error)and theConstraintViolationCodedependants_exceed_commit_budget: a write that would adjust more dependants than one commit can hold is refused whole (409); the message names the count and the budget (#1245).
Changed
Section titled “Changed”- The
@throwsofterms.createTerm,terms.updateTerm,terms.bulkCreateTerms,inference.addFact,inference.bulkAddFacts,actions.applyActionandosfql.executedescribe the dependant refusals (#1245): a named refusal over data the caller reads; the bareconstraint_over_unread_datarefusal over data it may not read; an uncoded409that names the dependant’stermIdand nofeaturewhen the caller may not write the adjusted dependant; an uncoded plain{ error, message }409when another writer changed a dependant while the write was judged (retry the write); and the budget refusal. actions.applyActiondocuments the bound refusals of a put (#1244): a bound constraint over data the caller may not read answers the bare409; a put that breaks a bound constraint of its sort answers422with a reason that names the constraint.
Known engine gap
Section titled “Known engine gap”- The engine spec does not document the #1245 refusals, and the
stale-dependant and unwritable-dependant
409s have nocode(reasoninglayer#1251). The SDK types the budget code from the engine source; the two uncoded refusals stay untyped.
Contract run against engine main 430dc1ede4 (dev engine build 0886159b3a; its served spec equals main’s)
Section titled “Contract run against engine main 430dc1ede4 (dev engine build 0886159b3a; its served spec equals main’s)”574 tests: 550 passed, 0 failed, 24 skipped (2026-11-29). The skips are the
same 24 as the 18.2.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-430dc1ede4.contract.test.ts (9 tests) proves the
closed kind and action echo, the named dependant refusal of a PUT and its
rollback, the dependant update adjustment, the bare refusal for a writer
who may not read the dependant, the uncoded 409 for a writer who may not
write it, the OSFQL UPDATE refusal and rollback, and the three 422s of
createSort.
[18.2.0] - 2026-11-29
Section titled “[18.2.0] - 2026-11-29”Generated from engine main fcfcc0e03b: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Minor: the one
new export is a function, and OsfqlRefusal.code is an open string, so
its new value widens no closed union. No method, request or response shape
changed.
Behaviour change on the engine
Section titled “Behaviour change on the engine”inference.addFactenforces bound constraints for every caller (reasoninglayer#1238). A fact faces its sort’s bound constraints as a created term does: anon_violation: "update"constraint adjusts the stored fact, and a"fail"constraint refuses it with a409ConstraintViolationErrorthat names thefeatureand theconstraint. A refused fact leaves nothing in the store. Before enginefcfcc0e03bthis route ran no bound constraint, so a fact that a constraint refuses was stored.
isOsfqlConstraintOverUnreadData(error): the OSFQL form of the bare refusal over data the writer may not read (#1230).osfql.executeanswers anINSERTthat such aCHECK ONaxiom refuses as anexecutionfailure (422) withrefusal.codeconstraint_over_unread_data.isConstraintOverUnreadDatakeeps itsConstraintViolationErrortype guard and does not match the OSFQL form.- The coded bare
409(isConstraintOverUnreadData) is documented on the remaining REST write doors that now answer it:terms.bulkCreateTerms,inference.addFactandactions.applyAction(an edit the action puts, and its conditional replacement; a named bound refusal of the conditional replacement stays422). A@keymerge on each of them, and on OSFQL, is judged against the writer’s representation. visualization.termList: the503(ServiceUnavailableError) and504(InternalServerError,status504) answers under a gateway authorization context, and the reader’s page there:totalCountcounts the readable records, and a feature that holds an unreadable term is left out (#1236).
Contract run against engine main fcfcc0e03b (osfkb-dev build 5ea5304732; its served spec equals main’s)
Section titled “Contract run against engine main fcfcc0e03b (osfkb-dev build 5ea5304732; its served spec equals main’s)”565 tests: 541 passed, 0 failed, 24 skipped (2026-11-29). The skips are the
same 24 as the 18.1.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-fcfcc0e03b.contract.test.ts (6 tests) proves the
reader’s termList count and page, the OSFQL INSERT refusal
(422 execution, refusal.code constraint_over_unread_data), the coded
bare 409 on bulkCreateTerms and addFact, and that addFact refuses a
fact with a named 409 and applies an update bound for the owner.
[18.1.0] - 2026-11-29
Section titled “[18.1.0] - 2026-11-29”Generated from engine main a3dc97cd34: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Minor: every
change is additive. No closed union widened, and no method, request or
response shape changed.
ConstraintViolationError.code(Terms.ConstraintViolationCode) andisConstraintOverUnreadData(error)(reasoninglayer#1235, ts-sdk#87). The one bare refusal of a bound constraint over data the caller may not read now carriescode: "constraint_over_unread_data"; every other bound refusal carries no code.codeis alsowrite_targets_derived_facton aDerivedFactWriteErrorandwrite_targets_ruleon aRuleTermWriteError, as before. An engine older thana3dc97cd34sends no code, soisConstraintOverUnreadDataanswersfalsethere.403sort_manage_not_grantedin the@throwsof every REST door that defines or changes a sort (#1233):sorts.createSort,bulkCreateSorts,declareDisjunction,declareIndividual,patchSort,patchSortFeatureandremoveSortFeature. A re-post or a batch entry that changes nothing needs no Manage; a refused batch writes no sort and binds no prefix. They throw aForbiddenError; read the code witherrorBodyCode.
Changed
Section titled “Changed”terms.listTermsdocuments that each term is the reader’s view on every page, the unfiltered asserted page included (#1234): a feature that holds a term the caller may not read is left out.
- The 18.0.0 migration note and the
ConstraintViolationErrorexample branched onfeature === undefined, which also matches other409s (ts-sdk#87). Both now useisConstraintOverUnreadData.
Contract run against engine main a3dc97cd34 (osfkb-dev build ac77d9cffc; its served spec equals main’s)
Section titled “Contract run against engine main a3dc97cd34 (osfkb-dev build ac77d9cffc; its served spec equals main’s)”559 tests: 535 passed, 0 failed, 24 skipped (2026-11-29). The skips are the
same 24 as the 18.0.0 run, each the engine’s own report on stderr (site
requests, document parser, metering, scripted topic model, workflow
authority, URL ingestion). The new
tests/contract/engine-a3dc97cd34.contract.test.ts (11 tests) proves the
Manage denial on the seven sort-defining doors for a caller without Manage
(denyUnlisted), a steward with an explicit Manage grant creating, patching
and amending a sort, the coded bare 409, the owner’s uncoded named 409,
and the unfiltered asserted page withholding a feature that holds an
unreadable term.
[18.0.0] - 2026-11-29
Section titled “[18.0.0] - 2026-11-29”Generated from engine main 01dea66876: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals, as parsed JSON,
the spec the dev engine serves (check-spec-drift passes). Major, because two
closed unions widened: GovernanceRefusalCode and SortApprovalErrorCode
gain sort_manage_not_granted, and an exhaustive switch over either stops
compiling. No method, request or response shape changed.
Migrating to 18.0.0
Section titled “Migrating to 18.0.0”- Handle
sort_manage_not_granted(reasoninglayer#1231). It is the one coded answer of every Manage denial. An exhaustiveswitchoverGovernance.GovernanceRefusalCode(GovernanceRefusedError.code,OsfqlRefusal.denialCode) orSorts.SortApprovalErrorCodeneeds the arm. The sort routes keep throwing aForbiddenError(403); the body is now aGovernanceRefusalResponse, soerrorBodyCode(error)readssort_manage_not_grantedwhere it readundefined. - Do not match an uncoded
403for a missing Manage grant. A403without acodeno longer means a missingManagegrant: branch onerrorBodyCode(error) === 'sort_manage_not_granted'. - The bare bound refusal (reasoninglayer#1230) reports
featureandconstraintasundefined. The engine sends both as"". Corrected in 18.1.0 (ts-sdk#87):feature === undefineddoes not identify this refusal, because every409without afeaturekey (a coded conflict, a plain{ error, message }body) is also aConstraintViolationErrorwith no feature. Test it withisConstraintOverUnreadData(error)(18.1.0, enginea3dc97cd34and later).
Engine main 01dea66876 (round 31)
Section titled “Engine main 01dea66876 (round 31)”sort_manage_not_grantedinGovernanceRefusalCode, its runtime set, andSortApprovalErrorCode; the newSorts.SortManageErrorCode. The sort lifecycle routes (approveSort,proposeDefinition,rejectDefinition,deprecateSort,editSortParents,reparentSort,updateReviewStatus,completeMeet),scenarios.materializeScenario, numeric-source registration, the source profiling routes and the template review routes answer it as403. Their@throwsname it.- OSFQL: a
DEFINEor a change of a sort withoutManageis anexecutionfailure (422), and anALTER SORTmove without it isrefused(403), both withrefusal.codewrite_refusedandrefusal.denialCodesort_manage_not_granted. The property-graph routes name it inerror_type.
- An OSFQL refusal with
denial_code: sort_manage_not_grantedwas not read: 17.0.0 refused adenial_codeoutside its closed set, soosfql.executethrew a plainApiError(aForbiddenErrorfor the403), not anOsfqlError, for a Manage denial. ConstraintViolationError.featureandconstraintareundefined, not"", for the one bare409thatterms.createTermandterms.updateTermanswer when a bound constraint over data the caller was not shown refuses the write (#1230). Its message isThe write does not meet a constraint of its sort over data this caller may not read.
Changed
Section titled “Changed”terms.createTermdocuments that a@keycoreference is judged against the caller’s representation of the resident entity (#1230): a feature that holds a term the caller may not read neither clashes nor is named.
Contract run against engine main 01dea66876 (osfkb-dev; its served spec equals main’s)
Section titled “Contract run against engine main 01dea66876 (osfkb-dev; its served spec equals main’s)”548 tests: 524 passed, 0 failed, 24 skipped (2026-11-29). The skips are the
same 24 as the 17.0.0 run, each the engine’s own report on stderr: 503 boundary_tenant_unconfigured (7 site request tests), the /health
document_parser component (4 ingestion tests),
GET /api/v1/governance/subscription-source configured: false (4 metering
tests), a /health text_model other than the scripted contract-stub (4
topic tests), /health workflow_authority unconfigured (3 trigger tests),
and 403 boundary_policy_unreadable on ingestUrl (2 URL ingestion tests).
The new tests/contract/engine-01dea66876.contract.test.ts (7 tests) proves
the Manage denial on deprecateSort, editSortParents, an OSFQL DEFINE
(422) and an ALTER SORT move (403), and the bare 409 on createTerm
and updateTerm for a writer shown less than the store holds.
[17.0.0] - 2026-11-29
Section titled “[17.0.0] - 2026-11-29”Generated from engine main 2b318eb451: api-spec/openapi.json is the
engine’s committed openapi.json byte for byte, and equals the spec the dev
engine serves (check-spec-drift passes). Major, because demo.seed lost
its only request field and several closed unions widened.
Migrating to 17.0.0
Section titled “Migrating to 17.0.0”demo.seedtakes no SUMO directory (reasoninglayer#1229).DemoSeedRequestis the empty object (Record<string, never>):sumoDiris gone, and the engine refuses an unknown field (the formersumo_dir) with422. Callclient.demo.seed(). A deployment whose SUMO files cannot be read answers404demo_corpus_unavailable(Demo.DemoSeedErrorCode, aNotFoundError), naming no server path.- Refused writes of a demo seed, a KIF import (
persist: true) and a browser run are typed errors.demo.seedandingestion.ingestKifthrowGovernanceRefusedError(403reserved_sort_write_refused,sort_write_not_granted,operational_authority_*;409authz_relation_derived;422operational_rule_conclusion, …) orVocabularyRefusedErrorfor409governed_sort_write_refused, which is in both closed sets (#1227). Both areApiErrors with the same status, soerrorBodyCodestill reads the code. - A single-term read is the reader’s view (reasoninglayer#1221).
terms.getTermleaves out a feature that holds a term the caller’s Read grant does not show, andetagis the tag of that view; a412names the current tag of the caller’s view. Re-read before you retry anifMatchwrite with a tag another principal gave you. - Closed unions widened (an exhaustive
switchneeds the new members):GovernanceRefusalCodeandTermWriteErrorCode(reference_term_unknown,term_id_unavailable),ReviewStatus(superseded),ReviewReason(model_read).
Engine main 2b318eb451 (round 30)
Section titled “Engine main 2b318eb451 (round 30)”demo.seed: the empty request,demo_corpus_unavailable, and the coded403/409/422write refusals (#1227, #1229).scenarios.create,materializeScenarioandupdate: the403sort_write_not_granted,reserved_sort_write_refusedandoperational_authority_*refusals in their@throws(#1227).terms.getTerm: the reader’s view and itsetag(#1221).
Ask responses now include the pages read, the sites blocked by the Space and the points a person can verify. Use conversation.attestPoint to confirm a point or report an error. Use conversation.getTaskAgentTurns to read an agent’s consultation for a task.
The generated snapshot export response now names SnapshotEnvelope. Code that consumes this response can read the envelope fields directly.
Engine main 46ac89e9d2
Section titled “Engine main 46ac89e9d2”api-spec/openapi.json is engine main 46ac89e9d2’s committed
openapi.json byte for byte; it equals the spec the engine on that tree
serves (check-spec-drift passes).
- Coded refusals
reference_term_unknown(422, a reference to a term that does not exist or that the caller’s Read grant does not show; both answer alike, reasoninglayer#1212) andterm_id_unavailable(409, an explicit id, RDF resource or SPARQLINSERT DATAIRI held by a term the caller’s Read grant hides, #1215), inGovernanceRefusalCodeandTermWriteErrorCode. - A refused bulk write (
BulkRefusedError.rows) carries each row’s closedcode, as the200answer of a partial batch already did. OsfqlRefusal.denialCode: the precise code of a client-door write or delete denial (reserved_sort_write_refused,sort_write_not_granted, …) beside the publishedcode(#1207).ExecuteTranspiledResponse.completeness('complete'): a live query never answers partial rows. A read that stopped early is a coded refusal,OntologyBridge.LiveSourceErrorCode:502 source_query_failed,502 source_stream_failed,504 source_timeout, also from the discovery and key count ofbindSort(#1213, #1218).ingestion.ingestKifwithpersist: truethrows a typed refusal for a refused fact, individual or rule (403,409,422); nothing of the import is stored.client.browserAgent(BrowserAgentClient):step(POST /api/v1/agent/browser-step),listRunsandoperateRun(/api/v1/agent/browser-runs,start/inspect/observe/authorize/discard/receipt/resolve/cancel), with the typed run bodies of reasoninglayer#1195. NamespaceBrowserAgent.ingestion.ingestVideo(POST /api/v1/ingest/video):inlineon201, orqueuedwith anIngestionSession, the kept originals and the timeline text on202(sync: false).documentCheck.draftClausePolicy(POST /api/v1/documents/{document_id}/clauses/{clause_id}/policy-draft): unpublished RLQL for a reading of one clause.@throwsdocumentation of the new write and delete denials ofpropertyGraph.executeCypher/executeGql/executeGremlin(403,409) andsparql.executeUpdate.
Changed
Section titled “Changed”DeleteTenantResponseon the wire namestenant_idonce (#1211); the shippedtenantIdis unchanged.- Closed unions widened (an exhaustive
switchneeds the new members):GovernanceRefusalCode,TermWriteErrorCode.
Contract run against engine main 2b318eb451 (osfkb-dev boot 9ca7c054; its served spec equals main’s)
Section titled “Contract run against engine main 2b318eb451 (osfkb-dev boot 9ca7c054; its served spec equals main’s)”541 tests: 517 passed, 0 failed, 24 skipped (2026-11-29). Every skip is the
engine’s own report, written to stderr: 503 boundary_tenant_unconfigured (7
site request tests), the /health document_parser component (4 ingestion
tests), GET /api/v1/governance/subscription-source configured: false (4
metering tests), a /health text_model other than the scripted
contract-stub (4 topic tests), /health workflow_authority
unconfigured (3 trigger tests), and 403 boundary_policy_unreadable on
ingestUrl (2 URL ingestion tests: the Space’s boundary decides before the
fetch, and an engine without a readable boundary policy keeps the fetch in
the box).
[16.1.0] - 2026-11-26
Section titled “[16.1.0] - 2026-11-26”Additive on 16.0.0: the routes engine main added that 16.0.0 left without a
method (kortexya/reasoninglayer-ts-sdk#83), against engine main 4b7700b881.
- Live documents of a term (
client.terms):openLiveDoc,resolveLiveDocAnchors,getFrameCommentCapabilities,createFrameComment,diffLiveDoc,listLiveDocUpdates,applyLiveDocUpdate,listLiveDocVersions,nameLiveDocVersion,restoreLiveDocVersion; term snapshots:listTermSnapshots,previewTermSnapshot,restoreTermSnapshot. - Agent instructions (
client.cognitive):getAgentInstructions,saveAgentInstructions,publishAgentInstructions,rehearseAgentInstructions(an SSE stream oftoken,done,errorevents),putAgentSkills. - Agent consultations (
client.conversation):sendAgentMessageStream(Frame page or Work task context,asLead),getFrameAgentTurns,getTaskAgentTurns. - Skills (
client.platform):listSkillEditions,invokeSkill,prepareSkillScript,executeSkillScript,getSkillScriptPolicy,setSkillScriptPolicy,draftSkillEdit. client.text(TextClient):proofread,rewrite.- Frame authoring:
appActions.draftCalculation,draftWrite,calculate;ui.addFrameConsultant,restoreFramePage,listFrameTableSources. ui.generatetakesauthoring(the author’s Work turn) andtable(a table of selected declared fields,UIPageTableSelection).admin.rebuildSemanticIndex,admin.eraseConversations;osfql.dependencies.- Namespaces
LiveDocs,AgentInstructions,SkillScripts,TextEditing,FrameAuthoring.
Not wrapped
Section titled “Not wrapped”GET /api/v1/agent/browser-runs and POST /api/v1/agent/browser-runs/{run_id}
answer untyped JSON (serde_json::Value), so no faithful type exists:
reasoninglayer#1195.
[16.0.0] - 2026-11-26
Section titled “[16.0.0] - 2026-11-26”Generated from engine main 4b7700b881 (served build 9ae7799c67, the
same tree): api-spec/openapi.json is the engine’s committed openapi.json
byte for byte, and equals the served spec. This release carries the merges
reasoninglayer !796-!824 of
roadmap reasoninglayer#768, the routes the engine took off its served
surface, the additions held as 15.1.0 (engine 9a52eb51f8, E2 4cba15f780),
and the M4 series below. Major, because several wire changes break callers.
Migrating to 16.0.0
Section titled “Migrating to 16.0.0”- RDF upload completion (reasoninglayer#1193, #1194).
ingestion.completeRdfUploadanswers202withqueuedorprocessingwhile an import runs (before:200), and200once it ended (complete,pausedorfailed; also the answer to a repeat). It never answersuploading. Nothing is queued on the new coded409 rdf_upload_lease_held(retry afterRetry-After) and409 rdf_checkpoint_foreign_executable. An import a crash interrupted resumes by itself. CHAINconclusion ids changed (reasoninglayer#1190). An OSFQLCHAINanswersproducedTermIdsthat are the conclusions’ own ids, whichterms.getTermresolves andquery.findBySort({ includeDerived: true })lists. Before, they were ids of internal wrapper terms. A client that stored ids from an earlierCHAINholds ids the engine no longer answers: run theCHAINagain, or find the conclusions by sort, and store the new ids.- Sort labels are objects.
SortDto.altLabels/hiddenLabels,SortPreview.altLabels/hiddenLabelsand the newSearchSortsMatch.matchedLabelsareSortLabel[]({ value, language },languagenullwhen none is stated), notstring[]. Read.valuewhere you read the string. Requests (BulkSortDefinition,PatchSortRequest) takeSortLabelInput[]: a bare string still works and is sent as{ value, language: null }; the SDK never sends the deprecated bare-string wire form. - Audit headers are
x-reasoninglayer-*.RequestOptions.causalsendsx-reasoninglayer-caused-by,-informed-by,-scope,-seals-scope,-seal-commitment,-seal-signer,-seal-signature;readAuditHeadersreadsx-reasoninglayer-audit-record,-seal-commitment,-audit-error. The SDK sends only the new names (never both). An engine before reasoninglayer !815 does not read them. - Removed clients and methods (the engine took the routes off its served
surface):
client.rag(RagClient,POST /api/v1/rag/ontology),client.context(ContextClient,POST /api/v1/context/assemble),client.translation(TranslationClient,POST /api/v1/translate),generation.constrainedGenerate,generation.rawGenerate,generation.groundedGenerate,synthetic.buildGenerationPrompt, and their types (theRAGandTranslationnamespaces,FeatureConfigDto, the context-assemblySourceExcerptDto,GenMode, …). - Acquired-content decisions (
acceptLibrarySuggestion,declineLibrarySuggestion,undoLibrarySuggestion,fileAcquiredRecord,unfileAcquiredRecord,retractAcquiredRecord,restoreAcquiredRecord) answerAcquiredRecordDecision(recordId,sortName,libraries,presence,retracted,suggestedLibrary,suggestionState,decidedBy,decidedAt).RecordDecision(termId,decisions) is gone: the engine never answered that shape on these routes. - Memory answers grew required fields.
RememberResulthasreconciliationandarchived;RecallEntryhaskind,episodicImportance,ageDays,freshness,markersandprovenance;RecallResulthasdenseandcore. - Conversation notices:
retrieval_rescueis gone;claim_check_failedis new. ConversationMessageResponseandTurnDtoalways carryclaims,strippedClaimsandnextQuestions(empty when the engine sends none);TurnDtoalways carriesframePages.- Closed unions widened (an exhaustive
switchneeds the new member):ConversationKind(agent_consultation, excluded fromRecordableConversationKind),ProofKind(absent),ConnectorObjectKind(file,message,thread),VocabularyPluginObservation(shadowed_by_tenant_install),VocabularyRefusalCode(sevensource_*codes),GovernanceRefusalCode(foursnapshot_*codes),VocabularyOperation(capture_source_scope,declare_source_inventory),ValueDto(Bytes),UiSort(agent_chat), andPatchSortFeatureAmendment(PatchSortFeatureReadingAmendment).
Public names (reasoninglayer#1146, #1154, #1157, #1178, #1180)
Section titled “Public names (reasoninglayer#1146, #1154, #1157, #1178, #1180)”The engine’s public spellings are ReasoningLayer; each old spelling is still read as deprecated input. What the SDK sends or documents:
- Term IRIs are
urn:reasoninglayer:term:<id>(urn:osfkb:term:<id>still read); the tenant export base defaults tourn:reasoninglayer:tenant:{id}. - The OSFQL row identity column and the A2UI/
ui.describerowKeyare__reasoninglayer_term_id(sort label__reasoninglayer_sort_label). - AG-UI: the data-load failure event is
reasoninglayer.data_load_error, its state atreasoninglayer.dataLoadError. - Opaque envelopes the SDK passes through unchanged: snapshot
format: "reasoninglayer-snapshot"withmetadata.reasoninglayer_version, agent bundlereasoninglayer.agent/v1, context manifestreasoninglayer-context-manifest/v1, document export rendererreasoninglayer-document-export/2. - API tokens: the gateway issues
rl_tokens and still acceptsosfkb_ones. The SDK sends a token as given and does not check its prefix.
Added (engine main bbf859a71f)
Section titled “Added (engine main bbf859a71f)”- Vocabulary source observations, under a REQUIRED
Idempotency-Key(reasoninglayer#1167, #1174):vocabulary.captureSourceScopeandvocabulary.declareSourceInventorytakeVocabularyMutationOptions(idempotencyKey) and readreplayed;vocabulary.compareSourceInventoriestakes no key.getRequestOutcomedecodes both new operations. New namespaceSourceObservations. - Sorts (#1172):
SortDto.nameLanguage,PatchSortRequest.nameLanguage,SearchSortsRequest.lang(withby: 'label'),SortLabel,SortLabelInput; featurereadingdirective (shown/hidden) onFeatureDescriptorDtoandpatchSortFeature. - Ontology imports (
importOwl,importFoundry):sortsAlreadyPresentandsortsChanged(ImportChangedSort, labels with their language,nameLanguageChanged). - Memory:
remembertakeskind,reinforce,details,contentPolicy,fact,embed,triggers, the ledger anchor,personalandprojectId;recalltakeskind,tags,dense,includeChains,includeCore,includeDetails,time,personal,projectId. New methods:autoRecall,autoExtract,consolidate,coreAppend,coreReplace,declareAttribute,forget,timeline,status. - Conversation answer contract:
answerState,abstention,claims(VerifiedClaimwith provenance, stated values and absence proofs),strippedClaims,nextQuestions;TurnDto.framePagesandpresentation; requestsourceScope(all,news,knowledge).query.nlQueryanswersanswer(the conversation turn) andgateCode. - Inference:
ProofDto.absenceon anabsentproof node. - Analysis: circular interval features (
IntervalSubgroupsRequest.circular,IntervalRange.period,IntervalSubgroup.alternatives). - Ingestion:
speakerNotesandworkbookDetailsoningestDocument, and the answersspeakerNotesandworkbook;AudioActionItem.assigneeIsSpeaker. Value.bytesandBytesValue.- Workflows:
approval.policy,ask_agent.skillVersion,web_search.targetPackage,startRunproject. - App actions:
ownCreatedRecords,applyexpectedPreviewand the answerpreviewToken. UI:UIPageListResponse.canRestore,UIDataSourcePayload.calculations. - Snapshots:
ApplySnapshotResponse.authorityTermsWithheldandtermsKept. - Governance erasure: the four
sourceObservation*counts. - Connectors:
nextCursor/cursorpaging. - Platform:
SkillSummary.packageId. Settings keysanswer_modelandquery_model(documented).
Added (engine main c842a59716: reasoninglayer !819-!822)
Section titled “Added (engine main c842a59716: reasoninglayer !819-!822)”governance.getSubscriptionSource(GET /api/v1/governance/subscription-source): whether a subscription source tenant is configured, and which (#1186).ComponentHealthDto.providerand.model:/healthreports the model ports (text_model,agent_model,extraction_model,vision_model,vision_extraction_model,native_goal_parser) asconfiguredwith their provider and model, orunconfigured, andworkflow_authorityasgateway,unfencedorunconfigured(#1187, #1188).errorBodyComponent(error): the/healthcomponent a model refusal (llm_unconfigured,llm_provider_failed) names;NlQueryResponse.component,TrizRecordOutcomeResponse.codeand.component(#1191).- Conversation notice
model_unavailable(code,component); acquired arrivalmodelRefusal. GovernanceRefusalCode:llm_unconfigured,llm_provider_failed,subscription_source_unconfigured,subscription_source_foreign,workflow_authority_unconfigured.
Not wrapped yet
Section titled “Not wrapped yet”The engine added routes this release does not wrap (live documents, term snapshots, skill scripts, agent instructions, Frame calculations and pages, browser runs, text proofread and rewrite, …). They are listed in kortexya/reasoninglayer-ts-sdk#83.
Contract run against engine main 4b7700b881 (osfkb-dev, build 9ae7799c67)
Section titled “Contract run against engine main 4b7700b881 (osfkb-dev, build 9ae7799c67)”538 tests: 516 passed, 0 failed, 22 skipped (2026-11-26). Every skip is the
engine’s own report, written to stderr: the /health document_parser
component (4 ingestion tests), 503 boundary_tenant_unconfigured (7 site
request tests), GET /api/v1/governance/subscription-source configured: false (4 metering tests), /health workflow_authority unconfigured (3
trigger tests), and a /health text_model other than the scripted
contract-stub (4 topic tests).
Added (held as 15.1.0: engine 9a52eb51f8, E2 4cba15f780)
Section titled “Added (held as 15.1.0: engine 9a52eb51f8, E2 4cba15f780)”- Workflows: the
generatestep both ways, an unknown step kind kept as anopaquestep (sent back as it was read), and the optionalteamId. - Workflows: the E1/E2 team steps both ways:
ask_agent(an agent asked a task with a title, a goal and result checks),join,web_searchanddecompose(the goal split into task records by the declared HTN methods). Synced from E2’s regeneratedopenapi.json(engine4cba15f780). - Settings:
appliesAbove(what a project may not loosen) andwritableValues(what asettings.putat that scope accepts now), from the same file. - Workflows:
enableTriggerandsaveAndFireTriggers. - Boundary: website requests:
createSiteRequest,listSiteRequests,listAllSiteRequests,decideSiteRequest,recordSiteRequestCommit. - Inference:
ensureRule(installed once, the same rule on a retry,created),verifyRules,bulkWithdrawRules(up to 1 000 rules in one commit). - Ingestion: acquired content and its decisions:
deliverAcquiredRecords(under anIdempotency-Key),fileAcquiredRecord,unfileAcquiredRecord,retractAcquiredRecord,restoreAcquiredRecord,acceptLibrarySuggestion,declineLibrarySuggestion,undoLibrarySuggestion,acceptDocumentTopic,declineDocumentTopic. - Governance: metering and subscriptions:
admitUsage,prepareMeterDelivery,canonicalizeTierCatalog,observeSubscription,transitionSubscription,syncSubscriptionProjection. client.settings(SettingsClient):getandputof a Space setting and its narrowing for a project.- Platform:
putIdentity(withcolorandimage) anddeleteIdentity. - Conversation:
moveConversationfiles a conversation in a project or back at Space level. - Read fields: agent state
definitionVersionandowner; conversation and memoryprojectId; installsortsProvenanceRederivedandsortsProvenanceUnknown; identitydescription(summary),color,image. - Function values
ListandDateTime; expressionsListandPathAccess. - Vocabulary finding code
draft_concept_with_accepted_membership.
Contract coverage
Section titled “Contract coverage”The live contract suite exercises every new route on a disposable engine.
The Library suggestion and document topic decisions
(acquired-topics-suggestions.contract.test.ts) run on an active vocabulary
release governed through the native flow, with the engine’s LMSTUDIO_URL
on the scripted model tests/contract/stubs/topic-model-stub.mjs, which
proposes the topic a person then decides. The disposable engine runs with
OSFKB_BOUNDARY_TENANT, REASONINGLAYER_SUBSCRIPTION_SOURCE_TENANT,
OSFKB_WORKFLOW_ALLOW_UNFENCED=true, the governance and
knowledge-organization plugins installed system-wide, and that model; the
suite reads CONTRACT_BOUNDARY_TENANT, CONTRACT_SUBSCRIPTION_SOURCE_TENANT,
CONTRACT_WORKFLOW_UNFENCED and CONTRACT_TOPIC_MODEL to know it did. A
skipped test counts as a failed run.
M4 release series (reasoninglayer#768 M4-S01, M4-S02)
Section titled “M4 release series (reasoninglayer#768 M4-S01, M4-S02)”Fixes #77 and #78. The engine acknowledges the 13 items of its N12 wire
ledger with check_wire_breaks.py --update-baseline in this series. The
merge hold these entries once described has lifted: the stack and engine MR
!685 are on engine main, which this release is generated from.
Breaking (M4 wire ledger)
Section titled “Breaking (M4 wire ledger)”The wire ledger (reasoninglayer n12_wire_ledger.md) and the shipped surface:
actionReviews.listPendingandactionReviews.getSummarysend notenant_id: the engine takes the tenant from the principal and refuses the parameter (400 invalid_request).ActionReviewsClientno longer takes a tenant id.- Approver role bindings are governed role assignments:
actionReviews.bindApproverRoleandactionReviews.revokeApproverRoleanswerGovernanceRoleCommitResponseand take anidempotencyKey;actionReviews.listApproverRolesanswers one cursor page (ApproverRoleBindingPage).RoleBindingsResponseis gone. vocabulary.listDecisionsanswers a page (VocabularyDecisionPage:items,nextCursor), not an array.GovernancePipelineJobParametersis a union tagged bykind;inputs,releaseIdandunitRecordsexist only on the variants that declare them. Narrow onkindbefore reading them.VocabularyRefusalCodedropsidentity_reviewer_not_human;ReasoningOperationLogScopeis'tenant_records'(both already in 15.0.0’s notes; now acknowledged by the engine’s wire baseline).VocabularyRequestOutcomeandVocabularyCommittedResultmoved out of theVocabularynamespace into their own module: import them by name from the package root. The outcome reader decodes governance operations as well, and the vocabulary module cannot depend on the governance module.VocabularyOperationgainsapprove_unit,review_unit,create_change_request,link_change_request,dispose_change_request,recover,restore,erase_source,admit_identity_decision,revoke_identity_authority,create_pipeline_jobandcancel_pipeline_job; an exhaustiveswitchmust handle them.- A governance refusal body (
GovernanceRefusalResponse, code in the generatedGovernance.GovernanceRefusalCode, 76 codes) is thrown as the newGovernanceRefusedError(withcodeandrefusal) by every governance, action-review, webhook, marketplace, admin, sort-comparison and rule-comparison method; 15.0.0 threwApiError,ForbiddenError,NotFoundErrororConstraintViolationErrorfor these. 410is aGoneError, and410tenant_deleted(now documented on every tenant-scoped operation) aTenantDeletedError; 15.0.0 threw a plainApiError.replayed: booleanis required onGovernanceRoleCommitResponse,GovernanceActorClassificationResponse,GovernancePipelineJobResponse,GovernanceErasureResponse,GovernanceRestoreResponse,VocabularyRoleCommitandVocabularyActorClassification(reasoninglayer#962); code that builds these objects must set it.- Every
GovernanceClientandActionReviewsClientmethod now throws the typed vocabulary errors for a coded vocabulary refusal (IdempotencyKeyRequiredError,IdempotencyKeyReusedError,MutationOutcomeUnconfirmedError,VocabularyRefusedError) where 15.0.0 threwPreconditionRequiredError,ApiErrororForbiddenError. All of them are stillApiErrors; code that branches on the old subclasses must branch on the new ones or oncode. VocabularyAssessment.compatibilityandVocabularyQualityReport.compatibilityare a typedVocabularyCompatibilityBlock(camelCase, closed enums), not the raw snake_caseJsonValueof 15.0.0 (reasoninglayer#967). Code that readunits[i].change_kindorobligation_digestfrom the raw JSON readschangeKindandobligationDigest; an absentclass,version,predecessorVersion,retainedTheory,revieworsubjectisundefined, notnull.VocabularyCompatibilityEvidenceis a union discriminated oncode(reasoninglayer#977): each of the 124 codes fixes the shape ofdetail, a camelCaseVocabulary...Detailtype (nullfor the 75 codes that carry none). It was an interface with an opencode: stringanddetail: JsonValue. Narrow oncodebefore readingdetail; snake_case keys read from the old raw detail are camelCase now (change_idischangeId), and an absent ornulloptional member isundefined. The decoder refuses a code outside the closed set, or a detail on a code that carries none, with aResponseShapeError.- Closed unit values (reasoninglayer#977):
GovernanceUnitVersion.unitKindand.versionClass,GovernanceUnitVersionPageResponse.unitKind, andGovernanceProspectiveUnit.unitKind,.change,.changeKind,.compatibilityand.versionClassare theVocabularyclosed sets, notstring.GovernanceUnitReview.authorityis aVocabularyAuthorityCheck, notRecord<string, unknown>.VocabularyQualityReport.dispositionsisVocabularyFindingDispositionView[], notJsonValue[]; a disposition whose fields are missing or outside the closed set is aResponseShapeError. - One replay contract (reasoninglayer#981):
replayed: booleanis a required body field ofVocabularyPluginReview,VocabularyBasePackRegistration,VocabularyWebhook,VocabularyAuthorityRelationAsserted,VocabularyAuthorityRelationRetracted,GovernanceAuthorityPolicyProposal,GovernanceAuthorityPolicyActivation,GovernanceAuthorityPolicyReview,GovernanceAuthorityRelationAssertedandGovernanceAuthorityRelationRetracted, and the SDK reads it from the body. A read (getWebhook,getAuthorityPolicy,getAuthorityPolicyActivation) saysfalse.VocabularyReplayable<T>is gone.inboundWebhooks.addCredentialandendCredentialanswer the newVocabularyWebhookCredentialAnswer(the credential plusreplayed); a credential listed inVocabularyWebhook.credentialshas no flag.vocabulary.getRequestOutcomedecodesadd_webhook_credentialandend_webhook_credentialasVocabularyWebhookCredentialAnswer. analysis.confirmImplication,refuteImplicationandadvanceExplorationanswerIdempotentAnswer<T>(T & { replayed: boolean }): their bodies have no flag, so the SDK reads theIdempotency-Replayedheader the engine now sends and declares on them (reasoninglayer#981).VocabularyTheoryConstructKindgainsprefix(reasoninglayer#978 item 3, governance 1.6.0); an exhaustiveswitchmust handle it.- A refused OSFQL mutation is an
OsfqlErrorat every status (reasoninglayer#1041, pair 4). The engine answers its authorization refusals with the status and code REST answers, aserror_type:403forbidden,operational_authority_denied,operational_authority_undetermined,term_sort_unresolved;409governed_sort_write_refused,authz_relation_derived(withrefusal);422operational_rule_conclusion,authz_rule_shape,authz_parent_of_sort_refused. Before, a403fromosfql.executeorosfql.previewwas a bareForbiddenError.OsfqlErrorTypenames these codes and is now open: everyerror_typebuttimeoutbuilds anOsfqlError, and a class this SDK does not know is kept verbatim with itsrefusal. An exhaustiveswitchonerrorTypeneeds adefault. An older engine’s422 executionrefusal still maps to the same error.
Added (M4)
Section titled “Added (M4)”- The 48 M4 operations 15.0.0 did not wrap (all 163 operations of the engine’s
M4 surface now have a method):
client.governance:createJob,getJob,cancelJob,listJobUnits;createErasure,getErasure;createRecovery,getRecovery;createRestore,getRestore,exportRelease,releaseUnits,historicalInterpretation,revisionUnits;createChangeRequest,getChangeRequest,linkChangeRequest,disposeChangeRequest;explainTerm,getEntity,getProvenance,getProvenanceProv,getProvenanceDcat;createIdentityDecision,getIdentityDecision,previewIdentityDecision,listIdentityProposals;createAuthorityRevocation,getAuthorityRevocation;getUnitVersion,approveUnitVersion,reviewUnitVersion;getRoleAssignment,getActor;getSourceRecord.client.inboundWebhooks(new client):putWebhook,getWebhook,deleteWebhook,addCredential,endCredential— held, keyed mutations.client.marketplace:getPluginImpact,getPluginImpactRecords,reviewPlugin.client.admin.registerBasePack.client.vocabulary:listCqGaps,getAssessmentMigration,diffReleases.client.sorts.batchCompareSorts(each result keeps the engine’serrorfor an unknown sort: aresult: falsewith anerroris not a negative answer).
createRestoresends thekos-json/v2document ofexportReleasebyte for byte (GovernanceReleaseExport); the SDK’s snake_case body transform would otherwise rewrite keys the document’s digests cover.vocabulary.getRequestOutcomedecodes the 12 governance operations above.Governance.GovernanceRefusalCode(the engine’s published enum),GovernanceRefusal,GovernanceRefusedError,governanceRefusalOfBody,GoneError,TenantDeletedError. The authority-policy routes answer a reused key as422 idempotency_key_reusedlike every other M4 mutation; the engine’s formeridempotency_key_conflictis gone.VocabularyOperationequals the engine’s 46-valueoperationenum ofGET /api/v1/vocabulary/requests/{operation}/{key}.- Since 15.0.0 (D. Loiret,
d087706): the governance read and mutation surface (client.governance), contextual connectors and their reads, boundaries, gateway sessions, compliance, documents and inference rule comparison;CrosswalkRunSummaryDto.driftandCqRunSummaryDto.engine_build(#958) on the run listings. planning/evidence/m4-live-refusal-codes.json: every refusal the engine answered in the M4 campaign, per operation (3,464 refusals, 200 operations, 115 closed codes; on the M4 surface 2,712 refusals over 150 operations, 92 codes).pnpm run check-live-refusalsfails when an M4 code is untyped; it is part oftest:ci.- The typed compatibility block of an assessment (reasoninglayer#967, engine
CompatibilityBlockDto), exported in theVocabularynamespace:VocabularyCompatibilityBlock,VocabularyUnitCompatibility,VocabularyUnitKey,VocabularyCompatibilityCheck,VocabularyCompatibilityEvidence,VocabularyRetainedTheory,VocabularyReviewRequirementand the closed setsVocabularyUnitKind,VocabularyUnitChange,VocabularyUnitChangeKind,VocabularyCompatibilityCheckKind,VocabularyCompatibilityCheckOutcome,VocabularyCompatibilityOutcomeandVocabularyVersionClass. - The typed evidence of a compatibility check (reasoninglayer#977, engine
record 28 A131, which supersedes A130’s open detail): the 34 arms of
VocabularyCompatibilityEvidence(VocabularyCompatibilityEvidenceWithoutDetail,...AnswerDifference,...RelationChange,...SortReparented,...RuleCompared,...DataMigration, …), their detail types (VocabularyAnswerDifferenceDetail,VocabularyRelationChangeDetail,VocabularyRuleComparisonEvidenceReport,VocabularyMigrationUndeterminedDetail, …), the closed setsVocabularyRelationDiffStopandVocabularyConstructedBoundKind, andVocabularyCompatibilityEvidenceCode. A detail is evidence, not a verdict field: read the verdict fromoutcome. A rule comparison’s report reusesRuleComparisonDirectionofclient.inference.compareRules. replayedonmarketplace.reviewPlugin,admin.registerBasePack,governance.createAuthorityPolicy,activateAuthorityPolicy,reviewAuthorityPolicy,assertRelation,retractRelation, andinboundWebhooks.putWebhook,deleteWebhook,addCredentialandendCredential(#78):truewhen the engine answered a repeat of a committed request from its receipt. Since reasoninglayer#981 the engine puts it in the body, and the SDK reads it there (see Breaking).- The
prefixtheory construct (reasoninglayer#978 item 3, record 28 A137): atheory_changewithconstructKind: 'prefix', roletbox, holds exactly onePREFIX p: <iri>;statement, and itsintroduces, when stated, names the bound prefix. A candidate so carries its own namespace binding: the assessment runs the binding in its private view only, and the activation adds it to the tenant’s prefix registry, all or nothing.VocabularyTheoryActivation.prefixeslists the bindings an activation added (VocabularyTheoryPrefixBinding:prefix,namespace,canonical). IdempotentAnswer<T>(package root): the answer of a keyed route whose replay flag is only theIdempotency-Replayedheader.VocabularyRefusalCodegainscompatibility_evidence_undecodable(500): a stored compatibility block that does not decode into its typed evidence.scripts/replay-recorded-bodies.mjsdecodes the recorded M4 engine bodies through the built package (M4-65) and lists every dropped key;planning/evidence/m4-recorded-body-decode.jsonis its result on the campaign transcripts.
Engine contract fixes carried (reasoninglayer 83207f0c67)
Section titled “Engine contract fixes carried (reasoninglayer 83207f0c67)”- reasoninglayer#962: the
replayedflag is declared; the SDK carries it. - reasoninglayer#963:
obligations[].detailis always an object. - reasoninglayer#964: one closed governance refusal code set and body
(
GovernanceRefusalBodyon 184 M4 error responses), documented JSON rejections, authority-policy and sort-comparison statuses, and410 tenant_deleted. No M4 refusal of the campaign answers an undocumented status any more.
Engine contract fixes carried (reasoninglayer eefd9043f5, 020d46f628)
Section titled “Engine contract fixes carried (reasoninglayer eefd9043f5, 020d46f628)”- reasoninglayer#965: a reconciliation read of a receipt committed before
83207f0c67answers the stored body withreplayed: false, sovocabulary.getRequestOutcomereads it. - reasoninglayer#967: the compatibility block of an assessment and of the quality report has one named, typed schema (see Breaking and Added). Every recorded assessment and quality body of the M4 campaign’s latest runs (487 distinct bodies, 817 units) decodes into the typed block, and every closed value in them is in its typed set.
Engine contract fixes carried (reasoninglayer m4-engine-stack 8a4f01b645, not on engine main)
Section titled “Engine contract fixes carried (reasoninglayer m4-engine-stack 8a4f01b645, not on engine main)”- reasoninglayer#977: the evidence detail of every code is typed (one named
schema per detail, a union keyed by
code), the unit values and quality dispositions are closed, and a stored block that does not decode is refused by name (500 compatibility_evidence_undecodable). Every recorded assessment and quality body of the latest campaign runs (540 distinct bodies, 885 units, 909 evidence items over 43 codes) decodes into the typed union, and each decoded detail equals its wire detail. - reasoninglayer#978: a theory candidate’s
DEFINEcan spell a feature constraint’s name and message. The change is to OSFQL text only; the spec does not change.
Engine contract fixes carried (reasoninglayer m4-engine-stack fbc9874525, not on engine main)
Section titled “Engine contract fixes carried (reasoninglayer m4-engine-stack fbc9874525, not on engine main)”- reasoninglayer#978 item 3: the
prefixtheory construct andTheoryActivationDto.prefixes(governance 1.6.0; see Added). Live on build902f75574f: a candidate withPREFIX p: <iri>;andDEFINE p:Vehicle,DEFINE p:Truck < p:Vehicleon a tenant that binds nothing passed a complete assessment, was released and activated, and the activation (and its keyed replay) answered the binding; after it the tenant refused a rebind by name and accepted the same binding. - reasoninglayer#981: one replay contract. The held mutations answer
replayedin the body (a reconciliation read saysfalse), the credential routes answerWebhookCredentialAnswer, and all 57 keyed operations declare theIdempotency-Replayedheader, the three attribute-exploration transitions included. The engine acknowledges the credential answer change in its wire baseline (wire_ledger_981.md).
Engine contract fixes carried (reasoninglayer m4-engine-stack c65f6ce6f3, not on engine main)
Section titled “Engine contract fixes carried (reasoninglayer m4-engine-stack c65f6ce6f3, not on engine main)”The spec moves by 16 leaves from fbc9874525; the served spec of build
1a25ae7328 equals the stack’s openapi.json, and !685’s items apply to it
unchanged (the same 23 operations of the three-way merge). Path, operation and
schema counts do not change.
- reasoninglayer#988: snapshot delete and snapshot import document their
403 provisioning_identity_required(aCodedErrorResponse). The SDK documents the refusal onsnapshots.deleteandsnapshots.import;governanceRefusalOfBody(error.body)reads its code. - reasoninglayer#994 (knowledge organization plugin 2.4.0):
VocabularyValidTimeUseRolegainsrecorded_at, the time a source recorded a value; conformance requires@recorded_atwhen a profile names it. - reasoninglayer#989:
VocabularyFindingCode(andVOCABULARY_FINDING_CODES) gainsvalue_map_target_deprecated, a value map that targets a deprecated value. - reasoninglayer#997:
VocabularyCqReasongainstemporal_equality_undetermined, a date-text versus instant comparison that the engine cannot decide. - reasoninglayer#1001: a job whose
unit_deadline_ms + commit_margin_msexceeds what a tick offers one unit (the cron execution budget less the 5 s claim reserve) is refused at creation with the existing422 job_parameters_invalid; the message states both numbers. The wire does not change; thecommitMarginMsdocumentation states the bound. - reasoninglayer#982 and #987:
POST /sortsdeclares its400body (anErrorResponse;sort_parent_unavailableis coded); the lattice-wide sort reads and the quotient order describe the tenant’s complete lattice. These are description changes only. - reasoninglayer#998: the description of a job’s listing scope names the crosswalk part. Description only.
- reasoninglayer#985, #986, #990-#993, #996 and #1000 change engine behaviour
without a spec change (#992 adds the OSFQL builtin
valid_time_verdict; #1000 admitsUNIONin a read-only question and refuses a plan that writes).
Engine contract fixes carried (reasoninglayer#1041 pair 4, 15315a837c, not on engine main)
Section titled “Engine contract fixes carried (reasoninglayer#1041 pair 4, 15315a837c, not on engine main)”Only POST /api/v1/osfql’s responses move. The 403 is new, and the 409
and 422 descriptions are rewritten; the body stays OsfqlErrorResponse and
no schema changes. The SDK change is the OsfqlError entry under Breaking.
[15.0.0] - 2026-11-08
Section titled “[15.0.0] - 2026-11-08”Generated from the engine contract of reasoninglayer a0aa98558c (1,081 paths,
3,311 schemas).
Breaking
Section titled “Breaking”ReasoningOperationLogScopeis'tenant_records'; it was'process'. The engine now keeps the reasoning-operation log as records in the tenant’s record space instead of in the engine process: the log survives a restart, every engine over the same store lists the same entries, and clearing or deleting the tenant erases them.client.reasoning.listOperationsanswersretention.scope: 'tenant_records'. A caller that comparesretention.scopewith'process'no longer compiles and must compare with'tenant_records'.authz.writeTupleis removed, withAuthzTupleWriteRequest,AuthzCanTupleWriteRequest,AuthzHasRoleTupleWriteRequestandAuthzTuple.etag(which onlywriteTuplefilled). The engine refuses everyPOST /api/v1/authz/tuples(403, or409authz_relation_derivedfor the provisioning identity): it concludescanandhas_rolefrom the governed role history, whichPOST /api/v1/governance/role-assignmentswrites.authz.check,authz.listTuplesandauthz.deleteTupleare unchanged.CronJobStatusgains'authority_revoked'(a complete derivation denied the registrant’s authority at an execution start; the job does not fire until it is resumed) andCronJobRunStatusgains'skipped'(the authority could not be established, so nothing ran). An exhaustiveswitchmust handle them.VocabularyRefusalCodedrops'identity_reviewer_not_human', which the engine no longer sends, and gains'admission_target_not_operational'and'operational_roots_changed'(both409, nothing written),'explain_not_found'and'concept_not_found'(both404) and'job_kind_engine_only'(422: aninvalidationjob is created by the engine only).- Closed unions gain the values of stated absence, valid time and null
declarations:
ValueDtogainsStatedAbsenceValue({"type": "StatedAbsence"}: the source states there is no value, admitted only on a feature declared@nullable; it is neitherUninstantiatednor an omitted feature),VocabularyRecordKindgains'null_declaration'and'valid_time_use',VocabularyConformanceFindingCodegains'stated_absent'and'valid_time_undeclared',VocabularyConformanceValueStategains'stated_absent', andVocabularyNoteCodegains'undeclared_null','stated_absence_not_admitted'and'stated_absence_in_collection'. An exhaustiveswitchmust handle them. DlqRetryResponse.retriedByandReprocessFailedResponse.retriedByare required: the engine’s proof of the authority of the actor who asked for the retry, passed through as sent. Code that builds these objects (a mock, for instance) must set them.
client.osfql.containment: decide whether one conjunctive query’s answers are included in another’s, in both directions, without executing either query (POST /api/v1/osfql/containment). A direction isprovenonly with a homomorphism witness the engine’s verifier replayed;not_proven,resource_limitandunsupportednever mean non-containment.equivalentistrueonly when both directions areproven. A query that does not parse or is outside the conjunctive fragment is refused with422(code: "osfql_not_conjunctive"); the newosfqlContainmentRefusalOfreads the refusedsidefrom the thrown error.client.osfql.repair: repair a model’s query text against the tenant’s grammar within a budget of single-character edits (POST /api/v1/osfql/repair).accepted(already a complete query),repaired(returned only after the engine replayed its script) orrefused(no repair within the budget; the engine does not guess). A500means the verifier refused the repair, and nothing is returned.client.analysis.dualAgreement: select the candidate the largest agreeing group of candidates and checks supports (POST /api/v1/analysis/dual-agreement).selected,no_evidence, orincompletewhen a limit stopped the enumeration, in which case nothing is selected.400when the rows do not match the candidates or a check index is out of range.client.analysis.induceRules: induce classification rules from labelled terms (POST /api/v1/analysis/rule-induction). The engine runs on a scratch store, writes nothing to the tenant, certifies exactly the rules it keeps, opens the sealed test split once, and returns each rule’s OSFQLDERIVEtext without installing it.422codes:rule_induction_unknown_label,rule_induction_unknown_term,rule_induction_repeated_example,rule_induction_rules_in_examples,rule_induction_split_refused,rule_induction_incomplete.client.cognitive.admitGoalObservation: admit an original measurement of a goal’s declared postcondition (POST /api/v1/cognitive/agents/goals/observations); the tenant is the client’s. The same original event returns the same observation; a goal holding a different measurement refuses with409;422when the goal declares no measurement or the source is not one it admits. A goal holding an admitted measurement is assessed on it at its next cycle. When the simulator cannot judge the goal’s plan, no step runs, and the goal is still assessed instead of being deferred.AddGoalRequest.measuredOutcome(MeasuredOutcome:scope,sources,priorPolicy,priorAlpha,priorBeta): the declared measurement of a structured goal’s Boolean postcondition. Without it the goal has no outcome contract, and a cycle defers it instead of guessing success.IntegratedEngineConfigDto.enableMetaControl(enable_meta_control, defaultfalse): the engine already accepted it; a measured-goal cycle sets itfalseso no mode switch skips execution.CronJobRun.authorityandWorkflowRun.authority: what the execution start proved about the actor’s authority, passed through as sent.OsfqlResponse.qualification(OsfqlQualification): perMATCH,PROVEandCHAINstatement, the established answers, whether the enumeration is complete (onlycompleteis the whole answer; an empty bounded or incomplete answer is not absence), the undetermined rows and unknown-filter exclusions, the time slice and the stale derivations excluded; and the active release the program read under.VocabularyMaterialized.derivations(VocabularyDerivationMaintenance): what an activation did to the stored rule derivations it changed, and the invalidation job it created when the maintenance budget did not reach the fixpoint.- The
null_declarationandvalid_time_userecords (VocabularyNullDeclarationInput/Record,VocabularyValidTimeUseInput/Record) in record inputs and record views. GetQuotientOrderOptions.maxCellsandmaxRelationQueries(client.sorts.getQuotientOrder): the engine’s native resource limits (max_cells, default 1,000,000;max_relation_queries, default 4,000,000). The matrix is the square of the tenant’s visible sorts, shared and plugin sorts included; with the knowledge-organization and governance plugins installed a fresh tenant needs about 1.1 million cells, and the engine refuses a construction past its limit as incomplete, never truncated.ConversationTurnsResponse.offsetandtotal, andLlmContextTrace.conversationState(the conversation’s working state as the prompt carried it, when earlier turns were folded into one).- The other new engine routes get generated types and no resource methods:
follows, records, the conversation state, governed webhooks, the governance
routes for role assignments, actor classifications and authority relations,
GET /api/v1/governance/explain/{term_id}andGET /api/v1/governance/concepts/{concept_id}/instances. VocabularySourceSchemaInput.recordsAtandVocabularySourceSchemaRecord.recordsAt(records_at): the JSON pointer to the records of ajson_recordsdocument (knowledge organization 2.3.0). An array there holds one record per element, an object is one record,""names the whole document; absent reads the top-level array.- The generated pipeline-job types gain the
source_acquisitionjob’s parameters, request and checkpoint (AcquisitionJobRequestDto,AcquisitionJobParametersDto,AcquisitionCheckpointDto,AcquisitionProviderDto,AcquisitionTransportDto) onPOST /api/v1/governance/jobs. - The generated error types declare
CodedErrorResponsefor the coded refusals ofPOST /api/v1/channels/webhook(401,channel_webhook_unsigned),PUT /api/v1/webhooks/{slug}(422) andPOST /api/v1/authz/tuples(409,authz_relation_derived); each description names the refusals of that status that carry nocode. - The package carries a
LICENSEfile (the Kortexya proprietary source code licence;licensestaysUNLICENSED) andhomepagehttps://reasoninglayer.ai.
[14.0.0] - 2026-11-03
Section titled “[14.0.0] - 2026-11-03”Generated from the engine contract of reasoninglayer f9e618e850 (1,052 paths,
3,205 schemas), which main carries unchanged at aa7af1eb65.
client.sorts.proposeDefinition: proposedef(sort) = patternfor a stored template rooted at the sort or above it. The proposal waits on the sort, outside the theory, and the answer carries the termination check of the theory with the proposal installed. Another steward’sapproveSortinstalls it; the proposer’s is refused with403(code: "separation_of_duties").client.sorts.rejectDefinitionwithdraws it with a reason.SortDto.proposedDefinition: the definition waiting for review, apart from the installeddefinition.client.terms.listActivityWrites: the states an activity wrote, in term and version order, a page at a time. A state an erasure removed is listed without its term, naming the erasure inerasedBy.ForwardChainRequest.planRuleOrder(forwardChain,derive): plan the rule order with the engine’s native MCTS over its installed policy/value scorer. Execution still checks every premise and keeps every rule. The engine answers503(code: "mcts_scorer_unavailable") when no scorer is installed, and422(code: "mcts_tagged_inference_unsupported") together withenableProvenanceTags.client.phone:listRehearsalHistory,getRehearsalHistoryanderaseRehearsalHistory, a person’s saved private phone test conversations (GET /api/v1/phone/lines/{id}/rehearsal/history,GETandDELETE …/history/{session}). A page with no entries but a continuation is kept, so a caller pages on.BrowserPhoneRehearsal: a private spoken phone rehearsal in the browser. The disclosure plays before the microphone is requested.BrowserSpeechAudiowithcapture: falseopens no microphone untilstartCapture();SpeechSession.inputReadyresolves when a disclosure-gated session permits input.
Changed
Section titled “Changed”withdrawVoiceConsentandreinstateVoiceConsentreturnundefinedwhen the engine answers204: the consent changed, but the project does not grant profile reads. Breaking for a TypeScript caller that typed the result asVoiceProfile.
These engine behaviours change without any change to a wire type:
- A declared cut answers a meet in the cut of the order: a degree below the cut is
no relation.
fuzzyUnifyatthreshold: 0.6on{a; b} ⊓ c, whose bounds arexandyat 1.0 andwat 0.5, answersxandy; it used to refuse the whole answer with400. A bound that only a bound below the cut covered can now be an answer. A cut that no alternative reaches is still refused. - An individual declared below an operand to less than the cut no longer changes the answer at that cut.
- A query’s theory reads the same cut: a definition or a feature axiom holds of a node only when its degree reaches the cut, and a node it does not hold of is refined by the meet at the cut. A query refused before because a premise fell below the cut can now answer with the refined node.
fuzzyProvewith graded head matching tries a rule only when its head lies below the goal to at leastminDegree.cognitive.runCycleruns on a tenant that holds a native agent belief when every private belief is the selected agent’s: it proves in that agent’s scope and publishes what it derives as the agent’s private content. It used to be refused with422(agent_belief_operation_unsupported). Another agent’s private belief still refuses it, andintegratedCyclestill refuses on a tenant that holds any native agent belief.
Removed
Section titled “Removed”- Speech:
SynthesizeSpeechRequest.refAudioBase64andrefText, one-off synthesis from a reference clip (reasoninglayer #665, ENG-122). A clip carries no consent record, subject or purpose, so it let anyone allowed to synthesize speak in anyone’s voice; the engine now refuses it with403, whichsynthesizeSpeechthrows asForbiddenError. Enroll the voice withenrollVoice(consent required) and pass itsvoiceId. Breaking for a caller that set these fields; Kortexya Work and the voice session never did.
speechSocketUrlrefused every protocol-2 session that was not resumable, so a private phone rehearsal could never open its socket. Resume is optional in protocol 2; resume and renewal still requireresumeSupported.
[13.1.0] - 2026-11-02
Section titled “[13.1.0] - 2026-11-02”Generated from the engine contract of reasoninglayer a7613792ac (1,049 paths,
3,199 schemas).
client.sorts:declareDisjunction({a; b}for queries),declareIndividual(the singleton sort{i}),completeMeet,compileSubsumptions,closeSortSimilarityandproposeEmbeddingSimilarities.client.fuzzy:sparqlExport(oneSELECT DISTINCTquery per verified alternative, each with its degree) andtheoryTermination.FuzzyUnifyRequest.theory: the conjunction, preorder and feature axioms a query declares. The field was on the wire and this SDK dropped it.FuzzyUnifyResponse.termination, the verdict of a run whose theory normalization created a node.certified: falseis not a refutation.FuzzyProveRequest.headMatching: graded resolution against rule heads, reported on the proof as the existingProofDto.headMatch.
Changed
Section titled “Changed”These engine behaviours change without any change to a wire type:
- A sort’s guard now fires when unification narrows a term to that sort, not only
when a goal classifies one.
person(age: 12)narrowed toadult(guarded byage >= 18) used to succeed and now fails. Withageunbound, the guard stays pending: no solution, andderivationComplete: false. - A guard reading a feature that holds a variable used to fail the goal. It now
stays pending, so
derivationComplete: falseno longer reads as a refutation. - Declaring an individual can change a query that does not name it: its singleton is an ordinary leaf, so it joins the answer of a meet above it.
[13.0.0] - 2026-11-01
Section titled “[13.0.0] - 2026-11-01”Generated from the engine contract of reasoninglayer 4b195b3d73 (1,046 paths,
3,192 schemas).
Breaking
Section titled “Breaking”admitted_runsis gone from the wire type ofVocabularyRefusalResponse: the engine no longer sends it, and it never reachedVocabularyRefusal.identity_rule_multipleis no longer aVocabularyFindingCode. A refusal body whose findings carry it is not read as a vocabulary refusal.VocabularyCrosswalkRunrequiresdrift, andVocabularyAdmissionrequiresrecomputeBlockedandremoved. Responses from older engines missing these fields raiseResponseShapeError.- The engine now refuses a crosswalk whose source schema has no
source_system_assignment(source_system_undeclared): declare one with the new record input before running a crosswalk. - Admitting a crosswalk run needs
admit_data, which only a directdata_ownerrole grants; a steward no longer can. - Admission refuses a run with source drift (
source_drift_detected). Declare asource_fieldfor every path the artifacts hold, including the schema’skeyPath.VocabularyAdmission.writtennow also names the actor, the admission activities and the contributions. - The theory fingerprint’s
definitionis nowdomain-theory-v2, so digests fromdomain-theory-v1do not compare.
- Wire types for the 25 engine routes added since 12.0.0. They have no resource methods yet; reach them through the generated clients.
- Record kinds
data_migration_step,rule_declaration,source_system_assignmentandtrusted_identifier_scheme. The last two have client inputs, and data migration steps are written with the newupsert_migration_stepoperation. VocabularyDecisionKindgainsrecover,eraseandidentity;VocabularyCrosswalkStopReasongainsunit_limit;VocabularyAssessmentDetailKindgainsmigration_effectandrecovery_outcome.- 50 more
VocabularyRefusalCodemembers, whichvocabularyRefusalOfBodyandrethrowVocabularyRefusalnow recognize; fivemigration_*finding codes and themigration_step_malformedrecord error. VocabularyRefusalreads every context field of the engine’s body, includingdrift,consolidation,migrationStep,migrationTerms,restoreSubjects,identityDecisionIds,unitandunresolvedRecords.VocabularyMaterialized.migration,TermVersionDto.activityId.
[12.0.0] - 2026-10-29
Section titled “[12.0.0] - 2026-10-29”Breaking
Section titled “Breaking”- Regenerate the wire types for governance units, release composition and
vocabulary-assessment/v5. The generated concept identity schemas now useConceptIdentityDecisionInputDtoandConceptIdentityDecisionRecordDto; record kinds userelease,governance_decisionandconcept_identity_decision. Conformance usespin_unresolved, and resumed runs namepinned_plugins. - Crosswalk admission requires an explicit
rationale. Assessments require compatibility evidence, CQ comparisons carry canonical answer rows and an execution budget status, and quality reports carry review dispositions. Responses from older engines missing these fields raiseResponseShapeError.
Integration
Section titled “Integration”- Retain compatibility and disposition JSON without changing its data keys or deriving decisions. Preserve CQ answer digests, engine build identifiers, budget stops, the added impact stop reasons and vocabulary refusal codes.
- Include the new review, historical-interpretation and CQ-gap routes in the generated API. Quality compatibility remains absent when no assessment exists.
- The symbolic concept and leave-one-out stability route from 11.3.0 remains available. This refresh changes no stability criterion or native verdict.
[11.0.0] - 2026-10-27
Section titled “[11.0.0] - 2026-10-27”The symbolic-data analyses of the engine’s SDA 2026 work reach the SDK, and the client follows four wire changes. The spec comes from engine c10511aa44 (973 paths, 1,074 operations, 2,991 schemas). Against 10.0.0 it removes no path, operation or schema; it removes SearchedConceptDto.certified and tenant_id from both sort-compare requests, makes IntervalGroupDto.closed_pattern optional, and reshapes RegionPatternDto.bounds.
Migrating to 11.0.0
Section titled “Migrating to 11.0.0”BREAKING. Interval-class answers now profile groups without members, the sort comparison no longer sends a tenant, and two engine responses the SDK passes through generated types changed shape.
| 10.x | 11.0.0 |
|---|---|
IntervalGroup.closedPattern: IntervalRange[] |
IntervalRange[] | null: null exactly for a group without members (an empty extent has no closed pattern) |
| — | IntervalGroup.emptyGenerators: IntervalRange[][] | null: the checked maximal empty boxes of a completely enumerated empty extent |
IntervalPolicyOutcome: chosen | undecided |
adds IntervalPolicyNotApplicable (status: 'not_applicable_empty_extent') for a group without members |
IntervalFitDecision without no_representative |
adds no_representative (the record’s group has no members); no_profile now means no group has the record’s values |
IntervalClassResponse.groups: groups with at least one member |
every group, including groups without members |
SortCompareRequest.tenantId (sent as tenant_id) |
removed: the engine compares in the authenticated tenant’s hierarchy and refuses a body that still carries tenant_id (422), so 10.x sorts.compareSorts fails against this engine |
generated SearchedConceptDto.certified (lattice search) |
clears_base_rate: whether the in-sample selection statistic clears the base rate; the holdout certificate keeps certified |
generated RegionPatternDto.bounds: [number, number][] (interval patterns) |
one object per dimension with explicit lower/upper sides, as IntervalRange |
- Stored representative policies:
IntervalPolicyInputis an inlineIntervalRepresentativePolicyor anIntervalStoredPolicy({ termId }), accepted byintervalClasses,polygonClassesandsynthesizeRegions. A stored policy is sent as its term identity alone; the engine re-reads and checks it on every request. analysis.intervalGenerators(request)(POST /api/v1/analysis/interval-generators, SDA 2026 G2): every frequent interval generator of a visible population, each in the walk’s closed-endpoint language, as its widest real box (maximal) and with its class’sclosedPatternandextent. OnlyenumerationLimitSecondsstops the walk, and thenenumerationCompleteisfalse. Types:IntervalGeneratorsRequest,IntervalGenerators,IntervalGenerator.analysis.polygonClasses(request)(POST /api/v1/analysis/polygon-classes, G8): interval classes of polygons normal to declared integerdirectionsover two numeric features, answered as anIntervalClassResponsewhose ranges are named by each direction’s linear form (x + y,2*x - y). The SDK checks that every description uses one consistent set of distinct names, one per direction. Types:PolygonClassRequest,PolygonDirection.analysis.intervalSubgroups(request)(POST /api/v1/analysis/interval-subgroups, G5): the best subgroups by the exact closed-box walk for abinary,numeric(mean shift) orlabelstarget, each with its closedpattern,extent,qualityand ascorediscriminated on the target kind (tpr/fpr,mean/measured, orperLabel);unmeasuredper target or label; and the walk’svisited,prunedandexhausted. Types:IntervalSubgroupsRequest,IntervalSubgroupTarget,SubgroupQualityMeasure,IntervalSubgroups,IntervalSubgroup,IntervalSubgroupScore.analysis.synthesizeRegions(request)(POST /api/v1/analysis/region-synthesis): one verified region per label with exact rational facets,coverCompleteandpairwiseDisjointdecided by linear arithmetic, and a witness exactly when a property fails. A rational part beyondNumber.MAX_SAFE_INTEGERis refused (ResponseShapeError) rather than returned as another number. Types:RegionSynthesisRequest,RegionInputRange,RegionSynthesis,SynthesizedRegion,RegionFacet,RegionFacetTerm,RegionFacetKind,ExactRational,RegionSynthesisAlgorithm.analysis.symbolicStatistics(request)(POST /api/v1/analysis/symbolic-statistics, G7): per interval or point variable, the Billard–Diday symbolic mean, the variance of the uniform mixture and, over declared edges, the empirical histogram and its quantiles. Refusals are422withsymbolic_statistics_incomplete_recordsorsymbolic_statistics_refused. Types:SymbolicStatisticsRequest,SymbolicVariable,SymbolicStatistics,SymbolicVariableSummary,SymbolicHistogramBin,SymbolicQuantile.analysis.conceptSubgroups(request)(POST /api/v1/analysis/subgroups, G5–G6): concepts of the tenant’s terms ranked by a declared quality measure on a crisp target, by the exact categorical walk or MCTS4DM on the engine’s UCT search (searchnames the one that ran;workis set exactly for Monte Carlo). Each concept resolves among the answer’sartifactTerms, passed through unchanged. Types:ConceptSubgroupsRequest,ConceptSubgroups,ConceptSubgroup,ConceptPosition,ConceptSubgroupStrategy,ConceptSubgroupSearch,AbsentTargetReading.
Changed
Section titled “Changed”sorts.compareSorts(request)takesSortCompareRequestwithout a tenant and sends onlyoperator,sort_aandsort_b.intervalClassesreads the empty-extent contract strictly: a closed pattern exactly when the group has members, empty boxes exactly for a completely enumerated group without members (one per generator),not_applicable_empty_extentonly there andchosenonly for a group with members.
[10.0.0] - 2026-10-25
Section titled “[10.0.0] - 2026-10-25”The FCA clients are integrated on top of the published 9.0.0 release. The complete spec comes from engine main 1abf7a8fbf (967 paths, 1,068 operations, 2,961 schemas); final live qualification uses a separate runtime from the older binary frozen for the Wine campaigns. Against 9.0.0, the audit finds no removed path, operation, schema, field, required field or enum value. Against 8.4.0, the three max_facts request fields were removed in 9.0.0; ConformanceRunSummaryDto.selection is newly required and the fuzzy auxiliary stream gains its factor variant. These earlier changes remain in 10.0.0. The full audit is planning/evidence/fca-10.0.0-spec-audit.json.
Migrating to 10.0.0
Section titled “Migrating to 10.0.0”BREAKING. Interval classes now carry typed values both ways, and the graded (fuzzy) FCA surface has one set of methods. A JavaScript number cannot say whether it is an integer or a real, and the engine compares member and group values exactly, so Integer 3 and Real 3.0 are different values. The engine therefore reads member_value and writes each group key value as a typed value, { "type": "String", "value": "pear" }, and an earlier client’s untyped memberValue is refused (422).
| 9.x | 10.0.0 |
|---|---|
IntervalClassRequest.memberValue: string | number | boolean |
IntervalScalarValue ({ type: 'String' | 'Integer' | 'Real' | 'Boolean', value }); another type is a 400 |
IntervalGroup.key: JsonValue[] (the engine’s tagged form) |
IntervalGroupKeyValue[], typed like term features |
IntervalSide { kind: string; value?: number } |
{ kind: 'unbounded' } | { kind: 'closed' | 'open'; value: number } |
IntervalPolicyOutcome { status: string; … } |
IntervalPolicyChosen | IntervalPolicyUndecided, discriminated on status |
IntervalRecordDecision.decisions: string[] |
IntervalFitDecision[] (fits, does_not_fit, undecided, no_profile) |
IntervalClassResponse.evaluated?: … |
evaluated: IntervalRecordDecision[] | null, null exactly when no evaluation population was named |
analysis.streamFcaFuzzy(request) |
analysis.streamFuzzyConcepts(request) |
analysis.exportFcaFuzzy(request) |
analysis.exportFuzzyConcepts(request) |
analysis.streamFcaFuzzyBasis(request) |
analysis.streamFuzzyBasis(request) |
analysis.streamFcaFuzzyAlphas(request) |
analysis.streamFuzzyAlphaCuts(request) |
analysis.registerFcaFuzzy(request) |
analysis.registerFuzzyConcept(request) |
analysis.verifyFcaFuzzy(request) |
analysis.verifyFuzzyExport(request, records) (the concept records as a Blob) |
analysis.fcaFuzzyBasis(request) |
unchanged; request is now the fuzzy stream source (FcaFuzzyRequest with FcaMembershipSpec quadruples) |
the 8.x fuzzy types (FcaMembership, FcaFuzzyStreamLine, FcaFuzzyAuxStreamLine, FcaFuzzyEnd, FcaFuzzyRegisterRequest/Response, FcaFuzzyVerifyRequest/Response, LFuzzyConcept) |
the fuzzy stream events (FcaFuzzyStreamEvent, FcaFuzzyFactorStreamEvent), FcaFuzzyRegistrationRequest/FcaFuzzyRegistration, FcaFuzzyVerificationRequest/FcaFuzzyVerification |
timeoutMs: 0 aborted every request at once |
0 disables the client deadline; a negative or non-finite value is refused |
The interval-class answer is also checked against its request: a key value per groupBy feature, a range per feature in order, an outcome and a decision per policy, and decisions exactly when they were asked for. An answer that breaks this is a ResponseShapeError.
-
analysis.intervalClasses(request)reworked (first released in 8.3.0; see the migration table above) (POST /api/v1/analysis/interval-classes, FCA scale plan D2; SDA 2026 G1–G3): profiles the interval classes of a visible population and, whenevaluateSortNamesis given, decides its records. The engine groups every visible record by the exact values ofgroupByand profiles each group’s members (memberFeatureequal tomemberValue, a typedString,Integer,RealorBooleanvalue compared exactly:Integer3 does not equalReal3.0) over the numericfeatures. Each group carries its counts (records,members,admittedNonMembers,outside),generators(nullexactly when the enumeration hitenumerationLimitSeconds, withenumerationComplete: false), theclosedPattern, and one outcome per declared policy:chosenwith adescription(oneIntervalRangeper feature, each side explicit asunbounded, orclosed/openwith its value),restrictions,digits,margin(nullwhen no side is bounded) andties; orundecided.evaluatedgives one decision per policy (fits,does_not_fit,undecided,no_profile) for each record, and isnullwhen no evaluation population was named. Group key values are typed like term features (String,Integer,RealorBoolean; the engine refuses any other group value with a422). Records lacking a declared feature are a422(body.codeinterval_class_incomplete_records), a class the engine refuses a422(interval_class_refused), and an invalid request (including anothermemberValuetype) a400. The answer must give one outcome and one decision per policy, one range per declared feature in order, and decisions exactly when they were asked for, or it is aResponseShapeError. Types:IntervalClassesRequest,IntervalRepresentativePolicy,IntervalThresholdChoice,IntervalClassCriterion,IntervalClassProfiles,IntervalGroupProfile,IntervalGroupKeyValue,IntervalScalarValue,IntervalPolicyOutcome(IntervalPolicyChosen,IntervalPolicyUndecided),IntervalRange,IntervalSide,IntervalRecordDecision,IntervalFitDecision, in theAnalysisnamespace. -
timeoutMs: 0(client or per call) now disables the client deadline instead of aborting every request at once; a negative or non-finitetimeoutMsis refused. -
Guide: a real case, intrusion detection on NSL-KDD through
analysis.intervalClasses(148 517 sessions, four representatives), measured against a release engine; every count equals the engine’s native run. -
guidanceonStreamConceptsRequest(K4):{ quantum, exploration?, prior? }lets the engine’s native UCB1 bandit choose which top-level branch is walked next. Guidance changes only the delivery order: the concepts, the counters andcompleteare those of the unguided stream. A guided stream’sendevent gainsguidance(FcaGuidanceReport):priorsays where the first branch order came from (attribute_order,scorer,scorer_abstainedorno_scorer; onlyscorermeans a scorer ranking),orderis a permutation of the branches, and each branch reports its attribute (index and label),pullsandmeanReward, which is guidance only, never evidence. The field is absent on an unguided stream. Invalid guidance, or guidance sent with acontinuation, is a400. Types:FcaBranchGuidance,FcaBranchPrior,FcaGuidanceReport,FcaGuidancePriorSource,FcaBranchRecord, in theAnalysisnamespace. -
analysis.estimateConceptStability(request)(POST /api/v1/analysis/fca-concepts/stability): Monte Carlo estimates of the intensional or extensional stability of named concepts. Each intent must be closed in the freshly read context, else422(body.codefca_stability_not_a_concept). Exactly one ofsamplesandepsilon(the request type enforces it); forepsilonthe engine derives the Hoeffding sample count atdelta. Each estimate carries the concept’s extent,trials,successes,complete,estimate,marginandinterval. The answer must give one estimate per requested intent, in order, or it is aResponseShapeError. These are estimates, never acceptance evidence, with no simultaneous guarantee over the requested concepts. Types:EstimateConceptStabilityRequest,EstimateConceptStabilityCommon,FcaStabilityKind,FcaConceptStabilityEstimates,FcaConceptStabilityEstimate. -
analysis.streamFactors(request)(POST /api/v1/analysis/fca-factors/stream): the greedy (GreConD) factor concepts of a visible scope, as an async iterable ofcontext,factorandendevents. Eachfactoris a natively closed and verified concept with its extent and intent as indices and as names, and exactnewlyCoveredanduncoveredcounts.maximumUncovered(default0, full coverage) declares a partial target. Theendkeepscomplete(nothing uncovered, the only full coverage) distinct fromtargetReached, and carries a continuation while coverage is incomplete. A refused continuation is a422(body.codefca_factor_continuation_refused). A native fault after delivery ends the stream with anendwhoseerroris a string. No minimum-rank claim is made. Types:StreamFactorsRequest,FcaFactorStreamEvent(FcaFactorStreamContext,FcaFactorStreamFactor,FcaFactorStreamEnd,FcaFactorStreamFailure) andFcaFactorContinuation, in theAnalysisnamespace. -
analysis.registerFactor(request)(POST /api/v1/analysis/fca-factors/register): registers a crisp factor’s intent as aProposedsort only after the engine’s realization check. The engine returnsFcaFactorRegistration(sortId,sortName,features, the realizedextent). It answers400for an invalid or non-closed intent or name, and422(fca_factor_registration_refused) when the realization check fails or the name is taken. Types:RegisterFactorRequest,FcaFactorRegistration. -
analysis.streamFuzzyFactors(request)(POST /api/v1/analysis/fca-fuzzy/factors/stream): natively verified graded factors of the numeric fuzzy source, through the fuzzy stream transport (context componentfactors). A graded factor never over-covers. Its coverage counts are exact, anddegreeResidualis a diagnostic, not the selection objective. The end report keepscompletedistinct fromtargetReached. Types:FcaFuzzyFactorRequest,FcaFuzzyFactorStreamEvent(FcaFuzzyFactorEvent,FcaFuzzyFactorEndEvent).FcaFuzzyContextEvent.componentgains'factors';FcaFuzzyStreamEvent, the union the other fuzzy streams yield, gains no variant. -
analysis.streamConcepts(request)(POST /api/v1/analysis/fca-concepts/stream): every formal concept of a visible scope, with no cap, as an async iterable ofcontext,conceptandendevents. Eachconceptcarries its extent and intent as indices and resolved to source term identities and feature names (extentObjects,intentAttributes). Theendevent statescomplete, the counters and, when the stream stopped early (pageSize), acontinuation; sending it back with the same filters delivers exactly the concepts not yet delivered, and other filters are refused (422,body.codefca_stream_continuation_refused). The engine’s native kernel streams with memory independent of the number of concepts. Types:StreamConceptsRequest,FcaConceptStreamEvent(FcaConceptStreamContext,FcaConceptStreamConcept,FcaConceptStreamEnd) andFcaStreamContinuation, in theAnalysisnamespace. -
semanticsonStreamConceptsRequestandFcaExportRequest: read the population as schema presence (the default) or through the engine’s conceptual scaling ({ kind: 'scaled', schemes }, as insortDiscovery), so nominal data such asodor = foulbecomes attributes the engine owns.exportFcanow sends its body verbatim, so feature names keying the schemes reach the engine as written.
Changed
Section titled “Changed”- Attribute exploration is exhaustive by default.
ExplorationSearchBounds(maxWork,maxCandidates,searchTimeoutMs) andStartExplorationRequest.maxTermsacceptnull; absent ornullmeans unbounded (no deadline, every visible record). The engine no longer caps work, candidates, the deadline or the population: a largermaxTermsis a sample the response reports (populationSampled), andmaxTerms: 0is a422.
Removed
Section titled “Removed”AttributeExplorationErrorCodeno longer hasexploration_population_limit: the engine has no population cap left to refuse.
[9.0.0] - 2026-10-25
Section titled “[9.0.0] - 2026-10-25”Built against reasoninglayer main d023057d18, whose forward chainer has no fact cap.
Migrating
Section titled “Migrating”- BREAKING:
maxFactsis removed fromForwardChainRequest(inference.forwardChain),TaggedForwardChainRequest(inference.forwardChainTagged) andE2ETrainingRequest(neuroSymbolic.trainE2e). The engine removedmax_factsfrom the three requests and refuses an unknown field with422, so the SDK no longer sends it, even when an untyped caller passesmaxFacts(run time). The forward chainer has no fact cap: a run ends at its fixpoint.maxIterationsand the request deadline (timeoutMs) remain as backstops, and neither returns a silently cut answer: a run that stops atmaxIterationsreportsfixpointReached: false(completion.fixpointReachedonforwardChain), and a run abandoned at its deadline fails withDeadlineExceededError.
- Resynced against the running engine of reasoninglayer
maind023057d18(966 paths, 2,960 schemas; no operation or schema removed). Besides themax_factsremovals above, it carriesPOST /api/v1/terms/importandGET/DELETE /api/v1/terms/import/{id}(TermImportReceipt), and the interval-class schemasChosenRegionDto,ClassRepresentativeDto,IntervalDto,IntervalSideDtoandProjectionDto, with changes to the cohort, hypothesis, interval-pattern, lattice-search, LGG-class, region-pattern, searched-concept, structural-class and speech-synthesis schemas. They are resynced, not wrapped; no client method calls the term-import routes yet.
[8.6.0] - 2026-10-25
Section titled “[8.6.0] - 2026-10-25”- Refusal code
assessment_not_established(reasoninglayer #635, #756; engine !465): approving a candidate whose cited assessment iscompletewith outcomenot_establishedthrowsVocabularyRefusedError409 assessment_not_established(“the cited assessment is complete but did not establish its outcome”).assessment_blockedis now only for ablockedassessment.
Changed
Section titled “Changed”VocabularyAssessmentDetailis a union onkind. Acqrow hasbody: VocabularyCqComparisonReport, decoded as the CQ run routes decode a comparison (execution.proveentries{ solutions, complete },execution.chainentries{ iterations, fixpointReached }); acqbody that is not a comparison throws. The other kinds keepbody: JsonValue.VocabularyAssessmentDetailis now the union ofVocabularyAssessmentCqDetailandVocabularyAssessmentObjectDetail.- Resynced the vendored spec: documentation text of
POST /osfql(aDEFINEof a name the tenant already holds is422 Sort '...' already exists, governed or not) and the new refusal code. No path, schema or field is removed.
[8.5.0] - 2026-10-25
Section titled “[8.5.0] - 2026-10-25”- Conformance listing by crosswalk run (reasoninglayer #635, #754; engine !464):
VocabularyConformanceRunsQuery.crosswalkRunId(crosswalk_run_id) keeps the conformance runs whose selection is the outputs of that crosswalk run. A run of another selection kind never matches, and another tenant’s crosswalk run matches none. The value is bound into the cursor: a cursor reused with another value, or with none, throwscursor_mismatch; a malformed id throwsinvalid_request. - Typed refusal of a repeated run input: a crosswalk run request that names one
sourceFileIdat two or moreinputspositions throwsVocabularyRefusedError422 invalid_request, anderror.refusal.repeatedInputslists{ sourceFileId, positions }(0-based, ascending; empty when the refusal has none). The engine refuses before anything runs. - Resynced the vendored spec. Besides the two items above, it carries
POST /api/v1/analysis/fca-concepts/stability,/fca-factors/register,/fca-factors/streamand/fca-fuzzy/factors/streamwith theirFca*schemas. They are resynced, not wrapped; noclient.analysismethod calls them yet.
Changed
Section titled “Changed”VocabularyConformanceRunSummary.selectionis now present: a conformance run on a listing page carries its selection in a bounded form,VocabularyConformanceSelectionSummary({ kind: 'crosswalk_run', runId },{ kind: 'sort_extent', sortId }or{ kind: 'term_ids', count }). Aterm_idsselection is counted, never listed; read the run for its ids. A selection of a kind the SDK does not know throws aResponseShapeErrorinstead of being dropped. Before this change the summary omittedselection.- A conformance cursor issued by an older engine build answers
cursor_mismatchon this engine; list again from the first page.
[8.4.0] - 2026-10-24
Section titled “[8.4.0] - 2026-10-24”- Run listings of the governed vocabulary (reasoninglayer #635, #696):
client.vocabulary.listCrosswalkRuns(query?)(GET /api/v1/vocabulary/crosswalk-runs; filtersstate,complete,resumed),listConformanceRuns(query?)(GET /api/v1/vocabulary/conformance-runs;outcome,complete,resumed) andlistCqRuns(query?)(GET /api/v1/vocabulary/cq-runs;outcome). Each also takesreleaseIdorrevisionId(not both),cursorandlimit(1 to 500, default 50), and answers{ runs, nextCursor?, complete }newest first. A run on a page is the single-run read withoutreplayedand withoutdecisions(crosswalk),selection(conformance) orresults(competency question):VocabularyCrosswalkRunSummary,VocabularyConformanceRunSummary,VocabularyCqRunSummary. A cursor used under another tenant, listing or filter throwsVocabularyRefusedErrorcursor_mismatch; bothreleaseIdandrevisionIdthrowinvalid_request. - Resynced against the running dev engine: besides the three listings, the spec carries
DELETE /api/v1/terms/{id}?erase=true(engine ENG-84).DeleteTermReport.erasure(TermErasureReport:complete,historyVersionsErased,termRemoved,remaining) is decoded so the response gate stays green;deleteTermdoes not senderaseyet.
[8.3.0] - 2026-10-24
Section titled “[8.3.0] - 2026-10-24”- M3 metadata surface audited against the running engine (reasoninglayer #635, #637 to #650). The M3 routes and types were already wrapped on this line (conformance runs and findings, crosswalk runs with items, outputs, submit, reviews and admit, competency-question runs and results, assessment details, profile read, documentation and export, quality report, record impact, the 21 model record kinds, run resumption,
engineBuild, the refusal detailscrosswalkProblems,outputRefusalsandresumeMismatches,unknownFilterRowsandunknownFilterOperands,criteriaId, the theory activation receipt andgovernedCompetency). This release candidate checks that wrapping field by field: 22 recorded engine response bodies and 9 recorded refusals now run through the real client, and the test fails when the decoder drops a field. OsfqlErrorTypegainssort_governed_by_release(409) andvocabulary_unavailable(503): an OSFQL program that declares, changes, moves or drops a sort the active vocabulary release governs now reads as anOsfqlFailureinstead of a bareApiError.Sorts.SortGovernanceErrorCodenames the same two codes for the REST sort routes; read them witherrorBodyCode(error).- Guide: the governed vocabulary guide gains a section on metadata profiles, conformance, crosswalks and competency questions (run outcomes, stop reasons, resumption, separation of duties, theory activation).
- Resynced against the running dev engine (960 paths, 2,932 schemas; no operationId renamed, none removed). The M3 vocabulary surface did not change in this resync. Other engine changes it carries:
analysis.intervalClasses(request)(POST /api/v1/analysis/interval-classes): interval-class profiles per group, with declared representative policies and optional per-record decisions (IntervalClassRequest,IntervalClassResponse).- OSFQL native observations:
OsfqlRequest.profile,OsfqlResponse.profileandOsfqlFailure.profile(OsfqlProfile: passes, operators, fused groups);OsfqlResponse.unknownFilterExclusions(rows aWHEREcomparison over an explicitly uninstantiated value excluded; an absence the program reports is not established while it is present);OsfqlDiagnoseRequest.inspectOnlyandmaxInspectionNodeswithOsfqlDiagnoseResponse.inspection(a compile-only plan). ConversationNoticegains the kindcognitive_strategy_unavailable(reason): an answer produced without a step the tenant configured. An exhaustiveswitchonkindneeds the new arm.IngestionConfigDto.promptPopulationId(an exact stored optimizer population; excludespromptVariantId).
- Live contract cases for the M3 routes (
tests/contract/vocabulary-m3.contract.test.ts), written for the live suite. - Speech (
client.speech): protocol-2 voice sessions with continuous transcription and AudioWorklet capture and playback; reconnect after a dropped connection or a session-store hiccup without replaying anything, never after expiry or takeover; end a connection that went silent (server heartbeat); a voice consent lifecycle (purposes, self-attestation, withdraw and reinstate); speech sockets authenticate with a single-use gateway ticket. - Documents: partial erasure receipts and context evidence are preserved.
- Extraction preserves the native registry context negotiation.
- Speech response shapes are regenerated for protocol 2 and the consent records.
[8.0.0] - 2026-10-20
Section titled “[8.0.0] - 2026-10-20”Built against the dev engine serving reasoninglayer main 4787095922 (#626, #627, #628; its /health build_info reads 3d0c414083). The vendored spec has 901 paths and 2,659 schemas (7.2.0: 900 and 2,655): one operation and four schemas added, one field removed. The knowledge-organization plugin is 1.2.0.
Migrating to 8.0.0
Section titled “Migrating to 8.0.0”- BREAKING (#628):
VocabularyCandidateRevision.recordsis removed. A revision answer (createCandidate,saveRevision,getRevision,rebase,commitImport,applyMigrationPlan, and a storedgetRequestOutcomebody of those operations) now counts its records by kind inrecordCounts: Record<string, number>(wire kind spelling → count). Read the records withlistRevisionRecords. A revision body withoutrecord_counts(an engine before #628) fails withResponseShapeError(run time). VocabularyRecordKind,VocabularyRecordInputandVocabularyRecordViewgaindefinition_policy, andVocabularyRecordOperationgainsaccept_proposals. An exhaustiveswitchneeds the new arms.
vocabulary.listRevisionRecords(revisionId, query?)(GET /api/v1/vocabulary/revisions/{revision_id}/records?kind&cursor&limit, #628): one page of the records the revision’s cumulative change set inserts or replaces, by id, optionally of one kind (limit1 to 500, engine default 50). TypesListVocabularyRevisionRecordsQueryandVocabularyRevisionRecordPage.- The
definition_policyrecord kind (#626):VocabularyDefinitionPolicyInputandVocabularyDefinitionPolicyRecord(one per scheme,definition-policy/v1), andVocabularyDefinitionRequirement(required|optional). - The unit operation
{ op: 'accept_proposals' }(#627): the engine sets eachdraftconcept and eachproposedmembership, concept relation, concept mapping and collection of the change set, as it stands at that operation, toaccepted.
[7.1.0] - 2026-10-19
Section titled “[7.1.0] - 2026-10-19”Built against the dev engine serving reasoninglayer main 9e021d8b1d (reasoninglayer #615; its /health build_info reads edf207a3a3, an ancestor). The vendored spec has 900 paths and 2,655 schemas (7.0.0: 899 and 2,650): one operation and five schemas added, none removed. Every change is an addition; nothing breaks.
Governed vocabulary read views (reasoninglayer #615)
VocabularyConceptView.xlLabelsis nowVocabularyXlLabelView[]: each XL label also carries its literaltextandlanguage, and itsoutgoingRelationsandincomingRelations(VocabularyLabelRelationView: the relation record plusotherXlLabelId,otherResourceKey,otherTextandotherLanguage, the XL label at the other end).VocabularyConceptView.mappingsis nowVocabularyConceptMappingView[]:targetExternalConcept(the external concept record the mapping names) andtargetDisplayLabel(the display label of a target concept of the tenant).VocabularySchemeView.documentationandVocabularyCollectionDetail.documentation: the notes about a scheme (inlistSchemes) and about a collection (ingetCollection).
Both view types extend the record types they replace, so code that reads the 7.0.0 fields is unaffected.
Elsewhere
namespaces.getAnswerCacheSavings(namespaceId)(GET /api/v1/namespaces/{id}/answer-cache-savings): the answer-cache outcomes this engine process counted for a namespace (NamespaceAnswerCacheSavingsDto). The counters are not durable, and token savings are not measured.IngestionStatsDto.workCache(IngestionWorkCacheDto): provider calls made, reused and uncacheable, and the token usage the reused observations recorded (an estimate, never included intokenUsage).
Changed
Section titled “Changed”- The concept assignment, feature and rule requests of the generated transport accept
max_terms: null; the SDK still omits an absent bound.
[7.0.0] - 2026-10-19
Section titled “[7.0.0] - 2026-10-19”Built against the dev engine serving reasoninglayer main efee9a5109 (#611 Phase 3 / M2; its /health build_info still reads 1d5faafa63). The vendored spec has 899 paths and 2,650 schemas (6.2.0: 880 and 2,554): 19 operations and 96 schemas added, none removed. It also carries three SDK changes merged after 6.2.0 (query field selection, namespace answer-cache controls, nullable FCA export bounds).
Migrating to 7.0.0
Section titled “Migrating to 7.0.0”Each item names one BREAKING change. The items marked (run time) change behaviour that the compiler does not report.
Unions that gained arms (an exhaustive switch needs them)
VocabularyRecordKindandVocabularyRecordViewgain 14 kinds:concept_relation,taxonomy_policy,external_concept,concept_mapping,documentation,notation,xl_label,label_relation,collection,collection_label,collection_member,source_artifact,source_association,migration_decision.VocabularyRecordInputgains the first 11 (the last three are written only by an import commit or a migration plan).VocabularyRefusalCodegainscursor_mismatch,format_unsupported,source_too_large,source_file_not_found,import_incomplete,import_too_large,import_already_committed,import_baseline_stale,reconciliation_undecided,invalid_decision,migration_plan_stale,invalid_disposition,sparql_unsupported,vocabulary_sparql_unavailable,sparql_deadline,export_unrepresentable.VocabularyFindingCodegains 17 taxonomy and thesaurus codes (hierarchy_self_link,hierarchy_cycle,hierarchy_depth_exceeded,partitive_interpretation_unresolved,relation_outside_scheme,related_also_hierarchical,top_concept_has_broader,missing_top_concept,unplaced_concept,mapping_conflict,mapping_target_unavailable,notation_duplicate,collection_member_dangling,collection_cycle,collection_position_duplicate,collection_position_missing,xl_label_without_label_use), andVocabularyCriteriongainshierarchy,relations,top_concepts,mappings,documentation,collections,label_resources.VocabularyOperationgainscreate_import,commit_import,create_migration_plan,apply_migration_plan, andVocabularyCommittedResult(thebodyofgetRequestOutcome) gains their arms:VocabularyImport,VocabularyCandidateRevision(commit and apply),VocabularyMigrationPlan.
Required fields added (add them to every object you build by hand, such as test fixtures; code that only reads them is unaffected)
VocabularyConceptView:relations,mappings,documentation,notations,xlLabels,collections,sourceAssociations. A concept-detail body without them (an engine before M2) now fails withResponseShapeError(run time).VocabularyRefusal:undecidedSourceKeysandchangedSorts(empty when the refusal does not report them).FactorSortsResponse:version,minSorts,limits,inputComplete,nativeAdmission;FactorProposal:extent,intent;FactorSharedFeaturenow extendsFeatureDescriptorDto(the whole stored declaration) and addssignatureanddeclaredBy. No field of 6.2.0 was removed from it.routedToVocabularyImportonIngestRdfResponse,TranslateRdfResponse,RdfImportReceiptandRdfUpload;sortsRefusedonImportOwlResponse;goalsDeferredonCycleOutcomeDto;undeterminedonWhyNotRule.
Engine behaviour
- The engine’s assessment policy is now
vocabulary-assessment/v2(17 criteria) (run time):status().policies.assessmentreports it.
Governed vocabulary M2: taxonomy and thesaurus (reasoninglayer #611, every new route under /api/v1/vocabulary)
- Record inputs and views for the 14 new kinds above. Concept relations are stored child to parent (
broader) with ahierarchyKind; mappings target a concept of the tenant or an external concept ({ concept }or{ external }); collections are ordered or not, with labels and positioned member occurrences, and may nest. Resource keys, source keys and IRIs travel as values, verbatim. getConceptreturns the concept’s relations, mappings, documentation, notations, XL labels, collections and source associations.- Reads over a view (active, release or candidate):
schemeHierarchy(a DAG: every node once, with the relations that reach it invia),schemePaths,topConcepts,schemePolicy(taxonomy-policy/v1, or its defaults withdeclared: false),conceptRelations,listCollectionsandgetCollection,picklist(a depth-first list for a form control, a multi-parent concept listed once),expandConcept(concepts and external concepts with their supporting relation and mapping ids, and the partitive links withheld). Each traversal keepscompleteandstopReason: a partial answer is not an error. - Imports:
createImport(an uploaded file, fromclient.sources.uploadFile, in Turtle, RDF/XML, N-Triples,kos-csv/v1,kos-json/v1or XLSX, previewed without writing),getImport,listImportItems(every source item with its coordinates, as read, its disposition and cell notes; the coordinates and items, erased toobjectin the spec, are read field by field), andcommitImport(one candidate revision; a new candidate, or the next revision ofcandidateIdwithifMatch). Reconciliation proposals areexact_source_match,ambiguous(never merged) ornew. - Migration plans:
createMigrationPlan(the reviewer’s dispositions bound to the legacy inventory’s fingerprint),getMigrationPlan,applyMigrationPlan(a new candidate;409 migration_plan_stalewithrefusal.changedSortsonce the legacy inventory changed). - Exports:
exportNative(kos-json/v1with the source artefacts and a manifest that lists unreadable records) andexportSkos(Turtle or RDF/XML with the IRI of every published record and the projection losses). sparql: a read-only query over the SKOS projection of one scheme. The answer is discriminated byform;selectandaskkeep the W3C SPARQL 1.1 Query Results JSON document (SparqlSelectResultsDocument,SparqlAskResultsDocument,SparqlResultTermwithxml:lang),constructanddescribecarry N-Triples. An update is refused400 sparql_unsupported.- Every new mutation takes the required
idempotencyKeyof the M1 methods and is recoverable withgetRequestOutcomeunder its operation name.
Sort discovery
factorSortsreports the native FCA run:limits(request and response,FactorLimits),inputComplete/inputStop,search(FactorSearch),presentationStopReason,nativeAdmission, and the replaycontext(FactorContext) with itscontextSha256. A proposal is never an admission seal.SortListResponse.ontologyRevision: an opaque revision of the tenant ontology the page was cut from.
Elsewhere
routedToVocabularyImport: the SKOS statements an RDF ingestion routed to the governed vocabulary import instead of the sort lattice.ImportOwlResponse.sortsRefused(ImportRefusedSort): converted classes the lattice did not admit.WhyNotRule.undetermined: premises whose search stopped at its budget, neither proved nor refuted.FindBySortRequest.fields: return only these top-level features.namespaces.getAnswerCachePolicy/updateAnswerCachePolicy(NamespaceAnswerCachePolicyDto),RequestOptions.cacheControl(no-cache/no-storebypass the conversation answer cache), andfreshon the NL query request.
Changed
Section titled “Changed”FcaExportRequestbounds (maxConcepts,maxWork,maxVisitedConcepts,basisMaxWork,basisMaxCandidates) acceptnull: absent ornullmeans unbounded.
[6.2.0] - 2026-10-18
Section titled “[6.2.0] - 2026-10-18”The vendored spec is engine main fc7ef72a0c’s, byte for byte. It adds the FCA export routes and the per-document FCA report on ingestion session stats; both are additions, so an older engine answers the new routes 404 and omits the new field.
FCA exports
analysis.exportFca(request): export the native FCA of an explicit population (termIds, enumeration bounds, optionally the observed implication basis). Returns anFcaExportkept in its wire form: it is an artifact to replay, sent back unchanged.analysis.verifyFcaExport(fcaExport): replay an export for import into the caller’s tenant. Every claim, completeness included, must equal its native recomputation and every object must name a source term of the tenant; a tampered or foreign export is refused with422and codefca_export_refused. ReturnsVerifiedFcaImport(sources,concepts,conceptsComplete,implications,basisComplete).
Ingestion
DocumentStatsDto.fcaDiscovery: a detached or queued ingestion that setenableFcaDiscoverynow reports each document’s FCA analysis in its session stats.
[6.1.0] - 2026-10-17
Section titled “[6.1.0] - 2026-10-17”The vendored spec is engine main 7ea441a3a7’s, byte for byte (it carries scaled exploration from the FCA completion work). Against an older engine, a start that names semantics or a refutation that names values is refused as an unknown field (the request DTOs deny unknown fields). The spec diff against 6.0.0 is the two exploration fields below and two 422 responses (an empty population) on the certification and mining routes.
Attribute exploration
StartExplorationRequest.semantics(ExplorationSemantics:schema_presence, orscaledwith per-featureScaleSchemes andmaxAttributes; native predicates are not explorable). The start body is now sent verbatim, so the feature names that keyschemesreach the engine exactly as written. The engine refuses a scaled start whose interpretation is incomplete (400).RefuteRequest.values: a scaled session’s counterexample, a record of taggedValueDtos that the session’s own scales project into attributes. Sendfeatures: []with it. The engine refuses a label list in a scaled session, an unreadable value, andvaluesin a presence session, each with400.
Documentation
Section titled “Documentation”- An interactive attribute-exploration workflow page (Guides → Attribute Exploration): connect, start (presence or scaled), answer questions, resume a suspended search, reopen a session after a reload, complete, declare a sort licence and inspect the derived obligations, all through the SDK. A browser must reach the engine on the page’s own origin (the gateway, or a same-origin proxy): the engine answers no cross-origin preflight. A Playwright suite (
pnpm run docs:e2e) drives it against a live engine named byFCA_E2E_BACKEND_URL, and reports the engine-backed tests as skipped without one; with it, the docs dev server proxies/apiand/healthto that engine on the page’s origin.
[6.0.0] - 2026-10-17
Section titled “[6.0.0] - 2026-10-17”Built against engine main 3890af5bb3 (which carries the sort-wide exploration licence and the ingestion FCA phase). The vendored spec has 872 paths and 2,523 schemas (5.1.0: 830 and 2,374): 72 operations and 173 schemas added, 12 operations and 24 schemas removed. It is copied byte for byte from the engine, which now writes it with sorted keys, so most of the api-spec/openapi.json diff is reordering.
Migrating to 6.0.0
Section titled “Migrating to 6.0.0”Each item names one BREAKING change. The items marked (run time) change behaviour that the compiler does not report.
- The retired
/api/v1/control/*goal facade is gone (engine #21). The engine removedcond,call-once,implies,naf,forall,findall,cut,undo,assign/backtrackable,assign/global,global/getandglobal/incr: those handlers did not run the native engine.client.controllosesbacktrackableAssign,globalAssign,callOnce,cond,cut,findall,forall,globalGet,globalIncrement,implies,nafandundo, and the request/response types of those methods are removed (ControlNafRequest,NafResponse,CutRequest,FindallResponse, …). There is no replacement route. The native module operations stay:createModule,importModule,addSymbol,listSymbols,resolveSymbol. ApplyActionResponsegains two outcomes,committed_execution_unavailableandcommit_unconfirmed, each withtransactionId,reasonandretryAllowed(the engine answersfalse). An exhaustiveswitchonoutcomeneeds both arms. The engine serves them, likerolled_back, with status409, soactions.applyActionthrows them as aConstraintViolationErrorwhosebodycarries the outcome (run time): reconcile the transaction before any retry.- Add the new required fields to every object you build by hand (test fixtures):
SortDiscoveryResponse.interpretation,StartExplorationResponse.populationSampled,ChannelAdapterInfo.owned. A sort-discovery body withoutinterpretationnow fails withResponseShapeError(run time). PaperSourcegains'Web': an exhaustiveswitchneeds the arm.- The generated transport’s RDF upload methods follow the engine’s new operation ids (
createRdfUpload,listRdfUploads,getRdfUpload,uploadRdfChunk,completeRdfUpload,pauseRdfUpload); theclient.ingestionmethods of 5.1.0 are unchanged.
Attribute exploration
analysis.licenseExplorationSort(sessionId, { sortName })(POST /api/v1/analysis/attribute-exploration/{session_id}/licences): an attributedexpert-declared-sort-v1declaration that extends a completed, published exploration’s confirmed implications to every term of a sort and its subsorts. It answersSortLicenceResponse(policy,licenceRecord,sortId,sortName,extends,declaredBy,installedRules); a repeat for the same sort answers the recorded licence. Refusals:409exploration_session_not_completed/exploration_not_published,403exploration_actor_required,503exploration_publication_unavailable(nothing installed).analysis.inviteExplorationParticipant(sessionId, participantId)andrevokeExplorationParticipant(...)(PUT/DELETE .../participants/{participant_id}): only the creator invites and revokes; both are idempotent.ExplorationCompleteResponse.publication(ExplorationPublication): the scoped native rules a completion published over the session’s frozen population (policy,licenceRecord,populationRecord,scopeMembers,subjectSortIds,installedRules).StartExplorationResponse.populationSampled:maxTermsstopped the read while records of the scope remained, so the context describes a sample.idempotencyKeyonConfirmRequest,RefuteRequestandAdvanceExplorationRequest, sent as theIdempotency-Keyheader (never in the body): a retry with the same key and request answers the committed response; the same key on a different request is a409idempotency_key_reused.AttributeExplorationErrorCodenames every coded exploration refusal of the spec.
Sort discovery
SortDiscoveryRequest.termIds(an explicit term population) andsemantics(DiscoverySemantics:schema_presence,scaledwith per-featureScaleSchemes —nominal,interordinal,prefixwithPrefixDepths,interval— andmaxAttributes, ornative_predicateswithNativePredicates,alphaandversion). The sort-discovery body is now sent verbatim, so the feature names that keyschemesreach the engine exactly as written.SortDiscoveryResponse.interpretation(DiscoveryInterpretation:kind,complete,scaledAttributeCount,unscaledValueCount,truncated). An incomplete interpretation supports no absence claim.SortRegistration.realizedMembers.
Ingestion
IngestionConfigDto.enableFcaDiscoveryruns the native FCA discovery phase over the document’s stored terms;IngestionStatsDto.fcaDiscovery(FcaIngestionReport,FcaIngestionRecommendation) reports it with its input and search coverage, and arefusalwhen it did not run. It registers no sort.
Elsewhere
BackwardChainRequest.explainFailureandBackwardChainResponse.whyNot(WhyNot,WhyNotNearestFact,WhyNotMismatch,WhyNotRule,WhyNotPremise): why a closed-world goal has no proof.FuzzyProveRequest.nextQuestions,askedSortsandrequireScopeFeatures;FuzzyProveResponse.nextQuestions(NextQuestion);SolutionDto.nullMomentandresiduatedAntecedents(ResiduatedAntecedent).VerifyResponse.anchor(AuditAnchor): the retention-purge anchor a chain was verified from.ChannelAdapterInfo.owned.DmlAteRequest.fromKb(KbRows),ResourceCoordinationRequest.rules(PairingRule) andSmtCheckRequest.linear(LinearAtom).
Changed
Section titled “Changed”SmtCheckRequest.constantsis optional (the engine defaults to an empty list), andBulkApproveActionsRequest.reviewedBy/BulkRejectActionsRequest.reviewedByare optional: the engine ignores them and records the authenticated caller.- The
ProvenSafebinding is now typed in the spec; the SDK still reads it field by field and refuses an off-contract binding.
Not wrapped yet
Section titled “Not wrapped yet”The regenerated transport layer carries these new engine routes; no SDK method wraps them in this release: workflows and workflow runs, inference jobs, categorical inference, causal CATE / LATE / RDD / survival / synthetic control, anomaly detection, forecasting and Shapley analysis, channel adapter registration, cognitive agent import / export / update / runs, collection term membership, compliance audit export / purge / retention, continual-tuning executions, document export, the DSR lifecycle (complete, deny, export, extend, verify), the emergency stop, the epistemic entries, agent identities, ILP rule learning, resumable document uploads, ingestion sources, the production plan, snapshot validation, batch disentailment, MaxSAT, skills, subscription deliveries and usage limits. The exploration routes accept Idempotency-Key; the other request fields the spec gained on unwrapped routes are reachable only through the generated transport.
[5.1.0] - 2026-10-15
Section titled “[5.1.0] - 2026-10-15”Built against engine main 95caf5925. No breaking change.
- OSFQL editor tokens (reasoninglayer-ts-sdk#60):
client.osfql.tokens(query)callsPOST /api/v1/osfql/tokensand answersOsfqlTokensResponse, the editor tokens of the source in UTF-16 coordinates, each with anOsfqlTokenKind. - Resumable RDF uploads (reasoninglayer-ts-sdk#60), every route under
/api/v1/ingest/rdf/uploads:client.ingestion.createRdfUpload,listRdfUploads,getRdfUpload,uploadRdfChunk,completeRdfUploadandpauseRdfUpload, with the typesRdfUpload,CreateRdfUploadRequest,RdfUploadChunkReceiptandRdfUploadPauseReceipt.uploadRdfChunk(id, offset, chunk)sends the chunk as rawapplication/octet-streambytes. A resent chunk with the same bytes answers the same receipt; different bytes at an offset already stored are refused. PatternDiscoveryRequest.continuationon the generated transport (discoverPatternProposals,exportPatternContext): send the continuation of the previous complete-mode page, with the same scope and filters, to receive the next page. The engine answers409when the scope or filters changed.
Changed
Section titled “Changed”- The transport layer and its doc comments follow the engine spec at
95caf5925: attribute-exploration completion registers its appropriateness sorts before the terminal commit and answers the committed receipt again on retry; a confirm/refute answer commits only on the session version it was checked against; a pipeline stage’smetricscount what itsbasisnames.
[5.0.0] - 2026-10-15
Section titled “[5.0.0] - 2026-10-15”Built against engine main feafe936f (reasoninglayer#584 E0-E11, engine !400-!411, and the engine changes merged since cfd780622). Two parts: the #584 S1 resync (truthful pipeline stages, completeness fields) and the governed controlled vocabulary resource, client.vocabulary (#584 S2).
Migrating to 5.0.0
Section titled “Migrating to 5.0.0”Each item names one BREAKING change. The items marked (run time) change behaviour that the compiler does not report: grep for them.
Pipeline stages are assessed, not counted
-
Stop reading
PipelineStageStatus.complete. The engine removed it (engine #584 C0.2): it was derived from counts, so a flat sort list with two levels read as a “complete taxonomy”. There is no replacement flag and no alias. Readstate('not_assessed' | 'stale' | 'accepted'), what it rests on inbasis(discriminated bykind:'legacy_sort_metrics', or'vocabulary_release'withreleaseId,releaseNumber,assessmentId,contextId,assessedAt), and thereasonin words. Only thevocabularystage can leavenot_assessed, from an active governed vocabulary release whose bound assessment is complete and passed; the other five stages are alwaysnot_assessed.metricsare unchanged and decide nothing.// 4.xconst done = status.stages.filter((s) => s.complete).length;// 5.0.0const accepted = status.stages.filter((s) => s.state === 'accepted');for (const s of status.stages) console.log(s.stage, s.state, s.reason); -
OntologyPipelineStageis a closed union of the six stages; the openstringarm is gone, because the engine now declares the stage as an enum. -
Handle a
503fromontology.pipelineStatus()(run time): aVocabularyRefusedErrorwithcode: 'vocabulary_not_committed'means the vocabulary store could not be read; nothing is served partially. It is not aServiceUnavailableError: the body is a vocabulary refusal, and every such body is read as one.
Results that were not complete
- Handle
OptimizationResultstatus: 'undetermined'(run time).optimize.solve()andfromKnowledgeBase()reportedinfeasiblefor every empty backward-chain answer, including one from a bounded search.infeasiblenow requires the engine to report a complete derivation; an empty answer from a bounded or pending derivation isundetermined(UndeterminedResult). An exhaustiveswitchonstatusneeds the new arm. - Read the completeness before reading an empty answer (run time):
BackwardChainResponse.derivationComplete/openWorldSearch,FuzzyProveResponse.derivationComplete/openWorldSearch,NafProveResponse.derivationComplete,BayesianPredictResponse.derivationComplete,AuthzCheckResponse.derivationComplete,NlQueryResponse.derivationComplete,ForwardChainResponse.completion,OsfqlResponse.chainCompletions/proveCompletions,EvaluateCompetencyQuestionsResponse.complete/incomplete,CheckDocumentResponse.complete/passes,SortDiscoveryResponse.incompleteReason/inputComplete/search, the explorationsearchreports,SolveConstraintResponse.unsatisfiable,CoherenceReport.unfinishedDerivationRunsandTemporalSeriesResponse.selectionComplete. The SDK dropped all of them before.
Unions that gained an arm (an exhaustive switch needs it)
ProofKind'truncated',CoherenceVerdict'undetermined'(withcheckedandchainIterations; never a certificate),CompetencyQuestionVerdict'undetermined',CronJobStatus'executing',CronJobRunStatus'interrupted',AudioJobStatus'interrupted',RememberOutcome'unresolved_contradiction',FindingKind'scope_incomplete',OutputPredicate{ TracePredicate },DocumentSource/AudioSource{ stored: { id } }, and the code unionsTermWriteErrorCode/SortCreateErrorCode'governed_sort_write_refused'.
Request and response types that tightened
- Set
DiscoveryConfigDto.changeMode('absolute' | 'relative') whenever you send a discoveryconfig: the engine’s published request contract requires it, and the SDK does not pick a change quantity for you. Send noconfigto use the engine defaults. This requirement comes from a defect in the engine’s spec, not from the engine’s behaviour: the engine accepts a config withoutchange_modeand appliesabsolute(reasoninglayer#593). A later release makeschangeModeoptional again once the spec is fixed. - Read
DiscoverEffectsResponse.discoveredHorizonsas camelCase (supportWeight,sampleCount);HorizonDto.confidenceandEffectPredictionDto.confidenceare optional and alwaysnullfor this estimator. - Add the new required fields to every object you build by hand (test fixtures):
PipelineStageStatus.state/basis/reason;OntologyQualityReport.competencyAssessment;EvaluateCompetencyQuestionsResponse.complete/incomplete;OsfqlResponse.chainCompletions/proveCompletions;ValidatedUnifyResponse.witnessesFailed;AuthzCheckResponse.decisionTime;CheckDocumentResponse.complete/passes;SortDiscoveryResponse.incompleteReason/inputComplete/inputStopReason/search/registrations; the exploration responses’search;IntegratedCycleOutcomeDto.goalsDeferred/simulationResults;CycleOutcomeSummaryDto.goalsDeferred;AgentBeliefDto.shared;CronJobRun.origin;RunCronJobNowResponse.runId;InstallSummary.bundleId;GlbResponse.maximalLowerBounds;LubResponse.minimalUpperBounds;SolveConstraintResponse.unsatisfiable/violatedConstraintIds/suspendedConstraintIds;CoherenceLink.scope;CoherenceReport.unfinishedDerivationRuns;ConversationMessageResponse.frameAmbiguities/frameRetries/gateAbstained;TemporalSeriesResponse.selector/selectionComplete;DetectCommunitiesResponse.graphObservation/levels/config/hierarchyStopReasonandgraphObservationon the centrality, cohesion, path and link-prediction responses; theDiscoverEffectsResponseandPredictFromDiscoveryResponseaccounting fields; andVerdictKindProvenSafe.binding. Code that only reads them is unaffected. - Read
SortDiscoveryResponse.fuzzyLevelsasFuzzyConceptLevel[]; it wasunknown[]. - Catch
ResponseShapeErrorwhere a schema-erased field breaks the engine’s documented shape (run time): the discovery accounting, the community graph observation, the echoed term-set selector, the certificate binding and the extraction-workerexecution/graphare now read field by field, and a body that does not match fails loudly instead of reaching you half-read.
The governed controlled vocabulary: client.vocabulary (engine #584 E9/E10, every route under /api/v1/vocabulary)
- A vocabulary change is a candidate of immutable revisions of knowledge-organization records (schemes, concepts, definitions, label uses, memberships, evidence, source groups, authority references, identity decisions, aboutness). It is assessed, submitted, reviewed and approved by a steward who did not author it, released as an immutable release, and activated: activation swaps the tenant’s active-release pointer (compare-and-set) and materializes the records as Psi-terms of the
com.kortexya.knowledge-organizationplugin in one transaction. Approval and release change neither the active release nor the terms; nothing creates a sort, a parent edge or a rule. - 31 methods, one per route:
status,active,history,listSchemes,listConcepts,getConcept,conceptHistory,search,createCandidate,listCandidates,getCandidate,saveRevision,getRevision,diffRevision,rebase,assess,getAssessment,submit,review,approve,reject,withdraw,listDecisions,release,listReleases,getRelease,listReleaseRecords,activate,getRequestOutcome,getContext,migrationPreview. Every 2xx is decoded throughdecodeResponse. - Typed discriminated unions for the change set:
VocabularyRecordInput(bykind),VocabularyRecordRef(byby:recordorclient_ref),VocabularyRecordOperation(byop:upsertorremove) and the storedVocabularyRecordView. Reads take aVocabularyViewSelector(active,release+releaseId,candidate+revisionId); a candidate view saysdraftNotActive: true. Closed literal unions for every code, state and severity (VocabularyRefusalCode,VocabularyFindingCode,VocabularyFindingSeverity,VocabularyCandidateState,VocabularyReleaseState,VocabularyRecordErrorCode, …). The types are also under theVocabularynamespace. - Idempotency. Every mutation takes a required
idempotencyKeyin its options (VocabularyMutationOptions); the SDK never generates one, so bind it to a variable before the call and pass the same variable on every retry. An identical repeat answers the committed outcome withreplayed: true. Save and rebase also take a requiredifMatch(the head revision id or its ETag;VocabularyRevisionMutationOptions). NewidempotencyParams(key, options?, ifMatch?)inrequest-params.ts, besideifMatchParams. - Acting user. Every mutation is made by the client’s
authenticatedUser(X-Authenticated-User: user:<uuid>). An author and an approver are two clients. - Refusals (engine: every vocabulary
4xxexcept404and412answersVocabularyRefusalResponse):VocabularyRefusedErrorwith the closedcode,current,findings,conflicts,authority,pluginand the whole typedrefusal(recordErrors,findingIds,missingRelations,storedRequestHash,rebaseUrl,recovery). SubclassesIdempotencyKeyRequiredError(428),IdempotencyKeyReusedError(422,storedRequestHash) andMutationOutcomeUnconfirmedError(503,recovery: never conclude that nothing was written; readgetRequestOutcomeor repeat with the same key).getRequestOutcomedecodes the stored body as the operation’s own typed result (VocabularyCommittedResult, discriminated byoperation); a stored body that is not that response throwsResponseShapeError.invalid_requestarrives with400,413,415or422; the activation500materialized_vocabulary_driftis aVocabularyRefusedErrortoo. A404for an unknown record stays aNotFoundError, and a staleIf-Matchstays aPreconditionFailedError(currentEtagnames the head).vocabularyRefusalOfBody(body)reads a refusal from any error body. VocabularyFindingDispositionInput.rationaleis required (engine E9).- Contract suite
tests/contract/vocabulary.contract.test.tsruns the M1 first slice (base_create,v11_definition_change) on a fresh, seeded tenant and erases it;pnpm run capture-fixtures --vocabularyrecords verbatim engine bodies for the unit tests.
The S1 resync
ontology.theoryFingerprint()(GET /api/v1/ontology/theory/fingerprint, engine #584 C0.2): digests of the tenant’s own sort declarations and rules (definition,declarationSet,ruleSet,excluded). Plugin and engine contributions are excluded and only counted, so a plugin install changes neither digest.OntologyQualityReport.competencyAssessment(state: 'none_stated' | 'not_run',acceptedQuestions): whycompetencyPassRateis absent. The report runs no question.EvaluateCompetencyQuestionsResponse.completeandincomplete, and theundeterminedverdict.- Typed
WorkerProposalonExtractEntitiesResponse.workerProposal(engine #584 W1.0), withexecutionandgraphasReadonly<Record<string, unknown>>, andExtractEntitiesRequest.worker({ sourceId, sourceRevision }) to request one. The proposal is advisory:nativeAdmissionis alwaysfalse. - Completeness:
OpenWorldSearchCompletion/OpenWorldLimit,ForwardChainCompletion/FactIdentityIssue,OsfqlChainCompletion/OsfqlProveCompletion/OsfqlRowVerdict,WitnessFailure,AggregationEvidenceonProofDto.aggregation,ExplorationSearchReport,FcaSearchSummary,SortRegistration. OsfqlRequest.inference: recompute deductions in a private read snapshot without publishing a change.AuthzCheckRequest.decisionTimeandAuthzCheckResponse.decisionTime.analysis.advanceExploration(sessionId, bounds?): resume a suspended exploration search. Start, confirm and refute takemaxWork,maxCandidatesandsearchTimeoutMs; sort discovery takesmaxWork,maxVisitedConceptsandmaxSourceScan.ingestion.resumeAudioJob(jobId)for aninterruptedaudio job;originalFileIdon parsed-document, audio and image-extraction metadata;{ stored: { id } }document and audio sources that reuse a retained original.- Discovery:
targetUnit,candidateHorizons,minHorizonScore,asOf, and the full window, observation, outcome and support accounting (ChangeAccounting,EffectAccounting,DiscoveryWindow,DiscoveryObservation,ForwardChange,PredictionSupport). - Communities: hierarchical detection (
hierarchical,maxLevels,seed,graphView),CommunityDto.parentCommunityId,CommunityLevel,HierarchyStopReason,ResolvedCommunityDetectionConfig, and theReferenceGraphObservationevery graph metric now reports. - Conversation frame mode:
ConversationMessageRequest.queryMode/queryModel/contextTermIds, andframeMode,frameAmbiguities,frameRecordId,frameRetries,gateAbstained,queryFrameon the response. GlbResponse.maximalLowerBoundsandLubResponse.minimalUpperBounds;SolveConstraintResponserefutation fields;CoherenceLink.scope(ClauseComparisonScope);CronJobRunorigin and interruption instants;RunCronJobNowResponse.runId;RememberResult.contradictionCheckIncomplete;AgentBeliefDto.sharedandAddBeliefRequest.shared;InstallSummary.bundleId;EnrichedHealthResponse.sovereign;artifactFilesDeletedon the tenant clear and factory reset;EvaluateFunctionRequest.expectedResult;CertificateBinding/ClaimKindon aProvenSafeverdict.Marketplace.MarketplaceErrorCode:plugin_not_persisted,plugin_has_governed_data,governed_data_unverified,plugin_sort_identity_changed.pnpm run check-normalizer-dropsruns intest:ci.
Changed
Section titled “Changed”- Doc comments follow the engine:
@governedsorts refuse every client write and delete door withgoverned_sort_write_refused(term routes409, OSFQL422refusal code); a system-wide marketplace operation is durable-first and answers503 plugin_not_persistedwhen the registry did not store it; disable and uninstall refuse a plugin whose@governedsorts hold records. - Cron docs follow the engine’s current scheduler (run time):
timezoneaccepts onlyUTC(any other zone is a400), andjitterMsandmaxRetriesare reserved (a nonzero value is a400; retries default to0).cron.runNowrefuses a job whose agent is missing, paused or stopped, whose source is not registered, or that has no program registration, with409. - A cognitive cycle (basic or integrated) on a tenant that holds a native agent belief is refused with
422agent_belief_operation_unsupportedand changes nothing (run time). NewCognitive.AgentBeliefErrorCodenames the four belief refusal codes. - The reason a bulk action-review decision gives for an unknown review is
Not found: Review <id> not found; another tenant’s sort as a parent answersSort not found: SortId(<id>), byte-identical to an unknown id. - The cognitive-agent contract suite runs on its own tenant and deletes it afterwards; the g6a cron tests create a real agent for
runNow.
Not wrapped yet
Section titled “Not wrapped yet”The regenerated transport layer carries these engine routes; no SDK method wraps them in this change: query models, the authoring context and application plan, the inbound-webhook hook programs, chunked file upload, the heartbeat simulator, the OSFQL capabilities / token / query-generation routes, the frame execute and frame schema routes, the pattern-proposal routes, completeJoin / completeMeet, model discovery and validation, the temporal profile, UI validation, the egress and sovereignty reads, the source-file download, and the approver-role revocation.
[4.2.0] - 2026-10-03
Section titled “[4.2.0] - 2026-10-03”Built against engine main cfd780622 (engine !321: #475-#480, !322: #481-#487).
conversation.getConversation(id)(engine #478): reads one conversation’s summary, with itskindandtitle, without reading the whole listing.ConversationMessageResponse.notices(engine #477): what the engine did to the question before it answered, typed bykind(pruned_features,value_grounding,retrieval_rescue). New typesConversationNotice,SkippedFeatureandValueSubstitution. The notice sentences no longer appear insuggestions, which holds follow-up suggestions only.repairedandoriginalOsfqlare now also set by a prune, a grounding, the retrieval rescue and the no-code builder.ProofDto.conclusionandSolutionDto.conclusion(engine #476): the conclusion as a structured term,ProofConclusionDto(sortId,sortName,termId, taggedfeatures). Read the sort and features here, not fromgoalDisplay.UIAssemblyStatsDto.dataLoadErrorandUIGenerateResponse.dataLoadErrors(engine #475): a failed data load as a typedDataLoadError(code,message,query).SessionDocument.errorCode(engine #479): the typed reason a session document failed,SessionDocumentFailureCode.DocumentStatsDto.entitiesRefused(engine #480): the entities the declaration verdict refused. It is on the session stats, the document stats and the markdown receipt.BulkSortErrorKindgainsamendment_refused(engine #482): an amendment the lattice refused (a contradicted subsort refinement, a subtree over the cap, a parent edge closing a cycle). It answerssortCreated: true.DocumentResult.summarydoc follows engine #487: the summary is deterministic engine text, not LLM prose.
Changed
Section titled “Changed”ConversationMessageResponse.noticesandDocumentStatsDto.entitiesRefusedare required, as on the wire. A fixture you build for either type must carry them.UIAssemblyStatsDto.osfqlExecutedis absent on a failed data load. It no longer starts withFAILED:; readdataLoadErrorinstead.- Doc comments follow the engine behaviour of !321 and !322:
ui.executeActionupdate_formedits the term in place (#481),affectedPreviewcounts a refused statement as 0 (#485), and the rulederivationsRemovedandderivationsWeakenedcount resident conclusions (#484).
inference.addRule,validateRule,bulkAddRulesandreplaceRulethrow aValidationErrornaming the field (antecedents, orrules[k].antecedents) for a request without anantecedentsarray, not a rawTypeError(SDK #58). An empty array stays the engine’s decision.
[4.1.0] - 2026-10-02
Section titled “[4.1.0] - 2026-10-02”Built against engine main 308ed2a25 (engine !320: #473, #474).
AddRuleResponse.etagandReplaceRuleResponse.etag(engine #473):inference.addRuleandreplaceRulefold theETagresponse header into the result.replaceRule’s tag is the REPLACEMENT’s. The field is absent when the engine sends no header, which it does only when the read that tags the response fails after the write committed.RuleEntryDto.etagoninference.getRules(engine #473): the tag of each withdrawable rule; absent on a rule no route withdraws.
Changed
Section titled “Changed”GeneratedScenario.sortsis optional (engine #474). No scenario key is required now: every collection defaults to empty, so a vocabulary import sendssortsalone.GeneratedScenario: the engine no longer reads the snake_case spellingswebhook_actions,temporal_constraints,guard_constraints,pipeline_stagesandsensor_points(engine #474). It ignores them like any unlisted key, without an error. SendwebhookActions,temporalConstraints,guardConstraints,pipelineStagesandsensorPoints.materializeScenariosends the scenario verbatim, so the SDK does not rewrite a key in either direction;ontology.generate()returns the camelCase spellings.MaterializeScenarioRequestFromFrontToApipasses the scenario through without a type assertion.
inference.deleteRuleandreplaceRuledocs: read a rule’sifMatchtag fromaddRule,replaceRuleor thegetRuleslisting. They said to read it withterms.getTerm(ruleId), which answers404for a rule since engine #456.TermResponse.etagandterms.getTermdocs are corrected the same way. This closes the 4.0.0 known engine gap reasoninglayer#473.- Contract test g5a reads the rule’s tag from the
addRuleresult and the listing, not fromterms.getTerm.
[4.0.0] - 2026-10-02
Section titled “[4.0.0] - 2026-10-02”Built against engine main 5cef4fa34 (v0.1.151-58). 3.1.0 and 3.2.0 shipped without changelog entries; the entries below cover every change since 3.2.0.
Migrating to 4.0.0
Section titled “Migrating to 4.0.0”Each item names one BREAKING change listed under Changed — BREAKING or Removed — BREAKING below, and what to change in your code. The items marked run time change behaviour that the compiler does not report: grep for them.
Removed calls and fields
- Drop
platform.listBranchesandplatform.forkBranch, and the imports ofConversationBranch,BranchListResponseandForkBranchRequest. There is no replacement: the engine removed both routes. - Stop reading
DeleteGoalResponse.referencesDeletedandSortDeletePreviewResponse.orphanedForeignChildren: the engine no longer sends them.orphanedChildrenlists every child a sort delete would orphan. - Delete
UIActionRequest.originalValuesfrom every UI action, and always send the row’s term UUID astermId. - Delete
IngestionConfigDto.batchSizeandmaxSchemaTokensfrom every ingest call. The engine refuses either key with422. - Delete
tenantIdandownerIdfromAddPendingReviewRequest,tenantIdfromReExtractRequest, andreviewedByfrom the bulk review requests. Send each review candidate as{ termId, similarity }. - Stop reading
ErrorResponse.details.
Changed signatures
authz.deleteTuple(tupleId, options?, requestOptions?): move request options from the second argument to the third.conversation.listConversations(query?, requestOptions?): move request options from the first argument to the second.analysis.confirmImplication(sessionId, { questionId }, requestOptions?): pass the pending question’sExplorationQuestion.questionId, and move request options to the third argument. SetRefuteRequest.questionIdtoo.reviews.getSummary()takes no tenant id: callgetSummary()orgetSummary(requestOptions).
Request bodies the engine now checks
- Give every rule at least one antecedent (
addRule,validateRule,replaceRule,bulkAddRules):antecedentsis required. Write a rule with no antecedents as a fact, withterms.createTerm. - A
not(bind('?T', …))needs a positive antecedent that binds?T(run time): drop thebindto keep the old “no such term exists” meaning. A nestedbind()in a positive feature value now joins on that identity; drop it there too if you did not mean the join. - Write each scenario rule as a
Scenarios.ScenarioRule({ head, antecedents?, certainty? }, each term{ sort, features?, negated?, binding? }) inGeneratedScenario.rulesandUpdateScenarioRequest.addRules. - Set
RecordTurnRequest.conversationKindto'guided_ontology'or'external_agent'only. - Use
FlowRelOp('le' | 'ge' | 'eq' | 'lt' | 'gt' | 'ne') in thecomparearm of a feasibilityBoolExpr, not the oldRelOpvalues. - Use
SymbolVisibilityDto('public' | 'private' | 'protected') for a module symbol’svisibility. - Narrow the strings you assign to
Argument.label(ArgumentLabel),Attack.kind(ArgumentAttackKind),ReExtractRequest.extractionStrategy(ExtractionStrategy),CertificateDetail.verdict/method,UIResultShape,TurnFeedback.rating/ConversationAnswerFeedbackResponse.rating(AnswerRating) and the residuationkindfilter (ResiduationKindFilter). - Annotate a rename body with
PatchSortFeatureRenamewhere you extended or indexedPatchSortFeatureRequest, and narrow with'name' in reqbefore you read.name.
Response shapes
- Re-read these responses through their new types, because the old types named keys the engine never sent:
OsfSearchResponse.entities/relations(OsfSearchEntityDto,OsfSearchRelationDto),AteEstimateResponse.certificate(DoublyRobustCertificateDto),FormalJudgeResponse.violations(FormalJudgeViolationDto),ExecutionSessionStatsResponse, and the flatPendingReviewDto(now the ingestion one). - Read
UIDescribeResponse.dataas aUIDataPayload: switchtotal_count/term_idstototalCount/termIds. - Parse
CreateConstraintSessionResponse.createdAtas an ISO 8601 string, not a number. - Handle
nullinDocumentAnalysisReport.overallComplianceandDocumentResult.complianceScore:nullmeans no applicable rule was evaluated, or (for a document) that it was read only in part. - Filter conversations on
c.kind === 'assistant', not on an absentkind:ConversationSummaryDto.kindis required. - Add the new arms to every exhaustive
switch: the twelve new fuzzyEffectDtoarms,ReviewReason're_extraction',OsfqlErrorType'lock_timeout'andWaitingConditionType'variable_binding'. Remove the'suspended'and'ready'residuation states, andResiduationStats.ready/suspended. - Move imports of
ViolationDtofrom theOversightnamespace toGeneration, and ofSortSuggestionDtofromReviewstoCognitive. ReadIngestion.PendingReviewDtowhere you readReviews.PendingReviewDto. The flat exports are unchanged. - Name
IngestionSessionDetailResponsewhere you named the return type ofingestion.getSessionin a position that needs the exact type. - Add the new required fields to every object you build by hand (test fixtures):
sourceFilesDeleted,inboxItemsDeletedanddmPairingStateDeleted(tenant clear, delete and factory reset);entitiesRefused(IngestionStatsDto);turnId(ConversationMessageResponse);complete(SparqlTranslation);entityTermIdandentityOrigin(PendingReviewEntity);documentId(ReExtractResponse);inventionTermId(TrizNoveltyScore); and all sevenConformanceViolationDtofields. Code that only reads them is unaffected. - Catch
ResponseShapeErrorandReasoningLayerErrorwhere a malformed response used to pass through (run time): an unknown fuzzy effect arm, an off-scale rating, and an unreadable TRIZ novelty score now throw.
Errors and status codes (run time)
- Branch on
OsfqlErrorwitherrorType === 'lock_timeout', not onServiceUnavailableError/InternalServerError, for a503fromosfql.execute. - Branch on
errorType === 'refused'/400, not'execution'/422, for an OSFQLDROP SORTorALTER SORT … PARENTSbeside another statement, or a reparent onto an unknown parent. - Move review-decision error branches:
BadRequestError/400for a decided review becomesConstraintViolationError/409, andForbiddenError/403for another tenant’s review becomesNotFoundError/404. - Read a
sendMessageStreamrefusal of an unknown or foreign conversation from itserrorevent (status404 or 409), not from a thrown error.
Changed — BREAKING
Section titled “Changed — BREAKING”-
query.osfSearchentities and relations take the route’s real shape (engine !309).OsfSearchResponse.entitiesisOsfSearchEntityDto[](termId,sortId,matchDegree,communityId,features,name?,matchReason?) andrelationsisOsfSearchRelationDto[](sourceId,targetId,relationType,confidence,discoveryMethod). The query-areaMatchedEntityDtoandDiscoveredRelationDtoare removed: they named keys the route never sends, so every field readundefined. The flatMatchedEntityDtoexport is now the conversation one. -
AteEstimateResponse.certificateis aDoublyRobustCertificateDto(productBiasFactorization,consistentUnderCorrectPropensity,consistentUnderCorrectOutcome,allCertified) oncausal.estimateAteand its ATT/DML/TMLE/clustered siblings. It was typed as the oversightCertificateDto, so every field readundefined. -
FormalJudgeResponse.violationsisFormalJudgeViolationDto[](layer,description,factId,constraintType?) onoversight.judge,refineand sessionfinalize. The oldseverityandrelatedFactIdnever existed on this route.ViolationDtomoves from theOversightnamespace toGeneration, the area that sends it; the flat export is unchanged. -
CreateConstraintSessionResponse.createdAtis an ISO 8601 string, not a number: the engine serializes a UTC date-time. -
ExecutionSessionStatsResponseis{ memorySessionCount, curriedFunctionCount, dbAvailable }. The old{ documents, sessionId, total }was the ingestion shape and never matched the route. -
Module-symbol
visibilityisSymbolVisibilityDto('public' | 'private' | 'protected'). The namespaceVisibilityDtoit used admittedinternalandrestricted, which the module routes refuse. -
Solver
RelOpis replaced byFlowRelOp('le' | 'ge' | 'eq' | 'lt' | 'gt' | 'ne') in thecomparearm of a feasibilityBoolExpr. The old spelled-out values ('less_than_or_equal', …) belong to the constraint solver and were refused bybeginFeasibilitySession. -
Fuzzy
EffectDtohas all fifteen membership-function arms of the engine’sFuzzyEffectDto(sigmoid,bell,sigmoid_difference,gaussian_product,sigmoid_product,cosine,spike,cauchy,s_shape,z_shape,pi_shape,piecewise_linear, besidesgaussian,triangularandtrapezoidal). Code that switches exhaustively onPredictEffectResponse.effectmust add the new arms. An arm the SDK does not know now throwsResponseShapeError(with the status, method, path and body); before, any arm but the first three was reported as a fabricated{ gaussian: { mean: 0, stdDev: 0 } }. -
UIDescribeResponse.datais aUIDataPayload(columns,rows,totalCount,termIds?), mapped likeui.generate’s payload. It was an untypedobjectpassed through raw, so callers read snake_casetotal_count/term_ids. Switch those reads tototalCount/termIds. -
UIResultShapeis the closed union of the engine’sReturnsenum ('Bindings' | 'TermIds' | 'Scalar' | 'List' | 'Path' | 'Boolean' | 'None'); the openstringwidening is gone. -
ConformanceViolationDtofields (subject,object,feature,subjectSort,objectSort,kind,suggestedFixes) are required: the engine publishes the component with all seven required. Only code that constructs one is affected. -
The cognitive cycle’s
SortSuggestionDtomoves from theReviewsnamespace toCognitive, the area that returns it. The flat export is unchanged. -
CertificateDetail.verdictis typedVerdictKindTag('ProvenSafe' | 'Falsified' | 'EmpiricallySafe' | 'Residuated') andmethodisProofMethod; both werestring. -
ErrorResponselosesdetails: no engine error body carries it. -
authz.deleteTuple(tupleId, options?, requestOptions?): the second argument is now{ ifMatch?: string }; per-call request options move to the third. A caller that passed request options second must move them. -
The flat
PendingReviewDtois the ingestion one (candidates: CandidateMatchDto[]of{ termId, similarity },entityId,reason,sort): the shape the ingest responses carry inpendingReview. TheReviews.PendingReviewDtois removed: it carriedReviewCandidateMatchDtocandidates, matched no wire shape, and no normalizer produced it. ReadIngestion.PendingReviewDto, or the flat name. -
UIActionRequest.originalValuesis removed (engine #172). The engine refuses anoriginal_valueskey with422, andupdate_formno longer reads it: it identifies the row bytermIdalone, which must be a term UUID (else400). Drop the field, and always send the row’s term id. -
reviews.getSummary()takes no tenant id (engine !304, #87 #366). The route is nowGET /api/v1/reviews/summary, with the tenant taken from the principal; the old/reviews/summary/{tenant_id}is gone. CallgetSummary()(orgetSummary(requestOptions)).ReviewSummaryaddstotalApproved,totalRejected,totalCorrected,totalMerged,avgPendingConfidence(0when nothing is pending) andoldestPending?(RFC 3339), andbyReasonis nowPartial<Record<ReviewReason, number>>; a key outsideReviewReasonthrowsValidationError. The confidence bands are now computed, no longer a constant0. -
Review request bodies lose the fields the engine now refuses with
422(engine !304).AddPendingReviewRequestdropstenantIdandownerId, addsreasonDetail?, and takescandidates: ReviewCandidateInput[]({ termId, similarity }; the old fullReviewCandidateMatchDtois refused).ReExtractRequestdropstenantId, andextractionStrategyis anExtractionStrategy(it was astring);documentIdmust be a registry document id.BulkApproveRequest,BulkRejectRequestandBulkMergeRequestdropreviewedBy: the reviewer is the principal. Migration: delete those fields from every call, and send each candidate as{ termId, similarity }. -
ReviewReasonadds're_extraction'(engine !304), the reason of an entity a re-extraction found. An exhaustiveswitchoverReviewReasonneeds the new arm.Ingestion.PendingReviewDto.reason(thependingReviewentries of the ingest responses) is now aReviewReason, not astring, and addsreasonDetail?. -
PendingReviewEntityadds the requiredentityTermIdandentityOrigin(ReviewEntityOrigin:'proposed' | 'provisional' | 'existing'), andreasonDetail?;ReExtractResponseadds the requireddocumentId, the registry id of the new document version. Only code that builds these objects by hand is affected. -
An OSFQL
DROP SORTorALTER SORT … PARENTSbeside another statement isrefused(HTTP 400), notexecution(HTTP 422) (engine !305, #365).osfql.executethrowsOsfqlErrorwitherrorType: 'refused'and the newatomicRefusal(code:drop_sort_not_alone/alter_sort_not_alone,message), the same codeosfql.previewreports. AnALTER SORT … PARENTSthat names an unknown or foreign parent is also arefused400 (Cannot reparent sort 'S': parent sort X does not exist); an unknown subject sort stays anexecution422. The type surface does not break, but code that branches onerrorType === 'execution'or on status422for these programs must move to'refused'/400. -
DeleteGoalResponse.referencesDeletedis removed (engine !306, #288). The engine dropped thedelete_referencesquery parameter and the always-0references_deletedcount.inference.deleteGoal(goalId)deletes the goal with every term it owns (its clause, query, constraint and variable terms) and never a tenant fact the goal only references. The response is{ deleted, goalId }. -
ClearTenantResponse,DeleteTenantResponseandFactoryResetResponseadd the requiredsourceFilesDeleted,inboxItemsDeletedanddmPairingStateDeleted(engine !308, #381, #358): the uploaded source files, unified-inbox items and DM pairing records (policies, allowlisted senders and pairing requests, summed) the wipe erased. The mapper dropped all three.rowsDeletedTotaldoes not count the inbox or pairing records: the engine erases them through their stores before the table sweep. Only code that builds one of these objects by hand must add the fields. -
Argument.labelisArgumentLabel('in' | 'out' | 'undecided') andAttack.kindisArgumentAttackKind('value_conflict' | 'polarity_conflict' | 'deontic_conflict' | 'rule_derived_conflict'), engine !306 (#76). Both werestring; the wire values did not change. Only code that assigns an arbitrary string to them stops compiling. -
ConversationSummaryDto.kindis a requiredConversationKind('assistant' | 'guided_ontology' | 'generative_ui' | 'external_agent', engine !310). Every conversation carries its kind: an assistant chat carries'assistant', so a test for an absent kind (!c.kind) now matches nothing. Filter onc.kind === 'assistant', or list one kind withlistConversations({ kind }). The engine no longer lists a conversation without a valid kind. -
conversation.listConversations(query?, requestOptions?)(engine !310): the first argument is now aListConversationsQuery({ kind?: ConversationKind }), sent as?kind=<kind>; per-call request options move to the second. A caller that passed request options first must move them. An unknown kind is aBadRequestError. -
RecordTurnRequest.conversationKindis aRecordableConversationKind('guided_ontology' | 'external_agent'), not a freestring(engine !310). The engine refusesassistantandgenerative_uiwith400, an unknown kind with422, and a kind other than the stored one with409(ConstraintViolationError). An absent kind on create now meansexternal_agent. -
IngestionConfigDto.batchSizeandmaxSchemaTokensare removed (engine !311, #352). The engine refuses either key with422on/ingest/markdown,/ingest/markdown/batch,/ingest/document,/ingest/document/batchand/ingest/audio. Neither had an effect. The LTN and source-ingestbatchSizefields are different DTOs and stay. -
ingestion.getSessionandIngestionSessionHandle.getSessionreturnIngestionSessionDetailResponse(engine !311, #400): the session fields anddocuments: SessionDocument[].IngestionFailedError.sessionis the detail response too. The result still satisfiesIngestionSessionResponse; only code that names the return type in a position that needs the exact type is affected. -
analysis.confirmImplication(sessionId, request, requestOptions?)(engine !314, #410): the second argument is now a requiredConfirmRequest({ questionId }), sent as{ "question_id": … }; per-call request options move to the third.RefuteRequest.questionIdis required too. Pass the pending question’sExplorationQuestion.questionId(new on every question the start, confirm, refute and status calls return). An id that is not the pending question — a replayed answer, a stale id, an id after completion — answers409with codeexploration_question_not_pending(ConstraintViolationError; read the code witherrorBodyCode) and nothing is applied. An older client gets415(confirm) or422(refute). -
AddRuleRequest.antecedentsis required (engine !312, #375, #390), and so isantecedentsin the request ofinference.addRule,validateRule,replaceRuleand everybulkAddRulesrow. The engine refuses a rule with no antecedents (422 rule rejected: a rule needs at least one antecedent; a term with no antecedents is a fact — write it through POST /api/v1/terms): write a fact withterms.createTerm.validateRulewith an empty list answersok: falsewith arefusedissue. InbulkAddRulesan empty row is refused per row inrejected[]and not counted; a row without the key fails the whole batch with422. Everyrejected[].reasonis now the single route’s422text, prefixedrule rejected:(the oldrule head term did not resolve: …andantecedent N could not be resolvedtexts are gone). -
The residuation listing drops the states it never held (engine !314, #93).
ResiduationStateDtois'pending' | 'completed' | 'failed'andResiduationStateFilteris'pending' | 'completed' | 'failed' | 'all'('suspended'and'ready'are gone;'failed'is a new filter).ResiduationStatslosesreadyandsuspended, and its counts describe the returned rows.ResiduationKindloses'all'; the request’skindis the newResiduationKindFilter(ResiduationKind | 'all').WaitingConditionTypeadds'variable_binding': an exhaustiveswitchneeds the arm. -
TrizNoveltyScore.inventionTermIdis required, and a malformed novelty score throws (engine !313, #383). Entry i ofNlQueryResponse.noveltyScoresscores the i-thtriz_inventive_proposalofresults, so the mapper no longer skips an entry it cannot read (that shifted every later score onto the wrong proposal): it throwsReasoningLayerErrornaming the index. -
TurnFeedback.ratingandConversationAnswerFeedbackResponse.ratingare typedAnswerRating(-1 | 0 | 1), notnumber(sdk#55). The mapper checks the value: a rating off the scale is reported as aResponseShapeError, not passed through. Only code that builds one of these objects with a plainnumberstops compiling. -
A
503lock_timeoutfromosfql.executeis now anOsfqlError, not aServiceUnavailableError/InternalServerError(engine !306, #288).OsfqlErrorextendsApiErroronly, so an existinginstanceof ServiceUnavailableErrororinstanceof InternalServerErrorbranch for/osfqlstops matching, and no compiler reports it: branch onerrorType === 'lock_timeout'.OsfqlErrorTypeadds'lock_timeout': other writers kept the tenant’s knowledge base locked until the request deadline; nothing ran, so retry it as is or send a largertimeoutMs. The engine can answer it before a read-onlyMATCHtoo;osfql.previewnever does. The transport’sretryOn503still applies first. An exhaustiveswitchoverOsfqlErrorTypeneeds the new arm. -
PatchSortFeatureRequestis now a union type alias (PatchSortFeatureRename | PatchSortFeatureAmendment, engine !305, #389). Rename calls compile unchanged, but code that reads or extends the type breaks:interface X extends PatchSortFeatureRequestno longer compiles, andreq.name/PatchSortFeatureRequest['name']isstring | undefined. Extend or annotate withPatchSortFeatureRenamefor a rename body, and narrow with'name' in reqbefore you read.name. -
Review decisions answer
409and404where they answered400and403(engine !304). The type surface does not break, butapproveEntity,correctEntity,mergeEntityandrejectEntitynow throwConstraintViolationError(409) for a review that is no longer pending (it wasBadRequestError,400), andNotFoundError(404) for another tenant’s review (it wasForbiddenError,403). Code that branches onBadRequestError/400for a decided review, or onForbiddenError/403for another tenant’s review, must move toConstraintViolationError/409andNotFoundError/404. -
DocumentAnalysisReport.overallComplianceandDocumentResult.complianceScorearenumber | nullondocuments.analyze(engine !315, #411).nullmeans that no applicable rule was evaluated, so nothing is shown about compliance. A truncated document has anullscore, and its rules do not count towardoverallCompliance: nopasscan stand on a partial read. The SDK reported an absent score as0, which reads as “fails every rule”. -
IngestionStatsDto.entitiesRefusedis required (RefusedEntityDto[]:termId,sortName,message,feature?,chunkIndex?; engine !315, #433). Ingestion judges each extracted entity by the same declaration verdict asPOST /api/v1/termsand lists every entity it refused, so it was not written. An older engine that omits the list reads as[]. -
ConversationMessageResponse.turnIdis required (string, engine !317, #466): the assistant turn the answer was stored as, the idsubmitAnswerFeedbackrates. Every answer is stored, the certify-or-abstain refusal and the could-not-process reply included, so every answer carries it.sendMessage, the streameddoneevent anddecodeConversationMessageall carry it; a payload withoutturn_iddoes not decode (decodeConversationMessagereturnsnull, and the stream throwsNetworkError). -
SparqlTranslation.completeis required (boolean, engine !317, #464). It says whetherosfqlanswers the query when run verbatim (true, one statement) or holds plan fragments that only the engine’s bridge joins (false). The mapper dropped it before. Check it before you run any ofosfql. -
bind()on a nested term keeps its binder (engine #438). In 3.2.0 the nested-term conversion dropped it by design, and the same call now sends a different body with a different meaning. On the clause ofnot(),not(bind('?T', psi('meat_topping')))changes fromNOT EXISTS meat_topping()(“no such term exists”) toNOT EXISTS ?T: meat_topping()(“?Tis not one”); when no positive antecedent binds?T, the engine now refuses the rule with422. A nestedbind()in a positive feature value now adds an identity join. -
GeneratedScenario.rulesandUpdateScenarioRequest.addRulesareScenarioRule[](engine !319, #470), the shape the engine publishes:head(required) andantecedentsareScenarioRuleTerms (sort,features?,negated?,binding?) andcertaintyis optional (default0.8). They wereRecord<string, unknown>[]andunknown[], so a rule of the wrong shape (aconclusionin place ofhead) compiled and was refused only by the engine.addRulesis now mapped field by field, so a key outside the published shape no longer goes out; only the termfeaturesgo out as written. The otheradd*collections andGeneratedScenario.rulesgo out unchanged.
Removed — BREAKING
Section titled “Removed — BREAKING”platform.listBranchesandplatform.forkBranchare removed, with the typesConversationBranch,BranchListResponseandForkBranchRequest(flat and underPlatform). The engine removedGET /api/v1/branches/{conversation_id}andPOST /api/v1/branches/{branch_id}/fork(engine !308, #370); both answer404, and there is no replacement.SortDeletePreviewResponse.orphanedForeignChildrenis removed (engine !315, #435). A caller-chosen sort id can no longer name a sort outside the caller’s scope, so a delete preview no longer counts another tenant’s children.orphanedChildrenlists every child that would be left without a parent.
-
ingestion.searchWeb(request)(POST /api/v1/web/search, engine #413): searches the web through the deployment’s providers and returnsWebSearchResponse(query, the trimmed query, andresults: WebSearchHit[]of{ url, title, snippet, provider, score? }, best first). An emptyresultsis a search that found nothing. The hits are candidates foringestUrl; the search writes nothing for the tenant.limitis left out when unset (the engine refusesnull). A deployment with no provider answers503web_search_not_configured(ServiceUnavailableError, permanent:retryOn503retries it for nothing); failed providers answer502web_search_providers_failed. New types:WebSearchRequest,WebSearchResponse,WebSearchHit,WebSearchErrorCode. -
getWebCapabilitieslimits (engine #414):urlIngestion.maxCrawlDelayMs,maxRedirectsandrequestTimeoutMs, andwebSearch.maxResultsLimitandmaxQueryChars. The mapper dropped all five.UrlIngestionCapabilitydocuments the worst case of one crawl they bound. Code that builds aWebCapabilitiesResponseliteral must add the five fields. -
UrlIngestStoreFailedError(engine #415):ingestion.ingestUrlthrows it for the500web_ingest_store_failedanswer, when the crawl ran and storing its pages failed part way. It extendsInternalServerErrorand carriesreport(the pages stored, as a200would report them),failed(WebIngestStoreFailure:step,page?,message) andnotWritten(WebPageRef[]). Nothing is rolled back and a re-run is safe. Such a failure was a400 Domain errorbefore; a400now means a malformed body only. New types:IngestUrlStoreFailure,WebIngestStoreFailure,WebIngestStoreStep,WebPageRef,WebIngestErrorCode. -
conversation.submitAnswerFeedback(conversationId, request)(POST /api/v1/conversation/{id}/feedback, engine #84): rates one assistant answer-1,0or1(AnswerRating), with an optionalcorrectionandcomment(each at most 10,000 bytes), and returnsConversationAnswerFeedbackResponse(feedbackId,conversationId,turnId,rating,replaced). One rating per turn: a re-rating replaces it and keeps thefeedbackId. There is no delete; rate0to withdraw a judgement. A user turn is refused with422. An accepted rating is also recorded in the compliance ledger under/api/v1/conversation/answer-feedback. -
TurnDto.feedback(TurnFeedback:feedbackId,rating,correction?,comment?,recordedAt) on a rated assistant turn ofgetTurns. -
ConversationTrainingConfigDto.rewardUserFeedback(default0.5): a chat answer rated helpful earnsrewardUserFeedback × satisfaction; one rated unhelpful takes the failed-goal penalty. It is left out when unset (the engine refusesnull). -
RlTrainResponse.transcripts(RlTranscriptSummary:cognitiveAgent,chat,synthetic,ratedTurns) on a conversation run. A nonzerosyntheticwithuseRealConversationssays the tenant had no conversation to train on. -
verification.runVerification(request)(POST /api/v1/verification/run): discharges aSafetyPropertyagainst a neural network, an agent trace or a family of LLM outputs and returns aVerifyRunResult(certificateId,kind,method?,verdict). New types:VerifyRunRequest,SafetyProperty,VerificationTarget,OutputPredicate,AbstractIntervalVec,AbstractInterval,AbstractIntervalBound,TraceBundle,TraceProperty,AgentTraceStep,VerifyRunResult,VerdictKind,VerdictKindTag,ProofMethod,EmpiricalMethod. The PascalCase variant keys are sent verbatim. -
verification.health()(GET /api/v1/verification/health): the plain-text"ok". -
CertificateDetail.verdictDetail: the whole verdict, so the falsification witness and description, the empirical confidence and sample count, the residuation wake triggers and the proof are no longer dropped. -
Typed lifecycle refusal readers:
termRefusalOf(error)→TermRefusal(status,code: TermRefusalCode,message,termId,referrers,repairs,ruleIds,derivedBy?),ruleRefusalOf(error)→RuleRefusal(code: RuleRefusalCode,ruleId,derivations?,derivationsAtLeast?) andfunctionRefusalOf(error)→FunctionRefusal(code: FunctionRefusalCode,function,callers). They read the engine’sTermRefusalResponse,RuleRefusalResponseandFunctionRefusalResponseout of a thrownApiError, likesortDeleteRefusalOf.RuleNotWithdrawable.codeis typedRuleRefusalCode. -
AuthzTuple.etag:authz.writeTuplefolds theETagresponse header into the tuple; pass it asdeleteTuple(id, { ifMatch })for a stale-write-safe revoke (a stale tag throwsPreconditionFailedErrorwithcurrentEtag). -
visualization.termList(request?)(POST /api/v1/visualization/term-list) →TermListVisualizationResponse(graph,totalCount,offset,limit,emittedCount,coreferences?), andvisualization.unifyTerms(request)(POST /api/v1/visualization/unify-terms,op: 'unify' | 'anti_unify') →TermUnifyVisualizationResponse(graph,success,bindings?,resultTermId?). Both routes now publish their own components. -
ProofTraceNodeDto.substitutions: the variable bindings applied at a conversation proof step, keyed verbatim by variable name. -
SortRefSelectPropsandisSortRefSelectProps(props)(engine #172):ui.describerenders a feature declared by an entity range as aselectnode whosepropscarrysortName,valueKey: 'id'andlabelKey: 'label', and whoseload_dataaction lists the options. The guard narrows a node’spropswithout a cast. -
ReviewEntityOrigin,ReviewCandidateInput,ReviewAddErrorCode(review_sort_unknown,review_candidate_unknown,review_confidence_out_of_range,review_similarity_out_of_range, the422codes ofreviews.addPendingReview) andReExtractErrorCode(document_source_not_retained, the409ofreviews.reExtract).errorBodyCodereads both. -
ingestion.retryDlqEntry(id)(POST /api/v1/ingest/dlq/{id}/retry, engine #87): re-runs the entry’s whole document and answers202withDlqRetryResponse(entry, nowretrying;entriesRetrying;sessionId;documentId;statusUrl). Every pending entry of the document moves toretryingand settles tosucceededor back topending.404for an unknown or foreign id;409with aDlqRetryErrorCode(dlq_entry_not_pending,dlq_retries_exhausted,dlq_document_in_flight,dlq_source_not_retained);503without a background queue throwsIngestionQueueUnavailableError, assync: falseingestion does. -
IngestionStatsDto.alreadyIngestedandDocumentStatsDto.alreadyIngested(engine #387):truewhen the bytes were already ingested in the tenant. Nothing is re-extracted,documentTermIdnames the earlier registry document, and the request’scollectionPath/previousDocumentIdapply to that document. Code that builds either object by hand must add the field. -
IngestionSessionHandle.getDocumentStats(documentId)(GET /api/v1/ingest/sessions/{session_id}/documents/{document_id}/stats): one document’s stats,nullwhile it still runs (204);404and409(failed or cancelled) throw. The engine publishesDocumentStatsDtoas the200body (engine #464). -
DocumentVersionErrorCode(engine #387):ingestMarkdownandingestDocumentanswer404previous_document_not_found(NotFoundError) for apreviousDocumentIdthat names no document, which was silently dropped before, and409duplicate_document_version_conflict(ConstraintViolationError) when duplicate bytes already belong to another version family. Withsync: falsethe same refusal ends the session documentfailed. Read the code witherrorBodyCode. -
ontology.listUpperOntologies()(GET /api/v1/ontology/upper, engine !297): every vendored upper ontology, in registry order, asUpperOntologySeedsResponse(seeds: UpperOntologySeed[]ofname,title,ontologyIri,versionIri,license(SPDX),sourceUrl,retrievedOn,byteLength). A seed is third-party data served unmodified under its licence.ontology.getUpperOntology(name)now takes any listed name (string);UpperOntologyNamestays as the set this SDK version knows. Neither read registers a tenant. -
sorts.patchSortFeatureamends a declaration’sdescriptionandindex(engine !305, #389).PatchSortFeatureRequestis now the unionPatchSortFeatureRename(name,cascadeTerms?) |PatchSortFeatureAmendment(descriptionand/orindex). Per key, an absent key keeps,nullclears, a value replaces;index: nullreturns the declaration to silence, which is notnot_indexed. This is the only way to clear either field. The union makes the engine’s new 400s (a rename combined with an amendment,cascadeTermson an amendment, an empty body) compile errors; a blank description is still a 400. The alias change is listed under Changed — BREAKING. -
OsfqlFailure.atomicRefusalandOsfqlError.atomicRefusal(engine #365): the code of a program refused because aDROP SORT/ALTER SORTis not alone. -
EnrichedHealthResponse.bootId,startedAtanduptimeSeconds(engine !306, #287) onhealth.check(): the identity of the engine process. A newbootIdmeans the engine restarted and every derived conclusion a client cached is reset. They are optional only because a gateway can answer with an empty or partial body; the mapper never invents them.BuildInfoDto.versionis now the engine’sgit describewithoutvand-dirty(0.1.150-76-g8cb95b7c8), andgitHash/buildTimestampare present in development builds too. -
ArgumentLabelandArgumentAttackKind(flat and underArgumentation). -
ConversationKind,RecordableConversationKindandListConversationsQuery(engine !310), flat and underConversation. -
TurnDto.proofTrace,reasoningTrace,validityCertificateId,validityCertificateHash,validityCertificateRuleProgramHashandvalidityCertificateRuleRevision(engine !310): a reloaded assistant turn ofgetTurnscarries the proof tree, the reasoning trace and the certificate the live answer carried. -
ingestion.getDocumentStats(sessionId, documentId)(GET /api/v1/ingest/sessions/{id}/documents/{doc}/stats, engine !311, #400): the stats of one document, ornullwhile it runs (204). An RDF document is aNotFoundError(its receipt is ongetSession); a failed or cancelled document is aConstraintViolationError. -
IngestionSessionHandle.waitForSession(options?)(engine #400): polls likewaitForCompletionand returns the completedIngestionSessionDetailResponse, whose documents carry their receipts. Use it for aningestRdfsession queued withsync: false: it has no markdown stats. -
IngestionSessionDetailResponse,SessionDocument,IngestionDocumentStatus,DocumentReceiptandRdfImportReceipt(engine #400):documents[].errorgives the reason a document failed, anddocuments[].receiptwhat a completed one wrote, tagged bykind(markdown: the document stats;rdf:sortsCreated,termsCreated,shapesParsed,repairedIriCount,repairedIris). -
BulkCreateSortsRequest.prefixes(engine !311, #404, #454): prefix bindings (prefix → namespace IRI,''= the default prefix) for the batch’s CURIE names. The keys go out verbatim. PasstranslateRdf(...).prefixes. A malformed binding is aBadRequestError; rebinding a bound prefix is aConstraintViolationError. -
BulkSortErrorKindadds'unbound_prefix'and'non_canonical_prefix'(both withsortCreated: false). An exhaustiveswitchover the kind must handle them; prefersortCreated. -
DocumentTypeadds'text'(engine #405):ingestDocumentandingestDocumentBatchaccept base64.txt,.mdand.markdownfiles, and the parse stats name thetextparser. A file that is not UTF-8 is a422oningestDocumentand oningestDocumentBatch({ sync: false }), and a failedresultsentry on an inline batch; either way the message names the file and the byte offset. -
engine.getStats()(GET /api/v1/engine/stats, engine !314, #93), alsosystem.engine: the caller’s tenant’stermCount,ruleCount,tenantSortCountandsharedSortCount(withtenantId), each equal to the total of the listing it summarises. NewEngineClientand typesEngineStatsResponse(flat and under the newEnginenamespace). -
reasoning.listOperations({ limit? })(GET /api/v1/reasoning/operations, engine !314, #93): the subsumption, merge, entailment and disentailment verdicts the engine answered for the tenant, newest first, asReasoningOperationListResponse(operations: ReasoningOperation[]ofsequence,name,goal,goalTruncated,verdict,degree?,computationTimeMs,createdAt;total;retentionofscope: 'process',capacity,goalBudgetBytes). The log is process-scoped and bounded;limit: 0is aBadRequestError. New types:ReasoningOperationName,ReasoningVerdict,ReasoningOperationLogScope,ReasoningOperationRetention. -
RuleTermWriteError(engine !312, #376):terms.updateTerm,terms.deleteTermandinference.bulkRetractTermsthrow it for the409write_targets_ruleanswer — a write onto a rule’s own term (its conclusion template, an antecedent pattern or a variable). It extendsConstraintViolationErrorand carriesruleIdsandrepairs(replace_ruleandwithdraw_ruleper rule the caller may edit; none for a plugin, system or bootstrap rule). A pattern or variable delete answeredterm_named_by_rulesbefore; a conclusion edit or delete answered200/204.bulkRetractTermsremoves nothing.OsfqlRepair.kind/DerivedFactRepair.kinddocumentreplace_rule. -
SortRefFeatureValue({ sort_ref, sort_name? }) inFeatureValueDto(engine !312, #353): a sort named as a value in a listed rule, a chaining answer or a fact listing. It arrived as{ term_id }before, indistinguishable from a term.sort_nameis absent when the caller’s lattice does not hold the sort.FeatureValueDtoalso gainsInlineTermFeatureValue, the whole Ψ-term the engine inlines for a hidden rule template. New helpers:isSortRefFeatureValue(value)andfeatureValueToInput(value), which converts a listed value into the write format ({ sortRef },{ termId }, the literal’s scalar) so a rule read fromgetRules()can be sent back toreplaceRule. -
ExplorationStatusResponse.question(engine #410): the pending question,nullonce complete — a client that lost an answer re-reads it here.ExplorationQuestion.questionId,ConfirmRequestandAttributeExplorationErrorCode('exploration_question_not_pending', flat and underAnalysis). -
OsfqlResponse.computationTimeMs(engine !314, #93): the engine’s own run time of the program. Code that builds anOsfqlResponseliteral must add it. -
ConformanceRepairResponse.durabilityFailures(engine !314, #406): the repairs applied in memory but not persisted; empty on a clean pass. Code that builds the response by hand must add it. -
UpdateScenarioResponse.warnings(engine !312, #403): a scenario rule the engine refused is named here (rules[i] (conclusion `s`) was not written: <reason>), not thrown. Code that builds the response by hand must add it. -
DocumentResult.evaluatedText(DocumentEvaluatedText:evaluatedChars,totalChars,truncated) andDocumentRuleResult.withheldStatus(engine !314, #411) ondocuments.analyze: how much of the document the rules pass read, and the pass/fail the engine withheld (reportedinconclusive) because it was not grounded in the text. -
WaitingConditionDto.variable(the awaited variable, e.g.?y) andResiduatedTermDto.resolvedAt(epoch ms) onvisualization.residuationStateandexecution.residuate(engine #93). -
createApiErroris exported from the package root (sdk#51). Theerrorevent ofconversation.sendMessageStreamdocumented it, but only the error classes were exported.createApiError(event.status, { error: event.error, message: event.error }, new Headers())gives the same subclass,messageanderrorCodethatsendMessagethrows for the same failure (InternalServerErrorfor502,ServiceUnavailableErrorfor503, …). Anerrorevent withoutstatusis not an HTTP failure. The stream still yields the event and does not throw it. -
ResponseShapeError(sdk#54): every resource method that reads a JSON body throws it for a2xxresponse it cannot read, in place of the bareTypeErrora normalizer raised (Cannot read properties of undefined (reading 'map')). It extendsReasoningLayerError, notApiError, and carriesstatus,method,path(after the base URL, without the query),bodyandfield: the dotted path of the first published field the body lacks, holds asnullor holds with the wrong kind (items,items[3].sort_suggestions).fieldisundefinedwhen the body is not JSON (an HTML page served with200;causeis the parse error) or when every published field is present. The check runs only after reading the body failed, so a body without a field the SDK defaults for an older engine is still read. Any other error a normalizer throws (ValidationError,ReasoningLayerError) is unchanged. -
Sorts.SortCreateErrorCode(sort_id_unavailable,sort_id_held_under_another_name; engine !315, #435): the409codessorts.createSortanswers for a caller-chosenid.sort_id_unavailableis an id held outside the caller’s scope (another tenant’s sort or the shared lattice), or a version 5 UUID that names none of the caller’s own sorts;sort_id_held_under_another_nameis an own id posted under a differentname(rename withpatchSort). Read the code witherrorBodyCode. -
DocumentRuleResult.basis(DocumentVerdictBasis:quoted_violation,quoted_compliance,stated_unknown,absence) andDocumentRuleResult.withheldConfidenceondocuments.analyze(engine !315, #411): what the evaluator said a verdict rests on, and its confidence in a withheld verdict. Both are absent from an older engine. -
Documents.DocumentAnalysisErrorCode(llm_answer_unparseable; engine !315, #411):documents.analyzethrows anInternalServerErrorwith status502and this code when the LLM answered a step with no readable JSON. -
Terms.TermWriteErrorCode(write_creates_rule; engine !315, #455):terms.createTerm,terms.updateTermandinference.addFactanswer422with this code for a non-empty list under the featurewhen, which would make the term a rule.bulkCreateTermsnames such a row inBulkRefusedError.rows(feature: 'when'), andbulkAddFactslists it inrejected. OSFQL writes answer the refusal codewrite_creates_rulewith the repairuse_derive. -
OsfqlPreviewStatement.refusal(engine #449, #457): the refusal the run would raise for the statement, with the messageosfql.executeanswers: a stand-alone write naming an earlier statement’s variable, or a write onto an append-only fluent term, an inlineMATCHwrite included. -
GenerateOntologyRequest.languageonontology.generate: the language of the generated human-readable text, as a BCP-47 tag or a language name. Sort and feature names stay English snake_case; absent, the model writes in the language of the prompt. -
FeatureInputInlineTerm.bindingandFeatureInputInlineTermByName.binding(engine #438): a nested inline term names its own identity. On theclauseof a negation it names the term the negation is about:not(bind('?T', psi('meat_topping')))isNOT EXISTS ?T: meat_topping(), and a positive antecedent must bind?T. -
prefixesonscenarios.create,materializeScenarioandupdate(CreateScenarioRequest,MaterializeScenarioRequest,UpdateScenarioRequest; engine !319, #470): prefix bindings (prefix → namespace IRI,''= the default prefix) for the scenario’s CURIE names, with the contract ofBulkCreateSortsRequest.prefixes. They are bound in the same hold of the lattice as the scenario’s sorts and released if the scenario is refused. The keys go out verbatim. PasstranslateRdf(...).prefixes. A malformed binding is aBadRequestError; rebinding a bound prefix is aConstraintViolationError. -
ScenarioRuleandScenarioRuleTerm(underScenarios): the typed scenario rule, with the antecedentbindingthe engine now publishes.
Changed
Section titled “Changed”-
documents.analyze(engine #411): a withheld verdict reportsconfidence: 0, and the evaluator’s value moves towithheldConfidence.overallComplianceno longer countsnot_applicablerules, so the number changes even where it is notnull.documents.checkadds a warning for a document on which the rules pass evaluated no applicable rule, and reports an unreadable LLM answer as its non-fatal KB-rules warning. -
Review decisions change the knowledge base (engine !304):
rejectEntityretracts a provisional entity with its edges,mergeEntitymoves the edges and retracts,correctEntitypatches the live term, andreExtractnow runs: it creates a new document version and answers404for an unknown document. -
Every UI action is atomic (engine #172): a failure keeps nothing, and its
errorends with(the program was rolled back: …). -
Saved goals live outside the fact store (engine !306, #288).
inference.createGoal,backwardChain/fuzzyProve/nafProve/bayesianPredictwithsaveGoal: true, andbulkFuzzyProvewithsaveGoals: truestore the goal apart from the tenant’s facts: it no longer appears in aMATCHor ingetFacts(), andcreateGoal/bayesianPredictno longer write it into the live store. A sort-onlybackwardChaingoal withsaveGoal: truenow answers a UUIDgoalId(it wasnull, and the save was dropped).nafProvewithsaveGoal: truealso saves the goal’s own term. Goals that an earlier engine saved are stray facts in the fact store andlistGoalsdoes not list them: wipe them (for example withadmin.clearMyTenantData()). -
Reads never register a tenant (engine !306, #385).
GET,HEADandOPTIONSnever create the tenant’s registry row; a served unsafe-method request (POST/PUT/PATCH/DELETE) or a WebSocket upgrade does, but a401/403/404/405/501answer never does. After reads only,admin.getMyTenant()andadmin.deleteMyTenant()answer404.osfql.preview,osfql.diagnose,argumentation.evaluateandingestion.searchWebnever register the caller, their400/415/422answers included. -
The unified inbox and the DM pairing state are durable (engine !308, #358): DM policies, allowlists, pending pairing requests and inbox items are stored in PostgreSQL and survive a restart. A tenant clear or delete, or a factory reset, erases them and counts them in
inboxItemsDeleted/dmPairingStateDeleted. -
A tenant delete or clear releases the tenant’s channel routes (engine !308, #369): another tenant’s
channels.registerRoutefor such an account now succeeds instead of answering409. -
argumentation.evaluate(engine !306, #76): the request body is closed (an undefined key is a plain-text422); a preference or retraction naming no claim is a400(preference names no claim: "x"/retracted names no claim: "x"); a preference on a retracted claim is dropped with a warning.Argument.textis the claim’s prose, else the OSFQL pattern of the stored fact, else its term label;Argument.indexexcludes retracted claims;ArgumentQuestion.promptuses typographic quotes (Which is true: “A” or “B”?); a rule-derived attack’sreasonnames the rendered fact. -
coherence.analyze(engine !306, #76):CoherenceDerivationStep.derivedFactLabel, the rule-derived clash reason and the conflict-fact diagnostic carry the rendered OSFQL pattern (for exampleincoherence(motif: "two colours")), notterm-xxxxxxxx. -
platform.runDiagnostics(engine !306, #368):checksholds three entries,memory_usage,system_clockanddisk_access, each once (it held four), sopassCountis3on a healthy engine. -
sendMessageandrecordTurnraiseConstraintViolationError(409) for a conversation another surface owns, andsendMessageStreamyields anerrorevent withstatus: 409(404for an unknown conversation) (engine !310): the stream checks the conversation after it opens.sendMessageraisesNotFoundErrorfor an unknown conversation. The certify-or-abstain answer is now stored and carriesturnId. On a rescued turn,suggestions[0]is theNo exact matchnotice, andoriginalOsfqlis always set whenrepairedistrue. -
ui.generaterecords agenerative_uiconversation titled by the prompt (engine !310), listed bylistConversations({ kind: 'generative_ui' }). AconversationIdthe caller does not own is aNotFoundError; a conversation of another kind is aConstraintViolationError. The engine checks both before the LLM runs. -
ingestAudioappliesingestionConfig(engine !311, #367), like/ingest/markdown, unlessparseOnlyis set. Without a config, the extraction strategy is the request default (LLM), not the deployment’sEXTRACTION_STRATEGY. -
Markdown ingestion has no 100,000-byte limit (engine #405):
ingestMarkdown,ingestMarkdownBatchandresumeIngestionare bounded only by the 50 MiB body limit (413, anApiError). -
OSFQL binds prefixes and reads CURIEs (engine #404):
PREFIX ex: <iri>;binds a tenant prefix durably, andMATCH :Pizza(:size: ?S);reads unquoted CURIE names. A rebind, or aDEFINEof a CURIE whose prefix is not bound, is anOsfqlErrorexecutionfailure (422).sorts.createSort,patchSortandpatchSortFeatureaccept a CURIE under a bound prefix, and refuse an unbound one with400.sorts.getSchemastarts with the tenant’sPREFIXlines. -
TranslateRdfResponse.prefixesis the binding map the names are compacted through: a document prefix that conflicts with a tenant binding is renamed, never rebound.termCountno longer counts stub terms for the objects of skipped schema declarations. -
IngestRdfResponse.sortsCreatedcounts the sorts the OWL pass created (0withoutparseOntology), not the lattice size. -
A synchronous
MATCH … SEMANTICrow carries its feature columns in rank order. A binder-less pattern keeps_semantic; a pattern with a named root has no_semanticcolumn. Ranking obeys visibility and the bitemporal slice. -
query.nlQueryin cognitive mode filters by every translated constraint, andgeneratedOsfis the executed OSFQL. A constraint it cannot carry issuccess: falsewith the reason inerror; an emptyresultswithsuccess: truemeans no match. A filtered or structured question over a rule sort that has members only by derivation issuccess: false, and so is an aggregate over any sort a rule concludes (the aggregate reads only stored members); the reason is inerror.NlQueryResultItem.idis the matched term id. -
A rule head no longer carries
certaintyinfeatures(engine !312, #377, #391): readRuleEntryDto.certainty. A fact’s authoredcertaintyfeature now shows indisplay. Everydisplay/goalDisplay/ruleLabeltext shows all data features sorted by name, with JSON-escaped strings, shortest round-trip reals and full lists (no[...N items]);ruleLabelno longer shows the aggregator. -
A
MATCHwith an inline write classifies by that write (engine !313, #416): an inlineINSERT,LINKorUPSERT LINKisadditive_write; an inlineUPDATE,REMOVE,UNLINK,DELETEorDETACH DELETE(or anIF/WITHthat holds one) istargeted_destructive.ui.executeActionnow needsconfirm: truefor those (elserequiresConfirmation: true), its dry run answersaffectedPreview.exact: false, andosfql.previewanswersaffectedErrorand noaffectedfor an inline destructiveMATCH. A writing query in aui.describe,ui.generateor AG-UI data load is refused without an exception:stats.osfqlExecutedstarts withFAILED:. -
generation.generateDocument(engine !313, #360) is read-only (no derived fact is written) and covers only the root’s material (the terms it reaches plus the terms that reference it). A root that is absent, an engine built-in or rule scaffolding answers404(NotFoundError) before the LLM check; more than 500 terms of material answers422. -
fuzzy.searchTopK(engine !313, #378):exhaustive: truewith nocoveragewhen no retrieval cap fired;exhaustive: falsewithcoveragewhen one did. -
memory.remember(engine !313, #379): the tenant route no longer refuses text that contains code; the remaining400s are an empty text, more than 500 characters and an importance outside0..1. -
Agent-queued action reviews (engine !313, #380) carry
agentIdandgoalContextId, soactionReviews.list({ agentId })finds them; approving one re-runs the agent’s integrated cycle. -
Scenarios (engine !312, #403):
scenarios.create,materializeScenarioandupdatedecode rule features with the REST rule encoding ("?X",{"name":"?X"},{"_var":"?X"}are variables; a literal starting with?is{"type":"String","value":"?x"}). Each rule runs thePOST /api/v1/inference/ruleschecks; a refused rule is not written and is named inwarnings. An unknown sort is refused, not widened tothing. -
conformance.repair(engine !314, #406): an applied repair is durable — visible onGET /terms, kept across a restart, versioned in the history and announced on CDC. -
The residuation listing (engine #93) keeps one row per term (
idis the term id), keeps completed and failed rows, fillswaitingFor, applies both filters and reportscreatedAtin epoch milliseconds.GET /terms/{id}reportsfailedwhen a later check failed. -
osfql.previewcounts the terms an inlineMATCH … UPDATE / REMOVE / UNLINK / DELETEchanges (engine #457). Such a statement carriesaffected(count,exact,sampleRows, one row per changed term) like aRETRACT, where it carriedaffectedErrorand no count. A term that several joined rows bind counts once, and anUNLINKcounts a source only when it holds the edge.ui.executeActiondry runs report the same exact count. -
ingestion.getDocumentStatsand the session handle’sgetDocumentStatscall the generated route: the engine now publishes theDocumentStatsDtobody of its200(engine !317, #464). -
ui.generatebinds a data query to its rows’ term ids (engine #471): a certified single-pattern data query gets the identity binding on its root pattern (noted indiagnostics), and the view that uses it names the id column inprops.rowKey. Any other query names norowKey. -
scripts/check-spec-validity.jsfails on a root tag declared more than once (sdk#2). The engine declarespreferencesonce since #465.
-
Every resource method that reads a JSON
2xxbody goes throughdecodeResponse(sdk#54). Twenty-two pass-through methods (statistical,causal,neuro-symbolic,cognitive,collections,control,proof-engine,snapshots) returnedresponse.dataraw, so a gateway’s200HTML page resolvednulltyped as the DTO. They now throwResponseShapeError.pnpm run check-response-decodeflags a barereturn response.data;unless the route asks fortext,bloborarrayBuffer. -
ResponseShapeErrormessages use the right article:not an array (got an object), not(got a object). -
fuzzy.predictEffectcalls the generated route instead of a raw request. -
ingestion.retryDlqEntrynever retries the queueless503, even withretryOn503, like thesync: falsepaths. It retried it up tomaxRetriestimes before it threwIngestionQueueUnavailableError. -
ingestion.ingestUrlraisesUrlIngestStoreFailedErroronly for a500body that has the complete published shape (anerrorstring, and pages and skipped entries with their required keys). A body withreport.pages: [null]threw a bareTypeErrorfrom the mapper and lost the originalInternalServerError; it now stays thatInternalServerError. -
featureValueToInputkeeps a listed string that starts with?a constant: it returns{ type: 'String', value }. Returned bare, the engine’s rule write path read"?x"as a variable, so a rebuilt rule matched every value. -
Generation
GenerationVerificationDto.violationspassed the wire objects through raw, sorelatedFactIdwas alwaysundefined(the snake_caserelated_fact_idleaked instead). Each violation is now mapped. -
A conversation proof node with a
nulldetail,ruleorconfidencereadsundefined, like every other absent optional field. -
ui.generatereads anullcertificate_id,page_version,conversation_id,data,layout,descriptor,trace, intentstatement_id/returns/reasonor data-sourcereturnsas absent. It now calls the generated route against the publishedUIGenerateResponseinstead of a raw request typed by hand-written wire shapes. -
coherence.analyzecalls the generated route, typed against the publishedCoherenceReportinstead of hand-written wire shapes. Anulloptional report field (subsumption,clash,advisory,target,weakest_boundary, …) stays absent, as an omitted one does. -
marketplace.searchCatalogandconformance.checkare typed against their own published components (MarketplaceSearchRequest/MarketplaceSearchResponse,ConformanceViolationDto) instead of hand-written wire shapes;searchCatalogcalls the generated route. -
reviews.addPendingReviewcalls the generated route, and a pending review’s sort suggestions are typed against the publishedReviewSortSuggestionDto. A malformed suggestion is no longer refused with aValidationErrorat read time; the published DTO is the contract. -
ConstraintViolationError.termId,.featureand.constraintare read from the engine’s flat 409 body (ConstraintViolationResponse:{ error, message, term_id, feature, constraint }). The SDK read them from adetailsobject no engine sends, so all three were alwaysundefined. -
Verification errors: the engine now answers
{ error: <reason phrase>, message: <text> }, soApiError.messageis the engine’s sentence (it was the synthesizedHTTP 404) anderrorCodethe reason phrase.verification.getCertificatecalls the published route; a non-UUID id is aBadRequestError(400), an unknown id aNotFoundError(404). -
sorts.patchSortFeaturesent onlynameandcascade_terms: the mapper droppeddescriptionandindex. It now copies every key that is set, and sendsnullasnull. -
OsfqlFailureFromApiToFrontdropped the error body’satomic_refusal; it now reads it, and refuses a malformed one like the other details. -
discriminateFeatureValuethrew on every object, so it could not read a variable, a literal wrapper or a term reference. It now narrows all five object arms (var_name,literal, an inlined term,sort_ref,term_id). -
inference.bulkAddRulesdropped a row’saggregator; it now forwards it, asaddRuledoes. -
sparql.translateQueryandtranslateUpdateare now typed against the publishedSparqlExplainDto/SparqlUpdateExplainDto(engine !317, #464), and a plan node’sattrskeeps only string entries.
Documentation
Section titled “Documentation”- UI actions (engine #172): a
"sort_ref"field takes a term UUID invalues, which the engine stores as a Reference; a non-UUID, an undeclared entity range, or a non-UUIDsort_refplaceholder in arun_osfql/ feature-baseddelete_recordtemplate answers400(BadRequestError), and a UUID that names no visible term answerssuccess: false.UIAssemblyStatsDto.includedFeaturescounts only fields with a value control. - Review decisions (engine !304):
approveEntity,correctEntity,mergeEntityandrejectEntitydocument403for a reserved or unwritable sort;rejectEntity,mergeEntity,bulkRejectandbulkMergedocument the503for terms that could not be made resident. Each method documents its knowledge-base effect, and thatnotesandreasonare kept as the decision note. functions.registerFunction/replaceFunction(engine !314, #388) document the422codomain codesfunction_codomain_empty,function_codomain_non_string_label,function_codomain_blank_labelandfunction_codomain_repeats_label, checked before theconformalTaucheck;evaluateFunctiondocuments the error for a stored mixed codomain such as["a", 3]. ANeuralcodomain must be non-blank, distinct string labels.- The
CheckDocumentResponse.warningsofdocuments/checkincludeKB rules pass read only the first N of M characters of <name>; …for a partly read document, andkbRuleReportcarries the sameevaluated_text/withheld_statusfields. - The Ψ-terms concept page documents the read format of a listed rule’s features and the
featureValueToInputround trip; the workshop guide says that a rule needs at least one antecedent. ConversationTrainingConfigDto: withuseRealConversationsa conversation run now trains on the cognitive agent’s conversations and the tenant’s chat conversations together,numTranscriptsof each (selected byconversationIdsandagentId), and falls back to synthetic transcripts only when neither source has one (engine #84). The field docs say so.ingestion.ingestUrldocuments the redirect cap asurlIngestion.maxRedirects, and an unknown body key as422, not400.- WASM plugin methods document
500(plugin store failure) beside403/404/501. rag.ontologyRagdocuments the422an unknownfeatureConfigkey now answers (the engine reads it withdeny_unknown_fields); the SDK sends only the seven declared keys.- Term writes (engine #172): a scalar literal in a feature whose declared range is an entity sort is refused with
422onterms.createTerm,updateTerm,bulkCreateTerms(aBulkRefusedErrorrow), OSFQL writes (OsfqlError,execution),actions.applyActionandinference.addFact. WriteValue.reference(termId). The terms guide documents the OSFQL nested designator<sort>(__osf_term_id: "<id>"), which references an existing term and mints nothing. CreateSortRequest.parentsandsorts.createSort(engine !305, #355): a parent id must name a sort of the caller’s tenant or a shared system sort. Another tenant’s sort id is a400parent sort(s) do not exist, byte-identical to an unknown id (it was accepted with201).FeatureDescriptorDto.cardinalityOrigin(engine !305, #290):createSortandbulkCreateSortsacceptinferredonly as an unchanged echo of a bound the tenant already stores as inferred on the sort or an ancestor, with the sort’s own record declaring none; anything else is a400/unsatisfiable_declarationthat startssort 'S': feature 'F':. OSFQL@card(0, n) required(orrequired @card(0)) is aparseOsfqlErroron execute and preview; it was stored as a minimum of 1.inference.forwardChain/ForwardChainRequest.keepDerived(engine #290): a deadline-cutkeepDerived: falserun (200or504) leaves nothing stored; a deadline-cutkeepDerived: truerun records provenance for every conclusion it stored and announces it.sorts.deleteSort: thesort_would_orphan_childrenmessage now endsPass ?descendants=delete to delete them with it.; an OSFQLDROP SORTrefusal names the OSFQL clauses (CASCADE TERMS,ORPHAN RULES,CASCADE DESCENDANTS) and the sort (engine #374). Messages are carried verbatim.OsfqlPreviewStatement.sorts(engine #412): a feature-type word of aDEFINE(string,integer, …) is listed only when a sort of that name exists in the program or the tenant.FeatureDescriptorDto.description/indexpoint atpatchSortFeaturewithnullas the way to clear them.- Tenant erasure (engine !308, #381):
admin.clearAllData,clearTenantData,clearMyTenantData,deleteTenantanddeleteMyTenantdocument the500(InternalServerError) whose message containsuploaded source files were not erased: the wipe is incomplete, so retry it. A delete that fails this way writes no tombstone, so the tenant stays live. - Channels, cron, inbox and pairing (engine !308, #358) document their new
500s:channels.receiveWebhookwhen the DM policy or inbox store cannot be reached (the message was not admitted, so the relay must deliver it again),cron.runNowwhen the job fired but its inbox item was not stored (the run is not undone),inbox.list/markReadwhen the inbox store cannot be reached, and everypairingmethod when the pairing store cannot be reached. authz.writeTupleandauthz.deleteTuple(engine !306, #371): a caller that is not exempt gets403in every case, before any validation. For an exempt caller,deleteTupleanswers404for a missing id or for an id that names a term that is not acan/has_roletuple (the term survives), also withifMatch.inference.deleteGoaldocuments the404for an unknown goal and what the delete removes;createGoal,listGoalsand thegoalIdfields say that a saved goal is not a fact.sorts.createSortandCreateSortRequest.id(engine !315, #435): anidmust be unused or name one of the caller’s own sorts; a re-post of an own id updates that sort and keeps its name. The shared-lattice id the engine derives from the samenameis a400(BadRequestError), not a409; only a shared-lattice id posted under another name issort_id_unavailable.terms.createTermandterms.updateTermdocumentNamedConstraintViolationErrorfor a422refusal by a named constraint: both routes now publishTermWriteUnprocessableBody(DeclarationViolationResponse | CodedErrorResponse | ErrorResponse) as the422body, wherePUT /api/v1/terms/{id}published onlyErrorResponsebefore (engine !315/!317).DocumentVerdictBasis: apassorfailwhose basis does not agree with it (astated_unknownor missing basis included) is withheld and reportedinconclusive.terms.updateTerm,terms.deleteTermandRuleTermWriteError(engine #456): a ground sub-term that rule authoring minted inside a rule is part of the rule, so a write onto it is refused409write_targets_rule;getTermanswers404for it andtermExistsanswersfalse.terms.createTerm,updateTermandinference.addFactdocument the422for an engine-owned feature such as_derived_by(engine #249).analysis.refuteImplicationandRefuteRequest.features(engine #462): a counterexample must also respect every confirmed implication, else400. The exploration poses one question for each pseudo-intent.scenarios.materializeScenarioandscenarios.update(engine !319, #470) document the400(BadRequestError) for a minted sort, feature, fluent, computed feature or axiompropertyname the creation gate ofsorts.createSortrefuses (a name OSFQL cannot read, or a CURIE whose prefix the tenant does not bind canonically); nothing is written.scenarios.createanswers the same case with a422Generated scenario refused: …. An inferred relation edge name the gate refuses is skipped and named inwarnings.scenarios.createandmaterializeScenario: a sort a rule names that the scenario does not declare is created underthing, not refused. The JSDoc said the opposite; onlyupdate’saddRulesrefuses an unknown sort.ui.describe(engine #471) documents the400for atermIdthat is not a UUID and the404for atermIdthat names no term of the sort; adetailorformview withtermIdloads that term’s own values. A data view names inprops.rowKeythe column in which each loaded row carries its term’s id:__osf_term_idfor the engine-generated query, and the query’s own identity variable for a customquery. A custom query whose rows cannot carry an id (an aggregate, aWITH, a projection without it, aDISTINCT, an inline write) names norowKey. Read the columnrowKeynames; do not hard-code__osf_term_id.UIDataPayload.termIdslists the terms the load program produced; it is not one id per row.ui.executeActionandUIActionRequest.sortName(engine #471):submit_form,update_formanddelete_recordresolve the sort by its exact name, so a CURIE sort works. A400now answers an unknown sort, a sort name with a backtick, a value key the sort does not declare, and anupdate_formwhose term is held under another sort.TranslateRdfResponse.prefixespoints atMaterializeScenarioRequest.prefixestoo.
Known engine gaps (filed)
Section titled “Known engine gaps (filed)”- reasoninglayer#473:
terms.getTerm(ruleId)answers404for a rule since engine #456, so the way theinference.deleteRuleandreplaceRuledocs give to read a rule’sIf-Matchtag does not work. The contract test for a staleifMatchon a rule delete fails against engine5cef4fa34for this reason.
[3.0.1] - 2026-09-28
Section titled “[3.0.1] - 2026-09-28”Documentation
Section titled “Documentation”- Corrects the list of resolved issues in the 3.0.0 entry below. No code change.
[3.0.0] - 2026-09-28
Section titled “[3.0.0] - 2026-09-28”Brings the SDK in line with engine main 6acb754ca (2026-09-27). The vendored spec went from 756 to 815 operations and from 1877 to 1996 schemas; every new operation is wrapped. Resolves SDK#17–#44 and #46–#48.
The engine carries no compatibility paths: old wire shapes are refused with 422, not aliased. This release therefore targets the current engine only. An SDK 2.x client talking to this engine breaks where the list below says so, and an SDK 3.0 client does not support an older engine.
Migrating to 3.0.0
Section titled “Migrating to 3.0.0”- Path parameters are percent-encoded by the SDK, exactly once. Stop pre-encoding ids (
encodeURIComponent(sourceId)), or they are encoded twice (#38). - Opaque JSON is sent verbatim.
sources.register()config,scenarios.materializeScenario()/update(), webhook action inputs and outputs, agent message content,actionReviews.modify()modifiedParams, oversight stepinput/output, UI customizations and action values,actions.applyActioninputs,compliance.appendextraand review features are no longer snake_cased. Write the engine’s own key spellings (#17, #39). osfql.execute/osfql.previewthrowOsfqlErrorfor every OSFQL error body, and every engine deadline (504,error_type: "timeout") is aDeadlineExceededError. A 400 parse error is no longer aBadRequestError: branch onerror.errorType(#43).sync: falseingestion returns anIngestionOutcome, not a bare session. Readoutcome.kind(#22).ReviewsClientreturns typed camelCase objects, not the raw snake_case body typedunknown(#30).- Constructed fixtures need the new required fields listed below. Reading code is unaffected.
Changed — BREAKING
Section titled “Changed — BREAKING”Transport and errors
- Every path parameter of every generated route, and of the hand-written paths, is percent-encoded once (#38).
ApiError.messageis the body’smessagefor bodies with noerrorfield (OSFQL, SPARQL, property graph). It wasHTTP <status>.- HTTP 503 is
ServiceUnavailableError, a subclass ofInternalServerError.instanceof InternalServerErrorstill matches. - HTTP 504 with
error_type: "timeout"isDeadlineExceededErroron every route (wasInternalServerError). - HTTP 409
write_targets_derived_factisDerivedFactWriteError(aConstraintViolationError); 412 isPreconditionFailedError; 428 isPreconditionRequiredError. ValidationError.fieldpaths name their container:rules[k].term,rules[k].antecedents[i],literals[i].term,goal,antecedent,consequent(#48).- A raw
TermInputDtofeature value that matches no variant throwsValidationErrorbefore the request is sent. It was sent as{}(#47).
Sources, scenarios, opaque bodies
sources.register()sendsconfigverbatim; write engine keys (connection_string,file_path, …) (#17).scenarios.materializeScenario()/update()send the scenario verbatim.MaterializeScenarioRequest.scenariois a typedGeneratedScenariowhose keys are the engine’s own, mixed spellings (curriculum_stages,guardConstraints, …). A camelCasecurriculumStagesis ignored by the engine (#39).webhookActions.register/invoke/completeInvocation,cognitive.sendMessage/broadcastMessage,actionReviews.modify,oversight.judge/refine/createSession/ingestStep,ui.describe,ui.executeAction,actions.applyAction,compliance.append,reviews.addPendingReviewandreviews.correctEntitysend the caller’s nested JSON verbatim. Keys incustomizations,values,originalValues,inputs,extra, reviewfeaturesand the like are no longer snake_cased.DiscoveredFeatureDto.constraintsis a taggedDiscoveredConstraintDtounion (was the engine’s Rust debug string).
Ingestion (#20, #21, #22)
ingestMarkdown(req, { sync: false })andingestDocument(req, { sync: false })returnIngestionOutcome('queued'→session,'inline'→result).ingestMarkdownBatch(req)returnsIngestionOutcome<IngestionBatchSession, IngestMarkdownResponse>;ingestDocumentBatch(req, { sync: false })returns anIngestionBatchSession(documentIds,documentCount).ingestRdfdefaults to synchronous ingestion.IngestRdfRequestlosesownerId,tenantIdandsync; pass{ sync: false }as the second argument.- A
?sync=falsedocument or batch refused by a deployment with no queue throwsIngestionQueueUnavailableError(status 503), and is never retried, even withretryOn503. IngestionSession’s polling methods moved to the baseIngestionSessionHandle; batch handles are notinstanceof IngestionSession.
OSFQL (#33, #34, #43)
OsfqlResponse.updatedTermIdsis required and disjoint fromproducedTermIds. Count created and updated terms from the two lists directly.osfql.diagnose(query, requestOptions)isosfql.diagnose(query, options?, requestOptions?).OsfqlPreviewAffected.exactis required.- The atomic refusal code
drop_sort_in_atomic_programisdrop_sort_not_alone. ADROP SORTorALTER SORTmust be the only statement of its program, withatomic: falsetoo. RiskTiergainsschema_destructive(DROP SORT).- UI dry-run
affectedPreview:sampleRowsvalues are taggedOsfqlValues keyed by feature plusterm_id;countandstatementcover the whole program;exact,mutatesandstatementsare new required fields.
Terms, rules and sorts (#32, #35, #40, #41, #46)
terms.termExists(id)returns the engine’s answer. It returnedtruefor every id.FeatureInputValueDtogains the tagged{ type, value }member.RuleTermDraftDto.featuresisRecord<string, string | number | boolean>.- Offset iterators: when a page reports
total, a short page no longer ends the walk. TermVersionDto.seededis required; versions are listed newest first.RegisterFunctionRequest.tenantIdandEvaluateFunctionRequest.tenantIdare removed (#35).FunctionDraftDtois an alias ofRegisterFunctionRequest.SortReferenceKindgainsterm_reference.DeleteSortResponse.sortsDeletedis required.deleteSort’s options are the namedDeleteSortOptions. The sort-delete refusal body is coded; read it withsortDeleteRefusalOf(error).
Agents, reviews, conversation (#25, #30)
- Every
ReviewsClientmethod returns a typed camelCase result;failedIdsentries are{ reviewId, reason }. AddPendingReviewRequest.sortSuggestionsisReviewSortSuggestion[]({ sortName, confidence, reason? }). The old shape was refused with 422.ConversationClient.getTurnsnarrowsqueryResultsrows through the OSFQL value mapper.ActionReviewsClient.listPendingand the agent lifecycle methods raiseValidationErrorfor anoriginorstatusoutside their unions.
UI, checks, reasoning (#28, #37, #44)
- Removed:
constraints.getGraph(usevisualization.constraintGraph),fuzzy.fuzzyMergeandfuzzy.fuzzySubsumption(usereasoning.merge/reasoning.subsumption),execution.getTrailandexecution.getChoicePoints(no engine route; readtrailLength/choicePointCountfromexecution.getSession). All five called paths no engine serves. UIDescribeRequest.sessionIdis removed; the engine refuses it with 422.UIGenerateResponse.dataisUIDataPayload;diagnosticsandsuggestionsarestring[];verdictisUIGenerateVerdict.CoherenceAnalyzeResponse.reportis a typed camelCaseCoherenceReport;CoherenceSummaryDto.verdictis a union.ConformanceViolationDto.suggestedFixesisSuggestedFix[]; an unknown action arrives as{ action: 'unrecognized', entry }.CheckFinding.proofTraceisCheckProofStep[] | null.TemporalPlanResponse.diversityScoreis optional: absent without a diversity objective.FuzzyProveResponse.certificateis aDiagnosisCertificatewith the engine’s snake_case keys, kept verbatim because it is re-verified by deserializing it exactly as sent.
New required fields on response types (fixtures and mocks must add them)
SourceSummaryDto.lastSyncAt,SourceDetailResponse.lastSyncAt,IngestFromSourceResponse.warnings,OntologyBridge.BindingSummaryDto.sortName(#29).TranslateRdfResponse/IngestRdfResponserepairedIriCount,repairedIris(andsortPreviewson translate);DocumentStatsDto.relationsIntegrated;EncodeClipResponse.disposition,timingsUs; fourFrameSummaryarrays.ActionReviewResponse.producedTermIds,PendingActionReviewDto.origin, tenIntegratedCycleOutcomeDtofields.SubscriptionDto.maxRetries,backoffMs.MaterializeScenarioResponse.goalCreated.papersPooled/totalPapersPooledon research cycles, sessions, summaries and statistics.SendMessageResponse.timestamp;EntailmentResponse/DisentailmentResponsedegree,antecedentDegree,consequentDegree;MaterializationSummaryDtotemporalConstraintsCreated,webhookActionsCreated,toolRegistrationsCreated,warnings;CycleOutcomeSummaryDto.rulesLearned;SortCompareResponsesortA,sortB,operator;LearnedSimilarityDto.meetIsBottom;SimilaritySearchResponse.exhaustive;CreateModuleResponse.success;ImportModuleResponseimporterModule,success;AgentSubVerdictDto.stepIndices;OversightSessionStatusResponse.userIntent;SoftUnifyResponse.embeddingsUsed.
Engine behaviour that reaches SDK callers
memory.rememberanswers 400 for an out-of-rangeimportanceor a policy-refused write.setActionReviewConfiganswers 400 for a zero timeout. A timed-out review decision answers 409.subscriptions.create/updaterefuse loopback and private targets with 400.- Speech: an unreachable sidecar is 502; 503 is always the permanent, coded
speech_synthesis_not_configured. compliance.listrefuses undeclared query keys with 400 (the SDK sends only declared keys).- A
DELETEof a rule’s conclusion answerswrite_targets_derived_fact, notterm_named_by_rules.
- New clients:
client.cron,client.metrics,client.inbox,client.pairing,client.channels,client.platform(backups, branches, config sections, connector health, diagnostics, identities, onboarding, skills),client.plugins(WASM plugins), andclient.memory(#26, #31). Type namespacesCron,Metrics,Inbox,Pairing,Channels,Platform,Plugins,Memory. - Sources:
uploadFile,listFiles,deleteFile(#18). - Ingestion:
queueMetrics,listDlq,countDlq,abandonDlqEntry,recoverStuck,reprocessFailed(#23);ingestUrl,getWebCapabilities;ingestAudio,getAudioJob; the fullIngestionConfigDto(#21); RDFrepairIris,computeEmbeddings,keepDeclarations(#20); merge-audit evidence and the other stats fields; the V-JEPAencodeClipreceipt and per-frame verdicts. - Cognitive:
getActionReviewConfig,pauseAgent,resumeAgent,stopAgent(#24);actionReviews.expire;reviewQueueRefusalsand nine cycle counters. - Conversation:
sendMessageStream,injection,includePromptTrace,promptTrace,matchedTemplates; root exportsdecodeConversationMessageandUSER_DATA_FIELDS(#25). - OSFQL:
OsfqlRequest.semantics('osf' | 'rdf') (#33);OsfqlError(errorType,refusalwithreferrersandcascadeLimit,maxRows) andDeadlineExceededError(#43);diagnoseoptionstimeoutMs/maxRows;OsfqlResponse.sortDelete/sortReparent;OsfqlPreviewStatement.affectedError/sortDelete. - Terms and rules:
TermResponse.etag;ifMatchonupdateTerm,deleteTerm,deleteRule,replaceRule(#32);rejectedon bulk rule and fact writes (#46);iterateTermsoffsetandonPage(#40). - Sorts:
previewSortDelete, subtree delete (descendants: 'delete'),reparentSort,sortDeleteRefusalOf, featuredescriptionandindex. - Ontology:
checkOwl2,pipelineStatus,qualityReport, competency questions,enrich(#19). UI:listPages(#28),UIGenerateResponse.conversationId/dataSources/intents/trace,UIActionResponse.retractedTermIds. NL query TRIZ fields (#27). Typed coherence report and suggested fixes (#37). - Request fields that unlock response fields:
fuzzyProvesealandkbDataVersion,enrollSpeakervariant,visualization.latticelimit/offset,visualization.hypergraphincludeProvenance/includeRelations. OsfqlError.sortDeleteRefusal: the coded refusal of aDROP SORT.- Compliance:
getRecord,getCausalChain,listScopes,getInclusionProof,listfiltersactor/q;RequestOptions.causaland thex-osfkb-*header helpers (readAuditHeaders,readCausalRefusal,sealPreimage, …). subscriptions.update;admin.getMyTenant;authz.writeTuple/listTuples/deleteTuple/check;errorBodyCode.
sources.register()rewrote user-keyed maps inconfig, including MCPtransport.env/transport.headers, which lost credentials (#17).- A path id holding
/,?,#,%or a space addressed the wrong route (#38). - The sources, bridge, RDF, ingestion, conversation, nlQuery,
ui.generate, action-review, cycle and subscription mappers dropped fields the engine sends (#20, #21, #25, #27, #28, #29). - Async ingestion returned sessions with
undefinedstatus and discarded inline results (#22). reviews.addPendingReviewwith sort suggestions was refused with 422 (spec collision, engine #224).iterateTermsstopped after one page whenpageSizeexceeded the engine’s 10 000-row cap (#40).terms.termExistsreturnedtruefor every id.- Five methods called unserved paths (#44).
- 73 response fields in 27 DTOs that the engine sends were dropped by the normalizers; all are mapped.
scripts/check-normalizer-drops.mjsruns in the unit suite, so a field added to the spec and not mapped fails the tests. - A Gaussian, CyclicGaussian or GaussianProduct
FuzzyNumberreadstdDev: undefined;std_devis mapped in both directions. ui.describecustomizations lost camelCase component props (dataKeybecamedata_key, which the engine’sremove_component/reorderlookups then missed).compliance.appendrewrote the keys ofextra, which the engine hashes into the audit chain.- A 503 that no retry can change (a queueless
sync: falseingestion, speech synthesis not configured) is never retried, even withretryOn503.
Documentation
Section titled “Documentation”updatedTermIdsandproducedTermIdsare disjoint (#34); everyOsfqlAtomicRefusal.code,OsfqlRefusal.code, repair kind and diagnostic kind is listed.terms.listVersionsis newest first (#36);BigIntegerValuestates the engine’s current type-hint rules (#41);ProofDto.ruleHeadTermIdgroups by rule (#42).- The engine’s current status codes and refusals on the changed routes: cron timezone, DLQ abandon, document check, derived conclusions, function registration, sort delete, generate citations, visualization constraints, ontology transpile, TRIZ, action-review deadlines.
Known engine gaps (filed)
Section titled “Known engine gaps (filed)”- reasoninglayer#363 (duplicate
operationId), #364 (undeclared statuses, headers and refusal bodies), #365 (OSFQL sort-statement run errors), #366 (review stores), #367 (audioingestion_config), #368 (duplicate diagnostic), #369 (channel routes outlive their tenant), #370 (branch scoping), #371 (tuple write refusal order), #372 (untyped coherence report), and a new collision on #224.IngestionConfigDto.batchSize/maxSchemaTokensare deprecated no-ops until engine #352 removes them.
1.2.1 to 2.1.2 - 2026-05-06 to 2026-09-22
Section titled “1.2.1 to 2.1.2 - 2026-05-06 to 2026-09-22”These entries were collected under an “Unreleased” heading from 1.2.1 through 2.1.2, and were not split per release.
Migrating to 2.0.0
Section titled “Migrating to 2.0.0”-
ClientConfig.authis required.new ReasoningLayerClient({ baseUrl, tenantId, timeoutMs })was valid in 1.27 and now throws at construction:ClientConfig.auth is required — pass { mode: 'bearer', token } or { mode: 'cookie' }.It is called out here because of the failure mode, not the change: the throw is at RUN TIME, so a clean typecheck of an app says nothing about the scripts, seeds and ad-hoc measurement code that also construct a client. Grep for
new ReasoningLayerClientrather than trusting the build.
osfql.execute()carriesupdatedTermIds. The engine puts an updated term’s id in bothproduced_term_idsandupdated_term_ids, and the mapper read only the first — so a client could not tell an insert from an update, or tell whether anUPDATEpattern matched anything.undefinedmeans the engine does not report it;[]means the program updated nothing. (Superseded in 3.0.0: the engine now keeps the two lists disjoint, andupdatedTermIdsis always present.)forwardChain()sendstimeoutMs. The field was typed and documented (a server-side deadline,504when it passes) and the mapper never emitted it, so a caller setting a deadline silently got the 300 s backstop.backwardChain()beside it always sent it.compliance.summary()carries theriskblock andnOversightDecisions. The mapper named six fields and stopped, dropping fourteen risk counters and the oversight count — the EU AI Act Article 15 and Article 14 evidence.risk.fabricationRatestays nullable:nullis “not measured”, and its denominator is checked responses only, so folding it to0would report a clean rate for a ledger nobody checked.conformance.check()returns the violations the route actually sends. They were mapped throughViolationDto— a different struct sharing no key with the response — so every violation arrived withdescription,relatedFactIdandseverityallundefined: a 200, an array of the right length, and no detail.conformance.repair()was never affected.- The sources mappers carry four fields they dropped:
DiscoverableTypeDto.columnCount,DiscoveredFeatureDto.featureName,DiscoveredFeatureDto.identifierProvenance, andSourceTypeDto.configFields.identifierProvenanceis the one that mattered most — it separates a declared primary key from a sampled guess, and a key that is not unique makes a re-ingest duplicate facts rather than update them. osfql.preview()no longer loses the plan over one sample row. An unrecognised value tag in one of ten ILLUSTRATIVE sample rows used to fail the affected block, the statement, and the whole response, andpreview()threw a bareReasoningLayerErrorcarrying no status. The row is now dropped and counted inaffected.unparsedSampleRows; the count, the risk andmutatessurvive.- A malformed term request raises
ValidationError, notTypeError.TermInputDtoFromFrontToApidiscriminates within, which throws onundefined, so a request missingtermproduced an error from library internals that escaped everyinstanceofbranch over the SDK hierarchy. It now names the field, down to the row and the feature (antecedents[1],term.features.tier).
OntologyBridgeClient.executeTranspiled()—POST /api/v1/ontology/query. It was typed on the generated api and never lifted onto the client. The second half of the transpile pair:transpileemits the native query and stops, this runs it — and for atranspile-mode source, whose bound sorts are live views over the operator’s own database, it is the only route that answers at all.rowCount/sourceIdare camelCased;rowsis one object per record.ConstraintDtogainsRealRange—{ type: 'RealRange', value: { min, max } }, theRealtwin ofIntegerRange. The engine has always defined it; consumers were casting past the published union.- New types:
RiskTotalsDto,ConformanceViolationDto,ConfigFieldDto,ExecuteTranspiledRequest,ExecuteTranspiledResponse.
Documentation
Section titled “Documentation”ReferenceDesignatorsays which spelling works. PasssortName; thesort_namespelling shown for the wire is refused, because a designator sits inside afeaturesmap andfeaturesis carried verbatim. The compiler does not catch the swap —ReferenceValue.valueisstring | ReferenceDesignator, so an object with the wrong key stays assignable — and the engine’s refusal names a byte offset and no feature.OsfqlClient.preview’s remarks no longer contradictOsfqlPreviewAffected.count. A destructive statement matching zero rows answers{count: 0, exact: true}; it is the ABSENCE of the wholeaffectedblock that means the statement has no affected-row set. The two are distinguishable, which is what the block was separated for.OsfqlPreviewAffected.exactnarrowed to what the engine gives.truefor every top-level statement; a nested statement is always an upper bound, even when its enclosing guard names no variable. Do not derive it from the shape of the program.BulkRefusedErroris right aboutdryRunwithpartial. The two together answer200withtermsAdded: 0and every row inerrors— they do not throw, because a dry run that wrote nothing has nothing to refuse. That pair is the only shape that answers both halves of a forecast in one call.
Changed — BREAKING
Section titled “Changed — BREAKING”-
ProofDto.goalTermIdis now optional, and it MEANS something different. It used to name the rule’s instantiated head: one id shared by every solution of a goal, and an idgetTerm()answered 404 for. It now names the CONCLUSION the node proved, which joins toclient.query.findBySort()andclient.terms.getTerm(), and two solutions carry different ids when they prove different conclusions. It is ABSENT when no conclusion was materialised — a goal proved with no preceding forward chain stores nothing. Assigning it to astringno longer compiles, which is the point.The old id has not gone away; it moved to the new
ProofDto.ruleHeadTermId.
ProofDto.ruleHeadTermId— the rule’s instantiated head, present on a rule application when it differs from the conclusion. A grouping key, NOT a fetchable id: the term routes refuse it deliberately.SortsClient.getQuotientOrder()— the Definition IV.9 quotient order over the caller’s own lattice: the equivalence classes with their degrees, and the fuzzy partial order between them. Prefer it overgetEquivalenceClasses(), which computes process-wide and then filters.granularityongetPreorderDegree()— read the degree from either of the paper’s two preorders.similarity_deleted(Definition IV.5) is the default here and is what the graded GLB is computed from;combined(Definition IV.1) treats a similarity edge as a step, so a directly-similar pair answers its similarity degree instead of0. The response always echoes the granularity back. ⚠️getQuotientOrder()takes the same two spellings and defaults tocombined.- New types:
SortPreorderGranularity,GetQuotientOrderOptions,GetQuotientOrderResponse,QuotientClassDto,QuotientOrderEdgeDto.
-
nafProve()/proveWithNegation()accept apsi()term. Every other term-carrying method did; these two demanded a hand-built wireTermInputDto, so the documented way to build a term did not work there. -
The
preorder-degreedocumentation wrote Definition IV.5 as((similarity - subsumption) union subsumption)^+, reading.-as an arithmetic difference. It is pair DELETION, and the operands were wrong too. -
FlowNetworksClient (
client.flowNetworks) — generic capacitated directed-graph resource. Persist a graph once, thencreate/get/clone/commit/solveit under any of five algorithms:max_flow,min_cost_max_flow,classify_edges,classify_edges_optimal,min_cut. Mirrors the lifecycle of the/spacesresource (create, clone, commit, solve) and exposes the same Dulmage–Mendelsohn edge trichotomy (always_used/never_used/sometimes_used) the scheduling engine returns over(agent, day, shift)cells, generalised to arbitrary edges. -
New types:
FlowAlgorithm,EdgeSpec,EdgeFlow,EdgeClass(ification),MinCutReport,EdgeCapacityUpdate,CreateFlowNetworkRequest,FlowNetworkResponse,CommitFlowNetworkRequest,SolveFlowNetworkRequest,SolveFlowNetworkResponse(exported under theFlowNetworksnamespace). -
New guide: Flow Networks.
Removed
Section titled “Removed”-
BackwardChainRequest.expandBindingsandBackwardChainResponse.referencedTerms(theRecord<string, TermDto>sidecar map). These existed only to support a prior backend feature where scheduling was solved as a backward-chain query returning deeply-nested Ψ-term lists; the backend has dropped that path in favour of the dedicated scheduling and flow-network endpoints, and the SDK fields are no longer wired to anything.Note:
TermDto.referencedTerms(a different field —Record<string, ReferencedTermSummary>on the term-retrieval surface) is unaffected.
[0.1.0] - Unreleased
Section titled “[0.1.0] - Unreleased”Initial release of the @kortexya/reasoninglayer TypeScript SDK.
Core infrastructure
Section titled “Core infrastructure”ReasoningLayerClientmain client with resource-as-property access patternClientConfigwithbaseUrl,tenantId, and optional auth headers- HTTP layer with automatic retry (429, 503), exponential backoff with jitter, and configurable timeouts
- Error hierarchy:
ReasoningLayerError,ApiError,ConstraintViolationError,RateLimitError,TimeoutError,ValidationError,NetworkError — this never shipped. The entry was written from the design and no resource client grew the accessor. Use an interceptor for a successful response’s status and headers, and.withMetadata()on all resource clients for access to HTTP status, headers, and rate limit infoApiError’s ownstatus/headerson a failure.- WebSocket client with auto-reconnect for real-time event subscriptions
Type system (types/)
Section titled “Type system (types/)”ValueDtotagged discriminated union (10 variants: String, Integer, Real, Boolean, Uninstantiated, Reference, List, FuzzyScalar, FuzzyNumber, Set)FeatureValueDtountagged union for homoiconic inference endpointsFuzzyShapeDtowith"kind"discriminator (Triangular, Trapezoidal, Gaussian, CyclicGaussian)TermInputDtostructural union (Reference, Inline by sort ID, Inline by sort name)FeatureInputValueDtostructural union (10 variants including ConstrainedVariable and Variable)- Full DTO types for all domains: sorts, terms, inference, query, fuzzy, cognitive, constraints, namespaces, collections, execution, causal, ingestion, reviews, visualization, ILP, reasoning, statistical, control, spaces, row, sources, communities, utilities, scenarios, action-reviews, discovery, extract, scheduling
Builders (builders/)
Section titled “Builders (builders/)”Valuenamespace: tagged value construction (Value.string(),Value.integer(),Value.fuzzyNumber(), etc.)FuzzyShapenamespace: membership function shapes (FuzzyShape.triangular(),FuzzyShape.gaussian(), etc.)FeatureInputnamespace: untagged value construction for inference (FeatureInput.string(),FeatureInput.variable(),FeatureInput.constrainedVar(), etc.)TermInputnamespace: term input construction (TermInput.byName(),TermInput.byId(),TermInput.ref())guard()function: shorthand for guard constraints with 6 operators (lt, lte, gt, gte, eq, ne)allen()function: Allen temporal interval constraints with 13 relationsSortBuilderfluent API: chained sort definition with parents, features, bound constraints, and descriptionspsi()shorthand for inline Psi-term construction with auto-coercion
Resource clients (resources/)
Section titled “Resource clients (resources/)”- SortsClient: createSort, getSort, deleteSort, listSorts, bulkCreateSorts, isSubtype, computeGlb, computeLub, decodeGlb, compareSorts, getChildren, getParents, getAncestors, getDescendants, getCompatible, indexSorts, updateReviewStatus
- TermsClient: createTerm, getTerm, updateTerm, deleteTerm, termExists, bulkCreateTerms
- InferenceClient: addRule, addFact, bulkAddRules, bulkAddFacts, getFacts, clearFacts, backwardChain, forwardChain, forwardChainTagged, fuzzyProve, bayesianPredict, nafProve, createGoal, getGoals, getGoal, deleteGoal, getMetaSorts
- QueryClient: findUnifiable, findBySort, osfSearch, validateTerm, validatedUnify, nlQuery
- FuzzyClient: fuzzyUnify, fuzzyMerge, fuzzySubsumption, searchTopK, predictEffect
- CognitiveClient: createAgent, getAgent, deleteAgent, getState, runCycle, addBelief, addGoal, addRule, addSort, recallEpisodes, getEpisodeStats, addHtnMethod, sendMessage, broadcastMessage, markMessagesRead, provideFeedback, subscribeToEvents (WebSocket)
- ConstraintsClient: constraint sessions, one-shot solving, graph visualization
- NamespacesClient: namespace hierarchy, imports, metadata
- CollectionsClient: collection CRUD, tagging
- ExecutionClient: Execution sessions, backtracking, goal stack
- CausalClient: Pearl’s causal hierarchy, interventions, counterfactuals, root cause analysis
- IngestionClient: document ingestion, markdown, RDF, session management
- ReviewsClient: human-in-the-loop review operations (approve, reject, merge, re-extract)
- VisualizationClient: lattice, hypergraph, GLB/LUB trace, residuation state, trigger dependency
- IlpClient: inductive logic programming (pattern learning, evaluation, GFlowNet, synthesis)
- ReasoningClient: entailment, evidence assessment, residuation, resource coordination, temporal planning
- StatisticalClient: correlation, partial correlation, conditional independence, causal discovery
- ControlClient: Prolog-style proof control (cut, findall, forall, NAF, conditionals, global state)
- SpacesClient: computation spaces (create, clone, commit, search)
- RowClient: row polymorphism (schema-flexible search, unification, integration, dynamic queries)
- SourcesClient: data source registration, schema discovery, ingestion
- CommunitiesClient: community detection, memberships, search
- UtilitiesClient: string operations, relational arithmetic, term copying
- ScenariosClient: scenario CRUD and verification
- ActionReviewsClient: autonomous action approval (approve, reject, modify, bulk operations)
- DiscoveryClient: causal effect discovery and prediction
- ExtractClient: entity extraction from text
- SchedulingClient: capacitated bipartite b-matching for staff rostering and assignment problems —
feasibility()returns the per-cell trichotomy (confirmed_true/confirmed_false/free) under hard rules;optimize()adds soft preferences and returns the trichotomy across every optimal rota
SDK diagnostics
Section titled “SDK diagnostics”SDK_VERSIONexported constant (0.1.0)X-SDK-Versionheader sent on every HTTP request for backend diagnosticsscripts/generate-route-manifest.ts— generates endpoint manifest from OpenAPI specscripts/check-completeness.ts— reports SDK endpoint coverage vs. OpenAPI spec
Build and tooling
Section titled “Build and tooling”- Dual ESM/CJS output via tsup
- TypeScript strict mode with zero
anytypes - Zero runtime dependencies
- ES2022 target (Node 18+, modern browsers, Deno, Bun)
- Vitest test framework
- pnpm package manager with strict resolution