Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:44
a019044

@liasse/server 0.2.0

Minor Changes

  • 57b9e49: A document in needs_review says what to review. GET /documents/:id?include=review and get_document return a review part: 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) takes confirm, 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 clears needs_review like a correction. A value that changed since it was read refuses the correction with value_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 (listConsolidationRuns in 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_TRIGGERS and ConsolidationTrigger now come from @liasse/contract/domain, no longer from @liasse/core/consolidation.

  • 3e9b8c4: A correction (PATCH /documents/:id, update_document) can set or clear core.key_dates, where it answered unsupported_field. The list given replaces the key dates of the document in its core and in what upcoming answers, in one transaction, and a later extraction keeps it. Each date is a kind, a date and a label of 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: a notice_deadline given next to a renewal date of such a document is refused (invalid_value). upcoming no longer flags as computed a date a person gave. key_dates still cannot be confirmed; the refusal now says to give the dates in core.key_dates instead.

    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 entity filter of search keeps the documents that name the entity in any entity field, in core or in the fields of their type, each item of a list field included, where it read issuer and recipient only. GET /documents (listDocuments of the SDK) takes the same entity filter, 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 review part of a document (GET /documents/:id?include=review, get_document with include: ["review"]) names the values the last extraction dropped: rejections lists them by section (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) and count, never the value or its quote. A document extracted before this change has only its rejected_values count, and an empty rejections.

    The extraction prompt says what each core field holds: core.amount is 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 in extra under 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 (graph of 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 (requestConsolidationRun in 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_type creates a provisional type by hand, suggest_type drafts one with the text model, request_consolidation_run asks for a consolidation run and list_consolidation_runs follows the latest ones. They also list documents (list_documents, with the filters of GET /documents, the needs_review queue 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 the review part say why in refusal (quota_exceeded, private_document, invalid_proposal, rejected_type), and the classification event in type_refusal. The outcome fallback is 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 failed classification event carries the reason as its error_code. With new_type, a slug that names another existing type is refused instead of taken.

    The description of the MCP tool create_type says it is the way to file such a document: it is outside the daily quota of classification, and update_document then 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 fetch can throw an uncaught EINVAL from setTypeOfService on 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/contract and @liasse/sdk keep 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/setup says whether setup is needed, POST /api/setup/check tries settings with the token, and POST /api/setup creates the account and saves the settings together, applied at once (getSetupStatus, checkSetup and completeSetup of the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.

    Breaking: AUTH_BOOTSTRAP_EMAIL and AUTH_BOOTSTRAP_PASSWORD are 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/reclassify answers 202 with the document, the MCP tool reclassify_document does the same, and the SDK has reclassifyDocument. The request may carry a hint (cut to the length of an upload hint) and new_type, which asks for a new type only. A reclassify_document job 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 not indexed or needs_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/contract now holds the definitions of the core fields (CORE_FIELDS, CORE_FIELD_NAMES, KEY_DATES_FIELD in /registry, no longer exported by @liasse/core/registry) and SETTLED_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/reextract answers 202 with the document, the MCP tool reextract_document answers its id and status, and the SDK has reextractDocument. The request queues the reextract_document job under the row lock of the document, with the refusals of a reclassification (document_not_settled for a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept. retry_document is unchanged and still refuses any document that did not fail.

    Where processing stands is visible while a document is still received with no event in its log: get_status now also answers analysis_pending, updated_at and job, the processing job queued or running for the document (kind, state, attempts, max_attempts, queued_at, run_after, and for a queued one waiting_for, worker with jobs_ahead or delay). GET /documents/:id/status and the SDK's getDocumentStatus answer the same, from the use case getDocumentStatus of @liasse/core/api; @liasse/contract has documentStatusSchema, DOCUMENT_STATUS_EVENTS, UNFINISHED_JOB_STATUSES and JOB_WAITS.

    The description of the MCP tool list_documents says that with status: needs_review it is the review queue of documents. The descriptions of list_pending_changes and apply_change now say they are about the type registry and point to it, those of retry_document, reclassify_document and reextract_document say which one to use when, and that of ingest asks for private: true on sensitive documents and explains the received interval.

  • 6ba9355: GET /documents/:id and get_document answer analysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status stays indexed or needs_review.

    The web UI asks for the type to be analysed again from the review of a needs_review document, 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 from analysis_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 with GET /settings and tried without saving with POST /settings/check (getSettings, saveSettings and checkSettings of the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived from AUTH_SECRET and never answered; after a change of AUTH_SECRET they are reported unreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save through LISTEN. 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_BANK and HINDSIGHT_API_KEY are no longer read: the server refuses to start while one is set, and names it. Remove them from .env and 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 answers 503 not_configured on the routes of the API. pnpm eval:run and pnpm eval:calibrate take 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 (listSettingsModels of 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 (suggestType of 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_DRIVER and the S3_* 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: upcoming takes include_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and on GET /upcoming alike. 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_review says what to review. GET /documents/:id?include=review and get_document return a review part: 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) takes confirm, 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 clears needs_review like a correction. A value that changed since it was read refuses the correction with value_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 (listConsolidationRuns in 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_TRIGGERS and ConsolidationTrigger now come from @liasse/contract/domain, no longer from @liasse/core/consolidation.

  • 12f6a23: The entity filter of search keeps the documents that name the entity in any entity field, in core or in the fields of their type, each item of a list field included, where it read issuer and recipient only. GET /documents (listDocuments of the SDK) takes the same entity filter, 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 (graph of 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 (requestConsolidationRun in 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 the review part say why in refusal (quota_exceeded, private_document, invalid_proposal, rejected_type), and the classification event in type_refusal. The outcome fallback is 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 failed classification event carries the reason as its error_code. With new_type, a slug that names another existing type is refused instead of taken.

    The description of the MCP tool create_type says it is the way to file such a document: it is outside the daily quota of classification, and update_document then 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/reclassify answers 202 with the document, the MCP tool reclassify_document does the same, and the SDK has reclassifyDocument. The request may carry a hint (cut to the length of an upload hint) and new_type, which asks for a new type only. A reclassify_document job 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 not indexed or needs_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/contract now holds the definitions of the core fields (CORE_FIELDS, CORE_FIELD_NAMES, KEY_DATES_FIELD in /registry, no longer exported by @liasse/core/registry) and SETTLED_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/:id and get_document answer analysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status stays indexed or needs_review.

    The web UI asks for the type to be analysed again from the review of a needs_review document, 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 from analysis_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 (listSettingsModels of 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 (suggestType of 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 calls POST /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/setup says whether setup is needed, POST /api/setup/check tries settings with the token, and POST /api/setup creates the account and saves the settings together, applied at once (getSetupStatus, checkSetup and completeSetup of the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.

    Breaking: AUTH_BOOTSTRAP_EMAIL and AUTH_BOOTSTRAP_PASSWORD are 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 with GET /settings and tried without saving with POST /settings/check (getSettings, saveSettings and checkSettings of the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived from AUTH_SECRET and never answered; after a change of AUTH_SECRET they are reported unreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save through LISTEN. 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_BANK and HINDSIGHT_API_KEY are no longer read: the server refuses to start while one is set, and names it. Remove them from .env and 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 answers 503 not_configured on the routes of the API. pnpm eval:run and pnpm eval:calibrate take their models from a JSON file of settings, --settings <file>.

@liasse/contract 0.2.0

Minor Changes

  • 57b9e49: A document in needs_review says what to review. GET /documents/:id?include=review and get_document return a review part: 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) takes confirm, 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 clears needs_review like a correction. A value that changed since it was read refuses the correction with value_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 (listConsolidationRuns in 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_TRIGGERS and ConsolidationTrigger now come from @liasse/contract/domain, no longer from @liasse/core/consolidation.

  • 12f6a23: The entity filter of search keeps the documents that name the entity in any entity field, in core or in the fields of their type, each item of a list field included, where it read issuer and recipient only. GET /documents (listDocuments of the SDK) takes the same entity filter, 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 review part of a document (GET /documents/:id?include=review, get_document with include: ["review"]) names the values the last extraction dropped: rejections lists them by section (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) and count, never the value or its quote. A document extracted before this change has only its rejected_values count, and an empty rejections.

    The extraction prompt says what each core field holds: core.amount is 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 in extra under 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 (graph of 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 (requestConsolidationRun in 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 the review part say why in refusal (quota_exceeded, private_document, invalid_proposal, rejected_type), and the classification event in type_refusal. The outcome fallback is 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 failed classification event carries the reason as its error_code. With new_type, a slug that names another existing type is refused instead of taken.

    The description of the MCP tool create_type says it is the way to file such a document: it is outside the daily quota of classification, and update_document then 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/setup says whether setup is needed, POST /api/setup/check tries settings with the token, and POST /api/setup creates the account and saves the settings together, applied at once (getSetupStatus, checkSetup and completeSetup of the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.

    Breaking: AUTH_BOOTSTRAP_EMAIL and AUTH_BOOTSTRAP_PASSWORD are 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/reclassify answers 202 with the document, the MCP tool reclassify_document does the same, and the SDK has reclassifyDocument. The request may carry a hint (cut to the length of an upload hint) and new_type, which asks for a new type only. A reclassify_document job 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 not indexed or needs_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/contract now holds the definitions of the core fields (CORE_FIELDS, CORE_FIELD_NAMES, KEY_DATES_FIELD in /registry, no longer exported by @liasse/core/registry) and SETTLED_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/reextract answers 202 with the document, the MCP tool reextract_document answers its id and status, and the SDK has reextractDocument. The request queues the reextract_document job under the row lock of the document, with the refusals of a reclassification (document_not_settled for a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept. retry_document is unchanged and still refuses any document that did not fail.

    Where processing stands is visible while a document is still received with no event in its log: get_status now also answers analysis_pending, updated_at and job, the processing job queued or running for the document (kind, state, attempts, max_attempts, queued_at, run_after, and for a queued one waiting_for, worker with jobs_ahead or delay). GET /documents/:id/status and the SDK's getDocumentStatus answer the same, from the use case getDocumentStatus of @liasse/core/api; @liasse/contract has documentStatusSchema, DOCUMENT_STATUS_EVENTS, UNFINISHED_JOB_STATUSES and JOB_WAITS.

    The description of the MCP tool list_documents says that with status: needs_review it is the review queue of documents. The descriptions of list_pending_changes and apply_change now say they are about the type registry and point to it, those of retry_document, reclassify_document and reextract_document say which one to use when, and that of ingest asks for private: true on sensitive documents and explains the received interval.

  • 6ba9355: GET /documents/:id and get_document answer analysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status stays indexed or needs_review.

    The web UI asks for the type to be analysed again from the review of a needs_review document, 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 from analysis_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 with GET /settings and tried without saving with POST /settings/check (getSettings, saveSettings and checkSettings of the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived from AUTH_SECRET and never answered; after a change of AUTH_SECRET they are reported unreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save through LISTEN. 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_BANK and HINDSIGHT_API_KEY are no longer read: the server refuses to start while one is set, and names it. Remove them from .env and 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 answers 503 not_configured on the routes of the API. pnpm eval:run and pnpm eval:calibrate take 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 (listSettingsModels of 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 (suggestType of 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: upcoming takes include_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and on GET /upcoming alike. An agent that passed it before got a validation error.

@liasse/core 0.2.0

Minor Changes

  • 57b9e49: A document in needs_review says what to review. GET /documents/:id?include=review and get_document return a review part: 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) takes confirm, 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 clears needs_review like a correction. A value that changed since it was read refuses the correction with value_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 (listConsolidationRuns in 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_TRIGGERS and ConsolidationTrigger now come from @liasse/contract/domain, no longer from @liasse/core/consolidation.

  • 3e9b8c4: A correction (PATCH /documents/:id, update_document) can set or clear core.key_dates, where it answered unsupported_field. The list given replaces the key dates of the document in its core and in what upcoming answers, in one transaction, and a later extraction keeps it. Each date is a kind, a date and a label of 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: a notice_deadline given next to a renewal date of such a document is refused (invalid_value). upcoming no longer flags as computed a date a person gave. key_dates still cannot be confirmed; the refusal now says to give the dates in core.key_dates instead.

    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 entity filter of search keeps the documents that name the entity in any entity field, in core or in the fields of their type, each item of a list field included, where it read issuer and recipient only. GET /documents (listDocuments of the SDK) takes the same entity filter, 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 review part of a document (GET /documents/:id?include=review, get_document with include: ["review"]) names the values the last extraction dropped: rejections lists them by section (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) and count, never the value or its quote. A document extracted before this change has only its rejected_values count, and an empty rejections.

    The extraction prompt says what each core field holds: core.amount is 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 in extra under 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 (graph of 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 (requestConsolidationRun in 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 the review part say why in refusal (quota_exceeded, private_document, invalid_proposal, rejected_type), and the classification event in type_refusal. The outcome fallback is 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 failed classification event carries the reason as its error_code. With new_type, a slug that names another existing type is refused instead of taken.

    The description of the MCP tool create_type says it is the way to file such a document: it is outside the daily quota of classification, and update_document then 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 fetch can throw an uncaught EINVAL from setTypeOfService on 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/contract and @liasse/sdk keep 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/setup says whether setup is needed, POST /api/setup/check tries settings with the token, and POST /api/setup creates the account and saves the settings together, applied at once (getSetupStatus, checkSetup and completeSetup of the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.

    Breaking: AUTH_BOOTSTRAP_EMAIL and AUTH_BOOTSTRAP_PASSWORD are 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/reclassify answers 202 with the document, the MCP tool reclassify_document does the same, and the SDK has reclassifyDocument. The request may carry a hint (cut to the length of an upload hint) and new_type, which asks for a new type only. A reclassify_document job 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 not indexed or needs_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/contract now holds the definitions of the core fields (CORE_FIELDS, CORE_FIELD_NAMES, KEY_DATES_FIELD in /registry, no longer exported by @liasse/core/registry) and SETTLED_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/reextract answers 202 with the document, the MCP tool reextract_document answers its id and status, and the SDK has reextractDocument. The request queues the reextract_document job under the row lock of the document, with the refusals of a reclassification (document_not_settled for a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept. retry_document is unchanged and still refuses any document that did not fail.

    Where processing stands is visible while a document is still received with no event in its log: get_status now also answers analysis_pending, updated_at and job, the processing job queued or running for the document (kind, state, attempts, max_attempts, queued_at, run_after, and for a queued one waiting_for, worker with jobs_ahead or delay). GET /documents/:id/status and the SDK's getDocumentStatus answer the same, from the use case getDocumentStatus of @liasse/core/api; @liasse/contract has documentStatusSchema, DOCUMENT_STATUS_EVENTS, UNFINISHED_JOB_STATUSES and JOB_WAITS.

    The description of the MCP tool list_documents says that with status: needs_review it is the review queue of documents. The descriptions of list_pending_changes and apply_change now say they are about the type registry and point to it, those of retry_document, reclassify_document and reextract_document say which one to use when, and that of ingest asks for private: true on sensitive documents and explains the received interval.

  • 6ba9355: GET /documents/:id and get_document answer analysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status stays indexed or needs_review.

    The web UI asks for the type to be analysed again from the review of a needs_review document, 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 from analysis_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 with GET /settings and tried without saving with POST /settings/check (getSettings, saveSettings and checkSettings of the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived from AUTH_SECRET and never answered; after a change of AUTH_SECRET they are reported unreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save through LISTEN. 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_BANK and HINDSIGHT_API_KEY are no longer read: the server refuses to start while one is set, and names it. Remove them from .env and 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 answers 503 not_configured on the routes of the API. pnpm eval:run and pnpm eval:calibrate take 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 (listSettingsModels of 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 (suggestType of 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_dates now 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 flagged needs_review with 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_review says what to review. GET /documents/:id?include=review and get_document return a review part: 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) takes confirm, 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 clears needs_review like a correction. A value that changed since it was read refuses the correction with value_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 clear core.key_dates, where it answered unsupported_field. The list given replaces the key dates of the document in its core and in what upcoming answers, in one transaction, and a later extraction keeps it. Each date is a kind, a date and a label of 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: a notice_deadline given next to a renewal date of such a document is refused (invalid_value). upcoming no longer flags as computed a date a person gave. key_dates still cannot be confirmed; the refusal now says to give the dates in core.key_dates instead.

    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 review part of a document (GET /documents/:id?include=review, get_document with include: ["review"]) names the values the last extraction dropped: rejections lists them by section (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) and count, never the value or its quote. A document extracted before this change has only its rejected_values count, and an empty rejections.

    The extraction prompt says what each core field holds: core.amount is 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 in extra under 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_type creates a provisional type by hand, suggest_type drafts one with the text model, request_consolidation_run asks for a consolidation run and list_consolidation_runs follows the latest ones. They also list documents (list_documents, with the filters of GET /documents, the needs_review queue 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 the review part say why in refusal (quota_exceeded, private_document, invalid_proposal, rejected_type), and the classification event in type_refusal. The outcome fallback is 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 failed classification event carries the reason as its error_code. With new_type, a slug that names another existing type is refused instead of taken.

    The description of the MCP tool create_type says it is the way to file such a document: it is outside the daily quota of classification, and update_document then 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 fetch can throw an uncaught EINVAL from setTypeOfService on 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/contract and @liasse/sdk keep 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/reclassify answers 202 with the document, the MCP tool reclassify_document does the same, and the SDK has reclassifyDocument. The request may carry a hint (cut to the length of an upload hint) and new_type, which asks for a new type only. A reclassify_document job 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 not indexed or needs_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/contract now holds the definitions of the core fields (CORE_FIELDS, CORE_FIELD_NAMES, KEY_DATES_FIELD in /registry, no longer exported by @liasse/core/registry) and SETTLED_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/reextract answers 202 with the document, the MCP tool reextract_document answers its id and status, and the SDK has reextractDocument. The request queues the reextract_document job under the row lock of the document, with the refusals of a reclassification (document_not_settled for a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept. retry_document is unchanged and still refuses any document that did not fail.

    Where processing stands is visible while a document is still received with no event in its log: get_status now also answers analysis_pending, updated_at and job, the processing job queued or running for the document (kind, state, attempts, max_attempts, queued_at, run_after, and for a queued one waiting_for, worker with jobs_ahead or delay). GET /documents/:id/status and the SDK's getDocumentStatus answer the same, from the use case getDocumentStatus of @liasse/core/api; @liasse/contract has documentStatusSchema, DOCUMENT_STATUS_EVENTS, UNFINISHED_JOB_STATUSES and JOB_WAITS.

    The description of the MCP tool list_documents says that with status: needs_review it is the review queue of documents. The descriptions of list_pending_changes and apply_change now say they are about the type registry and point to it, those of retry_document, reclassify_document and reextract_document say which one to use when, and that of ingest asks for private: true on sensitive documents and explains the received interval.

  • 6ba9355: GET /documents/:id and get_document answer analysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status stays indexed or needs_review.

    The web UI asks for the type to be analysed again from the review of a needs_review document, 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 from analysis_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 with GET /settings and tried without saving with POST /settings/check (getSettings, saveSettings and checkSettings of the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived from AUTH_SECRET and never answered; after a change of AUTH_SECRET they are reported unreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save through LISTEN. 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_BANK and HINDSIGHT_API_KEY are no longer read: the server refuses to start while one is set, and names it. Remove them from .env and 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 answers 503 not_configured on the routes of the API. pnpm eval:run and pnpm eval:calibrate take their models from a JSON file of settings, --settings <file>.

Patch Changes

  • 3f5ac25: The description of list_pending_changes no longer promises splits and renames of types: consolidation proposes neither.
  • 3f5ac25: upcoming takes include_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and on GET /upcoming alike. 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_review says what to review. GET /documents/:id?include=review and get_document return a review part: 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) takes confirm, 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 clears needs_review like a correction. A value that changed since it was read refuses the correction with value_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 (listConsolidationRuns in 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_TRIGGERS and ConsolidationTrigger now come from @liasse/contract/domain, no longer from @liasse/core/consolidation.

  • 12f6a23: The entity filter of search keeps the documents that name the entity in any entity field, in core or in the fields of their type, each item of a list field included, where it read issuer and recipient only. GET /documents (listDocuments of the SDK) takes the same entity filter, 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 review part of a document (GET /documents/:id?include=review, get_document with include: ["review"]) names the values the last extraction dropped: rejections lists them by section (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) and count, never the value or its quote. A document extracted before this change has only its rejected_values count, and an empty rejections.

    The extraction prompt says what each core field holds: core.amount is 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 in extra under 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 (graph of 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 (requestConsolidationRun in 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 the review part say why in refusal (quota_exceeded, private_document, invalid_proposal, rejected_type), and the classification event in type_refusal. The outcome fallback is 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 failed classification event carries the reason as its error_code. With new_type, a slug that names another existing type is refused instead of taken.

    The description of the MCP tool create_type says it is the way to file such a document: it is outside the daily quota of classification, and update_document then 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/setup says whether setup is needed, POST /api/setup/check tries settings with the token, and POST /api/setup creates the account and saves the settings together, applied at once (getSetupStatus, checkSetup and completeSetup of the SDK). Attempts are limited to 5 a minute per client address, as for sign-in.

    Breaking: AUTH_BOOTSTRAP_EMAIL and AUTH_BOOTSTRAP_PASSWORD are 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/reclassify answers 202 with the document, the MCP tool reclassify_document does the same, and the SDK has reclassifyDocument. The request may carry a hint (cut to the length of an upload hint) and new_type, which asks for a new type only. A reclassify_document job 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 not indexed or needs_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/contract now holds the definitions of the core fields (CORE_FIELDS, CORE_FIELD_NAMES, KEY_DATES_FIELD in /registry, no longer exported by @liasse/core/registry) and SETTLED_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/reextract answers 202 with the document, the MCP tool reextract_document answers its id and status, and the SDK has reextractDocument. The request queues the reextract_document job under the row lock of the document, with the refusals of a reclassification (document_not_settled for a document on its way, failed, or with a processing, re-extraction or reclassification pending); values corrected or confirmed by hand are kept. retry_document is unchanged and still refuses any document that did not fail.

    Where processing stands is visible while a document is still received with no event in its log: get_status now also answers analysis_pending, updated_at and job, the processing job queued or running for the document (kind, state, attempts, max_attempts, queued_at, run_after, and for a queued one waiting_for, worker with jobs_ahead or delay). GET /documents/:id/status and the SDK's getDocumentStatus answer the same, from the use case getDocumentStatus of @liasse/core/api; @liasse/contract has documentStatusSchema, DOCUMENT_STATUS_EVENTS, UNFINISHED_JOB_STATUSES and JOB_WAITS.

    The description of the MCP tool list_documents says that with status: needs_review it is the review queue of documents. The descriptions of list_pending_changes and apply_change now say they are about the type registry and point to it, those of retry_document, reclassify_document and reextract_document say which one to use when, and that of ingest asks for private: true on sensitive documents and explains the received interval.

  • 6ba9355: GET /documents/:id and get_document answer analysis_pending: whether a processing, re-extraction or reclassification of the document is queued or running, while its status stays indexed or needs_review.

    The web UI asks for the type to be analysed again from the review of a needs_review document, 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 from analysis_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 with GET /settings and tried without saving with POST /settings/check (getSettings, saveSettings and checkSettings of the SDK), with the session of the web UI only, never an API key. Keys are encrypted at rest under a key derived from AUTH_SECRET and never answered; after a change of AUTH_SECRET they are reported unreadable, and a save replaces or clears them. Every process on the database, MCP over stdio included, follows a save through LISTEN. 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_BANK and HINDSIGHT_API_KEY are no longer read: the server refuses to start while one is set, and names it. Remove them from .env and 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 answers 503 not_configured on the routes of the API. pnpm eval:run and pnpm eval:calibrate take 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 (listSettingsModels of 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 (suggestType of 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 fetch can throw an uncaught EINVAL from setTypeOfService when a connection is reset, and recommend a fixed Node. The SDK's engines is unchanged.
  • 3f5ac25: upcoming takes include_private, as its MCP description already said: the key dates of private documents are left out unless it is true, on MCP and on GET /upcoming alike. 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