Skip to content

0.10.27

Latest

Choose a tag to compare

@thinkingsense-ai thinkingsense-ai released this 30 Nov 20:29
· 6 commits to main since this release
e411bda

ThinkingSense 0.10.27: upgrade notes

Image: ghcr.io/thinkingsense-ai/server:0.10.27 (also :0.10; free edition :0.10.27-free).

This release has two parts:

  • Workspaces as namespaces for the semantic layer. Each Workspace now has its own ontology, schemas, approved questions, join keys and the rest of its context.
  • ABBA agent swarms. Agents can work as a team and hand tasks to each other, within limits.

No data migration is needed. New tables are created in the control database at startup. Nothing changes for an existing Workspace until an administrator gives it context of its own, or limits it to schemas.

Upgrading

  • Workspaces may now name schemas and tables as well as whole data sources (see below). A Workspace configuration with no schemas or tables key behaves exactly as before.
  • New control-database tables (created at startup): agent_swarm, agent_swarm_limits, agent_swarm_handoff, agent_case_member and agent_proposal_party.
  • New settings: none. A Workspace's own ontology, join keys, value labels and data assets are kept in the config store, beside the context Workspaces already owned.

New: a Workspace is a namespace for the semantic layer

Before, terms, metrics, table settings, instructions and approved questions could belong to a Workspace. The ontology and a few other stores were one pool for the whole installation. Now every part of the semantic layer follows the Workspace selected in the admin console's top bar, and the Workspace a business user asks in. The design is in docs/design/workspace-context.md (issues #110, #109 and #132).

Workspaces by schema

  • Limit a Workspace to schemas and tables of a data source, not only to whole data sources:

    namespaces:
      - id: treasury
        name: Treasury
        schemas: ["pg.treasury"]
      - id: bom
        name: BOM
        schemas: ["pg.bom"]
        tables: ["pg.treasury.accounts"]

    This serves a vertical that is a slice of a shared database, as the demo packs are.

  • A statement is refused (42501) when it reads a table outside the Workspace. A table name that cannot be placed in one schema is refused rather than guessed. That covers a bare name two schemas both hold, and pg_catalog and information_schema.

  • The model is shown only the Workspace's tables. Starter questions, the data-source list and the MCP group tools follow the same scope.

  • The Default workspace still reads every schema of a data source that no Workspace names whole.

  • The admin console's Workspaces page shows each Workspace's schemas and tables, how many tables they cover, and any entry that matches no table.

  • This is an application-layer restriction. The data source's own database user can still read every schema. For strict isolation, use separate database roles.

The ontology per Workspace

  • With a Workspace selected, the ontology pages show only its part of the ontology. That covers Terms & entities, the graph, the export and the spec export. You see the shared entities, terms and relationships on tables in its scope, with the Workspace's own on top.
  • Edits made there belong to that Workspace: entity descriptions, terms (including domain rules kept as terms) and relationships. They go into its draft and are published with the rest of its context on the Versions page. The shared ontology is not changed.
  • Change sets still change the shared ontology, so proposing one with another Workspace selected is refused. Switch to the Default workspace to propose one.
  • A question asked in a Workspace uses its own descriptions and terms.

Approved questions in the Ask app

  • Starter questions show the Workspace's own approved questions first, then the org-wide ones on its tables. Before, a Workspace that named data sources lost all its starters (#132).
  • Typing suggestions also come from the Workspace's own questions first.
  • "Save as reusable" saves to the Workspace's draft, for its administrator to review.

Join keys, value labels and data assets

  • Each Workspace can have its own join keys, value labels and data assets, drafted and published like its other context.
  • A question in the Workspace uses its join keys, in addition to the org-wide ones, and shows its value labels before the org-wide ones.
  • Ask dashboard tiles use the signed-in user's Workspace, so its metrics apply.

A Workspace's context as one file

  • The Versions page has Export context and Import into draft. The file holds everything a Workspace owns: terms, metrics, table settings, instructions, approved questions, its ontology, join keys, value labels and data assets.
  • Importing puts the file into the Workspace's draft, to review and publish. The file may come from another Workspace or another installation.

Still shared by every Workspace: confirmed entity matches across data sources and their conflicts, the Builder assistant's changes, the domain-metadata file and query templates.

New: ABBA agent swarms

The design, with what was measured at each step, is in docs/design/abba-autonomous-agents.md, sections 32 to 35 (issue #226).

Swarms and hand-offs

  • A swarm is a named team of 2 to 8 agents. Each has a role: watcher, investigator, assessor, actor, critic or comms. A person makes a swarm of their own agents; an administrator can make one that mixes people's agents.
  • An agent hands a teammate a task with the new delegate tool, shown in the agent editor as "hand-off to another agent". A swarm's topology says which role hands work to which. The teammate keeps its own tools, destinations and tiers.
  • The team works on one case. Everyone the work acts for becomes a member of the case and sees it.
  • Authority is the intersection of everyone in the chain.
    • Reads: a read returns rows only if every person the task acts for gets the same rows.
    • Writes: a write goes only to a system all of them may write to.
    • Approvals: none of them may approve the proposal.
  • Shadow and outside text carry through. A task from a shadow run runs in shadow, and one built on outside text is read by the reader first.

Limits, budget and kill switch

  • Each swarm has limits: hand-offs per run (fan-out), hand-offs per case, a cooldown between the same hand-offs, runs per day and tokens per day. Defaults are 3, 12, 10 minutes, 40 and 200,000.
  • A chain stops at 3 hand-offs, and a task cannot go back to an agent already up the chain.
  • Pausing a swarm is its kill switch. It stops new hand-offs and the runs they started.
  • A person may own at most 5 swarms.
  • The Swarms panel shows each swarm's limits and today's use.

Templates for the three packs

  • Three ready-made swarms: IT risk (outages to problem records), Cash risk (payment exceptions) and Supply chain (a supplier's disruption to BOM exposure). Each has four agents. Using one makes the agents as drafts, with the steps still to do: a trigger, a write target or destination, then shadow.
  • The critic checks claims with the new check_claims tool, which checks each claim against the rows the run read. A matter whose claims do not hold stops at the critic.
  • In a template's chain, a finished report is handed to the next role automatically, and "no action" stops the matter.

Measured

  • The cash-risk template on the bundled local 4B model: 5 of 5 runs passed all 13 checks. A duplicate event was stopped by the swarm's cooldown.
  • Known limit: the claim check does not compute differences. For example, it calls "the invoice is 300.00 over its purchase order" unsupported even when both amounts were read.

Other