Repository navigation
@liasse/server 0.2.0
Minor Changes
-
57b9e49: A document in
needs_reviewsays what to review.GET /documents/:id?include=reviewandget_documentreturn areviewpart: the current threshold, the reasons the document is flagged (low_confidence,type_pending_extraction,type_fallback,type_untyped,reextraction_failed,flagged_at_settlement,rejected_values), and how sure the pipeline is of its type and of each core value and field, with the page and quote it was read from.A correction (
PATCH /documents/:id,update_document) takesconfirm, the core values or fields that are right as they are, each with the value it was read with: a confirmation never rewrites the value, makes it manual and clearsneeds_reviewlike a correction. A value that changed since it was read refuses the correction withvalue_changed.The web UI shows a flagged document with a "To review" card: the reasons in sentences, the type to accept or change, and each doubtful value to accept, reject or edit, sent as one correction; a change of type leaves the fields to the extraction for the new type.
-
7db033b: The state of consolidation runs can be followed:
GET /consolidation/runs(listConsolidationRunsin the SDK) lists the latest runs with their status, attempts and the error of a failed attempt. The Changes screen of the web UI shows where the latest run stands, follows it until it ends, says when it finished or failed, and reads the changes again.CONSOLIDATION_TRIGGERSandConsolidationTriggernow come from@liasse/contract/domain, no longer from@liasse/core/consolidation. -
3e9b8c4: A correction (
PATCH /documents/:id,update_document) can set or clearcore.key_dates, where it answeredunsupported_field. The list given replaces the key dates of the document in its core and in whatupcominganswers, in one transaction, and a later extraction keeps it. Each date is akind, adateand alabelof at most 200 characters, each kind once per date and at most 50 dates. The notice deadline of a renewal date is still computed from the notice period the document states: anotice_deadlinegiven next to a renewal date of such a document is refused (invalid_value).upcomingno longer flags ascomputeda date a person gave.key_datesstill cannot be confirmed; the refusal now says to give the dates incore.key_datesinstead.The notice period an extraction reads is now stored with the document (migration
0020): a document extracted before this version gets no notice deadline for the key dates a person gives until it is extracted again. -
12f6a23: The
entityfilter of search keeps the documents that name the entity in any entity field, incoreor in the fields of their type, each item of a list field included, where it readissuerandrecipientonly.GET /documents(listDocumentsof the SDK) takes the sameentityfilter, by the id of the entity. The document list of the web UI has an entity filter, picked by a name or an alias, which applies to the list and to its search. -
3e9b8c4: The
reviewpart of a document (GET /documents/:id?include=review,get_documentwithinclude: ["review"]) names the values the last extraction dropped:rejectionslists them bysection(core,fields,extra,facts,subjects,notice_period),name,reason(malformed,quote_not_found,quote_not_stating_value,invalid_value,invalid_key,duplicate_of_field,over_limit,unresolved_entity,sensitive_identifier,identifier_not_in_text) andcount, never the value or its quote. A document extracted before this change has only itsrejected_valuescount, and an emptyrejections.The extraction prompt says what each core field holds:
core.amountis only an amount due, invoiced or paid, never a share capital, a payroll or a coverage limit, and a field for a place of issuance, a registry or an authority is not filled with the address of a registered office, an establishment or the recipient. A value the model puts inextraunder the name of an empty field of the type is now read as that field, where it was dropped. -
16fa6f7: A graph of the archive.
GET /graph(graphof the SDK) answers the most recent documents with their types and parents, the subjects they are about and the entities they name, and the links found between documents, private documents only when asked. The web UI draws it on a Graph page: pan and zoom, hide a kind of node, and select a node to see what it is joined to and open its document or type. -
69d6c97: A consolidation run can be asked for by hand:
POST /consolidation/runs(requestConsolidationRunin the SDK) queues one at once, unless a run due at once already waits, and the Changes screen of the web UI has a "Run consolidation" button. -
c5747d8: MCP gains the surface REST had alone. Agents manage types:
create_typecreates a provisional type by hand,suggest_typedrafts one with the text model,request_consolidation_runasks for a consolidation run andlist_consolidation_runsfollows the latest ones. They also list documents (list_documents, with the filters ofGET /documents, theneeds_reviewqueue included), read the whole processing log of a document (list_document_events), delete a document (delete_document) and list subjects (list_subjects). Each tool calls the use case of its REST route and answers the same thing. -
3e9b8c4: Classification no longer files a document under an unrelated type. The model reuses a candidate only when it truly describes the document, and proposes a new type otherwise. A new type that cannot be created (daily quota reached, private document with an external embedder, proposal refused twice) leaves the document without a type, in
needs_review, instead of giving it the closest candidate with a confidence of 0: the type provenance and thereviewpart say why inrefusal(quota_exceeded,private_document,invalid_proposal,rejected_type), and theclassificationevent intype_refusal. The outcomefallbackis no longer assigned; documents classified before keep it.reclassify_document(POST /documents/:id/reclassify) whose new type cannot be created changes nothing: the document keeps its type, values and status, and a failedclassificationevent carries the reason as itserror_code. Withnew_type, a slug that names another existing type is refused instead of taken.The description of the MCP tool
create_typesays it is the way to file such a document: it is outside the daily quota of classification, andupdate_documentthen sets the type. The web UI says why a document has no type. -
8b07058: Require Node 22.12 or later on the 22 line, 24.22.3 or later on the 24 line, or 26.5.1 or later. Earlier Node 24, 25 and 26 releases bundle an undici whose
fetchcan throw an uncaughtEINVALfromsetTypeOfServiceon macOS when a new connection is reset, which ends the process (nodejs/undici#5547). The server now refuses to start on such a Node, with a message that names the supported versions.@liasse/contractand@liasse/sdkkeep Node 22.12 or later. -
c95f7a1: The first account is created from the web UI. While no account exists, each start prints a one-time setup token to stderr with the onboarding URL (
PUBLIC_URL/ui/).GET /api/setupsays whether setup is needed,POST /api/setup/checktries settings with the token, andPOST /api/setupcreates the account and saves the settings together, applied at once (getSetupStatus,checkSetupandcompleteSetupof the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.Breaking:
AUTH_BOOTSTRAP_EMAILandAUTH_BOOTSTRAP_PASSWORDare no longer read: the server refuses to start while one is set, and names it. Remove them from.env(and from a Coolify application); an existing account is kept, and a new database is set up with the printed token. -
6910894: The type of a settled document can be decided again when the one it got is wrong:
POST /documents/:id/reclassifyanswers 202 with the document, the MCP toolreclassify_documentdoes the same, and the SDK hasreclassifyDocument. The request may carry ahint(cut to the length of an upload hint) andnew_type, which asks for a new type only. Areclassify_documentjob asks the model again without the rejected type, tells it that a person said that type is wrong and what they added, then changes the type as a manual correction does, with the provenance of the model, and queues the re-extraction that settles the document. A document that is notindexedorneeds_review, or has a processing, re-extraction or reclassification pending, is refused (document_not_settled); an unknown or deleted one is not found. The hint waits on the document (documents.reclassification_hint, blanked by a deletion), never in the job.@liasse/contractnow holds the definitions of the core fields (CORE_FIELDS,CORE_FIELD_NAMES,KEY_DATES_FIELDin/registry, no longer exported by@liasse/core/registry) andSETTLED_STATUSES(in/domain), and the edit tab of the web UI edits every core field with the editor of its definition, filled or not, and chooses the type of a document by hand, as a correction. -
3e9b8c4: The values of a settled document can be extracted again for the type it has, without changing or deciding its type again:
POST /documents/:id/reextractanswers 202 with the document, the MCP toolreextract_documentanswers its id and status, and the SDK hasreextractDocument. The request queues thereextract_documentjob under the row lock of the document, with the refusals of a reclassification (document_not_settledfor a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept.retry_documentis unchanged and still refuses any document that did not fail.Where processing stands is visible while a document is still
receivedwith no event in its log:get_statusnow also answersanalysis_pending,updated_atandjob, the processing job queued or running for the document (kind,state,attempts,max_attempts,queued_at,run_after, and for a queued onewaiting_for,workerwithjobs_aheadordelay).GET /documents/:id/statusand the SDK'sgetDocumentStatusanswer the same, from the use casegetDocumentStatusof@liasse/core/api;@liasse/contracthasdocumentStatusSchema,DOCUMENT_STATUS_EVENTS,UNFINISHED_JOB_STATUSESandJOB_WAITS.The description of the MCP tool
list_documentssays that withstatus: needs_reviewit is the review queue of documents. The descriptions oflist_pending_changesandapply_changenow say they are about the type registry and point to it, those ofretry_document,reclassify_documentandreextract_documentsay which one to use when, and that ofingestasks forprivate: trueon sensitive documents and explains thereceivedinterval. -
6ba9355:
GET /documents/:idandget_documentansweranalysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status staysindexedorneeds_review.The web UI asks for the type to be analysed again from the review of a
needs_reviewdocument, as a third choice for its type next to Accept and Change, with an optional hint; the model creates a new type when none fits, without a checkbox. The document page follows a pending analysis fromanalysis_pending, so a reload or leaving the page no longer loses it, and says how it ended: with the new type, failed with its code, or left alone because the document changed first. -
2f21931: The settings live in the database and apply without a restart. The language models and their key, the embedder, the pipeline and Hindsight are one document saved with
PUT /settings, read withGET /settingsand tried without saving withPOST /settings/check(getSettings,saveSettingsandcheckSettingsof the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived fromAUTH_SECRETand never answered; after a change ofAUTH_SECRETthey are reportedunreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save throughLISTEN. A save applies at once: jobs in progress finish with the models they started with. The embedder can no longer change once a document exists.Breaking:
LLM_PROVIDER,LLM_API_KEY,LLM_BASE_URL,LLM_TIMEOUT,TEXT_MODEL,VISION_MODEL,EMBEDDING_PROVIDER,EMBEDDING_MODEL,EMBEDDING_API_KEY,EMBEDDING_BASE_URL,EMBEDDING_TIMEOUT,EMBEDDING_MAX_INPUT_TOKENS,MAX_FILE_SIZE,AUTO_APPLY,CONFIDENCE_THRESHOLD,MAX_NEW_TYPES_PER_DAY,SCHEMA_LANGUAGE,MAX_VISION_PAGES,ENTITY_ATTACH_SIMILARITY,ENTITY_ARBITRATION_SIMILARITY,HINDSIGHT_URL,HINDSIGHT_BANKandHINDSIGHT_API_KEYare no longer read: the server refuses to start while one is set, and names it. Remove them from.envand save their values as settings (docs/deployment.md, Upgrading from environment variables). Until they are saved, the server serves the web UI, runs no worker and answers503 not_configuredon the routes of the API.pnpm eval:runandpnpm eval:calibratetake their models from a JSON file of settings,--settings <file>. -
8bb948c: The models of a provider can be listed from the settings.
POST /settings/models(listSettingsModelsof the SDK) takes the endpoint of the language models or of a remote embedder as the form holds it, with the stored key when the key is kept, and answers the ids the provider lists, or why it listed none.On the settings page, each model field has a button that opens this list, searchable, next to the input, which still takes any id typed by hand.
-
0212ac4: A type can be drafted by the text model.
POST /types/suggestion(suggestTypeof the SDK) takes a sentence on the documents the type is for and answers with a slug, a description, a parent and fields, without creating anything.The "Create a type" dialog of the web UI has two tabs: "Describe it", where the text model drafts the type from a sentence, and "Define it", the form, which the draft fills for review before the type is created.
Patch Changes
- ea5e3ed: The Coolify compose file passes
STORAGE_DRIVERand theS3_*variables to the server, so a Coolify deployment can keep its files in an S3 bucket. - 67af98d: The Docker image runs Node 26 instead of Node 22. The supported range of Node is unchanged.
- 3f5ac25:
upcomingtakesinclude_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and onGET /upcomingalike. An agent that passed it before got a validation error. - Updated dependencies [57b9e49]
- Updated dependencies [7db033b]
- Updated dependencies [3e9b8c4]
- Updated dependencies [12f6a23]
- Updated dependencies [3e9b8c4]
- Updated dependencies [6ac0866]
- Updated dependencies [16fa6f7]
- Updated dependencies [69d6c97]
- Updated dependencies [c5747d8]
- Updated dependencies [3e9b8c4]
- Updated dependencies [8b07058]
- Updated dependencies [c95f7a1]
- Updated dependencies [3f5ac25]
- Updated dependencies [6910894]
- Updated dependencies [3e9b8c4]
- Updated dependencies [b14baf7]
- Updated dependencies [6ba9355]
- Updated dependencies [9f4321d]
- Updated dependencies [8282534]
- Updated dependencies [2f21931]
- Updated dependencies [8bb948c]
- Updated dependencies [0212ac4]
- Updated dependencies [3f5ac25]
- Updated dependencies [1194426]
- Updated dependencies [6e6ae3d]
- Updated dependencies [e40a8a6]
- Updated dependencies [65a9749]
- @liasse/contract@0.2.0
- @liasse/core@0.2.0
- @liasse/mcp@0.2.0
- @liasse/web@0.2.0
@liasse/web 0.2.0
Minor Changes
-
57b9e49: A document in
needs_reviewsays what to review.GET /documents/:id?include=reviewandget_documentreturn areviewpart: the current threshold, the reasons the document is flagged (low_confidence,type_pending_extraction,type_fallback,type_untyped,reextraction_failed,flagged_at_settlement,rejected_values), and how sure the pipeline is of its type and of each core value and field, with the page and quote it was read from.A correction (
PATCH /documents/:id,update_document) takesconfirm, the core values or fields that are right as they are, each with the value it was read with: a confirmation never rewrites the value, makes it manual and clearsneeds_reviewlike a correction. A value that changed since it was read refuses the correction withvalue_changed.The web UI shows a flagged document with a "To review" card: the reasons in sentences, the type to accept or change, and each doubtful value to accept, reject or edit, sent as one correction; a change of type leaves the fields to the extraction for the new type.
-
7db033b: The state of consolidation runs can be followed:
GET /consolidation/runs(listConsolidationRunsin the SDK) lists the latest runs with their status, attempts and the error of a failed attempt. The Changes screen of the web UI shows where the latest run stands, follows it until it ends, says when it finished or failed, and reads the changes again.CONSOLIDATION_TRIGGERSandConsolidationTriggernow come from@liasse/contract/domain, no longer from@liasse/core/consolidation. -
12f6a23: The
entityfilter of search keeps the documents that name the entity in any entity field, incoreor in the fields of their type, each item of a list field included, where it readissuerandrecipientonly.GET /documents(listDocumentsof the SDK) takes the sameentityfilter, by the id of the entity. The document list of the web UI has an entity filter, picked by a name or an alias, which applies to the list and to its search. -
6ac0866: The Graph page moves like Obsidian's: the graph settles into shape on screen under a live force simulation, a node can be pulled and its neighbours follow, hovering a node lights it and its neighbours, and documents show their labels once zoomed in. With reduced motion asked for, the graph is settled before it shows and only a pulled node moves.
-
16fa6f7: A graph of the archive.
GET /graph(graphof the SDK) answers the most recent documents with their types and parents, the subjects they are about and the entities they name, and the links found between documents, private documents only when asked. The web UI draws it on a Graph page: pan and zoom, hide a kind of node, and select a node to see what it is joined to and open its document or type. -
69d6c97: A consolidation run can be asked for by hand:
POST /consolidation/runs(requestConsolidationRunin the SDK) queues one at once, unless a run due at once already waits, and the Changes screen of the web UI has a "Run consolidation" button. -
3e9b8c4: Classification no longer files a document under an unrelated type. The model reuses a candidate only when it truly describes the document, and proposes a new type otherwise. A new type that cannot be created (daily quota reached, private document with an external embedder, proposal refused twice) leaves the document without a type, in
needs_review, instead of giving it the closest candidate with a confidence of 0: the type provenance and thereviewpart say why inrefusal(quota_exceeded,private_document,invalid_proposal,rejected_type), and theclassificationevent intype_refusal. The outcomefallbackis no longer assigned; documents classified before keep it.reclassify_document(POST /documents/:id/reclassify) whose new type cannot be created changes nothing: the document keeps its type, values and status, and a failedclassificationevent carries the reason as itserror_code. Withnew_type, a slug that names another existing type is refused instead of taken.The description of the MCP tool
create_typesays it is the way to file such a document: it is outside the daily quota of classification, andupdate_documentthen sets the type. The web UI says why a document has no type. -
6910894: The type of a settled document can be decided again when the one it got is wrong:
POST /documents/:id/reclassifyanswers 202 with the document, the MCP toolreclassify_documentdoes the same, and the SDK hasreclassifyDocument. The request may carry ahint(cut to the length of an upload hint) andnew_type, which asks for a new type only. Areclassify_documentjob asks the model again without the rejected type, tells it that a person said that type is wrong and what they added, then changes the type as a manual correction does, with the provenance of the model, and queues the re-extraction that settles the document. A document that is notindexedorneeds_review, or has a processing, re-extraction or reclassification pending, is refused (document_not_settled); an unknown or deleted one is not found. The hint waits on the document (documents.reclassification_hint, blanked by a deletion), never in the job.@liasse/contractnow holds the definitions of the core fields (CORE_FIELDS,CORE_FIELD_NAMES,KEY_DATES_FIELDin/registry, no longer exported by@liasse/core/registry) andSETTLED_STATUSES(in/domain), and the edit tab of the web UI edits every core field with the editor of its definition, filled or not, and chooses the type of a document by hand, as a correction. -
6ba9355:
GET /documents/:idandget_documentansweranalysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status staysindexedorneeds_review.The web UI asks for the type to be analysed again from the review of a
needs_reviewdocument, as a third choice for its type next to Accept and Change, with an optional hint; the model creates a new type when none fits, without a checkbox. The document page follows a pending analysis fromanalysis_pending, so a reload or leaving the page no longer loses it, and says how it ended: with the new type, failed with its code, or left alone because the document changed first. -
8bb948c: The models of a provider can be listed from the settings.
POST /settings/models(listSettingsModelsof the SDK) takes the endpoint of the language models or of a remote embedder as the form holds it, with the stored key when the key is kept, and answers the ids the provider lists, or why it listed none.On the settings page, each model field has a button that opens this list, searchable, next to the input, which still takes any id typed by hand.
-
0212ac4: A type can be drafted by the text model.
POST /types/suggestion(suggestTypeof the SDK) takes a sentence on the documents the type is for and answers with a slug, a description, a parent and fields, without creating anything.The "Create a type" dialog of the web UI has two tabs: "Describe it", where the text model drafts the type from a sentence, and "Define it", the form, which the draft fills for review before the type is created.
-
1194426: The upload page takes several files at once. They are sent one after the other with the same hint and privacy, and a list shows the state of each: waiting, uploading, uploaded or already in Liasse (with a link to the document), or the reason the server refused it. A refused file does not stop the others; a lost session stops the batch and opens the login page. A single file still opens its document once uploaded.
-
e40a8a6: The web UI creates the first account. While the server has none, every route, the login page included, shows the onboarding instead: the setup token the server printed to its logs, the account (name, email, password typed twice, with the length rules of the server), the language models and the embedder, each with a check through
POST /api/setup/check, then a summary. Finishing callsPOST /api/setup, signs in and opens the documents. A wrong token returns to its step, a setup finished elsewhere leads to the login page, and a field the server refuses opens its step with the message. The token, the keys and the password stay in the memory of the page. -
65a9749: The search moves into the document list: a search box above the filters ranks the documents by relevance and shows the passages that match, with the type and status filters of the list applied to it. The review queue gets the same box. The separate Search page and its menu entry are gone, and the command palette opens its search on the document list.
Patch Changes
- 9f4321d: A review refused because a confirmed value changed since the document was read now reads the document again and says so, instead of leaving the old values on screen until the page is reloaded.
- 6e6ae3d: While a search changes, the results of the previous one stay on screen dimmed, marked busy for assistive technology, until the new ones arrive.
@liasse/eval 0.2.0
Minor Changes
-
c95f7a1: The first account is created from the web UI. While no account exists, each start prints a one-time setup token to stderr with the onboarding URL (
PUBLIC_URL/ui/).GET /api/setupsays whether setup is needed,POST /api/setup/checktries settings with the token, andPOST /api/setupcreates the account and saves the settings together, applied at once (getSetupStatus,checkSetupandcompleteSetupof the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.Breaking:
AUTH_BOOTSTRAP_EMAILandAUTH_BOOTSTRAP_PASSWORDare no longer read: the server refuses to start while one is set, and names it. Remove them from.env(and from a Coolify application); an existing account is kept, and a new database is set up with the printed token. -
2f21931: The settings live in the database and apply without a restart. The language models and their key, the embedder, the pipeline and Hindsight are one document saved with
PUT /settings, read withGET /settingsand tried without saving withPOST /settings/check(getSettings,saveSettingsandcheckSettingsof the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived fromAUTH_SECRETand never answered; after a change ofAUTH_SECRETthey are reportedunreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save throughLISTEN. A save applies at once: jobs in progress finish with the models they started with. The embedder can no longer change once a document exists.Breaking:
LLM_PROVIDER,LLM_API_KEY,LLM_BASE_URL,LLM_TIMEOUT,TEXT_MODEL,VISION_MODEL,EMBEDDING_PROVIDER,EMBEDDING_MODEL,EMBEDDING_API_KEY,EMBEDDING_BASE_URL,EMBEDDING_TIMEOUT,EMBEDDING_MAX_INPUT_TOKENS,MAX_FILE_SIZE,AUTO_APPLY,CONFIDENCE_THRESHOLD,MAX_NEW_TYPES_PER_DAY,SCHEMA_LANGUAGE,MAX_VISION_PAGES,ENTITY_ATTACH_SIMILARITY,ENTITY_ARBITRATION_SIMILARITY,HINDSIGHT_URL,HINDSIGHT_BANKandHINDSIGHT_API_KEYare no longer read: the server refuses to start while one is set, and names it. Remove them from.envand save their values as settings (docs/deployment.md, Upgrading from environment variables). Until they are saved, the server serves the web UI, runs no worker and answers503 not_configuredon the routes of the API.pnpm eval:runandpnpm eval:calibratetake their models from a JSON file of settings,--settings <file>.
@liasse/contract 0.2.0
Minor Changes
-
57b9e49: A document in
needs_reviewsays what to review.GET /documents/:id?include=reviewandget_documentreturn areviewpart: the current threshold, the reasons the document is flagged (low_confidence,type_pending_extraction,type_fallback,type_untyped,reextraction_failed,flagged_at_settlement,rejected_values), and how sure the pipeline is of its type and of each core value and field, with the page and quote it was read from.A correction (
PATCH /documents/:id,update_document) takesconfirm, the core values or fields that are right as they are, each with the value it was read with: a confirmation never rewrites the value, makes it manual and clearsneeds_reviewlike a correction. A value that changed since it was read refuses the correction withvalue_changed.The web UI shows a flagged document with a "To review" card: the reasons in sentences, the type to accept or change, and each doubtful value to accept, reject or edit, sent as one correction; a change of type leaves the fields to the extraction for the new type.
-
7db033b: The state of consolidation runs can be followed:
GET /consolidation/runs(listConsolidationRunsin the SDK) lists the latest runs with their status, attempts and the error of a failed attempt. The Changes screen of the web UI shows where the latest run stands, follows it until it ends, says when it finished or failed, and reads the changes again.CONSOLIDATION_TRIGGERSandConsolidationTriggernow come from@liasse/contract/domain, no longer from@liasse/core/consolidation. -
12f6a23: The
entityfilter of search keeps the documents that name the entity in any entity field, incoreor in the fields of their type, each item of a list field included, where it readissuerandrecipientonly.GET /documents(listDocumentsof the SDK) takes the sameentityfilter, by the id of the entity. The document list of the web UI has an entity filter, picked by a name or an alias, which applies to the list and to its search. -
3e9b8c4: The
reviewpart of a document (GET /documents/:id?include=review,get_documentwithinclude: ["review"]) names the values the last extraction dropped:rejectionslists them bysection(core,fields,extra,facts,subjects,notice_period),name,reason(malformed,quote_not_found,quote_not_stating_value,invalid_value,invalid_key,duplicate_of_field,over_limit,unresolved_entity,sensitive_identifier,identifier_not_in_text) andcount, never the value or its quote. A document extracted before this change has only itsrejected_valuescount, and an emptyrejections.The extraction prompt says what each core field holds:
core.amountis only an amount due, invoiced or paid, never a share capital, a payroll or a coverage limit, and a field for a place of issuance, a registry or an authority is not filled with the address of a registered office, an establishment or the recipient. A value the model puts inextraunder the name of an empty field of the type is now read as that field, where it was dropped. -
16fa6f7: A graph of the archive.
GET /graph(graphof the SDK) answers the most recent documents with their types and parents, the subjects they are about and the entities they name, and the links found between documents, private documents only when asked. The web UI draws it on a Graph page: pan and zoom, hide a kind of node, and select a node to see what it is joined to and open its document or type. -
69d6c97: A consolidation run can be asked for by hand:
POST /consolidation/runs(requestConsolidationRunin the SDK) queues one at once, unless a run due at once already waits, and the Changes screen of the web UI has a "Run consolidation" button. -
3e9b8c4: Classification no longer files a document under an unrelated type. The model reuses a candidate only when it truly describes the document, and proposes a new type otherwise. A new type that cannot be created (daily quota reached, private document with an external embedder, proposal refused twice) leaves the document without a type, in
needs_review, instead of giving it the closest candidate with a confidence of 0: the type provenance and thereviewpart say why inrefusal(quota_exceeded,private_document,invalid_proposal,rejected_type), and theclassificationevent intype_refusal. The outcomefallbackis no longer assigned; documents classified before keep it.reclassify_document(POST /documents/:id/reclassify) whose new type cannot be created changes nothing: the document keeps its type, values and status, and a failedclassificationevent carries the reason as itserror_code. Withnew_type, a slug that names another existing type is refused instead of taken.The description of the MCP tool
create_typesays it is the way to file such a document: it is outside the daily quota of classification, andupdate_documentthen sets the type. The web UI says why a document has no type. -
c95f7a1: The first account is created from the web UI. While no account exists, each start prints a one-time setup token to stderr with the onboarding URL (
PUBLIC_URL/ui/).GET /api/setupsays whether setup is needed,POST /api/setup/checktries settings with the token, andPOST /api/setupcreates the account and saves the settings together, applied at once (getSetupStatus,checkSetupandcompleteSetupof the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.Breaking:
AUTH_BOOTSTRAP_EMAILandAUTH_BOOTSTRAP_PASSWORDare no longer read: the server refuses to start while one is set, and names it. Remove them from.env(and from a Coolify application); an existing account is kept, and a new database is set up with the printed token. -
6910894: The type of a settled document can be decided again when the one it got is wrong:
POST /documents/:id/reclassifyanswers 202 with the document, the MCP toolreclassify_documentdoes the same, and the SDK hasreclassifyDocument. The request may carry ahint(cut to the length of an upload hint) andnew_type, which asks for a new type only. Areclassify_documentjob asks the model again without the rejected type, tells it that a person said that type is wrong and what they added, then changes the type as a manual correction does, with the provenance of the model, and queues the re-extraction that settles the document. A document that is notindexedorneeds_review, or has a processing, re-extraction or reclassification pending, is refused (document_not_settled); an unknown or deleted one is not found. The hint waits on the document (documents.reclassification_hint, blanked by a deletion), never in the job.@liasse/contractnow holds the definitions of the core fields (CORE_FIELDS,CORE_FIELD_NAMES,KEY_DATES_FIELDin/registry, no longer exported by@liasse/core/registry) andSETTLED_STATUSES(in/domain), and the edit tab of the web UI edits every core field with the editor of its definition, filled or not, and chooses the type of a document by hand, as a correction. -
3e9b8c4: The values of a settled document can be extracted again for the type it has, without changing or deciding its type again:
POST /documents/:id/reextractanswers 202 with the document, the MCP toolreextract_documentanswers its id and status, and the SDK hasreextractDocument. The request queues thereextract_documentjob under the row lock of the document, with the refusals of a reclassification (document_not_settledfor a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept.retry_documentis unchanged and still refuses any document that did not fail.Where processing stands is visible while a document is still
receivedwith no event in its log:get_statusnow also answersanalysis_pending,updated_atandjob, the processing job queued or running for the document (kind,state,attempts,max_attempts,queued_at,run_after, and for a queued onewaiting_for,workerwithjobs_aheadordelay).GET /documents/:id/statusand the SDK'sgetDocumentStatusanswer the same, from the use casegetDocumentStatusof@liasse/core/api;@liasse/contracthasdocumentStatusSchema,DOCUMENT_STATUS_EVENTS,UNFINISHED_JOB_STATUSESandJOB_WAITS.The description of the MCP tool
list_documentssays that withstatus: needs_reviewit is the review queue of documents. The descriptions oflist_pending_changesandapply_changenow say they are about the type registry and point to it, those ofretry_document,reclassify_documentandreextract_documentsay which one to use when, and that ofingestasks forprivate: trueon sensitive documents and explains thereceivedinterval. -
6ba9355:
GET /documents/:idandget_documentansweranalysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status staysindexedorneeds_review.The web UI asks for the type to be analysed again from the review of a
needs_reviewdocument, as a third choice for its type next to Accept and Change, with an optional hint; the model creates a new type when none fits, without a checkbox. The document page follows a pending analysis fromanalysis_pending, so a reload or leaving the page no longer loses it, and says how it ended: with the new type, failed with its code, or left alone because the document changed first. -
2f21931: The settings live in the database and apply without a restart. The language models and their key, the embedder, the pipeline and Hindsight are one document saved with
PUT /settings, read withGET /settingsand tried without saving withPOST /settings/check(getSettings,saveSettingsandcheckSettingsof the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived fromAUTH_SECRETand never answered; after a change ofAUTH_SECRETthey are reportedunreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save throughLISTEN. A save applies at once: jobs in progress finish with the models they started with. The embedder can no longer change once a document exists.Breaking:
LLM_PROVIDER,LLM_API_KEY,LLM_BASE_URL,LLM_TIMEOUT,TEXT_MODEL,VISION_MODEL,EMBEDDING_PROVIDER,EMBEDDING_MODEL,EMBEDDING_API_KEY,EMBEDDING_BASE_URL,EMBEDDING_TIMEOUT,EMBEDDING_MAX_INPUT_TOKENS,MAX_FILE_SIZE,AUTO_APPLY,CONFIDENCE_THRESHOLD,MAX_NEW_TYPES_PER_DAY,SCHEMA_LANGUAGE,MAX_VISION_PAGES,ENTITY_ATTACH_SIMILARITY,ENTITY_ARBITRATION_SIMILARITY,HINDSIGHT_URL,HINDSIGHT_BANKandHINDSIGHT_API_KEYare no longer read: the server refuses to start while one is set, and names it. Remove them from.envand save their values as settings (docs/deployment.md, Upgrading from environment variables). Until they are saved, the server serves the web UI, runs no worker and answers503 not_configuredon the routes of the API.pnpm eval:runandpnpm eval:calibratetake their models from a JSON file of settings,--settings <file>. -
8bb948c: The models of a provider can be listed from the settings.
POST /settings/models(listSettingsModelsof the SDK) takes the endpoint of the language models or of a remote embedder as the form holds it, with the stored key when the key is kept, and answers the ids the provider lists, or why it listed none.On the settings page, each model field has a button that opens this list, searchable, next to the input, which still takes any id typed by hand.
-
0212ac4: A type can be drafted by the text model.
POST /types/suggestion(suggestTypeof the SDK) takes a sentence on the documents the type is for and answers with a slug, a description, a parent and fields, without creating anything.The "Create a type" dialog of the web UI has two tabs: "Describe it", where the text model drafts the type from a sentence, and "Define it", the form, which the draft fills for review before the type is created.
Patch Changes
- 3f5ac25:
upcomingtakesinclude_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and onGET /upcomingalike. An agent that passed it before got a validation error.
@liasse/core 0.2.0
Minor Changes
-
57b9e49: A document in
needs_reviewsays what to review.GET /documents/:id?include=reviewandget_documentreturn areviewpart: the current threshold, the reasons the document is flagged (low_confidence,type_pending_extraction,type_fallback,type_untyped,reextraction_failed,flagged_at_settlement,rejected_values), and how sure the pipeline is of its type and of each core value and field, with the page and quote it was read from.A correction (
PATCH /documents/:id,update_document) takesconfirm, the core values or fields that are right as they are, each with the value it was read with: a confirmation never rewrites the value, makes it manual and clearsneeds_reviewlike a correction. A value that changed since it was read refuses the correction withvalue_changed.The web UI shows a flagged document with a "To review" card: the reasons in sentences, the type to accept or change, and each doubtful value to accept, reject or edit, sent as one correction; a change of type leaves the fields to the extraction for the new type.
-
7db033b: The state of consolidation runs can be followed:
GET /consolidation/runs(listConsolidationRunsin the SDK) lists the latest runs with their status, attempts and the error of a failed attempt. The Changes screen of the web UI shows where the latest run stands, follows it until it ends, says when it finished or failed, and reads the changes again.CONSOLIDATION_TRIGGERSandConsolidationTriggernow come from@liasse/contract/domain, no longer from@liasse/core/consolidation. -
3e9b8c4: A correction (
PATCH /documents/:id,update_document) can set or clearcore.key_dates, where it answeredunsupported_field. The list given replaces the key dates of the document in its core and in whatupcominganswers, in one transaction, and a later extraction keeps it. Each date is akind, adateand alabelof at most 200 characters, each kind once per date and at most 50 dates. The notice deadline of a renewal date is still computed from the notice period the document states: anotice_deadlinegiven next to a renewal date of such a document is refused (invalid_value).upcomingno longer flags ascomputeda date a person gave.key_datesstill cannot be confirmed; the refusal now says to give the dates incore.key_datesinstead.The notice period an extraction reads is now stored with the document (migration
0020): a document extracted before this version gets no notice deadline for the key dates a person gives until it is extracted again. -
12f6a23: The
entityfilter of search keeps the documents that name the entity in any entity field, incoreor in the fields of their type, each item of a list field included, where it readissuerandrecipientonly.GET /documents(listDocumentsof the SDK) takes the sameentityfilter, by the id of the entity. The document list of the web UI has an entity filter, picked by a name or an alias, which applies to the list and to its search. -
3e9b8c4: The
reviewpart of a document (GET /documents/:id?include=review,get_documentwithinclude: ["review"]) names the values the last extraction dropped:rejectionslists them bysection(core,fields,extra,facts,subjects,notice_period),name,reason(malformed,quote_not_found,quote_not_stating_value,invalid_value,invalid_key,duplicate_of_field,over_limit,unresolved_entity,sensitive_identifier,identifier_not_in_text) andcount, never the value or its quote. A document extracted before this change has only itsrejected_valuescount, and an emptyrejections.The extraction prompt says what each core field holds:
core.amountis only an amount due, invoiced or paid, never a share capital, a payroll or a coverage limit, and a field for a place of issuance, a registry or an authority is not filled with the address of a registered office, an establishment or the recipient. A value the model puts inextraunder the name of an empty field of the type is now read as that field, where it was dropped. -
16fa6f7: A graph of the archive.
GET /graph(graphof the SDK) answers the most recent documents with their types and parents, the subjects they are about and the entities they name, and the links found between documents, private documents only when asked. The web UI draws it on a Graph page: pan and zoom, hide a kind of node, and select a node to see what it is joined to and open its document or type. -
69d6c97: A consolidation run can be asked for by hand:
POST /consolidation/runs(requestConsolidationRunin the SDK) queues one at once, unless a run due at once already waits, and the Changes screen of the web UI has a "Run consolidation" button. -
3e9b8c4: Classification no longer files a document under an unrelated type. The model reuses a candidate only when it truly describes the document, and proposes a new type otherwise. A new type that cannot be created (daily quota reached, private document with an external embedder, proposal refused twice) leaves the document without a type, in
needs_review, instead of giving it the closest candidate with a confidence of 0: the type provenance and thereviewpart say why inrefusal(quota_exceeded,private_document,invalid_proposal,rejected_type), and theclassificationevent intype_refusal. The outcomefallbackis no longer assigned; documents classified before keep it.reclassify_document(POST /documents/:id/reclassify) whose new type cannot be created changes nothing: the document keeps its type, values and status, and a failedclassificationevent carries the reason as itserror_code. Withnew_type, a slug that names another existing type is refused instead of taken.The description of the MCP tool
create_typesays it is the way to file such a document: it is outside the daily quota of classification, andupdate_documentthen sets the type. The web UI says why a document has no type. -
8b07058: Require Node 22.12 or later on the 22 line, 24.22.3 or later on the 24 line, or 26.5.1 or later. Earlier Node 24, 25 and 26 releases bundle an undici whose
fetchcan throw an uncaughtEINVALfromsetTypeOfServiceon macOS when a new connection is reset, which ends the process (nodejs/undici#5547). The server now refuses to start on such a Node, with a message that names the supported versions.@liasse/contractand@liasse/sdkkeep Node 22.12 or later. -
c95f7a1: The first account is created from the web UI. While no account exists, each start prints a one-time setup token to stderr with the onboarding URL (
PUBLIC_URL/ui/).GET /api/setupsays whether setup is needed,POST /api/setup/checktries settings with the token, andPOST /api/setupcreates the account and saves the settings together, applied at once (getSetupStatus,checkSetupandcompleteSetupof the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.Breaking:
AUTH_BOOTSTRAP_EMAILandAUTH_BOOTSTRAP_PASSWORDare no longer read: the server refuses to start while one is set, and names it. Remove them from.env(and from a Coolify application); an existing account is kept, and a new database is set up with the printed token. -
6910894: The type of a settled document can be decided again when the one it got is wrong:
POST /documents/:id/reclassifyanswers 202 with the document, the MCP toolreclassify_documentdoes the same, and the SDK hasreclassifyDocument. The request may carry ahint(cut to the length of an upload hint) andnew_type, which asks for a new type only. Areclassify_documentjob asks the model again without the rejected type, tells it that a person said that type is wrong and what they added, then changes the type as a manual correction does, with the provenance of the model, and queues the re-extraction that settles the document. A document that is notindexedorneeds_review, or has a processing, re-extraction or reclassification pending, is refused (document_not_settled); an unknown or deleted one is not found. The hint waits on the document (documents.reclassification_hint, blanked by a deletion), never in the job.@liasse/contractnow holds the definitions of the core fields (CORE_FIELDS,CORE_FIELD_NAMES,KEY_DATES_FIELDin/registry, no longer exported by@liasse/core/registry) andSETTLED_STATUSES(in/domain), and the edit tab of the web UI edits every core field with the editor of its definition, filled or not, and chooses the type of a document by hand, as a correction. -
3e9b8c4: The values of a settled document can be extracted again for the type it has, without changing or deciding its type again:
POST /documents/:id/reextractanswers 202 with the document, the MCP toolreextract_documentanswers its id and status, and the SDK hasreextractDocument. The request queues thereextract_documentjob under the row lock of the document, with the refusals of a reclassification (document_not_settledfor a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept.retry_documentis unchanged and still refuses any document that did not fail.Where processing stands is visible while a document is still
receivedwith no event in its log:get_statusnow also answersanalysis_pending,updated_atandjob, the processing job queued or running for the document (kind,state,attempts,max_attempts,queued_at,run_after, and for a queued onewaiting_for,workerwithjobs_aheadordelay).GET /documents/:id/statusand the SDK'sgetDocumentStatusanswer the same, from the use casegetDocumentStatusof@liasse/core/api;@liasse/contracthasdocumentStatusSchema,DOCUMENT_STATUS_EVENTS,UNFINISHED_JOB_STATUSESandJOB_WAITS.The description of the MCP tool
list_documentssays that withstatus: needs_reviewit is the review queue of documents. The descriptions oflist_pending_changesandapply_changenow say they are about the type registry and point to it, those ofretry_document,reclassify_documentandreextract_documentsay which one to use when, and that ofingestasks forprivate: trueon sensitive documents and explains thereceivedinterval. -
6ba9355:
GET /documents/:idandget_documentansweranalysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status staysindexedorneeds_review.The web UI asks for the type to be analysed again from the review of a
needs_reviewdocument, as a third choice for its type next to Accept and Change, with an optional hint; the model creates a new type when none fits, without a checkbox. The document page follows a pending analysis fromanalysis_pending, so a reload or leaving the page no longer loses it, and says how it ended: with the new type, failed with its code, or left alone because the document changed first. -
2f21931: The settings live in the database and apply without a restart. The language models and their key, the embedder, the pipeline and Hindsight are one document saved with
PUT /settings, read withGET /settingsand tried without saving withPOST /settings/check(getSettings,saveSettingsandcheckSettingsof the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived fromAUTH_SECRETand never answered; after a change ofAUTH_SECRETthey are reportedunreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save throughLISTEN. A save applies at once: jobs in progress finish with the models they started with. The embedder can no longer change once a document exists.Breaking:
LLM_PROVIDER,LLM_API_KEY,LLM_BASE_URL,LLM_TIMEOUT,TEXT_MODEL,VISION_MODEL,EMBEDDING_PROVIDER,EMBEDDING_MODEL,EMBEDDING_API_KEY,EMBEDDING_BASE_URL,EMBEDDING_TIMEOUT,EMBEDDING_MAX_INPUT_TOKENS,MAX_FILE_SIZE,AUTO_APPLY,CONFIDENCE_THRESHOLD,MAX_NEW_TYPES_PER_DAY,SCHEMA_LANGUAGE,MAX_VISION_PAGES,ENTITY_ATTACH_SIMILARITY,ENTITY_ARBITRATION_SIMILARITY,HINDSIGHT_URL,HINDSIGHT_BANKandHINDSIGHT_API_KEYare no longer read: the server refuses to start while one is set, and names it. Remove them from.envand save their values as settings (docs/deployment.md, Upgrading from environment variables). Until they are saved, the server serves the web UI, runs no worker and answers503 not_configuredon the routes of the API.pnpm eval:runandpnpm eval:calibratetake their models from a JSON file of settings,--settings <file>. -
8bb948c: The models of a provider can be listed from the settings.
POST /settings/models(listSettingsModelsof the SDK) takes the endpoint of the language models or of a remote embedder as the form holds it, with the stored key when the key is kept, and answers the ids the provider lists, or why it listed none.On the settings page, each model field has a button that opens this list, searchable, next to the input, which still takes any id typed by hand.
-
0212ac4: A type can be drafted by the text model.
POST /types/suggestion(suggestTypeof the SDK) takes a sentence on the documents the type is for and answers with a slug, a description, a parent and fields, without creating anything.The "Create a type" dialog of the web UI has two tabs: "Describe it", where the text model drafts the type from a sentence, and "Define it", the form, which the draft fills for review before the type is created.
Patch Changes
- b14baf7: A rejected item of a core list such as
key_datesnow weighs at 0 in the mean of its list, which counts as one field, instead of counting as a field at 0 of its own. A document whose model returned many key dates without a verifiable quote was flaggedneeds_reviewwith a confidence far below the one of its type and of its kept values. A core value corrected by hand counts once, at 1, even when the model's new reading of it was rejected; a core field a person cleared weighs nothing. Documents already settled keep their confidence until they are extracted again. - 8282534: The check of the settings shows the vision model a blank JPEG page of 32 by 32 pixels made by a real encoder. The PNG pixel it sent was malformed: its pixel data was short and its chunks misaligned. OpenAI answered that call with HTTP 400
invalid_value, most likely because of that image, and the vision model of an otherwise working configuration was reported as failed. - Updated dependencies [57b9e49]
- Updated dependencies [7db033b]
- Updated dependencies [12f6a23]
- Updated dependencies [3e9b8c4]
- Updated dependencies [16fa6f7]
- Updated dependencies [69d6c97]
- Updated dependencies [3e9b8c4]
- Updated dependencies [c95f7a1]
- Updated dependencies [6910894]
- Updated dependencies [3e9b8c4]
- Updated dependencies [6ba9355]
- Updated dependencies [2f21931]
- Updated dependencies [8bb948c]
- Updated dependencies [0212ac4]
- Updated dependencies [3f5ac25]
- @liasse/contract@0.2.0
@liasse/mcp 0.2.0
Minor Changes
-
57b9e49: A document in
needs_reviewsays what to review.GET /documents/:id?include=reviewandget_documentreturn areviewpart: the current threshold, the reasons the document is flagged (low_confidence,type_pending_extraction,type_fallback,type_untyped,reextraction_failed,flagged_at_settlement,rejected_values), and how sure the pipeline is of its type and of each core value and field, with the page and quote it was read from.A correction (
PATCH /documents/:id,update_document) takesconfirm, the core values or fields that are right as they are, each with the value it was read with: a confirmation never rewrites the value, makes it manual and clearsneeds_reviewlike a correction. A value that changed since it was read refuses the correction withvalue_changed.The web UI shows a flagged document with a "To review" card: the reasons in sentences, the type to accept or change, and each doubtful value to accept, reject or edit, sent as one correction; a change of type leaves the fields to the extraction for the new type.
-
3e9b8c4: A correction (
PATCH /documents/:id,update_document) can set or clearcore.key_dates, where it answeredunsupported_field. The list given replaces the key dates of the document in its core and in whatupcominganswers, in one transaction, and a later extraction keeps it. Each date is akind, adateand alabelof at most 200 characters, each kind once per date and at most 50 dates. The notice deadline of a renewal date is still computed from the notice period the document states: anotice_deadlinegiven next to a renewal date of such a document is refused (invalid_value).upcomingno longer flags ascomputeda date a person gave.key_datesstill cannot be confirmed; the refusal now says to give the dates incore.key_datesinstead.The notice period an extraction reads is now stored with the document (migration
0020): a document extracted before this version gets no notice deadline for the key dates a person gives until it is extracted again. -
3e9b8c4: The
reviewpart of a document (GET /documents/:id?include=review,get_documentwithinclude: ["review"]) names the values the last extraction dropped:rejectionslists them bysection(core,fields,extra,facts,subjects,notice_period),name,reason(malformed,quote_not_found,quote_not_stating_value,invalid_value,invalid_key,duplicate_of_field,over_limit,unresolved_entity,sensitive_identifier,identifier_not_in_text) andcount, never the value or its quote. A document extracted before this change has only itsrejected_valuescount, and an emptyrejections.The extraction prompt says what each core field holds:
core.amountis only an amount due, invoiced or paid, never a share capital, a payroll or a coverage limit, and a field for a place of issuance, a registry or an authority is not filled with the address of a registered office, an establishment or the recipient. A value the model puts inextraunder the name of an empty field of the type is now read as that field, where it was dropped. -
c5747d8: MCP gains the surface REST had alone. Agents manage types:
create_typecreates a provisional type by hand,suggest_typedrafts one with the text model,request_consolidation_runasks for a consolidation run andlist_consolidation_runsfollows the latest ones. They also list documents (list_documents, with the filters ofGET /documents, theneeds_reviewqueue included), read the whole processing log of a document (list_document_events), delete a document (delete_document) and list subjects (list_subjects). Each tool calls the use case of its REST route and answers the same thing. -
3e9b8c4: Classification no longer files a document under an unrelated type. The model reuses a candidate only when it truly describes the document, and proposes a new type otherwise. A new type that cannot be created (daily quota reached, private document with an external embedder, proposal refused twice) leaves the document without a type, in
needs_review, instead of giving it the closest candidate with a confidence of 0: the type provenance and thereviewpart say why inrefusal(quota_exceeded,private_document,invalid_proposal,rejected_type), and theclassificationevent intype_refusal. The outcomefallbackis no longer assigned; documents classified before keep it.reclassify_document(POST /documents/:id/reclassify) whose new type cannot be created changes nothing: the document keeps its type, values and status, and a failedclassificationevent carries the reason as itserror_code. Withnew_type, a slug that names another existing type is refused instead of taken.The description of the MCP tool
create_typesays it is the way to file such a document: it is outside the daily quota of classification, andupdate_documentthen sets the type. The web UI says why a document has no type. -
8b07058: Require Node 22.12 or later on the 22 line, 24.22.3 or later on the 24 line, or 26.5.1 or later. Earlier Node 24, 25 and 26 releases bundle an undici whose
fetchcan throw an uncaughtEINVALfromsetTypeOfServiceon macOS when a new connection is reset, which ends the process (nodejs/undici#5547). The server now refuses to start on such a Node, with a message that names the supported versions.@liasse/contractand@liasse/sdkkeep Node 22.12 or later. -
6910894: The type of a settled document can be decided again when the one it got is wrong:
POST /documents/:id/reclassifyanswers 202 with the document, the MCP toolreclassify_documentdoes the same, and the SDK hasreclassifyDocument. The request may carry ahint(cut to the length of an upload hint) andnew_type, which asks for a new type only. Areclassify_documentjob asks the model again without the rejected type, tells it that a person said that type is wrong and what they added, then changes the type as a manual correction does, with the provenance of the model, and queues the re-extraction that settles the document. A document that is notindexedorneeds_review, or has a processing, re-extraction or reclassification pending, is refused (document_not_settled); an unknown or deleted one is not found. The hint waits on the document (documents.reclassification_hint, blanked by a deletion), never in the job.@liasse/contractnow holds the definitions of the core fields (CORE_FIELDS,CORE_FIELD_NAMES,KEY_DATES_FIELDin/registry, no longer exported by@liasse/core/registry) andSETTLED_STATUSES(in/domain), and the edit tab of the web UI edits every core field with the editor of its definition, filled or not, and chooses the type of a document by hand, as a correction. -
3e9b8c4: The values of a settled document can be extracted again for the type it has, without changing or deciding its type again:
POST /documents/:id/reextractanswers 202 with the document, the MCP toolreextract_documentanswers its id and status, and the SDK hasreextractDocument. The request queues thereextract_documentjob under the row lock of the document, with the refusals of a reclassification (document_not_settledfor a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept.retry_documentis unchanged and still refuses any document that did not fail.Where processing stands is visible while a document is still
receivedwith no event in its log:get_statusnow also answersanalysis_pending,updated_atandjob, the processing job queued or running for the document (kind,state,attempts,max_attempts,queued_at,run_after, and for a queued onewaiting_for,workerwithjobs_aheadordelay).GET /documents/:id/statusand the SDK'sgetDocumentStatusanswer the same, from the use casegetDocumentStatusof@liasse/core/api;@liasse/contracthasdocumentStatusSchema,DOCUMENT_STATUS_EVENTS,UNFINISHED_JOB_STATUSESandJOB_WAITS.The description of the MCP tool
list_documentssays that withstatus: needs_reviewit is the review queue of documents. The descriptions oflist_pending_changesandapply_changenow say they are about the type registry and point to it, those ofretry_document,reclassify_documentandreextract_documentsay which one to use when, and that ofingestasks forprivate: trueon sensitive documents and explains thereceivedinterval. -
6ba9355:
GET /documents/:idandget_documentansweranalysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status staysindexedorneeds_review.The web UI asks for the type to be analysed again from the review of a
needs_reviewdocument, as a third choice for its type next to Accept and Change, with an optional hint; the model creates a new type when none fits, without a checkbox. The document page follows a pending analysis fromanalysis_pending, so a reload or leaving the page no longer loses it, and says how it ended: with the new type, failed with its code, or left alone because the document changed first. -
2f21931: The settings live in the database and apply without a restart. The language models and their key, the embedder, the pipeline and Hindsight are one document saved with
PUT /settings, read withGET /settingsand tried without saving withPOST /settings/check(getSettings,saveSettingsandcheckSettingsof the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived fromAUTH_SECRETand never answered; after a change ofAUTH_SECRETthey are reportedunreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save throughLISTEN. A save applies at once: jobs in progress finish with the models they started with. The embedder can no longer change once a document exists.Breaking:
LLM_PROVIDER,LLM_API_KEY,LLM_BASE_URL,LLM_TIMEOUT,TEXT_MODEL,VISION_MODEL,EMBEDDING_PROVIDER,EMBEDDING_MODEL,EMBEDDING_API_KEY,EMBEDDING_BASE_URL,EMBEDDING_TIMEOUT,EMBEDDING_MAX_INPUT_TOKENS,MAX_FILE_SIZE,AUTO_APPLY,CONFIDENCE_THRESHOLD,MAX_NEW_TYPES_PER_DAY,SCHEMA_LANGUAGE,MAX_VISION_PAGES,ENTITY_ATTACH_SIMILARITY,ENTITY_ARBITRATION_SIMILARITY,HINDSIGHT_URL,HINDSIGHT_BANKandHINDSIGHT_API_KEYare no longer read: the server refuses to start while one is set, and names it. Remove them from.envand save their values as settings (docs/deployment.md, Upgrading from environment variables). Until they are saved, the server serves the web UI, runs no worker and answers503 not_configuredon the routes of the API.pnpm eval:runandpnpm eval:calibratetake their models from a JSON file of settings,--settings <file>.
Patch Changes
- 3f5ac25: The description of
list_pending_changesno longer promises splits and renames of types: consolidation proposes neither. - 3f5ac25:
upcomingtakesinclude_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and onGET /upcomingalike. An agent that passed it before got a validation error. - Updated dependencies [57b9e49]
- Updated dependencies [7db033b]
- Updated dependencies [3e9b8c4]
- Updated dependencies [12f6a23]
- Updated dependencies [3e9b8c4]
- Updated dependencies [16fa6f7]
- Updated dependencies [69d6c97]
- Updated dependencies [3e9b8c4]
- Updated dependencies [8b07058]
- Updated dependencies [c95f7a1]
- Updated dependencies [6910894]
- Updated dependencies [3e9b8c4]
- Updated dependencies [b14baf7]
- Updated dependencies [6ba9355]
- Updated dependencies [8282534]
- Updated dependencies [2f21931]
- Updated dependencies [8bb948c]
- Updated dependencies [0212ac4]
- Updated dependencies [3f5ac25]
- @liasse/contract@0.2.0
- @liasse/core@0.2.0
@liasse/sdk 0.2.0
Minor Changes
-
57b9e49: A document in
needs_reviewsays what to review.GET /documents/:id?include=reviewandget_documentreturn areviewpart: the current threshold, the reasons the document is flagged (low_confidence,type_pending_extraction,type_fallback,type_untyped,reextraction_failed,flagged_at_settlement,rejected_values), and how sure the pipeline is of its type and of each core value and field, with the page and quote it was read from.A correction (
PATCH /documents/:id,update_document) takesconfirm, the core values or fields that are right as they are, each with the value it was read with: a confirmation never rewrites the value, makes it manual and clearsneeds_reviewlike a correction. A value that changed since it was read refuses the correction withvalue_changed.The web UI shows a flagged document with a "To review" card: the reasons in sentences, the type to accept or change, and each doubtful value to accept, reject or edit, sent as one correction; a change of type leaves the fields to the extraction for the new type.
-
7db033b: The state of consolidation runs can be followed:
GET /consolidation/runs(listConsolidationRunsin the SDK) lists the latest runs with their status, attempts and the error of a failed attempt. The Changes screen of the web UI shows where the latest run stands, follows it until it ends, says when it finished or failed, and reads the changes again.CONSOLIDATION_TRIGGERSandConsolidationTriggernow come from@liasse/contract/domain, no longer from@liasse/core/consolidation. -
12f6a23: The
entityfilter of search keeps the documents that name the entity in any entity field, incoreor in the fields of their type, each item of a list field included, where it readissuerandrecipientonly.GET /documents(listDocumentsof the SDK) takes the sameentityfilter, by the id of the entity. The document list of the web UI has an entity filter, picked by a name or an alias, which applies to the list and to its search. -
3e9b8c4: The
reviewpart of a document (GET /documents/:id?include=review,get_documentwithinclude: ["review"]) names the values the last extraction dropped:rejectionslists them bysection(core,fields,extra,facts,subjects,notice_period),name,reason(malformed,quote_not_found,quote_not_stating_value,invalid_value,invalid_key,duplicate_of_field,over_limit,unresolved_entity,sensitive_identifier,identifier_not_in_text) andcount, never the value or its quote. A document extracted before this change has only itsrejected_valuescount, and an emptyrejections.The extraction prompt says what each core field holds:
core.amountis only an amount due, invoiced or paid, never a share capital, a payroll or a coverage limit, and a field for a place of issuance, a registry or an authority is not filled with the address of a registered office, an establishment or the recipient. A value the model puts inextraunder the name of an empty field of the type is now read as that field, where it was dropped. -
16fa6f7: A graph of the archive.
GET /graph(graphof the SDK) answers the most recent documents with their types and parents, the subjects they are about and the entities they name, and the links found between documents, private documents only when asked. The web UI draws it on a Graph page: pan and zoom, hide a kind of node, and select a node to see what it is joined to and open its document or type. -
69d6c97: A consolidation run can be asked for by hand:
POST /consolidation/runs(requestConsolidationRunin the SDK) queues one at once, unless a run due at once already waits, and the Changes screen of the web UI has a "Run consolidation" button. -
3e9b8c4: Classification no longer files a document under an unrelated type. The model reuses a candidate only when it truly describes the document, and proposes a new type otherwise. A new type that cannot be created (daily quota reached, private document with an external embedder, proposal refused twice) leaves the document without a type, in
needs_review, instead of giving it the closest candidate with a confidence of 0: the type provenance and thereviewpart say why inrefusal(quota_exceeded,private_document,invalid_proposal,rejected_type), and theclassificationevent intype_refusal. The outcomefallbackis no longer assigned; documents classified before keep it.reclassify_document(POST /documents/:id/reclassify) whose new type cannot be created changes nothing: the document keeps its type, values and status, and a failedclassificationevent carries the reason as itserror_code. Withnew_type, a slug that names another existing type is refused instead of taken.The description of the MCP tool
create_typesays it is the way to file such a document: it is outside the daily quota of classification, andupdate_documentthen sets the type. The web UI says why a document has no type. -
c95f7a1: The first account is created from the web UI. While no account exists, each start prints a one-time setup token to stderr with the onboarding URL (
PUBLIC_URL/ui/).GET /api/setupsays whether setup is needed,POST /api/setup/checktries settings with the token, andPOST /api/setupcreates the account and saves the settings together, applied at once (getSetupStatus,checkSetupandcompleteSetupof the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.Breaking:
AUTH_BOOTSTRAP_EMAILandAUTH_BOOTSTRAP_PASSWORDare no longer read: the server refuses to start while one is set, and names it. Remove them from.env(and from a Coolify application); an existing account is kept, and a new database is set up with the printed token. -
6910894: The type of a settled document can be decided again when the one it got is wrong:
POST /documents/:id/reclassifyanswers 202 with the document, the MCP toolreclassify_documentdoes the same, and the SDK hasreclassifyDocument. The request may carry ahint(cut to the length of an upload hint) andnew_type, which asks for a new type only. Areclassify_documentjob asks the model again without the rejected type, tells it that a person said that type is wrong and what they added, then changes the type as a manual correction does, with the provenance of the model, and queues the re-extraction that settles the document. A document that is notindexedorneeds_review, or has a processing, re-extraction or reclassification pending, is refused (document_not_settled); an unknown or deleted one is not found. The hint waits on the document (documents.reclassification_hint, blanked by a deletion), never in the job.@liasse/contractnow holds the definitions of the core fields (CORE_FIELDS,CORE_FIELD_NAMES,KEY_DATES_FIELDin/registry, no longer exported by@liasse/core/registry) andSETTLED_STATUSES(in/domain), and the edit tab of the web UI edits every core field with the editor of its definition, filled or not, and chooses the type of a document by hand, as a correction. -
3e9b8c4: The values of a settled document can be extracted again for the type it has, without changing or deciding its type again:
POST /documents/:id/reextractanswers 202 with the document, the MCP toolreextract_documentanswers its id and status, and the SDK hasreextractDocument. The request queues thereextract_documentjob under the row lock of the document, with the refusals of a reclassification (document_not_settledfor a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept.retry_documentis unchanged and still refuses any document that did not fail.Where processing stands is visible while a document is still
receivedwith no event in its log:get_statusnow also answersanalysis_pending,updated_atandjob, the processing job queued or running for the document (kind,state,attempts,max_attempts,queued_at,run_after, and for a queued onewaiting_for,workerwithjobs_aheadordelay).GET /documents/:id/statusand the SDK'sgetDocumentStatusanswer the same, from the use casegetDocumentStatusof@liasse/core/api;@liasse/contracthasdocumentStatusSchema,DOCUMENT_STATUS_EVENTS,UNFINISHED_JOB_STATUSESandJOB_WAITS.The description of the MCP tool
list_documentssays that withstatus: needs_reviewit is the review queue of documents. The descriptions oflist_pending_changesandapply_changenow say they are about the type registry and point to it, those ofretry_document,reclassify_documentandreextract_documentsay which one to use when, and that ofingestasks forprivate: trueon sensitive documents and explains thereceivedinterval. -
6ba9355:
GET /documents/:idandget_documentansweranalysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status staysindexedorneeds_review.The web UI asks for the type to be analysed again from the review of a
needs_reviewdocument, as a third choice for its type next to Accept and Change, with an optional hint; the model creates a new type when none fits, without a checkbox. The document page follows a pending analysis fromanalysis_pending, so a reload or leaving the page no longer loses it, and says how it ended: with the new type, failed with its code, or left alone because the document changed first. -
2f21931: The settings live in the database and apply without a restart. The language models and their key, the embedder, the pipeline and Hindsight are one document saved with
PUT /settings, read withGET /settingsand tried without saving withPOST /settings/check(getSettings,saveSettingsandcheckSettingsof the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived fromAUTH_SECRETand never answered; after a change ofAUTH_SECRETthey are reportedunreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save throughLISTEN. A save applies at once: jobs in progress finish with the models they started with. The embedder can no longer change once a document exists.Breaking:
LLM_PROVIDER,LLM_API_KEY,LLM_BASE_URL,LLM_TIMEOUT,TEXT_MODEL,VISION_MODEL,EMBEDDING_PROVIDER,EMBEDDING_MODEL,EMBEDDING_API_KEY,EMBEDDING_BASE_URL,EMBEDDING_TIMEOUT,EMBEDDING_MAX_INPUT_TOKENS,MAX_FILE_SIZE,AUTO_APPLY,CONFIDENCE_THRESHOLD,MAX_NEW_TYPES_PER_DAY,SCHEMA_LANGUAGE,MAX_VISION_PAGES,ENTITY_ATTACH_SIMILARITY,ENTITY_ARBITRATION_SIMILARITY,HINDSIGHT_URL,HINDSIGHT_BANKandHINDSIGHT_API_KEYare no longer read: the server refuses to start while one is set, and names it. Remove them from.envand save their values as settings (docs/deployment.md, Upgrading from environment variables). Until they are saved, the server serves the web UI, runs no worker and answers503 not_configuredon the routes of the API.pnpm eval:runandpnpm eval:calibratetake their models from a JSON file of settings,--settings <file>. -
8bb948c: The models of a provider can be listed from the settings.
POST /settings/models(listSettingsModelsof the SDK) takes the endpoint of the language models or of a remote embedder as the form holds it, with the stored key when the key is kept, and answers the ids the provider lists, or why it listed none.On the settings page, each model field has a button that opens this list, searchable, next to the input, which still takes any id typed by hand.
-
0212ac4: A type can be drafted by the text model.
POST /types/suggestion(suggestTypeof the SDK) takes a sentence on the documents the type is for and answers with a slug, a description, a parent and fields, without creating anything.The "Create a type" dialog of the web UI has two tabs: "Describe it", where the text model drafts the type from a sentence, and "Define it", the form, which the draft fills for review before the type is created.
Patch Changes
- 83b49df: Document that on macOS, Node 24 below 24.22.3, Node 25 and Node 26 below 26.5.1 bundle an undici whose
fetchcan throw an uncaughtEINVALfromsetTypeOfServicewhen a connection is reset, and recommend a fixed Node. The SDK'senginesis unchanged. - 3f5ac25:
upcomingtakesinclude_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and onGET /upcomingalike. An agent that passed it before got a validation error. - Updated dependencies [57b9e49]
- Updated dependencies [7db033b]
- Updated dependencies [12f6a23]
- Updated dependencies [3e9b8c4]
- Updated dependencies [16fa6f7]
- Updated dependencies [69d6c97]
- Updated dependencies [3e9b8c4]
- Updated dependencies [c95f7a1]
- Updated dependencies [6910894]
- Updated dependencies [3e9b8c4]
- Updated dependencies [6ba9355]
- Updated dependencies [2f21931]
- Updated dependencies [8bb948c]
- Updated dependencies [0212ac4]
- Updated dependencies [3f5ac25]
- @liasse/contract@0.2.0