Skip to content

v0.2.2

Latest

Choose a tag to compare

@sh00tg0a1 sh00tg0a1 released this 03 Dec 09:54
· 16 commits to main since this release
5cd005e

BKN Foundry 0.2.2

Tag v0.2.2 · commit 5cd005e

Versioned API documentation · Release notes (中文) · Full changelog

Before upgrading from 0.2.1, read No upgrade from 0.2.1 for BKN projects and Chart defaults: dependency credentials. Execution Factory, action types, the Dynamic Model and the sandbox are no longer part of the Community edition.

Professional edition: Execution Factory, action types and the Dynamic Model

From 0.2.2, Execution Factory, action types and the Dynamic Model are part of
the Professional edition. The Community edition does not deploy or expose them,
and its source no longer contains them:

  • Execution Factory (toolboxes, functions, MCP servers, Skills and sandbox
    execution) is no longer installed. Its service, image and schema migrations
    ship with the Professional edition. Related: #3466.
  • The sandbox service is no longer installed; it ships with the Professional
    edition together with Execution Factory. Related: #3481.
  • Knowledge network modeling: action types with their execution, schedules and
    logs, event classes, object metrics, capability mounts (function, MCP, Skill)
    and drafts and versions. Their routes answer 404, the same as a route that
    does not exist. Importing a package that contains action types returns an
    edition error, and exports leave action types out. Published networks stay
    readable. Related: #3452.
  • Agents mount Context Loader, built-in and agent tools. Saving an agent with a
    toolbox, an external MCP server or Skills returns 403
    BknAgent.Edition.ToolRefRequired or BknAgent.Edition.SkillRequired; an
    existing agent that has such mounts still runs, without them. Related: #3468.
  • Context Loader: the MCP server offers no action, metric, Skill or
    capability tools (get_action_info, execute_action, query_metric,
    drill_through_metric, the Skill tools, search_capabilities,
    execute_tool) and no sandbox code execution (run_code, run_shell), and
    their /kn/* REST mirrors and the MCP proxy route are gone. The remaining
    tools carry no action, metric or capability parameters or fields:
    search_schema has no include_action_types / include_metric_types,
    get_kn_detail has no action_types, mounted_capabilities or metric
    counts, and get_object_types has no related_metrics. Tools that take
    kn_id no longer list the kn_version and draft_revision arguments. The
    chart values skill.* are removed. Related: #3467.
  • Authorization: the resource types tool_box, function, mcp and skill
    are no longer part of the Community authorization model. The chart settings
    SAFE_EXECUTION_FACTORY_BASE_URL, SAFE_EXECUTION_FACTORY_TIMEOUT and
    config.upstreams.executionFactory are removed. Related: #3471.
  • Studio: the Execution Factory and Dynamic Model pages, the agent mount
    settings for toolboxes, MCP servers and Skills, and the execution resource
    types in system administration are not in the Community build. Their
    navigation entries open an upgrade page. Related: openbkn-ai/bkn-studio#1505,
    openbkn-ai/bkn-studio#1508, openbkn-ai/bkn-studio#1521.
  • The API documents and manual sections for these capabilities are no longer in
    this repository. Professional edition documentation is provided separately.
    Related: #3482.
  • The CLI and SDK report "requires the Professional edition" instead of a bare
    404 when a Community platform answers a Professional route. Related:
    openbkn-ai/bkn-sdk#261.

These notes cover new installations. Upgrading an installation that already
uses these capabilities is not covered.

Logic properties use Cypher

A logic property is now one read-only Cypher statement on its object type, in
every edition. In JSON, type is cypher and data_source is
{"type": "cypher", "statement": "..."}; parameters keep their form
(property, input or const) and each is bound to $<name>. In .bkn
files, Type and Source Type are cypher, followed by a **Statement**
label and one fenced cypher block. The statement starts from the instance by
its primary key ($id, or one parameter per key) and returns one scalar
column and at most one row: no row gives null, more than one row is an error.

The tool source is retired: saving or importing a tool logic property
returns 400, and existing ones are not converted. Values are computed by
bkn-backend Cypher without Execution Factory. The caller's knowledge network
permissions apply as before, and the read follows the same proxy path as
Cypher queries. In Context Loader, get_logic_properties_values needs no
query for a property without input parameters. Studio edits the statement
with an explain check and a trial run. Related: #3469,
openbkn-ai/bkn-studio#1520, openbkn-ai/bkn-sdk#261.

Background archiving

Log and Trace archiving run in the background. Submitting an archive returns at
once, so closing the page or a request timeout no longer stops it; runs resume
after a restart and retry transient storage failures up to three times. Trace
interactions over the 8 MiB archive budget are kept online automatically and the
rest of the run continues; every run records its result, including the
interactions it kept. Adds migration v041 (two new tables). Related: #2947, #2948.

Archive recovery visibility

Log and Trace archive history retains older unfinished cleanup alongside the
latest 20 jobs, and returns an explicit error when history cannot be read.
Operators can find the task blocking new same-kind archives without losing its
existing verification and cleanup safeguards. No schema or archive-format change.
Related: #2947, #2948.

Cypher: exact numeric results

DECIMAL and NUMERIC columns, including sum() results, now return JSON numbers
instead of strings. The service preserves their decimal digits without a
float64 conversion; text columns remain strings. Clients that assumed a string
for DECIMAL must accept a JSON number and use an exact numeric decoder for large
integers or high-precision decimals. Existing Trace payloads are not rewritten.
Related: openbkn-ai/openbkn-ee#702.

Context Loader: licence hub configuration

The Retrieval Chart supports licenseHub.url, rendered as BKN_SAFE_URL when
nonempty. Community defaults remain empty and do not inherit the shared platform
bknSafe.url. Enterprise delivery profiles supply the hub address together with
their extension definitions; discovery and invocation still require a valid
licence and user authorization. Related: #3043.

No upgrade from 0.2.1 for BKN projects

The knowledge base and BKN projects were beta in 0.2.1, and this release no
longer installs the bkn-project service. There is no upgrade or data migration
from 0.2.1. An installation that used BKN projects in 0.2.1 is cleaned by hand
before upgrading (back up the database and the bkn-project-git volume first):

  1. Uninstall the 0.2.1 service: helm uninstall bkn-project -n <namespace>. The
    installer does not remove it.
  2. Drop every t_bkn_project_* table in database openbkn, then run
    DELETE FROM deploy.t_schema_migration_task WHERE f_service_name='bkn-project'.
  3. Delete the volume claim bkn-project-git; helm uninstall keeps it.
  4. Delete the five 0.2.1 Agents bkn-project-requirements,
    bkn-project-answer-judge, bkn-project-ontology-ask,
    bkn-project-concept-extraction and bkn-project-document-extraction with
    their prompts from t_agent, t_agent_version, t_agent_prompt and
    t_agent_prompt_version; no service uses them after the upgrade. Leave the
    bkn-agent ledger and every other Agent alone.
  5. Optional: delete finished t_agent_task rows whose f_agent_id starts with
    bkn-project-. They hold the text of the files the 0.2.1 project read.
  6. Upgrade.

Networks a 0.2.1 project published in bkn-backend, Datasets it extracted and
knowledge-base retention holds stay where they are; an administrator removes
those no longer wanted.

The professional edition has its own release notes for its upgrade and
installation.

Chart defaults: dependency credentials

The legacy vendor default user names are gone from the chart and config
defaults, replaced with the openbkn-deploy defaults:

  • MariaDB user openbkn: the core-data-migrator chart.
  • Kafka user kafkauser: the mf-model-manager chart and the mf-model-api
    config default.

The placeholder password in the mf-model-manager chart now defaults to
empty.

What to do:

  • Installs done with openbkn-deploy are unaffected: it passes
    depServices.{rds,opensearch,mq} credentials explicitly.
  • A manual helm install or helm upgrade must pass depServices credentials
    explicitly (-f values file or --set). An upgrade that relied on the old
    chart defaults will render the new defaults and may not connect; use
    --reuse-values or supply the values.
  • An environment that still uses the legacy default password for MariaDB,
    OpenSearch or Kafka should rotate it, then pass the new credentials.

Also in this release

  • Cypher. round, abs, toUpper, toLower, toString, toInteger and toFloat; parameters for SKIP and LIMIT; optional conditions with $name IS NULL; min/max over dates and strings; relationship-variable counts; reserved words as parameter names; matching through link tables on datasets (#3075, #3077, #3097, #3098, #3115, #3218, #3288, #3420).
  • Vega. UNION / UNION ALL queries, read-only API Resources with filter inputs, build schedules, connector-aware field filterability and local index reconciliation by primary key (#3074, #3120, #3186, #3296, #3350, #3366).
  • Knowledge-network events are served from the open core (#2980, #3103, #3116).
  • Authentication. External role imports, enterprise identity extension hooks, backchannel logout and revocation of Studio logout sessions.
  • Toolchain. Go 1.27.4 and Go JSON v2 across services; the data-migrator image is built on python:3.12-slim (#3388, #3399, #3401, #3406, #3117).
  • Context Loader. run_sql, list_resources and describe_resource are removed; get_kn_detail stays up when an object type is deleted mid-read; relation types are listed by page (#3050, #3101, #3419, #3439, #3503).

See the complete comparison for all changes.