Skip to content

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.

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.

  • AGENT statements need an attested user (reasoninglayer#1259). Every agent item records the user (user:<uuid>) whose statement wrote it, and an AGENT statement sees and changes only the caller’s own items, unless the caller’s gateway policy grants Write on the agent item records. A request without X-Authenticated-User is refused with refusal.code program_registrant_not_actor. Set ClientConfig.authenticatedUser, or RequestOptions.authenticatedUser for one call (22.0.0). A plan id is now opaque (p<uuid>); do not parse it.
  • The agent routes answer 403, not 503, for a gateway context (#1273). listAgents, createAgent, addBelief, addGoal, runCycle and deleteAgent answer a request that carries a gateway authorization context with a ForbiddenError whose code is cognition_profile_unavailable (Cognitive.CognitiveAgentErrorCode), where they answered an uncoded 503 (ServiceUnavailableError). Code that caught the 503 for this case must test the code instead. agent_not_yours refuses a caller that is not the agent’s owner.
  • A lost commit on a program door is a 409 (#1268). OSFQL answers it with errorType term_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.term where the body has it). Nothing is written; read again and retry.
  • RDF imports judge bound constraints (#1260). ingestRdf answers a refused term with the 409 of terms.createTerm; with sync: false, and in a chunked upload, the session document fails with the errorCode and errorRefusal.
  • 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 TRIGGERS shows a demon’s refusal status to its registrant.
  • isOsfqlTermChangedConcurrently(error); term_changed_concurrently in OsfqlErrorType.
  • Cognitive.CognitiveAgentErrorCode (agent_not_yours, cognition_profile_unavailable).
  • @throws for the lost-commit 409 on the program doors, the RDF bound refusal, the agent routes’ 403, and the AGENT notes on osfql.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.

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.

  • AWAIT needs an attested user (reasoninglayer#1256). An OSFQL AWAIT registers its demon as the user that sent it, and the demon fires with that user’s grants. The engine reads the user from X-Authenticated-User (user:<uuid>). The SDK sends it from ClientConfig.authenticatedUser, and now also from the new per-call RequestOptions.authenticatedUser. A request without it is refused with refusal.code program_registrant_not_actor; an AWAIT on a trigger sort the caller may not read is refused with program_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.TermWriteErrorCode gains engine_feature_write_refused: POST and PUT /api/v1/terms and POST /api/v1/inference/facts answer it as a 422 for a feature only the engine writes (_derived_by, _pref_user, …), and OSFQL answers it as refusal.code (#1269). Sorts.SortBoundConstraintErrorCode gains bound_feature_undeclared.
  • A bound constraint may not hold a constant (#1265). createSort and OSFQL CHECK ON refuse a target or a source name that no feature of the sort declares, when the name is all digits or the sort is @closed (422 bound_feature_undeclared). Bound a feature by a constant with @range(min, max). On an open sort, CHECK ON admits another undeclared name and reports a warning in diagnostics.
  • updateTerm without ifMatch can answer 409 (#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 answers term_changed_concurrently with nothing written. Before, the write was last-writer-wins. Send ifMatch to get 412 instead.
  • RequestOptions.authenticatedUser: the X-Authenticated-User header of one call, over ClientConfig.authenticatedUser.
  • OsfqlRefusal documents engine_feature_write_refused, program_registrant_not_actor, program_trigger_unreadable and bound_feature_undeclared. osfql.execute documents that AWAIT needs an attested user, that MARK READ names a message by its message id, and that runtime-record setters are durable and check the record’s owner.
  • terms.createFrameComment documents its 409s: term_id_unavailable for an occupied comment id (#1265) and term_changed_concurrently.
  • 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.

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.

  • 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) and term_changed_concurrently (reasoninglayer#1253). Terms.ConstraintViolationCode gains term_changed_concurrently.
  • A broken read premise is now coded (reasoninglayer#1263). The uncoded 409 that 20.0.0 described is the coded body term_changed_concurrently, with the changed term in refs.term. Test it with isTermChangedConcurrently(error); read the term with errorBodyRefs(error)?.term. Every premised write answers it.
  • A second decision on a review is a coded 409 (#1263). Approve, reject, merge and correct answer review_not_pending (read it with errorBodyCode) when another decision took the review. Do not retry it.
  • ConstraintViolationError.constraint changed its text (#1262). It is the declared relation, as CHECK ON writes 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 409 ConstraintViolationError on the synchronous routes (ingestDocument, ingestMarkdown, ingestAudio, resumeDocumentIngestion), and a write the caller may not make throws a 403 ForbiddenError with a GovernanceRefusalCode body. Nothing of the document is committed. In a session or a batch, the document fails with the code and errorRefusal, and the batch lists it in IngestionStatsDto.documentsRefused.
  • @key writes (#1255). inference.bulkAddFacts merges every item by @key, against the store and against earlier items; factsAdded counts 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 is 422 rejected. A write whose keys name several stored terms is refused (OSFQL key_identity_conflict).
  • OSFQL runtime records are engine records (#1254). A client write to a runtime record sort answers governed_sort_write_refused; INSERT, UPDATE, CURRY and APPLY refuse an engine-written feature with a 422 (“feature … is written by the engine”); POP GOAL needs a write grant on the goal’s sort.
  • isTermChangedConcurrently(error).
  • Ingestion.SessionDocumentRefusal (termId, feature, constraint; an empty wire string is read as absent) on SessionDocument.errorRefusal and DocumentBatchResultDto.errorRefusal; DocumentBatchResultDto.errorCode; Ingestion.RefusedDocument and IngestionStatsDto.documentsRefused.
  • OsfqlRefusal documents key_identity_conflict (candidates 2, read as “two or more”).
  • @throws for the new 409 and 403 of the ingestion routes, the review_not_pending and term_changed_concurrently 409s of the review routes, term_changed_concurrently on terms.updateTerm, and the key refusals of actions.applyAction.
  • 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.

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.

  • Add the new arms to exhaustive switches. Governance.GovernanceRefusalCode (GovernanceRefusedError.code, OsfqlRefusal.denialCode, RejectedBulkItem.code) gains constraint_over_unread_data; Terms.ConstraintViolationCode gains dependant_not_writable and dependant_changed_concurrently; Sorts.SortCreateErrorCode gains bound_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 code dependant_not_writable (isDependantNotWritable); a dependant another writer changed while the write was judged answers dependant_changed_concurrently (isDependantChangedConcurrently), with the dependant in refs.dependant (errorBodyRefs). Code that read code === undefined for these refusals must test the new codes.
  • A broken read premise is a 409, not a 400 (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 a ConstraintViolationError (409), where it threw a BadRequestError. Nothing was written; read again and retry. A governed cascade declines instead and reports it in cascadeSkipped.
  • No bound constraint above engine records (reasoninglayer#1249). A bound constraint on a sort whose subtree holds a @governed or engine-authored sort is refused: sorts.createSort and the ontology imports answer 409 bound_constraint_over_engine_records, and OSFQL CHECK ON answers it as refusal.code (422). Declare the constraint on a sort below it.
  • isDependantNotWritable(error), isDependantChangedConcurrently(error) and errorBodyRefs(error), which reads the refs map (role → term id) of a coded error body.
  • inference.bulkAddFacts documents its new 409: with ownership declarations, a fact that breaks a fail bound constraint refuses the whole batch; and the dependant refusals of #1245. An item a bound constraint over unread data refuses is rejected with code constraint_over_unread_data (#1238).
  • OsfqlRefusal documents bound_constraint_over_engine_records (#1249), reference_term_unknown on COPY, MERGE, IMPORT and USE (#1239), and bound_constraint_violated for a dependant’s axiom (#1245), whose sort names the dependant’s sort.
  • actions.applyAction documented a dependant refusal of a put as a 409 ConstraintViolationError (ts-sdk#88). The engine answers 422 with outcome rejected and a reason that names the dependant, for a refused dependant, an unwritable dependant and more adjusted dependants than one action holds. Only the bare constraint_over_unread_data refusal and a concurrently changed dependant (the conflict outcome) are 409s.

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.

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.

  • Type bound-constraint kinds and actions as the closed unions (reasoninglayer#1247). Sorts.BoundConstraintDto.constraintType is Sorts.BoundConstraintKindDto (upper, lower, less_than, equal), and onViolation is Sorts.ViolationActionDto (update, fail, warn, residuate). A caller that passes a string variable stops compiling: type it as the union, or narrow it first. The engine now refuses any other value on POST /api/v1/sorts with a plain-text 422 that has no code, so a misspelt value that the engine used to accept is now refused.
  • Handle dependants_exceed_commit_budget (reasoninglayer#1245). An exhaustive switch over Terms.ConstraintViolationCode (ConstraintViolationError.code) needs the arm. Test it with isDependantsExceedCommitBudget(error).
  • Expect a 409 from a write to a referenced term. A write now re-judges every term whose bound constraint reads a feature it changes (a dependant), on terms.updateTerm, a @key merge of terms.createTerm, terms.bulkCreateTerms, inference.addFact, inference.bulkAddFacts and actions.applyAction. A dependant’s fail constraint refuses the write with a ConstraintViolationError whose termId is the dependant, not the written term. A dependant’s update constraint changes the dependant in the same commit. OSFQL UPDATE answers the same refusal as an OsfqlError (422, refusal.code bound_constraint_violated, refusal.sort the dependant’s sort).
  • Sorts.BoundConstraintKindDto and Sorts.ViolationActionDto, the closed sets of BoundConstraintDto.constraintType and onViolation.
  • Sorts.SortBoundConstraintErrorCode: the 422 codes of sorts.createSort for a bound constraint the engine cannot read exactly. bound_target_not_local when target is not one local feature (#1246); bound_source_path_malformed when sourcePath is empty or has an empty segment (#1247). Read it with errorBodyCode.
  • isDependantsExceedCommitBudget(error) and the ConstraintViolationCode dependants_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).
  • The @throws of terms.createTerm, terms.updateTerm, terms.bulkCreateTerms, inference.addFact, inference.bulkAddFacts, actions.applyAction and osfql.execute describe the dependant refusals (#1245): a named refusal over data the caller reads; the bare constraint_over_unread_data refusal over data it may not read; an uncoded 409 that names the dependant’s termId and no feature when the caller may not write the adjusted dependant; an uncoded plain { error, message } 409 when another writer changed a dependant while the write was judged (retry the write); and the budget refusal.
  • actions.applyAction documents the bound refusals of a put (#1244): a bound constraint over data the caller may not read answers the bare 409; a put that breaks a bound constraint of its sort answers 422 with a reason that names the constraint.
  • The engine spec does not document the #1245 refusals, and the stale-dependant and unwritable-dependant 409s have no code (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.

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.

  • inference.addFact enforces bound constraints for every caller (reasoninglayer#1238). A fact faces its sort’s bound constraints as a created term does: an on_violation: "update" constraint adjusts the stored fact, and a "fail" constraint refuses it with a 409 ConstraintViolationError that names the feature and the constraint. A refused fact leaves nothing in the store. Before engine fcfcc0e03b this 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.execute answers an INSERT that such a CHECK ON axiom refuses as an execution failure (422) with refusal.code constraint_over_unread_data. isConstraintOverUnreadData keeps its ConstraintViolationError type 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.addFact and actions.applyAction (an edit the action puts, and its conditional replacement; a named bound refusal of the conditional replacement stays 422). A @key merge on each of them, and on OSFQL, is judged against the writer’s representation.
  • visualization.termList: the 503 (ServiceUnavailableError) and 504 (InternalServerError, status 504) answers under a gateway authorization context, and the reader’s page there: totalCount counts 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.

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) and isConstraintOverUnreadData(error) (reasoninglayer#1235, ts-sdk#87). The one bare refusal of a bound constraint over data the caller may not read now carries code: "constraint_over_unread_data"; every other bound refusal carries no code. code is also write_targets_derived_fact on a DerivedFactWriteError and write_targets_rule on a RuleTermWriteError, as before. An engine older than a3dc97cd34 sends no code, so isConstraintOverUnreadData answers false there.
  • 403 sort_manage_not_granted in the @throws of every REST door that defines or changes a sort (#1233): sorts.createSort, bulkCreateSorts, declareDisjunction, declareIndividual, patchSort, patchSortFeature and removeSortFeature. 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 a ForbiddenError; read the code with errorBodyCode.
  • terms.listTerms documents 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 ConstraintViolationError example branched on feature === undefined, which also matches other 409s (ts-sdk#87). Both now use isConstraintOverUnreadData.

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.

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.

  • Handle sort_manage_not_granted (reasoninglayer#1231). It is the one coded answer of every Manage denial. An exhaustive switch over Governance.GovernanceRefusalCode (GovernanceRefusedError.code, OsfqlRefusal.denialCode) or Sorts.SortApprovalErrorCode needs the arm. The sort routes keep throwing a ForbiddenError (403); the body is now a GovernanceRefusalResponse, so errorBodyCode(error) reads sort_manage_not_granted where it read undefined.
  • Do not match an uncoded 403 for a missing Manage grant. A 403 without a code no longer means a missing Manage grant: branch on errorBodyCode(error) === 'sort_manage_not_granted'.
  • The bare bound refusal (reasoninglayer#1230) reports feature and constraint as undefined. The engine sends both as "". Corrected in 18.1.0 (ts-sdk#87): feature === undefined does not identify this refusal, because every 409 without a feature key (a coded conflict, a plain { error, message } body) is also a ConstraintViolationError with no feature. Test it with isConstraintOverUnreadData(error) (18.1.0, engine a3dc97cd34 and later).
  • sort_manage_not_granted in GovernanceRefusalCode, its runtime set, and SortApprovalErrorCode; the new Sorts.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 as 403. Their @throws name it.
  • OSFQL: a DEFINE or a change of a sort without Manage is an execution failure (422), and an ALTER SORT move without it is refused (403), both with refusal.code write_refused and refusal.denialCode sort_manage_not_granted. The property-graph routes name it in error_type.
  • An OSFQL refusal with denial_code: sort_manage_not_granted was not read: 17.0.0 refused a denial_code outside its closed set, so osfql.execute threw a plain ApiError (a ForbiddenError for the 403), not an OsfqlError, for a Manage denial.
  • ConstraintViolationError.feature and constraint are undefined, not "", for the one bare 409 that terms.createTerm and terms.updateTerm answer when a bound constraint over data the caller was not shown refuses the write (#1230). Its message is The write does not meet a constraint of its sort over data this caller may not read.
  • terms.createTerm documents that a @key coreference 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.

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.

  • demo.seed takes no SUMO directory (reasoninglayer#1229). DemoSeedRequest is the empty object (Record<string, never>): sumoDir is gone, and the engine refuses an unknown field (the former sumo_dir) with 422. Call client.demo.seed(). A deployment whose SUMO files cannot be read answers 404 demo_corpus_unavailable (Demo.DemoSeedErrorCode, a NotFoundError), naming no server path.
  • Refused writes of a demo seed, a KIF import (persist: true) and a browser run are typed errors. demo.seed and ingestion.ingestKif throw GovernanceRefusedError (403 reserved_sort_write_refused, sort_write_not_granted, operational_authority_*; 409 authz_relation_derived; 422 operational_rule_conclusion, …) or VocabularyRefusedError for 409 governed_sort_write_refused, which is in both closed sets (#1227). Both are ApiErrors with the same status, so errorBodyCode still reads the code.
  • A single-term read is the reader’s view (reasoninglayer#1221). terms.getTerm leaves out a feature that holds a term the caller’s Read grant does not show, and etag is the tag of that view; a 412 names the current tag of the caller’s view. Re-read before you retry an ifMatch write with a tag another principal gave you.
  • Closed unions widened (an exhaustive switch needs the new members): GovernanceRefusalCode and TermWriteErrorCode (reference_term_unknown, term_id_unavailable), ReviewStatus (superseded), ReviewReason (model_read).
  • demo.seed: the empty request, demo_corpus_unavailable, and the coded 403 / 409 / 422 write refusals (#1227, #1229).
  • scenarios.create, materializeScenario and update: the 403 sort_write_not_granted, reserved_sort_write_refused and operational_authority_* refusals in their @throws (#1227).
  • terms.getTerm: the reader’s view and its etag (#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.

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) and term_id_unavailable (409, an explicit id, RDF resource or SPARQL INSERT DATA IRI held by a term the caller’s Read grant hides, #1215), in GovernanceRefusalCode and TermWriteErrorCode.
  • A refused bulk write (BulkRefusedError.rows) carries each row’s closed code, as the 200 answer 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 published code (#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 of bindSort (#1213, #1218).
  • ingestion.ingestKif with persist: true throws 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), listRuns and operateRun (/api/v1/agent/browser-runs, start / inspect / observe / authorize / discard / receipt / resolve / cancel), with the typed run bodies of reasoninglayer#1195. Namespace BrowserAgent.
  • ingestion.ingestVideo (POST /api/v1/ingest/video): inline on 201, or queued with an IngestionSession, the kept originals and the timeline text on 202 (sync: false).
  • documentCheck.draftClausePolicy (POST /api/v1/documents/{document_id}/clauses/{clause_id}/policy-draft): unpublished RLQL for a reading of one clause.
  • @throws documentation of the new write and delete denials of propertyGraph.executeCypher / executeGql / executeGremlin (403, 409) and sparql.executeUpdate.
  • DeleteTenantResponse on the wire names tenant_id once (#1211); the shipped tenantId is unchanged.
  • Closed unions widened (an exhaustive switch needs 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).

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 of token, done, error events), 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.generate takes authoring (the author’s Work turn) and table (a table of selected declared fields, UIPageTableSelection).
  • admin.rebuildSemanticIndex, admin.eraseConversations; osfql.dependencies.
  • Namespaces LiveDocs, AgentInstructions, SkillScripts, TextEditing, FrameAuthoring.

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.

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.

  • RDF upload completion (reasoninglayer#1193, #1194). ingestion.completeRdfUpload answers 202 with queued or processing while an import runs (before: 200), and 200 once it ended (complete, paused or failed; also the answer to a repeat). It never answers uploading. Nothing is queued on the new coded 409 rdf_upload_lease_held (retry after Retry-After) and 409 rdf_checkpoint_foreign_executable. An import a crash interrupted resumes by itself.
  • CHAIN conclusion ids changed (reasoninglayer#1190). An OSFQL CHAIN answers producedTermIds that are the conclusions’ own ids, which terms.getTerm resolves and query.findBySort({ includeDerived: true }) lists. Before, they were ids of internal wrapper terms. A client that stored ids from an earlier CHAIN holds ids the engine no longer answers: run the CHAIN again, or find the conclusions by sort, and store the new ids.
  • Sort labels are objects. SortDto.altLabels / hiddenLabels, SortPreview.altLabels / hiddenLabels and the new SearchSortsMatch.matchedLabels are SortLabel[] ({ value, language }, language null when none is stated), not string[]. Read .value where you read the string. Requests (BulkSortDefinition, PatchSortRequest) take SortLabelInput[]: 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.causal sends x-reasoninglayer-caused-by, -informed-by, -scope, -seals-scope, -seal-commitment, -seal-signer, -seal-signature; readAuditHeaders reads x-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 (the RAG and Translation namespaces, FeatureConfigDto, the context-assembly SourceExcerptDto, GenMode, …).
  • Acquired-content decisions (acceptLibrarySuggestion, declineLibrarySuggestion, undoLibrarySuggestion, fileAcquiredRecord, unfileAcquiredRecord, retractAcquiredRecord, restoreAcquiredRecord) answer AcquiredRecordDecision (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. RememberResult has reconciliation and archived; RecallEntry has kind, episodicImportance, ageDays, freshness, markers and provenance; RecallResult has dense and core.
  • Conversation notices: retrieval_rescue is gone; claim_check_failed is new.
  • ConversationMessageResponse and TurnDto always carry claims, strippedClaims and nextQuestions (empty when the engine sends none); TurnDto always carries framePages.
  • Closed unions widened (an exhaustive switch needs the new member): ConversationKind (agent_consultation, excluded from RecordableConversationKind), ProofKind (absent), ConnectorObjectKind (file, message, thread), VocabularyPluginObservation (shadowed_by_tenant_install), VocabularyRefusalCode (seven source_* codes), GovernanceRefusalCode (four snapshot_* codes), VocabularyOperation (capture_source_scope, declare_source_inventory), ValueDto (Bytes), UiSort (agent_chat), and PatchSortFeatureAmendment (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 to urn:reasoninglayer:tenant:{id}.
  • The OSFQL row identity column and the A2UI/ui.describe rowKey are __reasoninglayer_term_id (sort label __reasoninglayer_sort_label).
  • AG-UI: the data-load failure event is reasoninglayer.data_load_error, its state at reasoninglayer.dataLoadError.
  • Opaque envelopes the SDK passes through unchanged: snapshot format: "reasoninglayer-snapshot" with metadata.reasoninglayer_version, agent bundle reasoninglayer.agent/v1, context manifest reasoninglayer-context-manifest/v1, document export renderer reasoninglayer-document-export/2.
  • API tokens: the gateway issues rl_ tokens and still accepts osfkb_ ones. The SDK sends a token as given and does not check its prefix.
  • Vocabulary source observations, under a REQUIRED Idempotency-Key (reasoninglayer#1167, #1174): vocabulary.captureSourceScope and vocabulary.declareSourceInventory take VocabularyMutationOptions (idempotencyKey) and read replayed; vocabulary.compareSourceInventories takes no key. getRequestOutcome decodes both new operations. New namespace SourceObservations.
  • Sorts (#1172): SortDto.nameLanguage, PatchSortRequest.nameLanguage, SearchSortsRequest.lang (with by: 'label'), SortLabel, SortLabelInput; feature reading directive (shown / hidden) on FeatureDescriptorDto and patchSortFeature.
  • Ontology imports (importOwl, importFoundry): sortsAlreadyPresent and sortsChanged (ImportChangedSort, labels with their language, nameLanguageChanged).
  • Memory: remember takes kind, reinforce, details, contentPolicy, fact, embed, triggers, the ledger anchor, personal and projectId; recall takes kind, 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 (VerifiedClaim with provenance, stated values and absence proofs), strippedClaims, nextQuestions; TurnDto.framePages and presentation; request sourceScope (all, news, knowledge). query.nlQuery answers answer (the conversation turn) and gateCode.
  • Inference: ProofDto.absence on an absent proof node.
  • Analysis: circular interval features (IntervalSubgroupsRequest.circular, IntervalRange.period, IntervalSubgroup.alternatives).
  • Ingestion: speakerNotes and workbookDetails on ingestDocument, and the answers speakerNotes and workbook; AudioActionItem.assigneeIsSpeaker.
  • Value.bytes and BytesValue.
  • Workflows: approval.policy, ask_agent.skillVersion, web_search.targetPackage, startRun project.
  • App actions: ownCreatedRecords, apply expectedPreview and the answer previewToken. UI: UIPageListResponse.canRestore, UIDataSourcePayload.calculations.
  • Snapshots: ApplySnapshotResponse.authorityTermsWithheld and termsKept.
  • Governance erasure: the four sourceObservation* counts.
  • Connectors: nextCursor / cursor paging.
  • Platform: SkillSummary.packageId. Settings keys answer_model and query_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.provider and .model: /health reports the model ports (text_model, agent_model, extraction_model, vision_model, vision_extraction_model, native_goal_parser) as configured with their provider and model, or unconfigured, and workflow_authority as gateway, unfenced or unconfigured (#1187, #1188).
  • errorBodyComponent(error): the /health component a model refusal (llm_unconfigured, llm_provider_failed) names; NlQueryResponse.component, TrizRecordOutcomeResponse.code and .component (#1191).
  • Conversation notice model_unavailable (code, component); acquired arrival modelRefusal.
  • GovernanceRefusalCode: llm_unconfigured, llm_provider_failed, subscription_source_unconfigured, subscription_source_foreign, workflow_authority_unconfigured.

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 generate step both ways, an unknown step kind kept as an opaque step (sent back as it was read), and the optional teamId.
  • 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_search and decompose (the goal split into task records by the declared HTN methods). Synced from E2’s regenerated openapi.json (engine 4cba15f780).
  • Settings: appliesAbove (what a project may not loosen) and writableValues (what a settings.put at that scope accepts now), from the same file.
  • Workflows: enableTrigger and saveAndFireTriggers.
  • 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 an Idempotency-Key), fileAcquiredRecord, unfileAcquiredRecord, retractAcquiredRecord, restoreAcquiredRecord, acceptLibrarySuggestion, declineLibrarySuggestion, undoLibrarySuggestion, acceptDocumentTopic, declineDocumentTopic.
  • Governance: metering and subscriptions: admitUsage, prepareMeterDelivery, canonicalizeTierCatalog, observeSubscription, transitionSubscription, syncSubscriptionProjection.
  • client.settings (SettingsClient): get and put of a Space setting and its narrowing for a project.
  • Platform: putIdentity (with color and image) and deleteIdentity.
  • Conversation: moveConversation files a conversation in a project or back at Space level.
  • Read fields: agent state definitionVersion and owner; conversation and memory projectId; install sortsProvenanceRederived and sortsProvenanceUnknown; identity description (summary), color, image.
  • Function values List and DateTime; expressions List and PathAccess.
  • Vocabulary finding code draft_concept_with_accepted_membership.

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.

The wire ledger (reasoninglayer n12_wire_ledger.md) and the shipped surface:

  • actionReviews.listPending and actionReviews.getSummary send no tenant_id: the engine takes the tenant from the principal and refuses the parameter (400 invalid_request). ActionReviewsClient no longer takes a tenant id.
  • Approver role bindings are governed role assignments: actionReviews.bindApproverRole and actionReviews.revokeApproverRole answer GovernanceRoleCommitResponse and take an idempotencyKey; actionReviews.listApproverRoles answers one cursor page (ApproverRoleBindingPage). RoleBindingsResponse is gone.
  • vocabulary.listDecisions answers a page (VocabularyDecisionPage: items, nextCursor), not an array.
  • GovernancePipelineJobParameters is a union tagged by kind; inputs, releaseId and unitRecords exist only on the variants that declare them. Narrow on kind before reading them.
  • VocabularyRefusalCode drops identity_reviewer_not_human; ReasoningOperationLogScope is 'tenant_records' (both already in 15.0.0’s notes; now acknowledged by the engine’s wire baseline).
  • VocabularyRequestOutcome and VocabularyCommittedResult moved out of the Vocabulary namespace 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.
  • VocabularyOperation gains approve_unit, review_unit, create_change_request, link_change_request, dispose_change_request, recover, restore, erase_source, admit_identity_decision, revoke_identity_authority, create_pipeline_job and cancel_pipeline_job; an exhaustive switch must handle them.
  • A governance refusal body (GovernanceRefusalResponse, code in the generated Governance.GovernanceRefusalCode, 76 codes) is thrown as the new GovernanceRefusedError (with code and refusal) by every governance, action-review, webhook, marketplace, admin, sort-comparison and rule-comparison method; 15.0.0 threw ApiError, ForbiddenError, NotFoundError or ConstraintViolationError for these.
  • 410 is a GoneError, and 410 tenant_deleted (now documented on every tenant-scoped operation) a TenantDeletedError; 15.0.0 threw a plain ApiError.
  • replayed: boolean is required on GovernanceRoleCommitResponse, GovernanceActorClassificationResponse, GovernancePipelineJobResponse, GovernanceErasureResponse, GovernanceRestoreResponse, VocabularyRoleCommit and VocabularyActorClassification (reasoninglayer#962); code that builds these objects must set it.
  • Every GovernanceClient and ActionReviewsClient method now throws the typed vocabulary errors for a coded vocabulary refusal (IdempotencyKeyRequiredError, IdempotencyKeyReusedError, MutationOutcomeUnconfirmedError, VocabularyRefusedError) where 15.0.0 threw PreconditionRequiredError, ApiError or ForbiddenError. All of them are still ApiErrors; code that branches on the old subclasses must branch on the new ones or on code.
  • VocabularyAssessment.compatibility and VocabularyQualityReport.compatibility are a typed VocabularyCompatibilityBlock (camelCase, closed enums), not the raw snake_case JsonValue of 15.0.0 (reasoninglayer#967). Code that read units[i].change_kind or obligation_digest from the raw JSON reads changeKind and obligationDigest; an absent class, version, predecessorVersion, retainedTheory, review or subject is undefined, not null.
  • VocabularyCompatibilityEvidence is a union discriminated on code (reasoninglayer#977): each of the 124 codes fixes the shape of detail, a camelCase Vocabulary...Detail type (null for the 75 codes that carry none). It was an interface with an open code: string and detail: JsonValue. Narrow on code before reading detail; snake_case keys read from the old raw detail are camelCase now (change_id is changeId), and an absent or null optional member is undefined. The decoder refuses a code outside the closed set, or a detail on a code that carries none, with a ResponseShapeError.
  • Closed unit values (reasoninglayer#977): GovernanceUnitVersion.unitKind and .versionClass, GovernanceUnitVersionPageResponse.unitKind, and GovernanceProspectiveUnit.unitKind, .change, .changeKind, .compatibility and .versionClass are the Vocabulary closed sets, not string. GovernanceUnitReview.authority is a VocabularyAuthorityCheck, not Record<string, unknown>. VocabularyQualityReport.dispositions is VocabularyFindingDispositionView[], not JsonValue[]; a disposition whose fields are missing or outside the closed set is a ResponseShapeError.
  • One replay contract (reasoninglayer#981): replayed: boolean is a required body field of VocabularyPluginReview, VocabularyBasePackRegistration, VocabularyWebhook, VocabularyAuthorityRelationAsserted, VocabularyAuthorityRelationRetracted, GovernanceAuthorityPolicyProposal, GovernanceAuthorityPolicyActivation, GovernanceAuthorityPolicyReview, GovernanceAuthorityRelationAsserted and GovernanceAuthorityRelationRetracted, and the SDK reads it from the body. A read (getWebhook, getAuthorityPolicy, getAuthorityPolicyActivation) says false. VocabularyReplayable<T> is gone. inboundWebhooks.addCredential and endCredential answer the new VocabularyWebhookCredentialAnswer (the credential plus replayed); a credential listed in VocabularyWebhook.credentials has no flag. vocabulary.getRequestOutcome decodes add_webhook_credential and end_webhook_credential as VocabularyWebhookCredentialAnswer.
  • analysis.confirmImplication, refuteImplication and advanceExploration answer IdempotentAnswer<T> (T & { replayed: boolean }): their bodies have no flag, so the SDK reads the Idempotency-Replayed header the engine now sends and declares on them (reasoninglayer#981).
  • VocabularyTheoryConstructKind gains prefix (reasoninglayer#978 item 3, governance 1.6.0); an exhaustive switch must handle it.
  • A refused OSFQL mutation is an OsfqlError at every status (reasoninglayer#1041, pair 4). The engine answers its authorization refusals with the status and code REST answers, as error_type: 403 forbidden, operational_authority_denied, operational_authority_undetermined, term_sort_unresolved; 409 governed_sort_write_refused, authz_relation_derived (with refusal); 422 operational_rule_conclusion, authz_rule_shape, authz_parent_of_sort_refused. Before, a 403 from osfql.execute or osfql.preview was a bare ForbiddenError. OsfqlErrorType names these codes and is now open: every error_type but timeout builds an OsfqlError, and a class this SDK does not know is kept verbatim with its refusal. An exhaustive switch on errorType needs a default. An older engine’s 422 execution refusal still maps to the same error.
  • 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’s error for an unknown sort: a result: false with an error is not a negative answer).
  • createRestore sends the kos-json/v2 document of exportRelease byte for byte (GovernanceReleaseExport); the SDK’s snake_case body transform would otherwise rewrite keys the document’s digests cover.
  • vocabulary.getRequestOutcome decodes 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 as 422 idempotency_key_reused like every other M4 mutation; the engine’s former idempotency_key_conflict is gone.
  • VocabularyOperation equals the engine’s 46-value operation enum of GET /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.drift and CqRunSummaryDto.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-refusals fails when an M4 code is untyped; it is part of test:ci.
  • The typed compatibility block of an assessment (reasoninglayer#967, engine CompatibilityBlockDto), exported in the Vocabulary namespace: VocabularyCompatibilityBlock, VocabularyUnitCompatibility, VocabularyUnitKey, VocabularyCompatibilityCheck, VocabularyCompatibilityEvidence, VocabularyRetainedTheory, VocabularyReviewRequirement and the closed sets VocabularyUnitKind, VocabularyUnitChange, VocabularyUnitChangeKind, VocabularyCompatibilityCheckKind, VocabularyCompatibilityCheckOutcome, VocabularyCompatibilityOutcome and VocabularyVersionClass.
  • 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 sets VocabularyRelationDiffStop and VocabularyConstructedBoundKind, and VocabularyCompatibilityEvidenceCode. A detail is evidence, not a verdict field: read the verdict from outcome. A rule comparison’s report reuses RuleComparisonDirection of client.inference.compareRules.
  • replayed on marketplace.reviewPlugin, admin.registerBasePack, governance.createAuthorityPolicy, activateAuthorityPolicy, reviewAuthorityPolicy, assertRelation, retractRelation, and inboundWebhooks.putWebhook, deleteWebhook, addCredential and endCredential (#78): true when 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 prefix theory construct (reasoninglayer#978 item 3, record 28 A137): a theory_change with constructKind: 'prefix', role tbox, holds exactly one PREFIX p: <iri>; statement, and its introduces, 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.prefixes lists the bindings an activation added (VocabularyTheoryPrefixBinding: prefix, namespace, canonical).
  • IdempotentAnswer<T> (package root): the answer of a keyed route whose replay flag is only the Idempotency-Replayed header.
  • VocabularyRefusalCode gains compatibility_evidence_undecodable (500): a stored compatibility block that does not decode into its typed evidence.
  • scripts/replay-recorded-bodies.mjs decodes the recorded M4 engine bodies through the built package (M4-65) and lists every dropped key; planning/evidence/m4-recorded-body-decode.json is its result on the campaign transcripts.

Engine contract fixes carried (reasoninglayer 83207f0c67)

Section titled “Engine contract fixes carried (reasoninglayer 83207f0c67)”
  • reasoninglayer#962: the replayed flag is declared; the SDK carries it.
  • reasoninglayer#963: obligations[].detail is always an object.
  • reasoninglayer#964: one closed governance refusal code set and body (GovernanceRefusalBody on 184 M4 error responses), documented JSON rejections, authority-policy and sort-comparison statuses, and 410 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 83207f0c67 answers the stored body with replayed: false, so vocabulary.getRequestOutcome reads 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 DEFINE can 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 prefix theory construct and TheoryActivationDto.prefixes (governance 1.6.0; see Added). Live on build 902f75574f: a candidate with PREFIX p: <iri>; and DEFINE p:Vehicle, DEFINE p:Truck < p:Vehicle on 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 replayed in the body (a reconciliation read says false), the credential routes answer WebhookCredentialAnswer, and all 57 keyed operations declare the Idempotency-Replayed header, 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 (a CodedErrorResponse). The SDK documents the refusal on snapshots.delete and snapshots.import; governanceRefusalOfBody(error.body) reads its code.
  • reasoninglayer#994 (knowledge organization plugin 2.4.0): VocabularyValidTimeUseRole gains recorded_at, the time a source recorded a value; conformance requires @recorded_at when a profile names it.
  • reasoninglayer#989: VocabularyFindingCode (and VOCABULARY_FINDING_CODES) gains value_map_target_deprecated, a value map that targets a deprecated value.
  • reasoninglayer#997: VocabularyCqReason gains temporal_equality_undetermined, a date-text versus instant comparison that the engine cannot decide.
  • reasoninglayer#1001: a job whose unit_deadline_ms + commit_margin_ms exceeds what a tick offers one unit (the cron execution budget less the 5 s claim reserve) is refused at creation with the existing 422 job_parameters_invalid; the message states both numbers. The wire does not change; the commitMarginMs documentation states the bound.
  • reasoninglayer#982 and #987: POST /sorts declares its 400 body (an ErrorResponse; sort_parent_unavailable is 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 admits UNION in 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.

Generated from the engine contract of reasoninglayer a0aa98558c (1,081 paths, 3,311 schemas).

  • ReasoningOperationLogScope is '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.listOperations answers retention.scope: 'tenant_records'. A caller that compares retention.scope with 'process' no longer compiles and must compare with 'tenant_records'.
  • authz.writeTuple is removed, with AuthzTupleWriteRequest, AuthzCanTupleWriteRequest, AuthzHasRoleTupleWriteRequest and AuthzTuple.etag (which only writeTuple filled). The engine refuses every POST /api/v1/authz/tuples (403, or 409 authz_relation_derived for the provisioning identity): it concludes can and has_role from the governed role history, which POST /api/v1/governance/role-assignments writes. authz.check, authz.listTuples and authz.deleteTuple are unchanged.
  • CronJobStatus gains 'authority_revoked' (a complete derivation denied the registrant’s authority at an execution start; the job does not fire until it is resumed) and CronJobRunStatus gains 'skipped' (the authority could not be established, so nothing ran). An exhaustive switch must handle them.
  • VocabularyRefusalCode drops 'identity_reviewer_not_human', which the engine no longer sends, and gains 'admission_target_not_operational' and 'operational_roots_changed' (both 409, nothing written), 'explain_not_found' and 'concept_not_found' (both 404) and 'job_kind_engine_only' (422: an invalidation job is created by the engine only).
  • Closed unions gain the values of stated absence, valid time and null declarations: ValueDto gains StatedAbsenceValue ({"type": "StatedAbsence"}: the source states there is no value, admitted only on a feature declared @nullable; it is neither Uninstantiated nor an omitted feature), VocabularyRecordKind gains 'null_declaration' and 'valid_time_use', VocabularyConformanceFindingCode gains 'stated_absent' and 'valid_time_undeclared', VocabularyConformanceValueState gains 'stated_absent', and VocabularyNoteCode gains 'undeclared_null', 'stated_absence_not_admitted' and 'stated_absence_in_collection'. An exhaustive switch must handle them.
  • DlqRetryResponse.retriedBy and ReprocessFailedResponse.retriedBy are 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 is proven only with a homomorphism witness the engine’s verifier replayed; not_proven, resource_limit and unsupported never mean non-containment. equivalent is true only when both directions are proven. A query that does not parse or is outside the conjunctive fragment is refused with 422 (code: "osfql_not_conjunctive"); the new osfqlContainmentRefusalOf reads the refused side from 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) or refused (no repair within the budget; the engine does not guess). A 500 means 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, or incomplete when a limit stopped the enumeration, in which case nothing is selected. 400 when 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 OSFQL DERIVE text without installing it. 422 codes: 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 with 409; 422 when 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, default false): the engine already accepted it; a measured-goal cycle sets it false so no mode switch skips execution.
  • CronJobRun.authority and WorkflowRun.authority: what the execution start proved about the actor’s authority, passed through as sent.
  • OsfqlResponse.qualification (OsfqlQualification): per MATCH, PROVE and CHAIN statement, the established answers, whether the enumeration is complete (only complete is 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_declaration and valid_time_use records (VocabularyNullDeclarationInput/Record, VocabularyValidTimeUseInput/Record) in record inputs and record views.
  • GetQuotientOrderOptions.maxCells and maxRelationQueries (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.offset and total, and LlmContextTrace.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} and GET /api/v1/governance/concepts/{concept_id}/instances.
  • VocabularySourceSchemaInput.recordsAt and VocabularySourceSchemaRecord.recordsAt (records_at): the JSON pointer to the records of a json_records document (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_acquisition job’s parameters, request and checkpoint (AcquisitionJobRequestDto, AcquisitionJobParametersDto, AcquisitionCheckpointDto, AcquisitionProviderDto, AcquisitionTransportDto) on POST /api/v1/governance/jobs.
  • The generated error types declare CodedErrorResponse for the coded refusals of POST /api/v1/channels/webhook (401, channel_webhook_unsigned), PUT /api/v1/webhooks/{slug} (422) and POST /api/v1/authz/tuples (409, authz_relation_derived); each description names the refusals of that status that carry no code.
  • The package carries a LICENSE file (the Kortexya proprietary source code licence; license stays UNLICENSED) and homepage https://reasoninglayer.ai.

Generated from the engine contract of reasoninglayer f9e618e850 (1,052 paths, 3,205 schemas), which main carries unchanged at aa7af1eb65.

  • client.sorts.proposeDefinition: propose def(sort) = pattern for 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’s approveSort installs it; the proposer’s is refused with 403 (code: "separation_of_duties"). client.sorts.rejectDefinition withdraws it with a reason.
  • SortDto.proposedDefinition: the definition waiting for review, apart from the installed definition.
  • 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 in erasedBy.
  • 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 answers 503 (code: "mcts_scorer_unavailable") when no scorer is installed, and 422 (code: "mcts_tagged_inference_unsupported") together with enableProvenanceTags.
  • client.phone: listRehearsalHistory, getRehearsalHistory and eraseRehearsalHistory, a person’s saved private phone test conversations (GET /api/v1/phone/lines/{id}/rehearsal/history, GET and DELETE …/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.
  • BrowserSpeechAudio with capture: false opens no microphone until startCapture(); SpeechSession.inputReady resolves when a disclosure-gated session permits input.
  • withdrawVoiceConsent and reinstateVoiceConsent return undefined when the engine answers 204: the consent changed, but the project does not grant profile reads. Breaking for a TypeScript caller that typed the result as VoiceProfile.

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. fuzzyUnify at threshold: 0.6 on {a; b} ⊓ c, whose bounds are x and y at 1.0 and w at 0.5, answers x and y; it used to refuse the whole answer with 400. 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.
  • fuzzyProve with graded head matching tries a rule only when its head lies below the goal to at least minDegree.
  • cognitive.runCycle runs 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 with 422 (agent_belief_operation_unsupported). Another agent’s private belief still refuses it, and integratedCycle still refuses on a tenant that holds any native agent belief.
  • Speech: SynthesizeSpeechRequest.refAudioBase64 and refText, 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 with 403, which synthesizeSpeech throws as ForbiddenError. Enroll the voice with enrollVoice (consent required) and pass its voiceId. Breaking for a caller that set these fields; Kortexya Work and the voice session never did.
  • speechSocketUrl refused 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 require resumeSupported.

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, closeSortSimilarity and proposeEmbeddingSimilarities.
  • client.fuzzy: sparqlExport (one SELECT DISTINCT query per verified alternative, each with its degree) and theoryTermination.
  • 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: false is not a refutation.
  • FuzzyProveRequest.headMatching: graded resolution against rule heads, reported on the proof as the existing ProofDto.headMatch.

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 to adult (guarded by age >= 18) used to succeed and now fails. With age unbound, the guard stays pending: no solution, and derivationComplete: false.
  • A guard reading a feature that holds a variable used to fail the goal. It now stays pending, so derivationComplete: false no 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.

Generated from the engine contract of reasoninglayer 4b195b3d73 (1,046 paths, 3,192 schemas).

  • admitted_runs is gone from the wire type of VocabularyRefusalResponse: the engine no longer sends it, and it never reached VocabularyRefusal.
  • identity_rule_multiple is no longer a VocabularyFindingCode. A refusal body whose findings carry it is not read as a vocabulary refusal.
  • VocabularyCrosswalkRun requires drift, and VocabularyAdmission requires recomputeBlocked and removed. Responses from older engines missing these fields raise ResponseShapeError.
  • 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 direct data_owner role grants; a steward no longer can.
  • Admission refuses a run with source drift (source_drift_detected). Declare a source_field for every path the artifacts hold, including the schema’s keyPath. VocabularyAdmission.written now also names the actor, the admission activities and the contributions.
  • The theory fingerprint’s definition is now domain-theory-v2, so digests from domain-theory-v1 do 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_assignment and trusted_identifier_scheme. The last two have client inputs, and data migration steps are written with the new upsert_migration_step operation.
  • VocabularyDecisionKind gains recover, erase and identity; VocabularyCrosswalkStopReason gains unit_limit; VocabularyAssessmentDetailKind gains migration_effect and recovery_outcome.
  • 50 more VocabularyRefusalCode members, which vocabularyRefusalOfBody and rethrowVocabularyRefusal now recognize; five migration_* finding codes and the migration_step_malformed record error.
  • VocabularyRefusal reads every context field of the engine’s body, including drift, consolidation, migrationStep, migrationTerms, restoreSubjects, identityDecisionIds, unit and unresolvedRecords.
  • VocabularyMaterialized.migration, TermVersionDto.activityId.
  • Regenerate the wire types for governance units, release composition and vocabulary-assessment/v5. The generated concept identity schemas now use ConceptIdentityDecisionInputDto and ConceptIdentityDecisionRecordDto; record kinds use release, governance_decision and concept_identity_decision. Conformance uses pin_unresolved, and resumed runs name pinned_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 raise ResponseShapeError.
  • 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.

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.

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: IntervalPolicyInput is an inline IntervalRepresentativePolicy or an IntervalStoredPolicy ({ termId }), accepted by intervalClasses, polygonClasses and synthesizeRegions. 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’s closedPattern and extent. Only enumerationLimitSeconds stops the walk, and then enumerationComplete is false. Types: IntervalGeneratorsRequest, IntervalGenerators, IntervalGenerator.
  • analysis.polygonClasses(request) (POST /api/v1/analysis/polygon-classes, G8): interval classes of polygons normal to declared integer directions over two numeric features, answered as an IntervalClassResponse whose 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 a binary, numeric (mean shift) or labels target, each with its closed pattern, extent, quality and a score discriminated on the target kind (tpr/fpr, mean/measured, or perLabel); unmeasured per target or label; and the walk’s visited, pruned and exhausted. 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, coverComplete and pairwiseDisjoint decided by linear arithmetic, and a witness exactly when a property fails. A rational part beyond Number.MAX_SAFE_INTEGER is 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 are 422 with symbolic_statistics_incomplete_records or symbolic_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 (search names the one that ran; work is set exactly for Monte Carlo). Each concept resolves among the answer’s artifactTerms, passed through unchanged. Types: ConceptSubgroupsRequest, ConceptSubgroups, ConceptSubgroup, ConceptPosition, ConceptSubgroupStrategy, ConceptSubgroupSearch, AbsentTargetReading.
  • sorts.compareSorts(request) takes SortCompareRequest without a tenant and sends only operator, sort_a and sort_b.
  • intervalClasses reads 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_extent only there and chosen only for a group with members.

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.

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, when evaluateSortNames is given, decides its records. The engine groups every visible record by the exact values of groupBy and profiles each group’s members (memberFeature equal to memberValue, a typed String, Integer, Real or Boolean value compared exactly: Integer 3 does not equal Real 3.0) over the numeric features. Each group carries its counts (records, members, admittedNonMembers, outside), generators (null exactly when the enumeration hit enumerationLimitSeconds, with enumerationComplete: false), the closedPattern, and one outcome per declared policy: chosen with a description (one IntervalRange per feature, each side explicit as unbounded, or closed/open with its value), restrictions, digits, margin (null when no side is bounded) and ties; or undecided. evaluated gives one decision per policy (fits, does_not_fit, undecided, no_profile) for each record, and is null when no evaluation population was named. Group key values are typed like term features (String, Integer, Real or Boolean; the engine refuses any other group value with a 422). Records lacking a declared feature are a 422 (body.code interval_class_incomplete_records), a class the engine refuses a 422 (interval_class_refused), and an invalid request (including another memberValue type) a 400. 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 a ResponseShapeError. Types: IntervalClassesRequest, IntervalRepresentativePolicy, IntervalThresholdChoice, IntervalClassCriterion, IntervalClassProfiles, IntervalGroupProfile, IntervalGroupKeyValue, IntervalScalarValue, IntervalPolicyOutcome (IntervalPolicyChosen, IntervalPolicyUndecided), IntervalRange, IntervalSide, IntervalRecordDecision, IntervalFitDecision, in the Analysis namespace.

  • timeoutMs: 0 (client or per call) now disables the client deadline instead of aborting every request at once; a negative or non-finite timeoutMs is 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.

  • guidance on StreamConceptsRequest (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 and complete are those of the unguided stream. A guided stream’s end event gains guidance (FcaGuidanceReport): prior says where the first branch order came from (attribute_order, scorer, scorer_abstained or no_scorer; only scorer means a scorer ranking), order is a permutation of the branches, and each branch reports its attribute (index and label), pulls and meanReward, which is guidance only, never evidence. The field is absent on an unguided stream. Invalid guidance, or guidance sent with a continuation, is a 400. Types: FcaBranchGuidance, FcaBranchPrior, FcaGuidanceReport, FcaGuidancePriorSource, FcaBranchRecord, in the Analysis namespace.

  • 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, else 422 (body.code fca_stability_not_a_concept). Exactly one of samples and epsilon (the request type enforces it); for epsilon the engine derives the Hoeffding sample count at delta. Each estimate carries the concept’s extent, trials, successes, complete, estimate, margin and interval. The answer must give one estimate per requested intent, in order, or it is a ResponseShapeError. 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 of context, factor and end events. Each factor is a natively closed and verified concept with its extent and intent as indices and as names, and exact newlyCovered and uncovered counts. maximumUncovered (default 0, full coverage) declares a partial target. The end keeps complete (nothing uncovered, the only full coverage) distinct from targetReached, and carries a continuation while coverage is incomplete. A refused continuation is a 422 (body.code fca_factor_continuation_refused). A native fault after delivery ends the stream with an end whose error is a string. No minimum-rank claim is made. Types: StreamFactorsRequest, FcaFactorStreamEvent (FcaFactorStreamContext, FcaFactorStreamFactor, FcaFactorStreamEnd, FcaFactorStreamFailure) and FcaFactorContinuation, in the Analysis namespace.

  • analysis.registerFactor(request) (POST /api/v1/analysis/fca-factors/register): registers a crisp factor’s intent as a Proposed sort only after the engine’s realization check. The engine returns FcaFactorRegistration (sortId, sortName, features, the realized extent). It answers 400 for an invalid or non-closed intent or name, and 422 (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 component factors). A graded factor never over-covers. Its coverage counts are exact, and degreeResidual is a diagnostic, not the selection objective. The end report keeps complete distinct from targetReached. Types: FcaFuzzyFactorRequest, FcaFuzzyFactorStreamEvent (FcaFuzzyFactorEvent, FcaFuzzyFactorEndEvent). FcaFuzzyContextEvent.component gains '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 of context, concept and end events. Each concept carries its extent and intent as indices and resolved to source term identities and feature names (extentObjects, intentAttributes). The end event states complete, the counters and, when the stream stopped early (pageSize), a continuation; sending it back with the same filters delivers exactly the concepts not yet delivered, and other filters are refused (422, body.code fca_stream_continuation_refused). The engine’s native kernel streams with memory independent of the number of concepts. Types: StreamConceptsRequest, FcaConceptStreamEvent (FcaConceptStreamContext, FcaConceptStreamConcept, FcaConceptStreamEnd) and FcaStreamContinuation, in the Analysis namespace.

  • semantics on StreamConceptsRequest and FcaExportRequest: read the population as schema presence (the default) or through the engine’s conceptual scaling ({ kind: 'scaled', schemes }, as in sortDiscovery), so nominal data such as odor = foul becomes attributes the engine owns. exportFca now sends its body verbatim, so feature names keying the schemes reach the engine as written.

  • Attribute exploration is exhaustive by default. ExplorationSearchBounds (maxWork, maxCandidates, searchTimeoutMs) and StartExplorationRequest.maxTerms accept null; absent or null means unbounded (no deadline, every visible record). The engine no longer caps work, candidates, the deadline or the population: a larger maxTerms is a sample the response reports (populationSampled), and maxTerms: 0 is a 422.
  • AttributeExplorationErrorCode no longer has exploration_population_limit: the engine has no population cap left to refuse.

Built against reasoninglayer main d023057d18, whose forward chainer has no fact cap.

  • BREAKING: maxFacts is removed from ForwardChainRequest (inference.forwardChain), TaggedForwardChainRequest (inference.forwardChainTagged) and E2ETrainingRequest (neuroSymbolic.trainE2e). The engine removed max_facts from the three requests and refuses an unknown field with 422, so the SDK no longer sends it, even when an untyped caller passes maxFacts (run time). The forward chainer has no fact cap: a run ends at its fixpoint. maxIterations and the request deadline (timeoutMs) remain as backstops, and neither returns a silently cut answer: a run that stops at maxIterations reports fixpointReached: false (completion.fixpointReached on forwardChain), and a run abandoned at its deadline fails with DeadlineExceededError.
  • Resynced against the running engine of reasoninglayer main d023057d18 (966 paths, 2,960 schemas; no operation or schema removed). Besides the max_facts removals above, it carries POST /api/v1/terms/import and GET/DELETE /api/v1/terms/import/{id} (TermImportReceipt), and the interval-class schemas ChosenRegionDto, ClassRepresentativeDto, IntervalDto, IntervalSideDto and ProjectionDto, 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.
  • Refusal code assessment_not_established (reasoninglayer #635, #756; engine !465): approving a candidate whose cited assessment is complete with outcome not_established throws VocabularyRefusedError 409 assessment_not_established (“the cited assessment is complete but did not establish its outcome”). assessment_blocked is now only for a blocked assessment.
  • VocabularyAssessmentDetail is a union on kind. A cq row has body: VocabularyCqComparisonReport, decoded as the CQ run routes decode a comparison (execution.prove entries { solutions, complete }, execution.chain entries { iterations, fixpointReached }); a cq body that is not a comparison throws. The other kinds keep body: JsonValue. VocabularyAssessmentDetail is now the union of VocabularyAssessmentCqDetail and VocabularyAssessmentObjectDetail.
  • Resynced the vendored spec: documentation text of POST /osfql (a DEFINE of a name the tenant already holds is 422 Sort '...' already exists, governed or not) and the new refusal code. No path, schema or field is removed.
  • 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, throws cursor_mismatch; a malformed id throws invalid_request.
  • Typed refusal of a repeated run input: a crosswalk run request that names one sourceFileId at two or more inputs positions throws VocabularyRefusedError 422 invalid_request, and error.refusal.repeatedInputs lists { 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/stream and /fca-fuzzy/factors/stream with their Fca* schemas. They are resynced, not wrapped; no client.analysis method calls them yet.
  • VocabularyConformanceRunSummary.selection is 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 }). A term_ids selection is counted, never listed; read the run for its ids. A selection of a kind the SDK does not know throws a ResponseShapeError instead of being dropped. Before this change the summary omitted selection.
  • A conformance cursor issued by an older engine build answers cursor_mismatch on this engine; list again from the first page.
  • Run listings of the governed vocabulary (reasoninglayer #635, #696): client.vocabulary.listCrosswalkRuns(query?) (GET /api/v1/vocabulary/crosswalk-runs; filters state, complete, resumed), listConformanceRuns(query?) (GET /api/v1/vocabulary/conformance-runs; outcome, complete, resumed) and listCqRuns(query?) (GET /api/v1/vocabulary/cq-runs; outcome). Each also takes releaseId or revisionId (not both), cursor and limit (1 to 500, default 50), and answers { runs, nextCursor?, complete } newest first. A run on a page is the single-run read without replayed and without decisions (crosswalk), selection (conformance) or results (competency question): VocabularyCrosswalkRunSummary, VocabularyConformanceRunSummary, VocabularyCqRunSummary. A cursor used under another tenant, listing or filter throws VocabularyRefusedError cursor_mismatch; both releaseId and revisionId throw invalid_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; deleteTerm does not send erase yet.
  • 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 details crosswalkProblems, outputRefusals and resumeMismatches, unknownFilterRows and unknownFilterOperands, criteriaId, the theory activation receipt and governedCompetency). 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.
  • OsfqlErrorType gains sort_governed_by_release (409) and vocabulary_unavailable (503): an OSFQL program that declares, changes, moves or drops a sort the active vocabulary release governs now reads as an OsfqlFailure instead of a bare ApiError. Sorts.SortGovernanceErrorCode names the same two codes for the REST sort routes; read them with errorBodyCode(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.profile and OsfqlFailure.profile (OsfqlProfile: passes, operators, fused groups); OsfqlResponse.unknownFilterExclusions (rows a WHERE comparison over an explicitly uninstantiated value excluded; an absence the program reports is not established while it is present); OsfqlDiagnoseRequest.inspectOnly and maxInspectionNodes with OsfqlDiagnoseResponse.inspection (a compile-only plan).
    • ConversationNotice gains the kind cognitive_strategy_unavailable (reason): an answer produced without a step the tenant configured. An exhaustive switch on kind needs the new arm.
    • IngestionConfigDto.promptPopulationId (an exact stored optimizer population; excludes promptVariantId).
  • 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.

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.

  • BREAKING (#628): VocabularyCandidateRevision.records is removed. A revision answer (createCandidate, saveRevision, getRevision, rebase, commitImport, applyMigrationPlan, and a stored getRequestOutcome body of those operations) now counts its records by kind in recordCounts: Record<string, number> (wire kind spelling → count). Read the records with listRevisionRecords. A revision body without record_counts (an engine before #628) fails with ResponseShapeError (run time).
  • VocabularyRecordKind, VocabularyRecordInput and VocabularyRecordView gain definition_policy, and VocabularyRecordOperation gains accept_proposals. An exhaustive switch needs 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 (limit 1 to 500, engine default 50). Types ListVocabularyRevisionRecordsQuery and VocabularyRevisionRecordPage.
  • The definition_policy record kind (#626): VocabularyDefinitionPolicyInput and VocabularyDefinitionPolicyRecord (one per scheme, definition-policy/v1), and VocabularyDefinitionRequirement (required | optional).
  • The unit operation { op: 'accept_proposals' } (#627): the engine sets each draft concept and each proposed membership, concept relation, concept mapping and collection of the change set, as it stands at that operation, to accepted.

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.xlLabels is now VocabularyXlLabelView[]: each XL label also carries its literal text and language, and its outgoingRelations and incomingRelations (VocabularyLabelRelationView: the relation record plus otherXlLabelId, otherResourceKey, otherText and otherLanguage, the XL label at the other end).
  • VocabularyConceptView.mappings is now VocabularyConceptMappingView[]: targetExternalConcept (the external concept record the mapping names) and targetDisplayLabel (the display label of a target concept of the tenant).
  • VocabularySchemeView.documentation and VocabularyCollectionDetail.documentation: the notes about a scheme (in listSchemes) and about a collection (in getCollection).

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 in tokenUsage).
  • The concept assignment, feature and rule requests of the generated transport accept max_terms: null; the SDK still omits an absent bound.

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).

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)

  • VocabularyRecordKind and VocabularyRecordView gain 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. VocabularyRecordInput gains the first 11 (the last three are written only by an import commit or a migration plan).
  • VocabularyRefusalCode gains cursor_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.
  • VocabularyFindingCode gains 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), and VocabularyCriterion gains hierarchy, relations, top_concepts, mappings, documentation, collections, label_resources.
  • VocabularyOperation gains create_import, commit_import, create_migration_plan, apply_migration_plan, and VocabularyCommittedResult (the body of getRequestOutcome) 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 with ResponseShapeError (run time).
  • VocabularyRefusal: undecidedSourceKeys and changedSorts (empty when the refusal does not report them).
  • FactorSortsResponse: version, minSorts, limits, inputComplete, nativeAdmission; FactorProposal: extent, intent; FactorSharedFeature now extends FeatureDescriptorDto (the whole stored declaration) and adds signature and declaredBy. No field of 6.2.0 was removed from it.
  • routedToVocabularyImport on IngestRdfResponse, TranslateRdfResponse, RdfImportReceipt and RdfUpload; sortsRefused on ImportOwlResponse; goalsDeferred on CycleOutcomeDto; undetermined on WhyNotRule.

Engine behaviour

  • The engine’s assessment policy is now vocabulary-assessment/v2 (17 criteria) (run time): status().policies.assessment reports 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 a hierarchyKind; 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.
  • getConcept returns 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 in via), schemePaths, topConcepts, schemePolicy (taxonomy-policy/v1, or its defaults with declared: false), conceptRelations, listCollections and getCollection, 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 keeps complete and stopReason: a partial answer is not an error.
  • Imports: createImport (an uploaded file, from client.sources.uploadFile, in Turtle, RDF/XML, N-Triples, kos-csv/v1, kos-json/v1 or XLSX, previewed without writing), getImport, listImportItems (every source item with its coordinates, as read, its disposition and cell notes; the coordinates and items, erased to object in the spec, are read field by field), and commitImport (one candidate revision; a new candidate, or the next revision of candidateId with ifMatch). Reconciliation proposals are exact_source_match, ambiguous (never merged) or new.
  • Migration plans: createMigrationPlan (the reviewer’s dispositions bound to the legacy inventory’s fingerprint), getMigrationPlan, applyMigrationPlan (a new candidate; 409 migration_plan_stale with refusal.changedSorts once the legacy inventory changed).
  • Exports: exportNative (kos-json/v1 with the source artefacts and a manifest that lists unreadable records) and exportSkos (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 by form; select and ask keep the W3C SPARQL 1.1 Query Results JSON document (SparqlSelectResultsDocument, SparqlAskResultsDocument, SparqlResultTerm with xml:lang), construct and describe carry N-Triples. An update is refused 400 sparql_unsupported.
  • Every new mutation takes the required idempotencyKey of the M1 methods and is recoverable with getRequestOutcome under its operation name.

Sort discovery

  • factorSorts reports the native FCA run: limits (request and response, FactorLimits), inputComplete / inputStop, search (FactorSearch), presentationStopReason, nativeAdmission, and the replay context (FactorContext) with its contextSha256. 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-store bypass the conversation answer cache), and fresh on the NL query request.
  • FcaExportRequest bounds (maxConcepts, maxWork, maxVisitedConcepts, basisMaxWork, basisMaxCandidates) accept null: absent or null means unbounded.

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 an FcaExport kept 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 with 422 and code fca_export_refused. Returns VerifiedFcaImport (sources, concepts, conceptsComplete, implications, basisComplete).

Ingestion

  • DocumentStatsDto.fcaDiscovery: a detached or queued ingestion that set enableFcaDiscovery now reports each document’s FCA analysis in its session stats.

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, or scaled with per-feature ScaleSchemes and maxAttributes; native predicates are not explorable). The start body is now sent verbatim, so the feature names that key schemes reach 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 tagged ValueDtos that the session’s own scales project into attributes. Send features: [] with it. The engine refuses a label list in a scaled session, an unreadable value, and values in a presence session, each with 400.
  • 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 by FCA_E2E_BACKEND_URL, and reports the engine-backed tests as skipped without one; with it, the docs dev server proxies /api and /health to that engine on the page’s origin.

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.

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 removed cond, call-once, implies, naf, forall, findall, cut, undo, assign/backtrackable, assign/global, global/get and global/incr: those handlers did not run the native engine. client.control loses backtrackableAssign, globalAssign, callOnce, cond, cut, findall, forall, globalGet, globalIncrement, implies, naf and undo, 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.
  • ApplyActionResponse gains two outcomes, committed_execution_unavailable and commit_unconfirmed, each with transactionId, reason and retryAllowed (the engine answers false). An exhaustive switch on outcome needs both arms. The engine serves them, like rolled_back, with status 409, so actions.applyAction throws them as a ConstraintViolationError whose body carries 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 without interpretation now fails with ResponseShapeError (run time).
  • PaperSource gains 'Web': an exhaustive switch needs the arm.
  • The generated transport’s RDF upload methods follow the engine’s new operation ids (createRdfUpload, listRdfUploads, getRdfUpload, uploadRdfChunk, completeRdfUpload, pauseRdfUpload); the client.ingestion methods of 5.1.0 are unchanged.

Attribute exploration

  • analysis.licenseExplorationSort(sessionId, { sortName }) (POST /api/v1/analysis/attribute-exploration/{session_id}/licences): an attributed expert-declared-sort-v1 declaration that extends a completed, published exploration’s confirmed implications to every term of a sort and its subsorts. It answers SortLicenceResponse (policy, licenceRecord, sortId, sortName, extends, declaredBy, installedRules); a repeat for the same sort answers the recorded licence. Refusals: 409 exploration_session_not_completed / exploration_not_published, 403 exploration_actor_required, 503 exploration_publication_unavailable (nothing installed).
  • analysis.inviteExplorationParticipant(sessionId, participantId) and revokeExplorationParticipant(...) (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: maxTerms stopped the read while records of the scope remained, so the context describes a sample.
  • idempotencyKey on ConfirmRequest, RefuteRequest and AdvanceExplorationRequest, sent as the Idempotency-Key header (never in the body): a retry with the same key and request answers the committed response; the same key on a different request is a 409 idempotency_key_reused.
  • AttributeExplorationErrorCode names every coded exploration refusal of the spec.

Sort discovery

  • SortDiscoveryRequest.termIds (an explicit term population) and semantics (DiscoverySemantics: schema_presence, scaled with per-feature ScaleSchemes — nominal, interordinal, prefix with PrefixDepths, interval — and maxAttributes, or native_predicates with NativePredicates, alpha and version). The sort-discovery body is now sent verbatim, so the feature names that key schemes reach the engine exactly as written.
  • SortDiscoveryResponse.interpretation (DiscoveryInterpretation: kind, complete, scaledAttributeCount, unscaledValueCount, truncated). An incomplete interpretation supports no absence claim.
  • SortRegistration.realizedMembers.

Ingestion

  • IngestionConfigDto.enableFcaDiscovery runs the native FCA discovery phase over the document’s stored terms; IngestionStatsDto.fcaDiscovery (FcaIngestionReport, FcaIngestionRecommendation) reports it with its input and search coverage, and a refusal when it did not run. It registers no sort.

Elsewhere

  • BackwardChainRequest.explainFailure and BackwardChainResponse.whyNot (WhyNot, WhyNotNearestFact, WhyNotMismatch, WhyNotRule, WhyNotPremise): why a closed-world goal has no proof.
  • FuzzyProveRequest.nextQuestions, askedSorts and requireScopeFeatures; FuzzyProveResponse.nextQuestions (NextQuestion); SolutionDto.nullMoment and residuatedAntecedents (ResiduatedAntecedent).
  • VerifyResponse.anchor (AuditAnchor): the retention-purge anchor a chain was verified from.
  • ChannelAdapterInfo.owned.
  • DmlAteRequest.fromKb (KbRows), ResourceCoordinationRequest.rules (PairingRule) and SmtCheckRequest.linear (LinearAtom).
  • SmtCheckRequest.constants is optional (the engine defaults to an empty list), and BulkApproveActionsRequest.reviewedBy / BulkRejectActionsRequest.reviewedBy are optional: the engine ignores them and records the authenticated caller.
  • The ProvenSafe binding is now typed in the spec; the SDK still reads it field by field and refuses an off-contract binding.

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.

Built against engine main 95caf5925. No breaking change.

  • OSFQL editor tokens (reasoninglayer-ts-sdk#60): client.osfql.tokens(query) calls POST /api/v1/osfql/tokens and answers OsfqlTokensResponse, the editor tokens of the source in UTF-16 coordinates, each with an OsfqlTokenKind.
  • Resumable RDF uploads (reasoninglayer-ts-sdk#60), every route under /api/v1/ingest/rdf/uploads: client.ingestion.createRdfUpload, listRdfUploads, getRdfUpload, uploadRdfChunk, completeRdfUpload and pauseRdfUpload, with the types RdfUpload, CreateRdfUploadRequest, RdfUploadChunkReceipt and RdfUploadPauseReceipt. uploadRdfChunk(id, offset, chunk) sends the chunk as raw application/octet-stream bytes. A resent chunk with the same bytes answers the same receipt; different bytes at an offset already stored are refused.
  • PatternDiscoveryRequest.continuation on 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 answers 409 when the scope or filters 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’s metrics count what its basis names.

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).

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. Read state ('not_assessed' | 'stale' | 'accepted'), what it rests on in basis (discriminated by kind: 'legacy_sort_metrics', or 'vocabulary_release' with releaseId, releaseNumber, assessmentId, contextId, assessedAt), and the reason in words. Only the vocabulary stage can leave not_assessed, from an active governed vocabulary release whose bound assessment is complete and passed; the other five stages are always not_assessed. metrics are unchanged and decide nothing.

    // 4.x
    const done = status.stages.filter((s) => s.complete).length;
    // 5.0.0
    const accepted = status.stages.filter((s) => s.state === 'accepted');
    for (const s of status.stages) console.log(s.stage, s.state, s.reason);
  • OntologyPipelineStage is a closed union of the six stages; the open string arm is gone, because the engine now declares the stage as an enum.

  • Handle a 503 from ontology.pipelineStatus() (run time): a VocabularyRefusedError with code: 'vocabulary_not_committed' means the vocabulary store could not be read; nothing is served partially. It is not a ServiceUnavailableError: the body is a vocabulary refusal, and every such body is read as one.

Results that were not complete

  • Handle OptimizationResult status: 'undetermined' (run time). optimize.solve() and fromKnowledgeBase() reported infeasible for every empty backward-chain answer, including one from a bounded search. infeasible now requires the engine to report a complete derivation; an empty answer from a bounded or pending derivation is undetermined (UndeterminedResult). An exhaustive switch on status needs 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 exploration search reports, SolveConstraintResponse.unsatisfiable, CoherenceReport.unfinishedDerivationRuns and TemporalSeriesResponse.selectionComplete. The SDK dropped all of them before.

Unions that gained an arm (an exhaustive switch needs it)

  • ProofKind 'truncated', CoherenceVerdict 'undetermined' (with checked and chainIterations; 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 unions TermWriteErrorCode / SortCreateErrorCode 'governed_sort_write_refused'.

Request and response types that tightened

  • Set DiscoveryConfigDto.changeMode ('absolute' | 'relative') whenever you send a discovery config: the engine’s published request contract requires it, and the SDK does not pick a change quantity for you. Send no config to 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 without change_mode and applies absolute (reasoninglayer#593). A later release makes changeMode optional again once the spec is fixed.
  • Read DiscoverEffectsResponse.discoveredHorizons as camelCase (supportWeight, sampleCount); HorizonDto.confidence and EffectPredictionDto.confidence are optional and always null for 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 / hierarchyStopReason and graphObservation on the centrality, cohesion, path and link-prediction responses; the DiscoverEffectsResponse and PredictFromDiscoveryResponse accounting fields; and VerdictKind ProvenSafe.binding. Code that only reads them is unaffected.
  • Read SortDiscoveryResponse.fuzzyLevels as FuzzyConceptLevel[]; it was unknown[].
  • Catch ResponseShapeError where 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-worker execution / graph are 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-organization plugin 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 through decodeResponse.
  • Typed discriminated unions for the change set: VocabularyRecordInput (by kind), VocabularyRecordRef (by by: record or client_ref), VocabularyRecordOperation (by op: upsert or remove) and the stored VocabularyRecordView. Reads take a VocabularyViewSelector (active, release + releaseId, candidate + revisionId); a candidate view says draftNotActive: true. Closed literal unions for every code, state and severity (VocabularyRefusalCode, VocabularyFindingCode, VocabularyFindingSeverity, VocabularyCandidateState, VocabularyReleaseState, VocabularyRecordErrorCode, …). The types are also under the Vocabulary namespace.
  • Idempotency. Every mutation takes a required idempotencyKey in 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 with replayed: true. Save and rebase also take a required ifMatch (the head revision id or its ETag; VocabularyRevisionMutationOptions). New idempotencyParams(key, options?, ifMatch?) in request-params.ts, beside ifMatchParams.
  • 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 4xx except 404 and 412 answers VocabularyRefusalResponse): VocabularyRefusedError with the closed code, current, findings, conflicts, authority, plugin and the whole typed refusal (recordErrors, findingIds, missingRelations, storedRequestHash, rebaseUrl, recovery). Subclasses IdempotencyKeyRequiredError (428), IdempotencyKeyReusedError (422, storedRequestHash) and MutationOutcomeUnconfirmedError (503, recovery: never conclude that nothing was written; read getRequestOutcome or repeat with the same key). getRequestOutcome decodes the stored body as the operation’s own typed result (VocabularyCommittedResult, discriminated by operation); a stored body that is not that response throws ResponseShapeError. invalid_request arrives with 400, 413, 415 or 422; the activation 500 materialized_vocabulary_drift is a VocabularyRefusedError too. A 404 for an unknown record stays a NotFoundError, and a stale If-Match stays a PreconditionFailedError (currentEtag names the head). vocabularyRefusalOfBody(body) reads a refusal from any error body.
  • VocabularyFindingDispositionInput.rationale is required (engine E9).
  • Contract suite tests/contract/vocabulary.contract.test.ts runs the M1 first slice (base_create, v11_definition_change) on a fresh, seeded tenant and erases it; pnpm run capture-fixtures --vocabulary records 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): why competencyPassRate is absent. The report runs no question.
  • EvaluateCompetencyQuestionsResponse.complete and incomplete, and the undetermined verdict.
  • Typed WorkerProposal on ExtractEntitiesResponse.workerProposal (engine #584 W1.0), with execution and graph as Readonly<Record<string, unknown>>, and ExtractEntitiesRequest.worker ({ sourceId, sourceRevision }) to request one. The proposal is advisory: nativeAdmission is always false.
  • Completeness: OpenWorldSearchCompletion / OpenWorldLimit, ForwardChainCompletion / FactIdentityIssue, OsfqlChainCompletion / OsfqlProveCompletion / OsfqlRowVerdict, WitnessFailure, AggregationEvidence on ProofDto.aggregation, ExplorationSearchReport, FcaSearchSummary, SortRegistration.
  • OsfqlRequest.inference: recompute deductions in a private read snapshot without publishing a change.
  • AuthzCheckRequest.decisionTime and AuthzCheckResponse.decisionTime.
  • analysis.advanceExploration(sessionId, bounds?): resume a suspended exploration search. Start, confirm and refute take maxWork, maxCandidates and searchTimeoutMs; sort discovery takes maxWork, maxVisitedConcepts and maxSourceScan.
  • ingestion.resumeAudioJob(jobId) for an interrupted audio job; originalFileId on 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 the ReferenceGraphObservation every graph metric now reports.
  • Conversation frame mode: ConversationMessageRequest.queryMode / queryModel / contextTermIds, and frameMode, frameAmbiguities, frameRecordId, frameRetries, gateAbstained, queryFrame on the response.
  • GlbResponse.maximalLowerBounds and LubResponse.minimalUpperBounds; SolveConstraintResponse refutation fields; CoherenceLink.scope (ClauseComparisonScope); CronJobRun origin and interruption instants; RunCronJobNowResponse.runId; RememberResult.contradictionCheckIncomplete; AgentBeliefDto.shared and AddBeliefRequest.shared; InstallSummary.bundleId; EnrichedHealthResponse.sovereign; artifactFilesDeleted on the tenant clear and factory reset; EvaluateFunctionRequest.expectedResult; CertificateBinding / ClaimKind on a ProvenSafe verdict.
  • Marketplace.MarketplaceErrorCode: plugin_not_persisted, plugin_has_governed_data, governed_data_unverified, plugin_sort_identity_changed.
  • pnpm run check-normalizer-drops runs in test:ci.
  • Doc comments follow the engine: @governed sorts refuse every client write and delete door with governed_sort_write_refused (term routes 409, OSFQL 422 refusal code); a system-wide marketplace operation is durable-first and answers 503 plugin_not_persisted when the registry did not store it; disable and uninstall refuse a plugin whose @governed sorts hold records.
  • Cron docs follow the engine’s current scheduler (run time): timezone accepts only UTC (any other zone is a 400), and jitterMs and maxRetries are reserved (a nonzero value is a 400; retries default to 0). cron.runNow refuses a job whose agent is missing, paused or stopped, whose source is not registered, or that has no program registration, with 409.
  • A cognitive cycle (basic or integrated) on a tenant that holds a native agent belief is refused with 422 agent_belief_operation_unsupported and changes nothing (run time). New Cognitive.AgentBeliefErrorCode names 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 answers Sort 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.

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.

Built against engine main cfd780622 (engine !321: #475-#480, !322: #481-#487).

  • conversation.getConversation(id) (engine #478): reads one conversation’s summary, with its kind and title, without reading the whole listing.
  • ConversationMessageResponse.notices (engine #477): what the engine did to the question before it answered, typed by kind (pruned_features, value_grounding, retrieval_rescue). New types ConversationNotice, SkippedFeature and ValueSubstitution. The notice sentences no longer appear in suggestions, which holds follow-up suggestions only. repaired and originalOsfql are now also set by a prune, a grounding, the retrieval rescue and the no-code builder.
  • ProofDto.conclusion and SolutionDto.conclusion (engine #476): the conclusion as a structured term, ProofConclusionDto (sortId, sortName, termId, tagged features). Read the sort and features here, not from goalDisplay.
  • UIAssemblyStatsDto.dataLoadError and UIGenerateResponse.dataLoadErrors (engine #475): a failed data load as a typed DataLoadError (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.
  • BulkSortErrorKind gains amendment_refused (engine #482): an amendment the lattice refused (a contradicted subsort refinement, a subtree over the cap, a parent edge closing a cycle). It answers sortCreated: true.
  • DocumentResult.summary doc follows engine #487: the summary is deterministic engine text, not LLM prose.
  • ConversationMessageResponse.notices and DocumentStatsDto.entitiesRefused are required, as on the wire. A fixture you build for either type must carry them.
  • UIAssemblyStatsDto.osfqlExecuted is absent on a failed data load. It no longer starts with FAILED:; read dataLoadError instead.
  • Doc comments follow the engine behaviour of !321 and !322: ui.executeAction update_form edits the term in place (#481), affectedPreview counts a refused statement as 0 (#485), and the rule derivationsRemoved and derivationsWeakened count resident conclusions (#484).
  • inference.addRule, validateRule, bulkAddRules and replaceRule throw a ValidationError naming the field (antecedents, or rules[k].antecedents) for a request without an antecedents array, not a raw TypeError (SDK #58). An empty array stays the engine’s decision.

Built against engine main 308ed2a25 (engine !320: #473, #474).

  • AddRuleResponse.etag and ReplaceRuleResponse.etag (engine #473): inference.addRule and replaceRule fold the ETag response 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.etag on inference.getRules (engine #473): the tag of each withdrawable rule; absent on a rule no route withdraws.
  • GeneratedScenario.sorts is optional (engine #474). No scenario key is required now: every collection defaults to empty, so a vocabulary import sends sorts alone.
  • GeneratedScenario: the engine no longer reads the snake_case spellings webhook_actions, temporal_constraints, guard_constraints, pipeline_stages and sensor_points (engine #474). It ignores them like any unlisted key, without an error. Send webhookActions, temporalConstraints, guardConstraints, pipelineStages and sensorPoints. materializeScenario sends the scenario verbatim, so the SDK does not rewrite a key in either direction; ontology.generate() returns the camelCase spellings.
  • MaterializeScenarioRequestFromFrontToApi passes the scenario through without a type assertion.
  • inference.deleteRule and replaceRule docs: read a rule’s ifMatch tag from addRule, replaceRule or the getRules listing. They said to read it with terms.getTerm(ruleId), which answers 404 for a rule since engine #456. TermResponse.etag and terms.getTerm docs 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 addRule result and the listing, not from terms.getTerm.

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.

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.listBranches and platform.forkBranch, and the imports of ConversationBranch, BranchListResponse and ForkBranchRequest. There is no replacement: the engine removed both routes.
  • Stop reading DeleteGoalResponse.referencesDeleted and SortDeletePreviewResponse.orphanedForeignChildren: the engine no longer sends them. orphanedChildren lists every child a sort delete would orphan.
  • Delete UIActionRequest.originalValues from every UI action, and always send the row’s term UUID as termId.
  • Delete IngestionConfigDto.batchSize and maxSchemaTokens from every ingest call. The engine refuses either key with 422.
  • Delete tenantId and ownerId from AddPendingReviewRequest, tenantId from ReExtractRequest, and reviewedBy from 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’s ExplorationQuestion.questionId, and move request options to the third argument. Set RefuteRequest.questionId too.
  • reviews.getSummary() takes no tenant id: call getSummary() or getSummary(requestOptions).

Request bodies the engine now checks

  • Give every rule at least one antecedent (addRule, validateRule, replaceRule, bulkAddRules): antecedents is required. Write a rule with no antecedents as a fact, with terms.createTerm.
  • A not(bind('?T', …)) needs a positive antecedent that binds ?T (run time): drop the bind to keep the old “no such term exists” meaning. A nested bind() 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? }) in GeneratedScenario.rules and UpdateScenarioRequest.addRules.
  • Set RecordTurnRequest.conversationKind to 'guided_ontology' or 'external_agent' only.
  • Use FlowRelOp ('le' | 'ge' | 'eq' | 'lt' | 'gt' | 'ne') in the compare arm of a feasibility BoolExpr, not the old RelOp values.
  • Use SymbolVisibilityDto ('public' | 'private' | 'protected') for a module symbol’s visibility.
  • 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 residuation kind filter (ResiduationKindFilter).
  • Annotate a rename body with PatchSortFeatureRename where you extended or indexed PatchSortFeatureRequest, and narrow with 'name' in req before 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 flat PendingReviewDto (now the ingestion one).
  • Read UIDescribeResponse.data as a UIDataPayload: switch total_count / term_ids to totalCount / termIds.
  • Parse CreateConstraintSessionResponse.createdAt as an ISO 8601 string, not a number.
  • Handle null in DocumentAnalysisReport.overallCompliance and DocumentResult.complianceScore: null means 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 absent kind: ConversationSummaryDto.kind is required.
  • Add the new arms to every exhaustive switch: the twelve new fuzzy EffectDto arms, ReviewReason 're_extraction', OsfqlErrorType 'lock_timeout' and WaitingConditionType 'variable_binding'. Remove the 'suspended' and 'ready' residuation states, and ResiduationStats.ready / suspended.
  • Move imports of ViolationDto from the Oversight namespace to Generation, and of SortSuggestionDto from Reviews to Cognitive. Read Ingestion.PendingReviewDto where you read Reviews.PendingReviewDto. The flat exports are unchanged.
  • Name IngestionSessionDetailResponse where you named the return type of ingestion.getSession in a position that needs the exact type.
  • Add the new required fields to every object you build by hand (test fixtures): sourceFilesDeleted, inboxItemsDeleted and dmPairingStateDeleted (tenant clear, delete and factory reset); entitiesRefused (IngestionStatsDto); turnId (ConversationMessageResponse); complete (SparqlTranslation); entityTermId and entityOrigin (PendingReviewEntity); documentId (ReExtractResponse); inventionTermId (TrizNoveltyScore); and all seven ConformanceViolationDto fields. Code that only reads them is unaffected.
  • Catch ResponseShapeError and ReasoningLayerError where 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 OsfqlError with errorType === 'lock_timeout', not on ServiceUnavailableError / InternalServerError, for a 503 from osfql.execute.
  • Branch on errorType === 'refused' / 400, not 'execution' / 422, for an OSFQL DROP SORT or ALTER SORT … PARENTS beside another statement, or a reparent onto an unknown parent.
  • Move review-decision error branches: BadRequestError / 400 for a decided review becomes ConstraintViolationError / 409, and ForbiddenError / 403 for another tenant’s review becomes NotFoundError / 404.
  • Read a sendMessageStream refusal of an unknown or foreign conversation from its error event (status 404 or 409), not from a thrown error.
  • query.osfSearch entities and relations take the route’s real shape (engine !309). OsfSearchResponse.entities is OsfSearchEntityDto[] (termId, sortId, matchDegree, communityId, features, name?, matchReason?) and relations is OsfSearchRelationDto[] (sourceId, targetId, relationType, confidence, discoveryMethod). The query-area MatchedEntityDto and DiscoveredRelationDto are removed: they named keys the route never sends, so every field read undefined. The flat MatchedEntityDto export is now the conversation one.

  • AteEstimateResponse.certificate is a DoublyRobustCertificateDto (productBiasFactorization, consistentUnderCorrectPropensity, consistentUnderCorrectOutcome, allCertified) on causal.estimateAte and its ATT/DML/TMLE/clustered siblings. It was typed as the oversight CertificateDto, so every field read undefined.

  • FormalJudgeResponse.violations is FormalJudgeViolationDto[] (layer, description, factId, constraintType?) on oversight.judge, refine and session finalize. The old severity and relatedFactId never existed on this route. ViolationDto moves from the Oversight namespace to Generation, the area that sends it; the flat export is unchanged.

  • CreateConstraintSessionResponse.createdAt is an ISO 8601 string, not a number: the engine serializes a UTC date-time.

  • ExecutionSessionStatsResponse is { memorySessionCount, curriedFunctionCount, dbAvailable }. The old { documents, sessionId, total } was the ingestion shape and never matched the route.

  • Module-symbol visibility is SymbolVisibilityDto ('public' | 'private' | 'protected'). The namespace VisibilityDto it used admitted internal and restricted, which the module routes refuse.

  • Solver RelOp is replaced by FlowRelOp ('le' | 'ge' | 'eq' | 'lt' | 'gt' | 'ne') in the compare arm of a feasibility BoolExpr. The old spelled-out values ('less_than_or_equal', …) belong to the constraint solver and were refused by beginFeasibilitySession.

  • Fuzzy EffectDto has all fifteen membership-function arms of the engine’s FuzzyEffectDto (sigmoid, bell, sigmoid_difference, gaussian_product, sigmoid_product, cosine, spike, cauchy, s_shape, z_shape, pi_shape, piecewise_linear, besides gaussian, triangular and trapezoidal). Code that switches exhaustively on PredictEffectResponse.effect must add the new arms. An arm the SDK does not know now throws ResponseShapeError (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.data is a UIDataPayload (columns, rows, totalCount, termIds?), mapped like ui.generate’s payload. It was an untyped object passed through raw, so callers read snake_case total_count / term_ids. Switch those reads to totalCount / termIds.

  • UIResultShape is the closed union of the engine’s Returns enum ('Bindings' | 'TermIds' | 'Scalar' | 'List' | 'Path' | 'Boolean' | 'None'); the open string widening is gone.

  • ConformanceViolationDto fields (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 SortSuggestionDto moves from the Reviews namespace to Cognitive, the area that returns it. The flat export is unchanged.

  • CertificateDetail.verdict is typed VerdictKindTag ('ProvenSafe' | 'Falsified' | 'EmpiricallySafe' | 'Residuated') and method is ProofMethod; both were string.

  • ErrorResponse loses details: 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 PendingReviewDto is the ingestion one (candidates: CandidateMatchDto[] of { termId, similarity }, entityId, reason, sort): the shape the ingest responses carry in pendingReview. The Reviews.PendingReviewDto is removed: it carried ReviewCandidateMatchDto candidates, matched no wire shape, and no normalizer produced it. Read Ingestion.PendingReviewDto, or the flat name.

  • UIActionRequest.originalValues is removed (engine #172). The engine refuses an original_values key with 422, and update_form no longer reads it: it identifies the row by termId alone, which must be a term UUID (else 400). Drop the field, and always send the row’s term id.

  • reviews.getSummary() takes no tenant id (engine !304, #87 #366). The route is now GET /api/v1/reviews/summary, with the tenant taken from the principal; the old /reviews/summary/{tenant_id} is gone. Call getSummary() (or getSummary(requestOptions)). ReviewSummary adds totalApproved, totalRejected, totalCorrected, totalMerged, avgPendingConfidence (0 when nothing is pending) and oldestPending? (RFC 3339), and byReason is now Partial<Record<ReviewReason, number>>; a key outside ReviewReason throws ValidationError. The confidence bands are now computed, no longer a constant 0.

  • Review request bodies lose the fields the engine now refuses with 422 (engine !304). AddPendingReviewRequest drops tenantId and ownerId, adds reasonDetail?, and takes candidates: ReviewCandidateInput[] ({ termId, similarity }; the old full ReviewCandidateMatchDto is refused). ReExtractRequest drops tenantId, and extractionStrategy is an ExtractionStrategy (it was a string); documentId must be a registry document id. BulkApproveRequest, BulkRejectRequest and BulkMergeRequest drop reviewedBy: the reviewer is the principal. Migration: delete those fields from every call, and send each candidate as { termId, similarity }.

  • ReviewReason adds 're_extraction' (engine !304), the reason of an entity a re-extraction found. An exhaustive switch over ReviewReason needs the new arm. Ingestion.PendingReviewDto.reason (the pendingReview entries of the ingest responses) is now a ReviewReason, not a string, and adds reasonDetail?.

  • PendingReviewEntity adds the required entityTermId and entityOrigin (ReviewEntityOrigin: 'proposed' | 'provisional' | 'existing'), and reasonDetail?; ReExtractResponse adds the required documentId, the registry id of the new document version. Only code that builds these objects by hand is affected.

  • An OSFQL DROP SORT or ALTER SORT … PARENTS beside another statement is refused (HTTP 400), not execution (HTTP 422) (engine !305, #365). osfql.execute throws OsfqlError with errorType: 'refused' and the new atomicRefusal (code: drop_sort_not_alone / alter_sort_not_alone, message), the same code osfql.preview reports. An ALTER SORT … PARENTS that names an unknown or foreign parent is also a refused 400 (Cannot reparent sort 'S': parent sort X does not exist); an unknown subject sort stays an execution 422. The type surface does not break, but code that branches on errorType === 'execution' or on status 422 for these programs must move to 'refused' / 400.

  • DeleteGoalResponse.referencesDeleted is removed (engine !306, #288). The engine dropped the delete_references query parameter and the always-0 references_deleted count. 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, DeleteTenantResponse and FactoryResetResponse add the required sourceFilesDeleted, inboxItemsDeleted and dmPairingStateDeleted (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. rowsDeletedTotal does 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.label is ArgumentLabel ('in' | 'out' | 'undecided') and Attack.kind is ArgumentAttackKind ('value_conflict' | 'polarity_conflict' | 'deontic_conflict' | 'rule_derived_conflict'), engine !306 (#76). Both were string; the wire values did not change. Only code that assigns an arbitrary string to them stops compiling.

  • ConversationSummaryDto.kind is a required ConversationKind ('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 on c.kind === 'assistant', or list one kind with listConversations({ kind }). The engine no longer lists a conversation without a valid kind.

  • conversation.listConversations(query?, requestOptions?) (engine !310): the first argument is now a ListConversationsQuery ({ 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 a BadRequestError.

  • RecordTurnRequest.conversationKind is a RecordableConversationKind ('guided_ontology' | 'external_agent'), not a free string (engine !310). The engine refuses assistant and generative_ui with 400, an unknown kind with 422, and a kind other than the stored one with 409 (ConstraintViolationError). An absent kind on create now means external_agent.

  • IngestionConfigDto.batchSize and maxSchemaTokens are removed (engine !311, #352). The engine refuses either key with 422 on /ingest/markdown, /ingest/markdown/batch, /ingest/document, /ingest/document/batch and /ingest/audio. Neither had an effect. The LTN and source-ingest batchSize fields are different DTOs and stay.

  • ingestion.getSession and IngestionSessionHandle.getSession return IngestionSessionDetailResponse (engine !311, #400): the session fields and documents: SessionDocument[]. IngestionFailedError.session is the detail response too. The result still satisfies IngestionSessionResponse; 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 required ConfirmRequest ({ questionId }), sent as { "question_id": … }; per-call request options move to the third. RefuteRequest.questionId is required too. Pass the pending question’s ExplorationQuestion.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 — answers 409 with code exploration_question_not_pending (ConstraintViolationError; read the code with errorBodyCode) and nothing is applied. An older client gets 415 (confirm) or 422 (refute).

  • AddRuleRequest.antecedents is required (engine !312, #375, #390), and so is antecedents in the request of inference.addRule, validateRule, replaceRule and every bulkAddRules row. 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 with terms.createTerm. validateRule with an empty list answers ok: false with a refused issue. In bulkAddRules an empty row is refused per row in rejected[] and not counted; a row without the key fails the whole batch with 422. Every rejected[].reason is now the single route’s 422 text, prefixed rule rejected: (the old rule head term did not resolve: … and antecedent N could not be resolved texts are gone).

  • The residuation listing drops the states it never held (engine !314, #93). ResiduationStateDto is 'pending' | 'completed' | 'failed' and ResiduationStateFilter is 'pending' | 'completed' | 'failed' | 'all' ('suspended' and 'ready' are gone; 'failed' is a new filter). ResiduationStats loses ready and suspended, and its counts describe the returned rows. ResiduationKind loses 'all'; the request’s kind is the new ResiduationKindFilter (ResiduationKind | 'all'). WaitingConditionType adds 'variable_binding': an exhaustive switch needs the arm.

  • TrizNoveltyScore.inventionTermId is required, and a malformed novelty score throws (engine !313, #383). Entry i of NlQueryResponse.noveltyScores scores the i-th triz_inventive_proposal of results, so the mapper no longer skips an entry it cannot read (that shifted every later score onto the wrong proposal): it throws ReasoningLayerError naming the index.

  • TurnFeedback.rating and ConversationAnswerFeedbackResponse.rating are typed AnswerRating (-1 | 0 | 1), not number (sdk#55). The mapper checks the value: a rating off the scale is reported as a ResponseShapeError, not passed through. Only code that builds one of these objects with a plain number stops compiling.

  • A 503 lock_timeout from osfql.execute is now an OsfqlError, not a ServiceUnavailableError / InternalServerError (engine !306, #288). OsfqlError extends ApiError only, so an existing instanceof ServiceUnavailableError or instanceof InternalServerError branch for /osfql stops matching, and no compiler reports it: branch on errorType === 'lock_timeout'. OsfqlErrorType adds '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 larger timeoutMs. The engine can answer it before a read-only MATCH too; osfql.preview never does. The transport’s retryOn503 still applies first. An exhaustive switch over OsfqlErrorType needs the new arm.

  • PatchSortFeatureRequest is 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 PatchSortFeatureRequest no longer compiles, and req.name / PatchSortFeatureRequest['name'] is string | undefined. Extend or annotate with PatchSortFeatureRename for a rename body, and narrow with 'name' in req before you read .name.

  • Review decisions answer 409 and 404 where they answered 400 and 403 (engine !304). The type surface does not break, but approveEntity, correctEntity, mergeEntity and rejectEntity now throw ConstraintViolationError (409) for a review that is no longer pending (it was BadRequestError, 400), and NotFoundError (404) for another tenant’s review (it was ForbiddenError, 403). Code that branches on BadRequestError / 400 for a decided review, or on ForbiddenError / 403 for another tenant’s review, must move to ConstraintViolationError / 409 and NotFoundError / 404.

  • DocumentAnalysisReport.overallCompliance and DocumentResult.complianceScore are number | null on documents.analyze (engine !315, #411). null means that no applicable rule was evaluated, so nothing is shown about compliance. A truncated document has a null score, and its rules do not count toward overallCompliance: no pass can stand on a partial read. The SDK reported an absent score as 0, which reads as “fails every rule”.

  • IngestionStatsDto.entitiesRefused is required (RefusedEntityDto[]: termId, sortName, message, feature?, chunkIndex?; engine !315, #433). Ingestion judges each extracted entity by the same declaration verdict as POST /api/v1/terms and lists every entity it refused, so it was not written. An older engine that omits the list reads as [].

  • ConversationMessageResponse.turnId is required (string, engine !317, #466): the assistant turn the answer was stored as, the id submitAnswerFeedback rates. Every answer is stored, the certify-or-abstain refusal and the could-not-process reply included, so every answer carries it. sendMessage, the streamed done event and decodeConversationMessage all carry it; a payload without turn_id does not decode (decodeConversationMessage returns null, and the stream throws NetworkError).

  • SparqlTranslation.complete is required (boolean, engine !317, #464). It says whether osfql answers 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 of osfql.

  • 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 of not(), not(bind('?T', psi('meat_topping'))) changes from NOT EXISTS meat_topping() (“no such term exists”) to NOT EXISTS ?T: meat_topping() (“?T is not one”); when no positive antecedent binds ?T, the engine now refuses the rule with 422. A nested bind() in a positive feature value now adds an identity join.

  • GeneratedScenario.rules and UpdateScenarioRequest.addRules are ScenarioRule[] (engine !319, #470), the shape the engine publishes: head (required) and antecedents are ScenarioRuleTerms (sort, features?, negated?, binding?) and certainty is optional (default 0.8). They were Record<string, unknown>[] and unknown[], so a rule of the wrong shape (a conclusion in place of head) compiled and was refused only by the engine. addRules is now mapped field by field, so a key outside the published shape no longer goes out; only the term features go out as written. The other add* collections and GeneratedScenario.rules go out unchanged.

  • platform.listBranches and platform.forkBranch are removed, with the types ConversationBranch, BranchListResponse and ForkBranchRequest (flat and under Platform). The engine removed GET /api/v1/branches/{conversation_id} and POST /api/v1/branches/{branch_id}/fork (engine !308, #370); both answer 404, and there is no replacement.
  • SortDeletePreviewResponse.orphanedForeignChildren is 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. orphanedChildren lists 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 returns WebSearchResponse (query, the trimmed query, and results: WebSearchHit[] of { url, title, snippet, provider, score? }, best first). An empty results is a search that found nothing. The hits are candidates for ingestUrl; the search writes nothing for the tenant. limit is left out when unset (the engine refuses null). A deployment with no provider answers 503 web_search_not_configured (ServiceUnavailableError, permanent: retryOn503 retries it for nothing); failed providers answer 502 web_search_providers_failed. New types: WebSearchRequest, WebSearchResponse, WebSearchHit, WebSearchErrorCode.

  • getWebCapabilities limits (engine #414): urlIngestion.maxCrawlDelayMs, maxRedirects and requestTimeoutMs, and webSearch.maxResultsLimit and maxQueryChars. The mapper dropped all five. UrlIngestionCapability documents the worst case of one crawl they bound. Code that builds a WebCapabilitiesResponse literal must add the five fields.

  • UrlIngestStoreFailedError (engine #415): ingestion.ingestUrl throws it for the 500 web_ingest_store_failed answer, when the crawl ran and storing its pages failed part way. It extends InternalServerError and carries report (the pages stored, as a 200 would report them), failed (WebIngestStoreFailure: step, page?, message) and notWritten (WebPageRef[]). Nothing is rolled back and a re-run is safe. Such a failure was a 400 Domain error before; a 400 now 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, 0 or 1 (AnswerRating), with an optional correction and comment (each at most 10,000 bytes), and returns ConversationAnswerFeedbackResponse (feedbackId, conversationId, turnId, rating, replaced). One rating per turn: a re-rating replaces it and keeps the feedbackId. There is no delete; rate 0 to withdraw a judgement. A user turn is refused with 422. 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 of getTurns.

  • ConversationTrainingConfigDto.rewardUserFeedback (default 0.5): a chat answer rated helpful earns rewardUserFeedback × satisfaction; one rated unhelpful takes the failed-goal penalty. It is left out when unset (the engine refuses null).

  • RlTrainResponse.transcripts (RlTranscriptSummary: cognitiveAgent, chat, synthetic, ratedTurns) on a conversation run. A nonzero synthetic with useRealConversations says the tenant had no conversation to train on.

  • verification.runVerification(request) (POST /api/v1/verification/run): discharges a SafetyProperty against a neural network, an agent trace or a family of LLM outputs and returns a VerifyRunResult (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?) and functionRefusalOf(error) → FunctionRefusal (code: FunctionRefusalCode, function, callers). They read the engine’s TermRefusalResponse, RuleRefusalResponse and FunctionRefusalResponse out of a thrown ApiError, like sortDeleteRefusalOf. RuleNotWithdrawable.code is typed RuleRefusalCode.

  • AuthzTuple.etag: authz.writeTuple folds the ETag response header into the tuple; pass it as deleteTuple(id, { ifMatch }) for a stale-write-safe revoke (a stale tag throws PreconditionFailedError with currentEtag).

  • visualization.termList(request?) (POST /api/v1/visualization/term-list) → TermListVisualizationResponse (graph, totalCount, offset, limit, emittedCount, coreferences?), and visualization.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.

  • SortRefSelectProps and isSortRefSelectProps(props) (engine #172): ui.describe renders a feature declared by an entity range as a select node whose props carry sortName, valueKey: 'id' and labelKey: 'label', and whose load_data action lists the options. The guard narrows a node’s props without a cast.

  • ReviewEntityOrigin, ReviewCandidateInput, ReviewAddErrorCode (review_sort_unknown, review_candidate_unknown, review_confidence_out_of_range, review_similarity_out_of_range, the 422 codes of reviews.addPendingReview) and ReExtractErrorCode (document_source_not_retained, the 409 of reviews.reExtract). errorBodyCode reads both.

  • ingestion.retryDlqEntry(id) (POST /api/v1/ingest/dlq/{id}/retry, engine #87): re-runs the entry’s whole document and answers 202 with DlqRetryResponse (entry, now retrying; entriesRetrying; sessionId; documentId; statusUrl). Every pending entry of the document moves to retrying and settles to succeeded or back to pending. 404 for an unknown or foreign id; 409 with a DlqRetryErrorCode (dlq_entry_not_pending, dlq_retries_exhausted, dlq_document_in_flight, dlq_source_not_retained); 503 without a background queue throws IngestionQueueUnavailableError, as sync: false ingestion does.

  • IngestionStatsDto.alreadyIngested and DocumentStatsDto.alreadyIngested (engine #387): true when the bytes were already ingested in the tenant. Nothing is re-extracted, documentTermId names the earlier registry document, and the request’s collectionPath / previousDocumentId apply 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, null while it still runs (204); 404 and 409 (failed or cancelled) throw. The engine publishes DocumentStatsDto as the 200 body (engine #464).

  • DocumentVersionErrorCode (engine #387): ingestMarkdown and ingestDocument answer 404 previous_document_not_found (NotFoundError) for a previousDocumentId that names no document, which was silently dropped before, and 409 duplicate_document_version_conflict (ConstraintViolationError) when duplicate bytes already belong to another version family. With sync: false the same refusal ends the session document failed. Read the code with errorBodyCode.

  • ontology.listUpperOntologies() (GET /api/v1/ontology/upper, engine !297): every vendored upper ontology, in registry order, as UpperOntologySeedsResponse (seeds: UpperOntologySeed[] of name, 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); UpperOntologyName stays as the set this SDK version knows. Neither read registers a tenant.

  • sorts.patchSortFeature amends a declaration’s description and index (engine !305, #389). PatchSortFeatureRequest is now the union PatchSortFeatureRename (name, cascadeTerms?) | PatchSortFeatureAmendment (description and/or index). Per key, an absent key keeps, null clears, a value replaces; index: null returns the declaration to silence, which is not not_indexed. This is the only way to clear either field. The union makes the engine’s new 400s (a rename combined with an amendment, cascadeTerms on an amendment, an empty body) compile errors; a blank description is still a 400. The alias change is listed under Changed — BREAKING.

  • OsfqlFailure.atomicRefusal and OsfqlError.atomicRefusal (engine #365): the code of a program refused because a DROP SORT / ALTER SORT is not alone.

  • EnrichedHealthResponse.bootId, startedAt and uptimeSeconds (engine !306, #287) on health.check(): the identity of the engine process. A new bootId means 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.version is now the engine’s git describe without v and -dirty (0.1.150-76-g8cb95b7c8), and gitHash / buildTimestamp are present in development builds too.

  • ArgumentLabel and ArgumentAttackKind (flat and under Argumentation).

  • ConversationKind, RecordableConversationKind and ListConversationsQuery (engine !310), flat and under Conversation.

  • TurnDto.proofTrace, reasoningTrace, validityCertificateId, validityCertificateHash, validityCertificateRuleProgramHash and validityCertificateRuleRevision (engine !310): a reloaded assistant turn of getTurns carries 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, or null while it runs (204). An RDF document is a NotFoundError (its receipt is on getSession); a failed or cancelled document is a ConstraintViolationError.

  • IngestionSessionHandle.waitForSession(options?) (engine #400): polls like waitForCompletion and returns the completed IngestionSessionDetailResponse, whose documents carry their receipts. Use it for an ingestRdf session queued with sync: false: it has no markdown stats.

  • IngestionSessionDetailResponse, SessionDocument, IngestionDocumentStatus, DocumentReceipt and RdfImportReceipt (engine #400): documents[].error gives the reason a document failed, and documents[].receipt what a completed one wrote, tagged by kind (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. Pass translateRdf(...).prefixes. A malformed binding is a BadRequestError; rebinding a bound prefix is a ConstraintViolationError.

  • BulkSortErrorKind adds 'unbound_prefix' and 'non_canonical_prefix' (both with sortCreated: false). An exhaustive switch over the kind must handle them; prefer sortCreated.

  • DocumentType adds 'text' (engine #405): ingestDocument and ingestDocumentBatch accept base64 .txt, .md and .markdown files, and the parse stats name the text parser. A file that is not UTF-8 is a 422 on ingestDocument and on ingestDocumentBatch({ sync: false }), and a failed results entry 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), also system.engine: the caller’s tenant’s termCount, ruleCount, tenantSortCount and sharedSortCount (with tenantId), each equal to the total of the listing it summarises. New EngineClient and types EngineStatsResponse (flat and under the new Engine namespace).

  • 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, as ReasoningOperationListResponse (operations: ReasoningOperation[] of sequence, name, goal, goalTruncated, verdict, degree?, computationTimeMs, createdAt; total; retention of scope: 'process', capacity, goalBudgetBytes). The log is process-scoped and bounded; limit: 0 is a BadRequestError. New types: ReasoningOperationName, ReasoningVerdict, ReasoningOperationLogScope, ReasoningOperationRetention.

  • RuleTermWriteError (engine !312, #376): terms.updateTerm, terms.deleteTerm and inference.bulkRetractTerms throw it for the 409 write_targets_rule answer — a write onto a rule’s own term (its conclusion template, an antecedent pattern or a variable). It extends ConstraintViolationError and carries ruleIds and repairs (replace_rule and withdraw_rule per rule the caller may edit; none for a plugin, system or bootstrap rule). A pattern or variable delete answered term_named_by_rules before; a conclusion edit or delete answered 200/204. bulkRetractTerms removes nothing. OsfqlRepair.kind / DerivedFactRepair.kind document replace_rule.

  • SortRefFeatureValue ({ sort_ref, sort_name? }) in FeatureValueDto (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_name is absent when the caller’s lattice does not hold the sort. FeatureValueDto also gains InlineTermFeatureValue, the whole Ψ-term the engine inlines for a hidden rule template. New helpers: isSortRefFeatureValue(value) and featureValueToInput(value), which converts a listed value into the write format ({ sortRef }, { termId }, the literal’s scalar) so a rule read from getRules() can be sent back to replaceRule.

  • ExplorationStatusResponse.question (engine #410): the pending question, null once complete — a client that lost an answer re-reads it here. ExplorationQuestion.questionId, ConfirmRequest and AttributeExplorationErrorCode ('exploration_question_not_pending', flat and under Analysis).

  • OsfqlResponse.computationTimeMs (engine !314, #93): the engine’s own run time of the program. Code that builds an OsfqlResponse literal 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) and DocumentRuleResult.withheldStatus (engine !314, #411) on documents.analyze: how much of the document the rules pass read, and the pass/fail the engine withheld (reported inconclusive) because it was not grounded in the text.

  • WaitingConditionDto.variable (the awaited variable, e.g. ?y) and ResiduatedTermDto.resolvedAt (epoch ms) on visualization.residuationState and execution.residuate (engine #93).

  • createApiError is exported from the package root (sdk#51). The error event of conversation.sendMessageStream documented it, but only the error classes were exported. createApiError(event.status, { error: event.error, message: event.error }, new Headers()) gives the same subclass, message and errorCode that sendMessage throws for the same failure (InternalServerError for 502, ServiceUnavailableError for 503, …). An error event without status is 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 a 2xx response it cannot read, in place of the bare TypeError a normalizer raised (Cannot read properties of undefined (reading 'map')). It extends ReasoningLayerError, not ApiError, and carries status, method, path (after the base URL, without the query), body and field: the dotted path of the first published field the body lacks, holds as null or holds with the wrong kind (items, items[3].sort_suggestions). field is undefined when the body is not JSON (an HTML page served with 200; cause is 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): the 409 codes sorts.createSort answers for a caller-chosen id. sort_id_unavailable is 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_name is an own id posted under a different name (rename with patchSort). Read the code with errorBodyCode.

  • DocumentRuleResult.basis (DocumentVerdictBasis: quoted_violation, quoted_compliance, stated_unknown, absence) and DocumentRuleResult.withheldConfidence on documents.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.analyze throws an InternalServerError with status 502 and this code when the LLM answered a step with no readable JSON.

  • Terms.TermWriteErrorCode (write_creates_rule; engine !315, #455): terms.createTerm, terms.updateTerm and inference.addFact answer 422 with this code for a non-empty list under the feature when, which would make the term a rule. bulkCreateTerms names such a row in BulkRefusedError.rows (feature: 'when'), and bulkAddFacts lists it in rejected. OSFQL writes answer the refusal code write_creates_rule with the repair use_derive.

  • OsfqlPreviewStatement.refusal (engine #449, #457): the refusal the run would raise for the statement, with the message osfql.execute answers: a stand-alone write naming an earlier statement’s variable, or a write onto an append-only fluent term, an inline MATCH write included.

  • GenerateOntologyRequest.language on ontology.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.binding and FeatureInputInlineTermByName.binding (engine #438): a nested inline term names its own identity. On the clause of a negation it names the term the negation is about: not(bind('?T', psi('meat_topping'))) is NOT EXISTS ?T: meat_topping(), and a positive antecedent must bind ?T.

  • prefixes on scenarios.create, materializeScenario and update (CreateScenarioRequest, MaterializeScenarioRequest, UpdateScenarioRequest; engine !319, #470): prefix bindings (prefix → namespace IRI, '' = the default prefix) for the scenario’s CURIE names, with the contract of BulkCreateSortsRequest.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. Pass translateRdf(...).prefixes. A malformed binding is a BadRequestError; rebinding a bound prefix is a ConstraintViolationError.

  • ScenarioRule and ScenarioRuleTerm (under Scenarios): the typed scenario rule, with the antecedent binding the engine now publishes.

  • documents.analyze (engine #411): a withheld verdict reports confidence: 0, and the evaluator’s value moves to withheldConfidence. overallCompliance no longer counts not_applicable rules, so the number changes even where it is not null. documents.check adds 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): rejectEntity retracts a provisional entity with its edges, mergeEntity moves the edges and retracts, correctEntity patches the live term, and reExtract now runs: it creates a new document version and answers 404 for an unknown document.

  • Every UI action is atomic (engine #172): a failure keeps nothing, and its error ends with (the program was rolled back: …).

  • Saved goals live outside the fact store (engine !306, #288). inference.createGoal, backwardChain / fuzzyProve / nafProve / bayesianPredict with saveGoal: true, and bulkFuzzyProve with saveGoals: true store the goal apart from the tenant’s facts: it no longer appears in a MATCH or in getFacts(), and createGoal / bayesianPredict no longer write it into the live store. A sort-only backwardChain goal with saveGoal: true now answers a UUID goalId (it was null, and the save was dropped). nafProve with saveGoal: true also saves the goal’s own term. Goals that an earlier engine saved are stray facts in the fact store and listGoals does not list them: wipe them (for example with admin.clearMyTenantData()).

  • Reads never register a tenant (engine !306, #385). GET, HEAD and OPTIONS never create the tenant’s registry row; a served unsafe-method request (POST/PUT/PATCH/DELETE) or a WebSocket upgrade does, but a 401/403/404/405/501 answer never does. After reads only, admin.getMyTenant() and admin.deleteMyTenant() answer 404. osfql.preview, osfql.diagnose, argumentation.evaluate and ingestion.searchWeb never register the caller, their 400/415/422 answers 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.registerRoute for such an account now succeeds instead of answering 409.

  • argumentation.evaluate (engine !306, #76): the request body is closed (an undefined key is a plain-text 422); a preference or retraction naming no claim is a 400 (preference names no claim: "x" / retracted names no claim: "x"); a preference on a retracted claim is dropped with a warning. Argument.text is the claim’s prose, else the OSFQL pattern of the stored fact, else its term label; Argument.index excludes retracted claims; ArgumentQuestion.prompt uses typographic quotes (Which is true: “A” or “B”?); a rule-derived attack’s reason names 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 example incoherence(motif: "two colours")), not term-xxxxxxxx.

  • platform.runDiagnostics (engine !306, #368): checks holds three entries, memory_usage, system_clock and disk_access, each once (it held four), so passCount is 3 on a healthy engine.

  • sendMessage and recordTurn raise ConstraintViolationError (409) for a conversation another surface owns, and sendMessageStream yields an error event with status: 409 (404 for an unknown conversation) (engine !310): the stream checks the conversation after it opens. sendMessage raises NotFoundError for an unknown conversation. The certify-or-abstain answer is now stored and carries turnId. On a rescued turn, suggestions[0] is the No exact match notice, and originalOsfql is always set when repaired is true.

  • ui.generate records a generative_ui conversation titled by the prompt (engine !310), listed by listConversations({ kind: 'generative_ui' }). A conversationId the caller does not own is a NotFoundError; a conversation of another kind is a ConstraintViolationError. The engine checks both before the LLM runs.

  • ingestAudio applies ingestionConfig (engine !311, #367), like /ingest/markdown, unless parseOnly is set. Without a config, the extraction strategy is the request default (LLM), not the deployment’s EXTRACTION_STRATEGY.

  • Markdown ingestion has no 100,000-byte limit (engine #405): ingestMarkdown, ingestMarkdownBatch and resumeIngestion are bounded only by the 50 MiB body limit (413, an ApiError).

  • OSFQL binds prefixes and reads CURIEs (engine #404): PREFIX ex: <iri>; binds a tenant prefix durably, and MATCH :Pizza(:size: ?S); reads unquoted CURIE names. A rebind, or a DEFINE of a CURIE whose prefix is not bound, is an OsfqlError execution failure (422). sorts.createSort, patchSort and patchSortFeature accept a CURIE under a bound prefix, and refuse an unbound one with 400. sorts.getSchema starts with the tenant’s PREFIX lines.

  • TranslateRdfResponse.prefixes is the binding map the names are compacted through: a document prefix that conflicts with a tenant binding is renamed, never rebound. termCount no longer counts stub terms for the objects of skipped schema declarations.

  • IngestRdfResponse.sortsCreated counts the sorts the OWL pass created (0 without parseOntology), not the lattice size.

  • A synchronous MATCH … SEMANTIC row carries its feature columns in rank order. A binder-less pattern keeps _semantic; a pattern with a named root has no _semantic column. Ranking obeys visibility and the bitemporal slice.

  • query.nlQuery in cognitive mode filters by every translated constraint, and generatedOsf is the executed OSFQL. A constraint it cannot carry is success: false with the reason in error; an empty results with success: true means no match. A filtered or structured question over a rule sort that has members only by derivation is success: false, and so is an aggregate over any sort a rule concludes (the aggregate reads only stored members); the reason is in error. NlQueryResultItem.id is the matched term id.

  • A rule head no longer carries certainty in features (engine !312, #377, #391): read RuleEntryDto.certainty. A fact’s authored certainty feature now shows in display. Every display / goalDisplay / ruleLabel text shows all data features sorted by name, with JSON-escaped strings, shortest round-trip reals and full lists (no [...N items]); ruleLabel no longer shows the aggregator.

  • A MATCH with an inline write classifies by that write (engine !313, #416): an inline INSERT, LINK or UPSERT LINK is additive_write; an inline UPDATE, REMOVE, UNLINK, DELETE or DETACH DELETE (or an IF/WITH that holds one) is targeted_destructive. ui.executeAction now needs confirm: true for those (else requiresConfirmation: true), its dry run answers affectedPreview.exact: false, and osfql.preview answers affectedError and no affected for an inline destructive MATCH. A writing query in a ui.describe, ui.generate or AG-UI data load is refused without an exception: stats.osfqlExecuted starts with FAILED:.

  • 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 answers 404 (NotFoundError) before the LLM check; more than 500 terms of material answers 422.

  • fuzzy.searchTopK (engine !313, #378): exhaustive: true with no coverage when no retrieval cap fired; exhaustive: false with coverage when one did.

  • memory.remember (engine !313, #379): the tenant route no longer refuses text that contains code; the remaining 400s are an empty text, more than 500 characters and an importance outside 0..1.

  • Agent-queued action reviews (engine !313, #380) carry agentId and goalContextId, so actionReviews.list({ agentId }) finds them; approving one re-runs the agent’s integrated cycle.

  • Scenarios (engine !312, #403): scenarios.create, materializeScenario and update decode 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 the POST /api/v1/inference/rules checks; a refused rule is not written and is named in warnings. An unknown sort is refused, not widened to thing.

  • conformance.repair (engine !314, #406): an applied repair is durable — visible on GET /terms, kept across a restart, versioned in the history and announced on CDC.

  • The residuation listing (engine #93) keeps one row per term (id is the term id), keeps completed and failed rows, fills waitingFor, applies both filters and reports createdAt in epoch milliseconds. GET /terms/{id} reports failed when a later check failed.

  • osfql.preview counts the terms an inline MATCH … UPDATE / REMOVE / UNLINK / DELETE changes (engine #457). Such a statement carries affected (count, exact, sampleRows, one row per changed term) like a RETRACT, where it carried affectedError and no count. A term that several joined rows bind counts once, and an UNLINK counts a source only when it holds the edge. ui.executeAction dry runs report the same exact count.

  • ingestion.getDocumentStats and the session handle’s getDocumentStats call the generated route: the engine now publishes the DocumentStatsDto body of its 200 (engine !317, #464).

  • ui.generate binds 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 in diagnostics), and the view that uses it names the id column in props.rowKey. Any other query names no rowKey.

  • scripts/check-spec-validity.js fails on a root tag declared more than once (sdk#2). The engine declares preferences once since #465.

  • Every resource method that reads a JSON 2xx body goes through decodeResponse (sdk#54). Twenty-two pass-through methods (statistical, causal, neuro-symbolic, cognitive, collections, control, proof-engine, snapshots) returned response.data raw, so a gateway’s 200 HTML page resolved null typed as the DTO. They now throw ResponseShapeError. pnpm run check-response-decode flags a bare return response.data; unless the route asks for text, blob or arrayBuffer.

  • ResponseShapeError messages use the right article: not an array (got an object), not (got a object).

  • fuzzy.predictEffect calls the generated route instead of a raw request.

  • ingestion.retryDlqEntry never retries the queueless 503, even with retryOn503, like the sync: false paths. It retried it up to maxRetries times before it threw IngestionQueueUnavailableError.

  • ingestion.ingestUrl raises UrlIngestStoreFailedError only for a 500 body that has the complete published shape (an error string, and pages and skipped entries with their required keys). A body with report.pages: [null] threw a bare TypeError from the mapper and lost the original InternalServerError; it now stays that InternalServerError.

  • featureValueToInput keeps 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.violations passed the wire objects through raw, so relatedFactId was always undefined (the snake_case related_fact_id leaked instead). Each violation is now mapped.

  • A conversation proof node with a null detail, rule or confidence reads undefined, like every other absent optional field.

  • ui.generate reads a null certificate_id, page_version, conversation_id, data, layout, descriptor, trace, intent statement_id/returns/reason or data-source returns as absent. It now calls the generated route against the published UIGenerateResponse instead of a raw request typed by hand-written wire shapes.

  • coherence.analyze calls the generated route, typed against the published CoherenceReport instead of hand-written wire shapes. A null optional report field (subsumption, clash, advisory, target, weakest_boundary, …) stays absent, as an omitted one does.

  • marketplace.searchCatalog and conformance.check are typed against their own published components (MarketplaceSearchRequest/MarketplaceSearchResponse, ConformanceViolationDto) instead of hand-written wire shapes; searchCatalog calls the generated route.

  • reviews.addPendingReview calls the generated route, and a pending review’s sort suggestions are typed against the published ReviewSortSuggestionDto. A malformed suggestion is no longer refused with a ValidationError at read time; the published DTO is the contract.

  • ConstraintViolationError.termId, .feature and .constraint are read from the engine’s flat 409 body (ConstraintViolationResponse: { error, message, term_id, feature, constraint }). The SDK read them from a details object no engine sends, so all three were always undefined.

  • Verification errors: the engine now answers { error: <reason phrase>, message: <text> }, so ApiError.message is the engine’s sentence (it was the synthesized HTTP 404) and errorCode the reason phrase. verification.getCertificate calls the published route; a non-UUID id is a BadRequestError (400), an unknown id a NotFoundError (404).

  • sorts.patchSortFeature sent only name and cascade_terms: the mapper dropped description and index. It now copies every key that is set, and sends null as null.

  • OsfqlFailureFromApiToFront dropped the error body’s atomic_refusal; it now reads it, and refuses a malformed one like the other details.

  • discriminateFeatureValue threw 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.bulkAddRules dropped a row’s aggregator; it now forwards it, as addRule does.

  • sparql.translateQuery and translateUpdate are now typed against the published SparqlExplainDto / SparqlUpdateExplainDto (engine !317, #464), and a plan node’s attrs keeps only string entries.

  • UI actions (engine #172): a "sort_ref" field takes a term UUID in values, which the engine stores as a Reference; a non-UUID, an undeclared entity range, or a non-UUID sort_ref placeholder in a run_osfql / feature-based delete_record template answers 400 (BadRequestError), and a UUID that names no visible term answers success: false. UIAssemblyStatsDto.includedFeatures counts only fields with a value control.
  • Review decisions (engine !304): approveEntity, correctEntity, mergeEntity and rejectEntity document 403 for a reserved or unwritable sort; rejectEntity, mergeEntity, bulkReject and bulkMerge document the 503 for terms that could not be made resident. Each method documents its knowledge-base effect, and that notes and reason are kept as the decision note.
  • functions.registerFunction / replaceFunction (engine !314, #388) document the 422 codomain codes function_codomain_empty, function_codomain_non_string_label, function_codomain_blank_label and function_codomain_repeats_label, checked before the conformalTau check; evaluateFunction documents the error for a stored mixed codomain such as ["a", 3]. A Neural codomain must be non-blank, distinct string labels.
  • The CheckDocumentResponse.warnings of documents/check include KB rules pass read only the first N of M characters of <name>; … for a partly read document, and kbRuleReport carries the same evaluated_text / withheld_status fields.
  • The Ψ-terms concept page documents the read format of a listed rule’s features and the featureValueToInput round trip; the workshop guide says that a rule needs at least one antecedent.
  • ConversationTrainingConfigDto: with useRealConversations a conversation run now trains on the cognitive agent’s conversations and the tenant’s chat conversations together, numTranscripts of each (selected by conversationIds and agentId), and falls back to synthetic transcripts only when neither source has one (engine #84). The field docs say so.
  • ingestion.ingestUrl documents the redirect cap as urlIngestion.maxRedirects, and an unknown body key as 422, not 400.
  • WASM plugin methods document 500 (plugin store failure) beside 403/404/501.
  • rag.ontologyRag documents the 422 an unknown featureConfig key now answers (the engine reads it with deny_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 422 on terms.createTerm, updateTerm, bulkCreateTerms (a BulkRefusedError row), OSFQL writes (OsfqlError, execution), actions.applyAction and inference.addFact. Write Value.reference(termId). The terms guide documents the OSFQL nested designator <sort>(__osf_term_id: "<id>"), which references an existing term and mints nothing.
  • CreateSortRequest.parents and sorts.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 a 400 parent sort(s) do not exist, byte-identical to an unknown id (it was accepted with 201).
  • FeatureDescriptorDto.cardinalityOrigin (engine !305, #290): createSort and bulkCreateSorts accept inferred only 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 a 400 / unsatisfiable_declaration that starts sort 'S': feature 'F':. OSFQL @card(0, n) required (or required @card(0)) is a parse OsfqlError on execute and preview; it was stored as a minimum of 1.
  • inference.forwardChain / ForwardChainRequest.keepDerived (engine #290): a deadline-cut keepDerived: false run (200 or 504) leaves nothing stored; a deadline-cut keepDerived: true run records provenance for every conclusion it stored and announces it.
  • sorts.deleteSort: the sort_would_orphan_children message now ends Pass ?descendants=delete to delete them with it.; an OSFQL DROP SORT refusal 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 a DEFINE (string, integer, …) is listed only when a sort of that name exists in the program or the tenant.
  • FeatureDescriptorDto.description / index point at patchSortFeature with null as the way to clear them.
  • Tenant erasure (engine !308, #381): admin.clearAllData, clearTenantData, clearMyTenantData, deleteTenant and deleteMyTenant document the 500 (InternalServerError) whose message contains uploaded 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.receiveWebhook when the DM policy or inbox store cannot be reached (the message was not admitted, so the relay must deliver it again), cron.runNow when the job fired but its inbox item was not stored (the run is not undone), inbox.list / markRead when the inbox store cannot be reached, and every pairing method when the pairing store cannot be reached.
  • authz.writeTuple and authz.deleteTuple (engine !306, #371): a caller that is not exempt gets 403 in every case, before any validation. For an exempt caller, deleteTuple answers 404 for a missing id or for an id that names a term that is not a can / has_role tuple (the term survives), also with ifMatch.
  • inference.deleteGoal documents the 404 for an unknown goal and what the delete removes; createGoal, listGoals and the goalId fields say that a saved goal is not a fact.
  • sorts.createSort and CreateSortRequest.id (engine !315, #435): an id must 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 same name is a 400 (BadRequestError), not a 409; only a shared-lattice id posted under another name is sort_id_unavailable.
  • terms.createTerm and terms.updateTerm document NamedConstraintViolationError for a 422 refusal by a named constraint: both routes now publish TermWriteUnprocessableBody (DeclarationViolationResponse | CodedErrorResponse | ErrorResponse) as the 422 body, where PUT /api/v1/terms/{id} published only ErrorResponse before (engine !315/!317).
  • DocumentVerdictBasis: a pass or fail whose basis does not agree with it (a stated_unknown or missing basis included) is withheld and reported inconclusive.
  • terms.updateTerm, terms.deleteTerm and RuleTermWriteError (engine #456): a ground sub-term that rule authoring minted inside a rule is part of the rule, so a write onto it is refused 409 write_targets_rule; getTerm answers 404 for it and termExists answers false.
  • terms.createTerm, updateTerm and inference.addFact document the 422 for an engine-owned feature such as _derived_by (engine #249).
  • analysis.refuteImplication and RefuteRequest.features (engine #462): a counterexample must also respect every confirmed implication, else 400. The exploration poses one question for each pseudo-intent.
  • scenarios.materializeScenario and scenarios.update (engine !319, #470) document the 400 (BadRequestError) for a minted sort, feature, fluent, computed feature or axiom property name the creation gate of sorts.createSort refuses (a name OSFQL cannot read, or a CURIE whose prefix the tenant does not bind canonically); nothing is written. scenarios.create answers the same case with a 422 Generated scenario refused: …. An inferred relation edge name the gate refuses is skipped and named in warnings.
  • scenarios.create and materializeScenario: a sort a rule names that the scenario does not declare is created under thing, not refused. The JSDoc said the opposite; only update’s addRules refuses an unknown sort.
  • ui.describe (engine #471) documents the 400 for a termId that is not a UUID and the 404 for a termId that names no term of the sort; a detail or form view with termId loads that term’s own values. A data view names in props.rowKey the column in which each loaded row carries its term’s id: __osf_term_id for the engine-generated query, and the query’s own identity variable for a custom query. A custom query whose rows cannot carry an id (an aggregate, a WITH, a projection without it, a DISTINCT, an inline write) names no rowKey. Read the column rowKey names; do not hard-code __osf_term_id. UIDataPayload.termIds lists the terms the load program produced; it is not one id per row.
  • ui.executeAction and UIActionRequest.sortName (engine #471): submit_form, update_form and delete_record resolve the sort by its exact name, so a CURIE sort works. A 400 now answers an unknown sort, a sort name with a backtick, a value key the sort does not declare, and an update_form whose term is held under another sort.
  • TranslateRdfResponse.prefixes points at MaterializeScenarioRequest.prefixes too.
  • reasoninglayer#473: terms.getTerm(ruleId) answers 404 for a rule since engine #456, so the way the inference.deleteRule and replaceRule docs give to read a rule’s If-Match tag does not work. The contract test for a stale ifMatch on a rule delete fails against engine 5cef4fa34 for this reason.
  • Corrects the list of resolved issues in the 3.0.0 entry below. No code change.

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.

  • 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 step input/output, UI customizations and action values, actions.applyAction inputs, compliance.append extra and review features are no longer snake_cased. Write the engine’s own key spellings (#17, #39).
  • osfql.execute / osfql.preview throw OsfqlError for every OSFQL error body, and every engine deadline (504, error_type: "timeout") is a DeadlineExceededError. A 400 parse error is no longer a BadRequestError: branch on error.errorType (#43).
  • sync: false ingestion returns an IngestionOutcome, not a bare session. Read outcome.kind (#22).
  • ReviewsClient returns typed camelCase objects, not the raw snake_case body typed unknown (#30).
  • Constructed fixtures need the new required fields listed below. Reading code is unaffected.

Transport and errors

  • Every path parameter of every generated route, and of the hand-written paths, is percent-encoded once (#38).
  • ApiError.message is the body’s message for bodies with no error field (OSFQL, SPARQL, property graph). It was HTTP <status>.
  • HTTP 503 is ServiceUnavailableError, a subclass of InternalServerError. instanceof InternalServerError still matches.
  • HTTP 504 with error_type: "timeout" is DeadlineExceededError on every route (was InternalServerError).
  • HTTP 409 write_targets_derived_fact is DerivedFactWriteError (a ConstraintViolationError); 412 is PreconditionFailedError; 428 is PreconditionRequiredError.
  • ValidationError.field paths name their container: rules[k].term, rules[k].antecedents[i], literals[i].term, goal, antecedent, consequent (#48).
  • A raw TermInputDto feature value that matches no variant throws ValidationError before the request is sent. It was sent as {} (#47).

Sources, scenarios, opaque bodies

  • sources.register() sends config verbatim; write engine keys (connection_string, file_path, …) (#17).
  • scenarios.materializeScenario() / update() send the scenario verbatim. MaterializeScenarioRequest.scenario is a typed GeneratedScenario whose keys are the engine’s own, mixed spellings (curriculum_stages, guardConstraints, …). A camelCase curriculumStages is 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.addPendingReview and reviews.correctEntity send the caller’s nested JSON verbatim. Keys in customizations, values, originalValues, inputs, extra, review features and the like are no longer snake_cased.
  • DiscoveredFeatureDto.constraints is a tagged DiscoveredConstraintDto union (was the engine’s Rust debug string).

Ingestion (#20, #21, #22)

  • ingestMarkdown(req, { sync: false }) and ingestDocument(req, { sync: false }) return IngestionOutcome ('queued' → session, 'inline' → result).
  • ingestMarkdownBatch(req) returns IngestionOutcome<IngestionBatchSession, IngestMarkdownResponse>; ingestDocumentBatch(req, { sync: false }) returns an IngestionBatchSession (documentIds, documentCount).
  • ingestRdf defaults to synchronous ingestion. IngestRdfRequest loses ownerId, tenantId and sync; pass { sync: false } as the second argument.
  • A ?sync=false document or batch refused by a deployment with no queue throws IngestionQueueUnavailableError (status 503), and is never retried, even with retryOn503.
  • IngestionSession’s polling methods moved to the base IngestionSessionHandle; batch handles are not instanceof IngestionSession.

OSFQL (#33, #34, #43)

  • OsfqlResponse.updatedTermIds is required and disjoint from producedTermIds. Count created and updated terms from the two lists directly.
  • osfql.diagnose(query, requestOptions) is osfql.diagnose(query, options?, requestOptions?).
  • OsfqlPreviewAffected.exact is required.
  • The atomic refusal code drop_sort_in_atomic_program is drop_sort_not_alone. A DROP SORT or ALTER SORT must be the only statement of its program, with atomic: false too.
  • RiskTier gains schema_destructive (DROP SORT).
  • UI dry-run affectedPreview: sampleRows values are tagged OsfqlValues keyed by feature plus term_id; count and statement cover the whole program; exact, mutates and statements are new required fields.

Terms, rules and sorts (#32, #35, #40, #41, #46)

  • terms.termExists(id) returns the engine’s answer. It returned true for every id.
  • FeatureInputValueDto gains the tagged { type, value } member.
  • RuleTermDraftDto.features is Record<string, string | number | boolean>.
  • Offset iterators: when a page reports total, a short page no longer ends the walk.
  • TermVersionDto.seeded is required; versions are listed newest first.
  • RegisterFunctionRequest.tenantId and EvaluateFunctionRequest.tenantId are removed (#35). FunctionDraftDto is an alias of RegisterFunctionRequest.
  • SortReferenceKind gains term_reference. DeleteSortResponse.sortsDeleted is required. deleteSort’s options are the named DeleteSortOptions. The sort-delete refusal body is coded; read it with sortDeleteRefusalOf(error).

Agents, reviews, conversation (#25, #30)

  • Every ReviewsClient method returns a typed camelCase result; failedIds entries are { reviewId, reason }.
  • AddPendingReviewRequest.sortSuggestions is ReviewSortSuggestion[] ({ sortName, confidence, reason? }). The old shape was refused with 422.
  • ConversationClient.getTurns narrows queryResults rows through the OSFQL value mapper.
  • ActionReviewsClient.listPending and the agent lifecycle methods raise ValidationError for an origin or status outside their unions.

UI, checks, reasoning (#28, #37, #44)

  • Removed: constraints.getGraph (use visualization.constraintGraph), fuzzy.fuzzyMerge and fuzzy.fuzzySubsumption (use reasoning.merge / reasoning.subsumption), execution.getTrail and execution.getChoicePoints (no engine route; read trailLength / choicePointCount from execution.getSession). All five called paths no engine serves.
  • UIDescribeRequest.sessionId is removed; the engine refuses it with 422.
  • UIGenerateResponse.data is UIDataPayload; diagnostics and suggestions are string[]; verdict is UIGenerateVerdict.
  • CoherenceAnalyzeResponse.report is a typed camelCase CoherenceReport; CoherenceSummaryDto.verdict is a union.
  • ConformanceViolationDto.suggestedFixes is SuggestedFix[]; an unknown action arrives as { action: 'unrecognized', entry }.
  • CheckFinding.proofTrace is CheckProofStep[] | null.
  • TemporalPlanResponse.diversityScore is optional: absent without a diversity objective.
  • FuzzyProveResponse.certificate is a DiagnosisCertificate with 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 / IngestRdfResponse repairedIriCount, repairedIris (and sortPreviews on translate); DocumentStatsDto.relationsIntegrated; EncodeClipResponse.disposition, timingsUs; four FrameSummary arrays.
  • ActionReviewResponse.producedTermIds, PendingActionReviewDto.origin, ten IntegratedCycleOutcomeDto fields.
  • SubscriptionDto.maxRetries, backoffMs.
  • MaterializeScenarioResponse.goalCreated.
  • papersPooled / totalPapersPooled on research cycles, sessions, summaries and statistics.
  • SendMessageResponse.timestamp; EntailmentResponse / DisentailmentResponse degree, antecedentDegree, consequentDegree; MaterializationSummaryDto temporalConstraintsCreated, webhookActionsCreated, toolRegistrationsCreated, warnings; CycleOutcomeSummaryDto.rulesLearned; SortCompareResponse sortA, sortB, operator; LearnedSimilarityDto.meetIsBottom; SimilaritySearchResponse.exhaustive; CreateModuleResponse.success; ImportModuleResponse importerModule, success; AgentSubVerdictDto.stepIndices; OversightSessionStatusResponse.userIntent; SoftUnifyResponse.embeddingsUsed.

Engine behaviour that reaches SDK callers

  • memory.remember answers 400 for an out-of-range importance or a policy-refused write. setActionReviewConfig answers 400 for a zero timeout. A timed-out review decision answers 409.
  • subscriptions.create / update refuse loopback and private targets with 400.
  • Speech: an unreachable sidecar is 502; 503 is always the permanent, coded speech_synthesis_not_configured.
  • compliance.list refuses undeclared query keys with 400 (the SDK sends only declared keys).
  • A DELETE of a rule’s conclusion answers write_targets_derived_fact, not term_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), and client.memory (#26, #31). Type namespaces Cron, 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 full IngestionConfigDto (#21); RDF repairIris, computeEmbeddings, keepDeclarations (#20); merge-audit evidence and the other stats fields; the V-JEPA encodeClip receipt and per-frame verdicts.
  • Cognitive: getActionReviewConfig, pauseAgent, resumeAgent, stopAgent (#24); actionReviews.expire; reviewQueueRefusals and nine cycle counters.
  • Conversation: sendMessageStream, injection, includePromptTrace, promptTrace, matchedTemplates; root exports decodeConversationMessage and USER_DATA_FIELDS (#25).
  • OSFQL: OsfqlRequest.semantics ('osf' | 'rdf') (#33); OsfqlError (errorType, refusal with referrers and cascadeLimit, maxRows) and DeadlineExceededError (#43); diagnose options timeoutMs / maxRows; OsfqlResponse.sortDelete / sortReparent; OsfqlPreviewStatement.affectedError / sortDelete.
  • Terms and rules: TermResponse.etag; ifMatch on updateTerm, deleteTerm, deleteRule, replaceRule (#32); rejected on bulk rule and fact writes (#46); iterateTerms offset and onPage (#40).
  • Sorts: previewSortDelete, subtree delete (descendants: 'delete'), reparentSort, sortDeleteRefusalOf, feature description and index.
  • 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: fuzzyProve seal and kbDataVersion, enrollSpeaker variant, visualization.lattice limit / offset, visualization.hypergraph includeProvenance / includeRelations.
  • OsfqlError.sortDeleteRefusal: the coded refusal of a DROP SORT.
  • Compliance: getRecord, getCausalChain, listScopes, getInclusionProof, list filters actor / q; RequestOptions.causal and the x-osfkb-* header helpers (readAuditHeaders, readCausalRefusal, sealPreimage, …).
  • subscriptions.update; admin.getMyTenant; authz.writeTuple / listTuples / deleteTuple / check; errorBodyCode.
  • sources.register() rewrote user-keyed maps in config, including MCP transport.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 undefined status and discarded inline results (#22).
  • reviews.addPendingReview with sort suggestions was refused with 422 (spec collision, engine #224).
  • iterateTerms stopped after one page when pageSize exceeded the engine’s 10 000-row cap (#40).
  • terms.termExists returned true for 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.mjs runs in the unit suite, so a field added to the spec and not mapped fails the tests.
  • A Gaussian, CyclicGaussian or GaussianProduct FuzzyNumber read stdDev: undefined; std_dev is mapped in both directions.
  • ui.describe customizations lost camelCase component props (dataKey became data_key, which the engine’s remove_component / reorder lookups then missed).
  • compliance.append rewrote the keys of extra, which the engine hashes into the audit chain.
  • A 503 that no retry can change (a queueless sync: false ingestion, speech synthesis not configured) is never retried, even with retryOn503.
  • updatedTermIds and producedTermIds are disjoint (#34); every OsfqlAtomicRefusal.code, OsfqlRefusal.code, repair kind and diagnostic kind is listed.
  • terms.listVersions is newest first (#36); BigIntegerValue states the engine’s current type-hint rules (#41); ProofDto.ruleHeadTermId groups 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.
  • reasoninglayer#363 (duplicate operationId), #364 (undeclared statuses, headers and refusal bodies), #365 (OSFQL sort-statement run errors), #366 (review stores), #367 (audio ingestion_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 / maxSchemaTokens are deprecated no-ops until engine #352 removes them.

These entries were collected under an “Unreleased” heading from 1.2.1 through 2.1.2, and were not split per release.

  • ClientConfig.auth is 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 ReasoningLayerClient rather than trusting the build.

  • osfql.execute() carries updatedTermIds. The engine puts an updated term’s id in both produced_term_ids and updated_term_ids, and the mapper read only the first — so a client could not tell an insert from an update, or tell whether an UPDATE pattern matched anything. undefined means the engine does not report it; [] means the program updated nothing. (Superseded in 3.0.0: the engine now keeps the two lists disjoint, and updatedTermIds is always present.)
  • forwardChain() sends timeoutMs. The field was typed and documented (a server-side deadline, 504 when 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 the risk block and nOversightDecisions. 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.fabricationRate stays nullable: null is “not measured”, and its denominator is checked responses only, so folding it to 0 would report a clean rate for a ledger nobody checked.
  • conformance.check() returns the violations the route actually sends. They were mapped through ViolationDto — a different struct sharing no key with the response — so every violation arrived with description, relatedFactId and severity all undefined: 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, and SourceTypeDto.configFields. identifierProvenance is 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, and preview() threw a bare ReasoningLayerError carrying no status. The row is now dropped and counted in affected.unparsedSampleRows; the count, the risk and mutates survive.
  • A malformed term request raises ValidationError, not TypeError. TermInputDtoFromFrontToApi discriminates with in, which throws on undefined, so a request missing term produced an error from library internals that escaped every instanceof branch 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: transpile emits the native query and stops, this runs it — and for a transpile-mode source, whose bound sorts are live views over the operator’s own database, it is the only route that answers at all. rowCount / sourceId are camelCased; rows is one object per record.
  • ConstraintDto gains RealRange — { type: 'RealRange', value: { min, max } }, the Real twin of IntegerRange. The engine has always defined it; consumers were casting past the published union.
  • New types: RiskTotalsDto, ConformanceViolationDto, ConfigFieldDto, ExecuteTranspiledRequest, ExecuteTranspiledResponse.
  • ReferenceDesignator says which spelling works. Pass sortName; the sort_name spelling shown for the wire is refused, because a designator sits inside a features map and features is carried verbatim. The compiler does not catch the swap — ReferenceValue.value is string | 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 contradict OsfqlPreviewAffected.count. A destructive statement matching zero rows answers {count: 0, exact: true}; it is the ABSENCE of the whole affected block that means the statement has no affected-row set. The two are distinguishable, which is what the block was separated for.
  • OsfqlPreviewAffected.exact narrowed to what the engine gives. true for 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.
  • BulkRefusedError is right about dryRun with partial. The two together answer 200 with termsAdded: 0 and every row in errors — 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.
  • ProofDto.goalTermId is 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 id getTerm() answered 404 for. It now names the CONCLUSION the node proved, which joins to client.query.findBySort() and client.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 a string no 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 over getEquivalenceClasses(), which computes process-wide and then filters.
  • granularity on getPreorderDegree() — 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 of 0. The response always echoes the granularity back. ⚠️ getQuotientOrder() takes the same two spellings and defaults to combined.
  • New types: SortPreorderGranularity, GetQuotientOrderOptions, GetQuotientOrderResponse, QuotientClassDto, QuotientOrderEdgeDto.
  • nafProve() / proveWithNegation() accept a psi() term. Every other term-carrying method did; these two demanded a hand-built wire TermInputDto, so the documented way to build a term did not work there.

  • The preorder-degree documentation 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, then create / get / clone / commit / solve it under any of five algorithms: max_flow, min_cost_max_flow, classify_edges, classify_edges_optimal, min_cut. Mirrors the lifecycle of the /spaces resource (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 the FlowNetworks namespace).

  • New guide: Flow Networks.

  • BackwardChainRequest.expandBindings and BackwardChainResponse.referencedTerms (the Record<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.

Initial release of the @kortexya/reasoninglayer TypeScript SDK.

  • ReasoningLayerClient main client with resource-as-property access pattern
  • ClientConfig with baseUrl, 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
  • .withMetadata() on all resource clients for access to HTTP status, headers, and rate limit info — 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 ApiError’s own status / headers on a failure.
  • WebSocket client with auto-reconnect for real-time event subscriptions
  • ValueDto tagged discriminated union (10 variants: String, Integer, Real, Boolean, Uninstantiated, Reference, List, FuzzyScalar, FuzzyNumber, Set)
  • FeatureValueDto untagged union for homoiconic inference endpoints
  • FuzzyShapeDto with "kind" discriminator (Triangular, Trapezoidal, Gaussian, CyclicGaussian)
  • TermInputDto structural union (Reference, Inline by sort ID, Inline by sort name)
  • FeatureInputValueDto structural 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
  • Value namespace: tagged value construction (Value.string(), Value.integer(), Value.fuzzyNumber(), etc.)
  • FuzzyShape namespace: membership function shapes (FuzzyShape.triangular(), FuzzyShape.gaussian(), etc.)
  • FeatureInput namespace: untagged value construction for inference (FeatureInput.string(), FeatureInput.variable(), FeatureInput.constrainedVar(), etc.)
  • TermInput namespace: 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 relations
  • SortBuilder fluent API: chained sort definition with parents, features, bound constraints, and descriptions
  • psi() shorthand for inline Psi-term construction with auto-coercion
  • 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_VERSION exported constant (0.1.0)
  • X-SDK-Version header sent on every HTTP request for backend diagnostics
  • scripts/generate-route-manifest.ts — generates endpoint manifest from OpenAPI spec
  • scripts/check-completeness.ts — reports SDK endpoint coverage vs. OpenAPI spec
  • Dual ESM/CJS output via tsup
  • TypeScript strict mode with zero any types
  • Zero runtime dependencies
  • ES2022 target (Node 18+, modern browsers, Deno, Bun)
  • Vitest test framework
  • pnpm package manager with strict resolution