Skip to content

3ngram 1.11.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 15:49
2288e3f

3ngram v1.11.0

Facts replace previous values by default, and current fact reads follow the
liveness of the memory that asserted them. The forgetting pass ships disabled
by default and stages proposals for review; it never applies its own verdicts.

Changes

Facts

  • A new open-ended, single-valued fact closes open values of the same
    (subject, predicate) that started at or before its validFrom.
    cardinality: "many" opts into coexisting values; a write with its own
    validTo closes nothing.
    Backdated writes retain history, and concurrent writers of a key serialize.
  • Current reads exclude facts whose parent memory was superseded or archived.
    asOf reads respect parent supersession; archive has no timestamp and does
    not hide facts from time travel. Range reads still include every generation.
  • revise cannot carry facts. After revising a memory, assert any still-true
    facts again through remember.

Forgetting and review

  • The worker can judge stale decisions, preferences, blockers and facts, plus
    likely conflicting pairs of decisions, preferences and facts. Notes and
    events are excluded from candidate selection. Tenant judgment consent and a
    configured judgment gateway are required in addition to the deployment flag.
  • The pass stages retention proposals. Accepting one through review_proposals
    uses the existing audited archive, supersession or conflict-review paths.
    Keeps and verdicts below their thresholds stay out of the review list.
  • review_proposals output V4 adds retention records and counts; exports include
    retentionProposals. Its description and tool-selection fixtures cover all
    four proposal kinds.
  • A report-only forgetting evaluation harness and synthetic fixtures run nightly.
    Synthetic results do not establish production calibration; private labeled
    evaluation remains a prerequisite to enabling the pass.

Compatibility

  • @3ngram/server, @3ngram/worker, @3ngram/sdk and the 3ngram CLI move to
    1.11.0 together. The dependency versions are config 0.7.0, schema 0.14.0,
    llm 0.5.0, db 0.15.0 and core 0.16.0.
  • Existing review_proposals cursors become invalid once; restart the walk from
    its first page. Strict output parsers must accept the retention count key,
    retention records and the applied_retention / rejected_retention actions.
  • Existing fact windows are not rewritten by this release. Historical duplicate
    open values need a separately reviewed, tenant-scoped cleanup. A later
    open-ended, single-valued assertion also closes those whose validFrom
    is at or before the new assertion's validFrom.

Operations

  • Apply migration 0045_retention_proposals and rerun provision-roles.sql
    for the runtime role's access to the new table.
  • Keep FORGETTING_PASS_ENABLED=false until evaluation and a tenant trial have
    justified enabling it. The flag defaults to false. No new cron service is
    required while it is disabled.
  • Worker images must be adopted separately from the server package. Verify the
    image and completion of an actual execution for every scheduled worker.

Immutable container reference

ghcr.io/b3dmar/3ngram@sha256:afb1f91176efc78f1342a6a2f7859bd96f80bc91ff8026f85e4ead08f260640b