Thinklio: Changelog¶
Status: Living Document Format: Reverse chronological. Most recent entries first. What it covers: changes to the docs, the architecture and how Thinklio is built. Changes people will notice are in What's new, one file per change in docs/changelog/ (project records format, since 2 November 2026).
2026-12-04 -- Comments on words in a doc or notes (RM-13, DEC-238)¶
The second of RM-13's other parts (plan plans/2026-12-04-blocks-comments-leases-citations.md § 2), on the web and the API; the app's part follows with its next build.
- Anchors: a comment can carry the block's ID, the start and end of its words in the block's text and the words themselves (
comment_anchors, one per comment). A block's text counts a mention and a hard break as one character each, in UTF-16, as both editors do (lib/anchors.ts).messages.sendtakesanchorfor a comment on a doc, task or entry and checks it against the stored block (lib/commentAnchors.tsplaceAnchor), finding the words nearby if the text moved since they were chosen;messages.listgives each comment's anchor; deleting a comment removes it, and both chat purges do too. - Following the words: the store's write (
lib/richTextStore.ts) passes each changed or deleted block tofollowAnchors, which finds the words again in the block (the nearest copy; spacing and capitals aside), else in another block the same write made or changed (a split, a merge, Undo), else marks the comment detached. A detached one is tried again when its block next changes, so Undo brings it back. - Keeping IDs on Markdown rewrites: between matched blocks, where blocks were added or removed as well as edited,
matchIdsnow pairs blocks by shared words rather than by place, so a paragraph added before an edited one no longer takes its ID. - The web reads docs and notes through the editor (
components/editor/DocReader.tsx, read-only, following saves throughrichText.load), so blocks keep their IDs on screen; text the format can't hold is still read as Markdown. Words chosen there get a Comment button; the comment's words are highlighted (novansa/commentMarks.ts, a decoration fromrichText.anchors), and choosing either the words or the comment's quote shows the other (components/chats/commentFocus.tsx). Mentions open what they name; checklist boxes can't be ticked while reading. - API and MCP:
comments.listForDocandcomments.addToDoc(/v1/docs/{docId}/comments), andcomments.addfor tasks, takeon(a block's ID and the words as they read); listed comments giveonwithdetached. - Tests:
lib/anchors.test.ts,commentAnchors.test.ts(typing, a split, detaching, Undo, a Markdown rewrite, deleting, access),blockDiff.test.ts,platform.test.ts, and the web'scommentMarks.test.ts. Checked on dev as the member test user: comments on words in a doc, in a table and in a task's notes, each highlighted and shown from its quote. Help's Comments and tokens articles, What's new; the schema doc and the app's API client regenerated.
2026-12-04 -- Agents edit a doc's blocks by ID (RM-13, DEC-238)¶
The first of RM-13's other parts (plan plans/2026-12-04-blocks-comments-leases-citations.md § 1), for the API and MCP: docs.getBlocks (GET /v1/docs/{docId}/blocks) gives a doc's blocks in order, each with its ID, its own Markdown (without its nesting or quote, which come beside it as indent and quoted) and the text's version; docs.editBlocks (PATCH /v1/docs/{docId}/blocks) takes edits by block ID (replace with Markdown, find and replace in a block, insert after a block or at the start or end, move, delete), applied in order, all or none. With the version read, an edit is refused only if a block it changes or deletes has changed since (each block row's version), so a person's edit elsewhere doesn't stop it. The edits are pure functions on the document (lib/blockEdits.ts); agentDocs.editDocBlocks writes the result through pages/writes.ts updatePage with the document as textDoc, so only the changed rows are written and the IDs are kept, and with the new ownChange write option, so each call is its own History change with Undo rather than merged into the caller's edits of the last ten minutes. A doc kept Markdown-first (clean false) or still being read into blocks is refused with a way forward. readText now gives each block's version. Tests: lib/blockEdits.test.ts and platform.test.ts (the API, MCP, Undo, scopes, spaces, roles and another organisation). Checked on dev through MCP as the member test user: a read, edits by ID, a stale edit refused, an edit elsewhere at the old version accepted, only the changed rows rewritten, History with each call's Undo, and Undo keeping every block ID. Help's tokens article and API reference; What's new. On production the same day, with Andrew's approval (#110): /meta lists docs_getBlocks and docs_editBlocks.
2026-12-04 -- cross-spawn 7.1.2: the daily audit passes again¶
The daily audit (.github/workflows/audit.yml) failed on 1, 2 and 3 December on one critical advisory, GHSA-ghv9-86vm-4v8m: cross-spawn before 7.1.0 can run injected commands on Windows when it spawns a batch file. Thinklio's copy comes in through ESLint (@novansa/config), which counts as shipped because the config package lists it under dependencies; nothing Thinklio runs is on Windows, so nothing was exposed. The lockfile moves it to 7.1.2 (29 November, the same maintainer, no install scripts), inside ESLint's own range. npm audit --omit=dev --audit-level=critical passes and the web app's lint runs as before. The high and moderate advisories left (ws through convex, postcss, brace-expansion, glob) are under the audit's line and wait for their packages' own releases.
2026-12-03 -- Rich text stored as a row per block (RM-13, DEC-238)¶
Each doc's text, task's notes and list entry's notes is stored in the editor's format, one row per block (rich_texts and rich_text_blocks; plan plans/2026-12-03-block-storage.md), and the blocks are the master, with the object's Markdown field written beside them as the copy (DEC-236). lib/richTextStore.ts is the only writer, called by the three write paths (pages/writes.ts, lib/taskWrites.ts, lib/recordWrites.ts) on create, update and Undo, so every writer keeps the two together: an editor's document is stored as it is, IDs and all (textDoc in the write options); Markdown from anywhere else is read into the format, and blocks unchanged or edited in place keep their IDs (lib/blockDiff.ts matchIds). Only changed rows are written (diffBlocks), ordered by fractional keys (lib/orderKeys.ts, owned). richText.load reads the rows, so the editors keep block IDs; its versions are r<n>, and the old ones (a doc's content version, a hash of notes) are still taken while the text hasn't changed. The web's editor opens on the stored blocks and sends its document with the Markdown through pages.updatePage, tasksCrud.updateTask and lists.updateRecord. Markdown over 20,000 characters from anything but an editor is read in the background (richTextJobs.resync), the text marked stale meanwhile, as a mutation has one second; richTextJobs.convert stores what was written before, and richTextJobs.check (nightly) logs any text whose blocks and Markdown disagree. Both space purges remove the rows. On dev: 411 texts converted (406 clean), all 418 agreeing; edits on the web, in the app and in the panel each kept every block ID. B51 records that a History row holds the whole text (a doc over about 500 KB can't be edited, as before). Schema doc regenerated. On production the same day, with Andrew's go-ahead: the backend, then the conversion (414 texts, 409 clean, none failed), the check (all 414 agree), then the web.
2026-12-02 -- Tables get a row above and a column left; the app's quote bars under list items (RM-13 step 6, O20)¶
Both editors' table controls add a row above and a column left of the cursor's cell, as well as below and right, for Andrew (IDEA-48, Antonette's request for tables, is promoted to RM-13). Neither offers a row above the header row, which stays first (EDITING.md "Tables"): prosemirror-tables would add plain cells there and turn the header off on save, and AppFlowy would make the new row the header. The button is turned off there rather than hidden, so the buttons don't move: on the web when the cursor is in a header cell (Toolbar.tsx), in the app when it's in row 0 of a table with a header (toolbar.dart, where Delete row and Delete column are likewise off for the last one). The app's toolbar menus now use their own button with a label that shortens (AppFlowy's overflowed on "Delete column"), and lay out as many columns as fit, two for the table's menu on a phone. In the app, a quoted block nested under a list item outside the quote now has its bar (tech debt O20): _QuoteBarBuilder (editor_setup.dart) wraps each quotable block's builder and draws the bar when the block's parent isn't in the quote, since AppFlowy's block wrapper reaches top-level blocks only; the quote block no longer draws its own. Tests: toolbar.test.ts (web) and editor_render_test.dart (app, fixture 08 with the wrapper as the app uses it). Checked on dev in the web editor and on the iPhone simulator. Andrew found the app's editor working on the Mac (O19 noted). Help's Docs article and What's new.
2026-12-02 -- The app 0.2.0 (3) to TestFlight and Google Play (RM-45, RM-13 step 6)¶
The app with the new editor, 0.2.0 (3), went to TestFlight (iPhone and iPad) and to Google Play's internal testing with Andrew's go-ahead, after the backend's production deploy the same day. Play took Thinklio's first bundle through the API, as a draft (ACT-42 done, ACT-44 done: the Dev Team group has its testers). The release notes now come from IOS_WHATSNEW and ANDROID_RELEASE_NOTES_EN when they're set (the credentials files' lines are defaults). The Mac's build followed, its first run of mac beta.
2026-12-02 -- The new editor in the app: docs, task notes and list notes (RM-13, step 4)¶
The app writes docs, task notes and list entry notes in the new editor, as the web has since 1 December (plan docs/plans/2026-12-01-new-editor.md, steps 2 and 4). richText.load gives the stored Markdown to the app as Novansa Document JSON, with a version (a doc's content version, or a hash of the notes), its files' names, the guard's clean and whether the caller may change it; richText.save takes the JSON back, validates and normalises it, writes Markdown through the object's own write path (source app), and refuses a save from an older version unless it's forced, saying who changed it and when. Isolation tests in security.test.ts. In the app, features/rich_text/ holds the editor screen (autosave, drafts on the device, the conflict notice, @ from richText.mentionables, pictures from photos or the camera into the object's Files) and the notes in the task and entry panels, read as Markdown with Edit. The vendored AppFlowy's toolbar menus now get room when no on-screen keyboard is up. Checked on the iPhone simulator and the Pixel 8 emulator against dev. What's new: docs/changelog/2026-12-02-the-editor-in-the-app.md; Help's Docs, Tasks and Lists say how it works in the app.
2026-12-01 -- The new editor on the web: docs, task notes and list notes (RM-13)¶
Andrew brought the editor's Stage 1 forward (DEC-235): Antonette has moved off Notion, and the editor is best debugged in use. What's stored stays Markdown for now (DEC-236), with the editor's JSON to come beside it as the master.
- The measure first (
packages/doc-schema/test/measure.test.ts): every doc, task note and list note on production through the format and back, counts only. Fixes followed: quotes that hold lists (quotedblocks, both editors), code that keeps its info string, spaces that no longer split a link. 390 of 413 documents come through with the same meaning; 19 more only move a picture to its own line; none loses a word. - The guard:
editsCleanly(@novansa/doc-schema,src/markdown/compare.ts). A document opens in the editor only if its Markdown comes back meaning the same; otherwise it opens as Markdown source. - The web:
MarkdownDocEditorreplaces Lexical on a doc's page and the text box for task and entry notes, converting in the browser and saving Markdown through the existing paths (B17's version check and the History unchanged). The@picker searches the space (richText.mentionables); the reader draws mentions (richText.mentionLinks) and callouts. - Still Lexical's: nothing.
RichMarkdownEditor.tsxstays until step 8 of the plan retires it with the editor test.
Plan: docs/plans/2026-12-01-new-editor.md.
2026-11-30 -- Production only: the weekly check against Clerk, and email to anyone (B50)¶
On 30 November dev's weekly check against Clerk erased two dev profiles that carry production Clerk IDs, copied in from production (scripts/clone-prod-to-dev.sh), and emailed both people that their account had been deleted. Dev's Clerk instance doesn't know production's people, so it flags them one Monday and erases them the next. Production wasn't touched.
A deployment is production when DEPLOYMENT_ENVIRONMENT=prod (isProduction in lib/delivery.ts), set on production on 30 November (ACT-46) and nowhere else. Anywhere else, deletion.checkClerk stops before asking Clerk anything, and email goes only to the addresses in EMAIL_TEST_ADDRESSES: other recipients and copies are left out, and a message with none left is recorded as skipped. Covered in deletion.test.ts and delivery.test.ts, and checked on dev, where the check stops and a test email is skipped.
2026-11-23 -- Next.js 15.5.29 in the web app and the website¶
A patch update, pinned exactly in both apps with eslint-config-next to match (~/dev/docs/conventions/framework-versions.md, 23 November 2026). 15.5.29 fixes three medium advisories published on 19 November 2026 that cover 15.5.28: HttpOnly cookies exposed on Edge runtime routes, an SVG rejection bypass in image optimisation, and responses crossing between clients in self-hosted apps that forward fetched responses. Checked with the web app's typecheck, lint, tests and build, and the website's lint and build. Moving to 16 is still its own piece of work, and its target is now 16.4.6.
2026-11-22 -- The iOS app's location purpose string¶
Apple's note on build 2 (ITMS-90683): the app's code refers to location, so Info.plist needs NSLocationWhenInUseUsageDescription. None of the app's own code or its plugins' source asks for location; the reference is in a library it's built with. The string is added, saying the app doesn't ask for it. It goes out with the next TestFlight build.
2026-11-22 -- Routines, step 9: the app (RM-5)¶
The app's space Overview has a Routines card (apps/mobile/lib/src/features/spaces/space_routines.dart): each routine with its agent, what starts it, when it last ran and its month's cost against its limit, Pause and Turn on for the space's Owners and admins, and its history on a tap. ?tab=routines opens the Overview there. The app's API was regenerated. Adding and changing a routine stay on the web (flutter-parity.md).
2026-11-22 -- Routines, step 8: a repeating task that starts its agent (RM-5)¶
A repeating task assigned to an agent has "Start the agent each time" (tasks.agentEachTime, the person who turned it on; tasksCrud.updateTask's agentEachTime). When the task is done its next one is made as before, and taskRepeats.start is scheduled for the day that one is due: the agent then starts on it for that person, if it's still to do, still the agent's and still repeating. The series has a routine's limits, once a day and $5 a month, counted from the runs started this way (agent_runs.repeat); at a limit the person is told and the task waits. Without the switch nothing changes (DEC-157). The plan said the task's creator answers for it; it's whoever turned the switch on, since they chose it.
2026-11-22 -- Routines, step 7: the web's screens (RM-5)¶
A space's ⋯ menu has Routines (apps/web/src/components/spaces/SpaceRoutines.tsx, ?tab=routines, shared spaces only): each routine with its agent, what starts it, its next run, its month's cost against its limit and who it answers to; a switch to pause it; and Run now, Change, What it's done, Take it over and Remove for the space's Owners and admins. Adding one offers the Renewals watcher or your own. Organisation › Usage lists every routine in the organisation with its month's cost (routines.all, admins only, in the isolation test). routines.list says which routines answer to the caller (mine). A run's note is asked for in plain text. Help has the article routines, and What's new has an entry. The Renewals watcher was tried on dev with a real model: two tasks on the first run, none on the second. scripts/ui-check gained routines.mjs and call.mjs.
2026-11-22 -- Routines, step 6: the Renewals watcher, and what it needed (RM-5)¶
lib/routineTemplates.ts, routines.templates, routines.createRenewalsWatcher. Agents can be given lists.list, lists.get, entries.list and entries.get (tools listLists, getList, listEntries, getEntry). entries.list takes dateField, from and to. tasks.create takes entry and once, and answers existing; tasks.once in the schema; agentCrud.raiseTask. Help's API reference is regenerated.
2026-11-22 -- Routines, step 5: events (RM-5)¶
lib/routineEvents.ts (routinesHear, called by recordChange), routineRuns.afterQuiet, routines.pending, routine_runs.about. An event is a task, a list entry or a doc; not a file (tech debt D15).
2026-11-22 -- Routines, steps 3 and 4: schedules and limits (RM-5)¶
lib/routineSchedule.ts; routineRuns.due every five minutes; routines.limited; routineRuns.usedBy, and routines.list gives each routine's cost this month. A run's ledger rows carry metadata.routine and routineId. Leaving an organisation stops the routines that answered to the person.
2026-11-22 -- Routines, step 2: runs (RM-5)¶
routine_runs; routineRuns.ts and routineTurn.ts; routines.runNow, routines.runs. A run is the space's work (DEC-163) with its owner as the approver: approvals.request takes answerer, and a capability call's principal answersTo. usage.recordUsage puts a space's chatless work on the ledger under that space. A routine notification kind. Nothing starts a run by itself yet (steps 3 and 5).
2026-11-22 -- Routines, step 1: the table and its writes (RM-5)¶
routines (schema), lib/routines.ts, lib/routineWrites.ts, routines.ts. Changes are recorded as routine in the routine's space. spaces.removeSpaceAgent stops that agent's routines there; spaces.purgeSpace and orgDeletion remove them. Nothing runs one yet.
2026-11-22 -- The service registry, step 9b: a service's tools over MCP; a plain summary for each tool (RM-41)¶
platform/capabilities.ts serviceCapabilitiesFor, used by /mcp's tools/list and tools/call. SCOPE_PATTERN takes digits and underscores, for a service's area. services.tools keeps summary, which offered and an agent's settings show in place of the description. A service's short name can't be an area kept for people.
2026-11-22 -- The service registry, step 9: the screens (RM-41)¶
components/admin/ServicesAdminSection.tsx in App admin and components/admin/panels/ServicesPanel.tsx under Organisation › Integrations; Help's app-admin#services and organisation#services. services.register takes what the service is for; services.offered gives each service's cost over 30 days; policies.actions includes a turned-on service's tools. scripts/ui-check/services.mjs drives both screens. Organisation's menu was missing Memory (the section was there, reachable only by its link): fixed.
2026-11-22 -- The service registry, step 8: health; credentials for services agreed (RM-41; DEC-230 to DEC-234)¶
services.checkAll each 15 minutes (crons.ts), services.ids; keepRead tells platform admins once when a service stops answering, with the new notification kind service (the web's bell has its icon). Step 7, jobs and events, waits on research-v2's contract. The plan for credentials is Agreed, with Andrew's five answers.
2026-11-22 -- The service registry, steps 4 to 6: a service's tools through the gate, the call and its cost (RM-41)¶
capabilities/fromServices.ts (serviceCapability, capabilityFor), lib/jsonSchemaCheck.ts, serviceCall.ts (run), services.usable and forCall. Capability gains service and schema; invokeCapability checks a built capability's input against its JSON Schema and counts its most-it-may-cost in the spending check. ACTION_PATTERN allows digits. toolsForAgent, approvalsRun and agents.settingsOptions, create and update know a turned-on service's tools. usage.recordUsage takes service. On dev only, and nothing is registered there yet.
2026-11-22 -- Credentials for services: a plan proposed (DEC-229; Q-139 to Q-143)¶
The five MCP servers for outside tools stay out of the registry for now (DEC-229). plans/2026-11-22-service-credentials.md proposes how every kind of credential a service needs is kept and sent: whose it is (Thinklio's, the organisation's, the person's) and how it's obtained (pasted, or OAuth), in connections.
2026-11-22 -- The service registry, steps 2 and 3: the contract and the tables (RM-41)¶
The contract agreed with thinklio-services' session is in the plan's step 2. services and account_services (doc 04 regenerated); services.ts: list, register, refresh (read, keepRead), offer, withdraw, setCredential (keepCredential), offered, turnOn, turnOff. orgDeletion.ts clears account_services. Nothing calls a service yet, and there's no screen.
2026-11-22 -- Memory on production; the service registry's Part 0 (RM-39, RM-41; Q-138)¶
Memory deployed (PR #87; npx convex deploy, seed:syncAgentCatalog, assistants:bringUpToDate). The catalogue's sync has to run before Assistants are brought up to date, which the plan now says. RM-41's plan has What's true about thinklio-services: /meta has no input schema or cost, the schema is in each server's MCP tool list, the five MCP servers for outside tools take the tool's own credential, and jobs call back with signed webhooks. DataForSEO is the first service.
2026-11-22 -- Memory, step 8: the app's Profile (RM-39)¶
apps/mobile/lib/src/features/settings/memory.dart: WhatThinklioRemembers in the app's Profile, from memory:list and memory:switches, with Add, Correct, Forget, That's right and the two switches. A team's, the organisation's and an agent's memory stay on the web (DEC-80). flutter-parity.md has its row; the simulator's flow is scripts/ui-check/app/memory-attached.yaml.
2026-11-22 -- Memory, step 7: the switches and conversation notes (RM-39; DEC-224, DEC-225)¶
account_records.memoryOff, user_profiles.memoryOff, agent_threads.episodeAt and its index by_lastActiveAt. memory.switches, setMine, setOrganisation; memoryRun.startEpisodes (hourly, at :37), episodeSource, keepEpisode; memoryEpisodes.write (easy tier, costed against the person). Episodes lapse after 90 days (lapsesAt). MemorySwitches on the web.
2026-11-22 -- Memory, step 6: the web's screens (RM-39)¶
MemorySection and SharedMemory (apps/web/src/components/memory/), in Profile, Organisation › Memory, Knowledge › Remembered and an agent's panel. Help: profile, organisation and knowledge; What's new 2026-11-22-agents-remember; the privacy page says what agents remember. scripts/ui-check/part.mjs pictures one part of a page, and can open a tab and fill a dialog first. IDEA-50: proposals for team and organisation memory from the work itself, for later.
2026-11-22 -- Memory, steps 4 and 5: in an agent's context, and fading (RM-39)¶
contextHandler (agentFactory.ts) puts what's remembered in front of each model call: memoryRun.forRun applies knowledge's audience rule (a person's private memory only in a conversation that's theirs alone), and memoryText words and caps it (40 statements, 2,000 characters, three episodes). memoryRun.sweepLapsed runs nightly. Tried on dev with the test member's Assistant.
2026-11-22 -- Memory, step 3: agents remember, recall and forget (RM-39)¶
memory.recall, memory.remember and memory.forget in the capability registry, for agents; the Assistant's catalogue entry holds them and its prompt says when to remember. Capability.own marks a write that's the agent's own keeping, which Offer mode doesn't turn into a suggestion. memoryCheck.sensitive is the easy tier's look at what an agent inferred about a person. Nothing puts memory into an agent's context yet (step 4).
2026-11-21 -- Memory, steps 1 and 2 (RM-39); the three core plans agreed (DEC-223 to DEC-228)¶
Plans for Memory, the service registry (RM-41) and Routines (RM-5), with Andrew's five answers. Memory's backend: the memories table; lib/memory.ts (who sees and changes what, what a run may use, what's sensitive, when things lapse); lib/memoryWrites.ts (each write a change, a correction undoable, forgetting removes the row and its history); memory.list, add, change, confirm and remove; deletion and a person's export. Nothing reads memory into an agent's context yet (step 4), and there's no screen (step 6).
2026-11-21 -- The app's first TestFlight build (RM-45)¶
Build 0.1.0 (2) is on TestFlight, sent by ci-cd/scripts/deploy-ios.sh with Andrew's go-ahead, and Apple lists it as valid and in beta testing. Xcode 27.2's uploader reported success and then failed tidying up, which fastlane took for a failed upload; the lane now treats that one message as a warning. The internal group "Dev Team" exists with no testers yet (ACT-44).
2026-11-21 -- The app's first signed builds (RM-45)¶
The keys are in place (ACT-40): Novansa's App Store Connect team key and its Play service account, in apps/mobile/ci-cd/secrets/ (gitignored). Apple already had Thinklio's app record (iOS, no builds) and its bundle ID; Play has no app yet (ACT-42). Thinklio's Android upload key is made (ACT-43). ios beta and android beta take SKIP_UPLOAD=true, which stops after the signed build: both ran clean, a 32MB IPA and an 86MB bundle signed by Thinklio's key. Nothing has been uploaded.
2026-11-21 -- The app's build pipeline (RM-45, started)¶
apps/mobile/ci-cd/, copied from Twikka's and adapted: fastlane lanes for iOS (TestFlight), Android (Play's internal testing) and the Mac (mac build for this Mac, mac beta for TestFlight, not yet run), the deploy scripts, the version helpers, a set-up guide (ci-cd/docs/thinklio-setup.md) and the secrets' examples; Gemfile pins fastlane. No secret is in the repo and nothing has been uploaded. Run so far: mac build, which makes a release app. Found on the way: with Xcode 27.2 a release build of convex_flutter's Rust fails unless stripping is off (the Fastfile sets CARGO_PROFILE_RELEASE_STRIP=false), and a universal Mac build fails Flutter's architecture check, so the Mac's release is Apple silicon only (O11). Xcode's build logs (macos/DerivedData), committed by mistake with the Mac target, are removed and ignored.
2026-11-21 -- The Flutter app builds for the Mac (RM-53, DEC-220)¶
apps/mobile/macos/: a macOS target for the same app, for macOS 13 and later, sandboxed with outgoing network and picked-file access, its window opening at the tablet layout's width, and its own icon (scripts/build-mac-icon.swift). Built and opened on Andrew's Mac against dev: it starts, reaches Clerk and Convex, and shows sign-in. Nothing past sign-in is checked, and it isn't signed for other Macs (tech debt O19). apps/mobile/CLAUDE.md says how to run it.
2026-11-21 -- The app catches up with the web (DEC-222)¶
apps/mobile: Home gains a Today section (features/home/today.dart: calendar events for today and tomorrow from calendars.events, and the unread mail line from mail.unreadMine), absent when there's neither. A draft approval gains Change (approval_tile.dart, changeDraft): its text fields in a sheet, approved with the changed input, as the web's. Profile gains Connected accounts (features/settings/connected_accounts.dart): what's connected, switches for the calendars in Today, and which permissions are on, with connecting and permissions opening the web. The app's chat already stays at the bottom (its list is reversed), so the web's scroll fix had nothing to match. Web: a draft's mail and calendar fields have their names and order in the Change dialog. Looked at as rendered images with made-up data, not on a simulator: the test admin's Home there would show Andrew's own calendar.
2026-11-21 -- RM-51 step 17d: unread mail in Home's brief¶
mail.unreadMine (a public action, with its isolation test): the count of unread messages in the caller's own inbox, to 25 and "more than", read from the provider when asked; null where the person hasn't allowed reading or the mailbox can't be reached. No subject, sender or text is returned and nothing is stored. The web's useUnreadMail asks when Home opens, at most every five minutes, and the brief adds a sentence. The Flutter app's Home doesn't have it yet (flutter-parity). Step 17 is done.
2026-11-21 -- The chat stays at the bottom¶
apps/web/src/components/chats/ChatView.tsx: Virtuoso's followOutput follows only a new item, so an agent's answer growing in place (and files or cards arriving in a message) left the view behind, and its "last item" stopped up to 70px short on opening. The view now keeps its own stuck flag (set within 120px of the bottom, cleared when the scroll position goes up), and on any change in the list's height scrolls its scroller to the very end. The list is keyed by chat and opens aligned to the end. Measured on dev with a script: 0px from the bottom on opening and through an answer. The Flutter app wasn't checked.
2026-11-21 -- An agent acts only on what was just asked¶
Seen on production: asked "What's come in today?", the Assistant answered, then also had Calendar draft an event it had said it couldn't make the day before, because that request was still in the conversation. Every asked turn's instructions now carry JUST_ASKED (lib/rightNow.ts, added in agentExecution.ts): earlier requests are finished, and something newly possible is offered, not done. Not reproduced on dev; the wording is the fix.
2026-11-20 -- The site's pricing page is per user (DEC-210, DEC-216 to DEC-219)¶
apps/website: the pricing page shows Standard ($10) and Business ($20) a user a month in place of the trial, Solo, Team and Business cards and their early-bird prices; the trial and the one-off sign-up credit are in the text above the cards; guests are named as free up to 5 a paid user. Terms § 4 lists Standard, Business and Enterprise, and the home page's call-out no longer promises early-bird pricing. Doc 01 § 5 carries a note that its tiers are superseded. Nothing in the app's billing changed.
2026-11-20 -- RM-51 step 17b and 17c: a person's mail for their agents; one list of a provider's permissions¶
On rm-51-mail (DEC-215). The Mail port (connectors/ports/mail.ts) and Zoho's adapter (connectors/zoho/mail.ts): list a folder, search by words or sender, read one as plain text, save a draft, send. mail.ts holds the internal actions, each for one person through their own connection, needing its mail part to read and its send part to write; nothing of a mailbox is stored. Capabilities mail.list and mail.read (policy mail:read), mail.send and mail.draft (external, so each waits for its person); a Mail agent in the catalogue holds all four, and the Assistant reads mail itself (catalogue 2.5.0). An approval's summary says who an email goes to. Profile's separate Allow rows became one list, What Thinklio may do with Zoho, with a switch each and one Allow (connections.mine returns choices; connections.turnOffMine drops a part at once).
2026-11-20 -- RM-51 step 17a: Zoho Mail tried; Profile's agent rules folded away¶
On rm-51-mail. A person's connection gains two parts they turn on, mail (reading) and send (drafting and sending), DEC-215; Profile offers each with Allow (ConnectedAccountsSection's CHOICES). connectors/zoho/trial.ts gains mailTry and mailWriteTry, dev only, which report shapes and never a message's words; what Zoho answered is in the plan's step 17a. Profile's What agents may do for you now shows the rules a person has changed and folds the rest behind a disclosure, since the list had grown to 32 (Andrew, 20 November 2026).
2026-11-19 -- RM-51 step 16f: adding, moving and removing a calendar event¶
On rm-51-calendar-events. A person's connection gains an optional part, events (ConnectionAdapter.ownOptional; Zoho's asks for ZohoCalendar.event.CREATE, .UPDATE and .DELETE), turned on by them in Profile with Allow (connections.startMine's also; connections.mine returns optional). The Calendar port gains create, update and remove, and Zoho's adapter has them as tried against Zoho that day (the plan's step 16f: the event's @ unencoded, the latest etag read first, an all-day end the day after the last, notify_attendee: 0). calendars.createEvent, updateEvent and cancelEvent act for one person on a calendar they show, in their own time zone (momentIn), and look at the calendar again afterwards so Today follows. Capabilities calendar.createEvent, calendar.updateEvent and calendar.cancelEvent (agents only, external) are held by the Calendar agent, which the Assistant asks (catalogue 2.4.0); an approval's summary says the day and time. An event's ID for agents is its calendar's row and its ID at the provider, which outlasts the copy being rewritten. Nobody else is asked to an event. B49: one occurrence of a repeating event. A helper agent installed from the catalogue now follows it (lib/assistants.ts, focusedAgents): before, it kept the capabilities and instructions it was installed with, so Calendar could still only read. Every agent's turn, and every helper it asks, now starts by being told the day, date and time where its person is (lib/rightNow.ts): before, nothing told it, and "tomorrow" was a day out the next morning. An approval's summary says a calendar event's day and time in words.
2026-11-19 -- A date typed by hand stays put (feedback)¶
A task's due date, a list's date field and a milestone's date saved on every keystroke, so typing a year sent 0002, then 0020, to the server, and the field went back to what was saved and lost the rest (Antonette's recording, 18 November 2026). workspace/shell/DateField.tsx keeps what's being typed to itself until it's a whole date (a year from 1900), saves a picked date at once, clears on leaving the field empty, and goes back to the saved date if left half-typed.
2026-11-19 -- The Assistant reads the calendar itself (DEC-213)¶
The Assistant's own capabilities gain calendar.events, and its instructions say to look there for a question about the day (catalogue 2.3.0). Asked through Calendar, the answer took three model calls and about 15 seconds on dev. Calendar stays in the Assistant's helpers for what's to come (making events). DEC-214 defers a secrets agent.
2026-11-19 -- RM-51 step 16e: the Calendar agent¶
On rm-51-calendar-agent. calendar.events (capabilities/calendar.ts, policy calendar:read, agents only) gives the events of the person an agent acts for, by that person's own days and time zone (their profile's, else their main calendar's), from the copy kept for Today (calendars.forAgent); it can't name another person. The catalogue gains Calendar (lib/catalog.ts), a focused agent holding only that capability, and it joins the agents each Assistant asks (DEC-212); the Assistant's instructions say what it's for. It reads only: making events is step 16f. The catalogue's version goes to 2.2.0, which is what makes an existing Assistant take the new instructions and helper, and assistants.bringUpToDate (internal) does that for everyone at once: run it after a deploy that changes the catalogue, since otherwise a person's Assistant follows only when they next press Ask your Assistant (found on dev, 19 November: the Assistant said it couldn't see a calendar).
2026-11-19 -- RM-51 step 16c and 16d: a person's calendar in Today¶
On rm-51-calendar, on dev, not shipped. New tables calendars (a person's calendars at a provider, each shown or not) and calendar_events (the events of those shown, from yesterday to a fortnight ahead), and connections.calendarLookedAt. calendars.ts: refresh reads a person's calendars and events through the Calendar port and rewrites the copy (on connecting, every 15 minutes by refreshAll, and when Home opens, by refreshMine, at most every two minutes); mine, setShown and events are the person's own and read nobody else's, with no admin view; drop removes them when the connection ends or its person leaves. Web: Home's Today shows today's and tomorrow's events with tasks, and the brief counts today's (hooks/useMyEvents.ts); Profile › Connected accounts lists Calendars in Today. A declined event is left out. The copy isn't in a person's data export: it's a fortnight's copy of what their provider holds, rewritten every quarter of an hour. The site's privacy page says what's read and kept. Not in the app yet (flutter-parity).
2026-11-19 -- RM-51 step 16a and 16b: Zoho Calendar tried, and the Calendar port¶
On rm-51-calendar, not shipped. A person's own Zoho connection now asks for their calendar, to read (ZohoCalendar.calendar.READ, ZohoCalendar.event.READ, in zohoAccounts.ownParts), and connections.mine says when theirs is behind, which Profile offers as Allow again. Zoho Calendar was read with Andrew's own account on dev (field names, times and flags only), and what's true of its answers is in the plan's step 16a. connectors/ports/calendar.ts is the port (a person's calendars; a calendar's events between two times, a repeating event as its occurrences), and connectors/zoho/calendar.ts is Zoho's adapter: Calendar's address in the account's data centre, group calendars asked for, windows of at most 30 days, the "No events found." item left out, all-day days kept as days. trial.calendarGet and trial.calendarTry are dev only. Nothing reads events into Thinklio yet.
2026-11-19 -- The web app says when a new version has been deployed¶
A page left open across a deploy now shows a strip above the page, "Thinklio has been updated", with Reload (components/layout/NewBuildBanner.tsx, in MainLayout). GET /api/build answers with Next's build ID (.next/BUILD_ID; null under next dev, where nothing is offered), and hooks/useNewBuild.ts remembers the first answer and asks again every ten minutes and when the tab is looked at again. It never reloads by itself, since someone may be part way through writing. Pages opened before this shipped don't have it, so it's first seen at the deploy after this one. Asked for by Andrew, 19 November 2026.
2026-11-19 -- A Cliq account is linked by its email address (DEC-211)¶
channels.take links a sender the bot hasn't met when the address Cliq sends for them (params.user.email, now read by cliq.receive as Said.sender.email) is the verified sign-in address of exactly one member of the organisation; the bot tells them once, privately. channel_identities.how says how a link was confirmed, channel_endpoints.autoLink and channels.setAutoLink are the admin's switch (on unless turned off), and someone who unlinked isn't linked again this way. Integrations has the switch; Help and the site's privacy page say what's read.
2026-11-18 -- Files: which are Zoho's, at a glance¶
Asked for by Andrew on production's first linked folders. Web only: a gallery card for a file kept at a provider has the provider's name on its picture (FileThumb's keptIn), a linked folder names its provider in the folder list, and the line above an open linked folder's files names the folder.
2026-11-18 -- The Zoho trial tools stay, and run only on dev¶
connectors/zoho/trial.ts was to be deleted before production. It stays, because Part 4 (calendar, mail, Vault) is tried against Novansa's Zoho the same way (DEC-195). Every function in it is internal and now refuses unless the deployment has ZOHO_TRIAL=1, which is set on dev only and never on production.
2026-11-18 -- An agent's words before and after using a tool are separate paragraphs¶
An agent that said something, used a tool and then said more had the two run together with no gap ("…search now.I've searched now."), in every chat; Andrew saw it in an answer in Cliq. agentExecution.ts now reads the stream's parts, not its text alone, and lib/agentText.ts afterStep starts a new paragraph after a step or a tool. Tried on dev.
2026-11-18 -- RM-51 step 15: a Cliq channel as the window onto a space's chat¶
On rm-51-zoho-connections, and seen working both ways in Novansa's Cliq. New table channel_rooms (a group on a channel, linked to a space). channels.ts: rooms, roomChoices, linkRoom and unlinkRoom (admins only), mirrorOut (called from notifications.onMessage for a space's chat, skipping what came from that channel by its clientId), hearIn and post; take now takes a group's message where the group is linked. The Channel port gains rooms and join; Cliq's adapter reads a participation event, turns on channel participation for a new bot, adds the bot to a channel (associate) and posts by the channel's ID. Zoho's Chat part asks for ZohoCliq.Channels.READ and .UPDATE (DEC-209), and connections.list says when a connection is behind what its parts now ask for, which Integrations offers as Allow again. Purging a space removes its rooms. connectors/zoho/trial.ts gains cliqChannels, cliqTry and rotateCliq, dev only. B48 records what the mirror doesn't carry.
2026-11-18 -- Moving a file tried at Zoho (ACT-36), and what it changed¶
On rm-51-zoho-connections. A file went out to a Team Folder and came back on dev. Web: the file's panel has a Move button beside Open (the menu item was hard to find), and forgetFileUrls (hooks/useFileUrls.ts) drops a file's signed link when its panel sees it change store; other open views keep the old link until it refreshes (B47). connectors/zoho/trial.ts gains plantFile, dev only, and scripts/ui-check/upload.mjs shows how an upload's request to storage goes (it's how B44 was confirmed again).
2026-11-18 -- Cliq tried in Novansa's account (ACT-37), and what it changed¶
On rm-51-zoho-connections. Steps 13 and 14 ran against Cliq on dev. Three corrections in connectors/zoho/cliq.ts: base gave isZohoHost a bare host where it takes an address, so every call was refused (now tested for each data centre); a message's ID is who said it and when (params.message_details.time), since Cliq sends none; and inCliq writes bold with one asterisk and a link as a named link. channels.arrive logs the names of a request's fields, never what they hold, when a message has no ID. B46 is new (the Assistant doesn't know its person's name).
2026-11-18 -- A linked person's chat with Thinklio's bot: their Assistant, and their notifications (RM-51 step 14)¶
On rm-51-zoho-connections. channels.take now sends a linked member's message to their Assistant's chat (ensureAssistant, sendMessage), once per delivery, and remembers where to answer (channel_identities.replyChatId, replyUntil, index by_replyChatId). channels.echoReply, called from notifications.onMessage, sends an agent's message in that chat back to the channel for 30 minutes. channels.tell, scheduled by lib/notify.ts beside push, sends a notification to the person's linked accounts (notify, with channels.setNotify and a switch in Profile). Not yet run in Cliq (ACT-37).
2026-11-18 -- The Channel port, Cliq's adapter, and linking a sender to a member (RM-51 step 13)¶
On rm-51-zoho-connections. New: connectors/ports/channel.ts (the channel adapter contract of doc 16 § 8.3: profile, render, receive, send), connectors/zoho/cliq.ts, channels.ts (list, turnOn, turnOff for admins; linkInfo, confirmLink, mine, unlink for a member; arrive, take and say behind them), the tables channel_endpoints and channel_identities, and the route POST /channels/<channel>/<secret>. Zoho's connection gains the part chat (Cliq's bot scopes), asked for only when an admin allows it. endConnection and removeFromAccount end channels and links. Web: /link/channel (in Sentry's routes, with no "?"), linked accounts in Profile › Connected accounts, and Cliq under Zoho in Integrations. connectors/zoho/trial.ts gains plantLink, dev only. Not yet tried against Cliq (ACT-37): what Cliq sends for a message is read from Zoho's pages for extensions.
2026-11-18 -- Files in both stores for tokens and keys, and Help for Zoho (RM-51 step 12)¶
On rm-51-zoho-connections. vFile gains keptIn, opensAt and linkOnly; agentFiles.getFile no longer refuses a file kept outside Thinklio, and files.get's downloadUrl is now optional (absent for a link). files.moveOut and files.moveIn are new capabilities (38 in all), checked by agentFiles.forMove and run through fileMoves.outFor and inFor; their policy actions are files:move_out and files:move_in, the first with an underscore, which the registry's test now allows and describeAction words. The API reference and the site's copy are regenerated. Help's Files, Organisation and Profile articles cover linked folders, moving and links; What's new has 2026-11-18-zoho-workdrive-folders.md.
2026-11-18 -- Moving a file between Thinklio's storage and a linked folder's (RM-51 step 11)¶
On rm-51-zoho-connections. fileMoves.ts is new: options, moveOut and moveIn (public, for whoever may change the file, with isolation tests), their plans (outPlan, inPlan) and the two switches (switchOut, switchIn), which change where a files row's bytes are and leave its ID alone. sendOut and bringIn are the moves themselves, for the capabilities to call too. A connection has a new part, move, which connections.start takes only with files; FilesAdapter gains optional write and trash, and WorkDrive's are its upload and its status patch (51 the bin, 1 back). fileSources.dropSource is exported. Web: MoveFileDialog, a Move item on a file's menu, and Allow moving files in IntegrationsPanel (a new connection asks for reading only). connectors/zoho/trial.ts gains setMove, dev only, used to look at the dialogs. Not yet run against Zoho (ACT-36).
2026-11-18 -- A provider's file picked as a link, through a person's own sign-in (RM-51 step 10; DEC-207)¶
On rm-51-zoho-connections. connections rows of kind person are now made: connections.mine, startMine and disconnectMine (public, for any member, with isolation tests), mineForFiles for the picker, and a new index by_kind_and_status. ConnectionAdapter.ownParts names the narrower scopes a person is asked for, and finish returns a person to Settings › Profile. removeFromAccount ends and deletes a member's own connections, which covers leaving, removal and account deletion. FilesAdapter gains places and find; WorkDrive's are My Folders (/privatespace), Shared with me (/incomingfiles) and Team Folders, and a name search over the team's records. filePicks.ts is new: places, browse, find and pick (public actions, each through the caller's own connection), record, and a nightly checkAll that brings names up to date. files gains pickedBy, providerId and by_pickedBy (doc 04 regenerated); NewFile.r2Key is optional. A picked file is refused by fileSources.forReading, files.urls, the index and files.move, and files.get, forObject and a message's files say it's a link (linkOnly; provider and link in chat). Web: ConnectedAccountsSection, ProviderPicker, and links in ObjectFiles, FilePanel, MessageFiles and the composer. App: links shown and opened in the task's and entry's Files, the file's panel and chat. Help's Profile article has Connected accounts. scripts/ui-check/see.mjs scrolls to some text and takes a picture. Not yet used with a real Zoho sign-in (ACT-35). For the next security review: a person's own connections, and that nothing reads a picked file.
2026-11-18 -- A linked folder's files found by what they say (RM-51 steps 4 and 9; DEC-193)¶
On rm-51-zoho-connections. readBytes (lib/fileStore.ts) reads a provider's file through its linked folder's connection, and takes the file's ID from its three callers (fileProcess, fileDescribe, fileTranscribe). file_sources.contents is the per-folder switch (doc 04 regenerated); fileSources.contentsCost and setContents are new, public and for admins, with isolation tests, and markAll queues a folder's files a page at a time. contentIndex.indexedFile refuses a provider's file unless its folder has the switch on, which is what keeps every reader out until then. mirror marks a file for reading only when its version or name changed; archiveGone and unlinking take its text out. The web has Find by what they say on a linked folder's menu, with the statement, the count and the cost (FolderContentsDialog.tsx), and the folder's note says whether its files are found by name or by what they say. Tried on dev against Novansa's General (DEC-205): 33 files read and indexed, PDFs and Zoho Writer documents, and found by meaning. Steps 4 and 9 are ticked. Step 8 waits on WorkDrive's Business plan: Novansa's has Data Templates without custom fields (ACT-32).
2026-11-18 -- Linked folders kept in step (RM-51 step 7; DEC-204)¶
On rm-51-zoho-connections. Two scheduled jobs: fileSources.lookAll every five minutes and fileSources.checkAll nightly. A look (look, claimLook, applyLook) reads what was touched since the folder's cursor and puts each thing as it is now; a full check is the first sync's walk again with checkStartedAt set, then sweep, which archives every file and removes every folder not seen since it began (by object_sources.lastSyncedAt). file_sources gains checkedAt, checkStartedAt, lookingUntil and by_state (doc 04 regenerated). fileSources.checkNow is new and public, for a space's members, with its isolation test. /files/provided archives a file it finds gone. files.restore refuses a mirrored file. The web has Check now and "last checked" on a linked folder, and says of a gone file that it's no longer in Zoho. Seen on dev against real changes in WorkDrive the same day: a document added, renamed and moved to Trash each came through on the scheduled look, and the plan's step 7 is ticked.
2026-11-18 -- A provider's shared folder linked to a space (RM-51 step 6)¶
On rm-51-zoho-connections. New tables file_sources and file_source_work, and sourceId and providerUrl on files and sourceId on folders (doc 04 regenerated). fileSources.ts holds linking (options, audience, link, retry, unlink, canLink, forSpace), the first sync (an action that reschedules itself through the limiter) and unlinking in batches; disconnecting a provider unlinks its folders, and purging a space removes them. A mirrored file is refused a rename, a move and a delete. files.urls gives a provider's file a link to /files/provided with a ticket (lib/fileTickets.ts: HMAC-SHA256 under a key made from CONNECTIONS_KEY, 15 minutes), where the bytes are read through the connection and passed on: pictures, PDFs, sound and video in place, anything else as a sandboxed download, 18 MB at most. The web has Link a folder with who will see it, the cloud mark, the folder's state, Try again, Unlink, a Source filter, and Open in Zoho and Download in the file panel; the app shows the same files with their note and Open in Zoho. Isolation tests for every new public function are in security.test.ts, and fileSources.test.ts covers the rest. Help and What's new come with step 12, when Zoho is offered on production. Looked at in the app on a simulator afterwards, which found an older fault: a file with no picture (a document, a PDF) showed a broken link in the app's grid, since its tile was given an empty address; FileThumb now shows the type's icon first. Step 6 is ticked.
2026-11-18 -- Folders hold folders (DEC-203; RM-51 step 6 begins)¶
On rm-51-zoho-connections. Andrew chose one kind of folder everywhere (DEC-203, answering Q-120). file_folders has parentId and storage, with by_parentId (doc 04 regenerated); files.moveFolder is new, with its isolation test; files.list reads one folder by its index. The web's folder list is a tree (workspace/files/folderTree.ts, FolderTrail), and the app shows paths and the same trail. Two older faults found while looking and fixed: a dialog opened from a ⋯ menu left the page not taking clicks (kit/Overlay.tsx, to go to RippleBase: ACT-33), and a space's page overflowed a phone's width. Help's Files article and a What's new entry say what changed.
2026-11-18 -- Zoho: the security review's fixes, and the Files port (RM-51 steps 3 and 4)¶
On rm-51-zoho-connections. A separate reviewer read the connection code and found nothing critical; its medium and low findings are fixed (the plan's step 3 lists them: late refreshes dropped, one refresh at a time, the provider's revoke checked and retried, a closing organisation refused), with two left as debt (O16, O17). connections.refreshingUntil is new (doc 04 regenerated). The Files port (connectors/ports/files.ts) and its WorkDrive adapter (connectors/zoho/workdrive.ts) are written and tried against Novansa's account. IDEA-45 (what to take from Roma) and IDEA-46 (tasks from anywhere) were added at Andrew's word.
2026-11-18 -- Zoho: no webhooks for now, and the rate limiter (RM-51 step 3)¶
On rm-51-zoho-connections. Zoho's webhooks and limits were looked up (the plan's step 2 has them): webhooks need WorkDrive's Business plan and are made by hand; the API has no limit by plan, only by speed. Andrew chose the change feed without webhooks (DEC-202, answering Q-119; ACT-32 is his enquiry about the Business plan). Every provider call now goes through connectors/pace.ts: five a second for each connection, the same folder listed once in five seconds, and a 429's wait held for the whole connection (connections.heldUntil, doc 04 regenerated).
2026-11-17 -- Zoho's API tried against Novansa's account (RM-51 step 2)¶
On rm-51-zoho-connections. Zoho connected on dev (ACT-28 done) and the trial ran, read-only. What's true is in the plan under step 2: listing, versions, downloads (a Zoho Sheet arrives as an Excel file) and Data Templates work; every Team Folder has a change feed (its timeline), which replaces the webhook (Q-119); there are no transcripts by API. Dev's APP_URL is now http://localhost:3020, so a sign-in returns to the local app.
2026-11-17 -- Zoho begins: the connection to an outside provider (RM-51 steps 2 and 3)¶
On rm-51-zoho-connections. Zoho's reference was read ahead of the trial (the plan's step 2 has what it says: webhooks are made in WorkDrive's Admin Console and may need its Business plan; a listing has no version number). The connection was built so the trial can sign in: the connections and connection_states tables; the Connection port with Zoho as its first adapter; connections.start, the return address /connections/<provider>/return and connections.finish; tokens sealed under CONNECTIONS_KEY (lib/secretBox.ts); disconnecting; and Settings › Organisation › Integrations on the real list. Nothing is offered where the provider's client isn't set, so production is unchanged. The trial waits on ACT-28; production's setup is ACT-31.
2026-11-17 -- The content index is on for Novansa on production (RM-38 step 16 begins)¶
PR #60 merged (a704d22) and Convex deployed. The index was turned on for Novansa: 2,198 things indexed for about USD 0.013. Describe files and Transcribe recordings stay off. A week of use follows, to 24 November; DEC-201 settles where recordings are transcribed.
2026-11-17 -- Help, the privacy page and the docs for the content index (RM-38 step 15)¶
On feat/rm-38-index (PR #60).
- Help:
settings/organisation.md(Search, with Learn more on the section),spaces/files.md(what search knows of a file),getting-started/finding-your-way.md,settings/your-data.md. - The site's privacy page, § 5: what OpenRouter and the model providers handle now includes indexed, described and transcribed content, where an admin has turned it on.
- Doc 05: an as-built note for the content index.
flutter-parity.md: three rows.
2026-11-17 -- The index's nightly check, and files' text in the export (RM-38 step 14)¶
On feat/rm-38-index (PR #60).
contentIndex.check, nightly (crons.ts): queues the removal of any index entry whose object is gone, archived or no longer indexed, and deletes a stored text or transcript whose file is gone.- The export:
yourData.filesPagereturns each file's details and where its text and transcript are;yourDataBuild.tswritesfiles/files.jsonand<name>.text.txt/<name>.transcript.txt; the README names them. - Tests for both, and the space purge now covers a file's text, transcript and index entry.
2026-11-17 -- Transcribe recordings (RM-38 step 13)¶
On feat/rm-38-index (PR #60). The trial's numbers are in the plan's step 13; where it runs is Q-118.
- The setting:
account_records.transcribeRecordings,contentIndex.setTranscribe(admins; needs the index on), a switch in Settings › Organisation › Search. - Transcribing:
fileTranscribe.transcribe(a Node action) after a recording is processed, or when asked (fileContent.transcribe).lib/transcribe.tssends the recording togoogle/gemini-3.1-flash-litethrough OpenRouter in one request (MP3, WAV, M4A, AAC, OGG, FLAC, MP4; up to 25 MB), with the app title, and reads a stopped key and an outage as ormon's guide says. The AI SDK's provider passes only WAV and MP3, so this is a plain request. - The transcript: a
file_contentsrow of kindtranscript, stored atacc/<account>/file-transcript/<file>.txt; it's the file's indexed text, the panel shows it, and Describe files describes from it.files.transcribedHash,files.transcribing. It goes with the file, and when the index is turned off. - The ledger:
file-transcribe, at the cost OpenRouter reports.
2026-11-17 -- Describe files (RM-38 steps 10 to 12)¶
On feat/rm-38-index (PR #60).
- The setting:
account_records.describeFiles,contentIndex.setDescribe(admins; needs the index on), a switch in Settings › Organisation › Search. - Describing:
fileDescribe.describe(a Node action) after a file is read, or when asked (fileContent.describe): a summary and keywords from text; for a picture, a summary, alt text, keywords and its words; for a scanned PDF, its words too. The organisation's easy model throughchatModel, the spending check, the ledger (file-describe), and the friendly messages when the key is stopped (ormon's guide § 5.1).lib/fileDescribe.tshas the prompts and reads the answer. - Whose words:
files.fieldSources;files.setDetailstakessummaryandkeywordsand marks a person's;fileContent.describednever writes over them.files.describedHash,files.describing. - The panel: Summary, Keywords and Describe this file. No label on what AI wrote.
- Titles on OpenRouter: the index's embedding calls now send
X-Title(ormon's guide § 5.5).
2026-11-17 -- Files read for their text, and image placeholders (RM-38 steps 6 to 9)¶
On feat/rm-38-index (PR #60).
- The file record (step 6):
files.storage,providerVersion,contentHash,summary,keywords,fieldSources,processing,blurhash;r2Keyoptional;file_contentsfor a file's extracted text and, later, its transcript.readBytes(lib/fileStore.ts) is the one way the server reads a file's bytes. Signed links leave out a file with nor2Key. - Reading (step 8):
fileProcess.runreads a queued file, hashes it, extracts its text with no AI (lib/fileText.tsfor plain formats and Office files;unpdf2.2.1 for PDF), stores it in Thinklio's storage and indexes it asfile:<id>.markFilequeues a file when it's added, renamed, described, deleted or restored. The walk and the estimate include files. Removal takes the stored text too (lib/purge.ts,orgDeletion.ts,deleteFileNow). - Finding: files are a kind in search by meaning, for people and for agents, and in
knowledge.search'skind. API reference regenerated. - The panel (step 9): a Text section: status, Show text, Read this file (
fileContent.read,fileContent.text;files.getgainsreading). The limit is 30 MB, measured. - Placeholders (step 7): an image's BlurHash, width and height are worked out where it's uploaded (web:
lib/files/blurhash.ts; Flutter:lib/src/api/blurhash.dart) and sent withfiles.finishUpload(image);files.listandfiles.getreturnblurhash, and the web's thumbnails draw it until the picture loads.files.setImagefills it in for older images, from the browser of someone who can change them. - Doc 04 regenerated. Found on the way: B44 (uploads from the browser fail on dev).
2026-11-17 -- The content index, and search by meaning (RM-38 steps 1 to 5)¶
On feat/rm-38-index (PR #60).
- The indexer:
lib/contentIndex.tsmarks a changed doc, task or list entry fromrecordChange;contentIndex.tsholds the queue (index_queue: one row for each object, indexed once it's been quiet for two minutes, at once when deleted or archived), each object's text (no sensitive field), what's indexed (index_entries, with a hash so unchanged text isn't embedded again) and the walk over what's already there (index_jobs);contentIndexRun.tsembeds, within the spending limits, and records each embedding in the cost ledger. - Where: the index's layer for the space's owner (
content:account:,content:team:,content:user:), with filters for space, kind and store. A space that changes owner has its entries moved; one archived or left out has them removed. - The setting (DEC-197): Settings › Organisation › Search, for admins: an estimate of the cost first, on and off, progress, and each shared space in or out.
account_records.contentIndex,spaces.indexOff. - Agents' threads are no longer embedded (R13): nothing searched them.
- Deletion: a space's and an organisation's index rows go with them.
- Tests:
contentIndex.test.ts, and the setting's isolation insecurity.test.ts.scripts/ui-check/content-index.mjspresses the section's buttons. - Chats (step 3): a space's chat, comments, a team's chat and the organisation's are indexed in runs of messages (
index_chat_runs), each line "who: what they said"; a deleted message leaves its run at once. Direct messages and groups aren't indexed (DEC-199). - Search for people (step 4):
contentSearch.meaning(an action: the person's layers, one embedding, each hit checked against what they can see now); the results page asks for words and meaning together (apps/web/src/help/remote-search.ts), the pop-up for meaning only when the words found none of the person's own things; Chats is a group, found by words too (search.everything);?message=opens a chat at a message; the results page says when finding by meaning is off (contentIndex.isOn). - Search for agents and tools (step 5):
knowledge.searchForRunembeds once and searches knowledge and content, content within the spaces the turn reaches (contentSearch.reach), each content result with its kind, title and link (contentSearch.cite).knowledge.searchtakeskindandspace, and a token limited to some spaces now searches the content in them. API reference regenerated. - The index's own layers:
content:account:<id>,content:team:<id>,content:user:<id>. Under knowledge's names the component mixed the two (a search with no filters matches a layer with them);forgetKnowledgedeletes both. - B43 fixed: a space's chat, or comments, is "one person alone" only in that person's own space (
lib/knowledgeScope.ts). - Doc 04 regenerated.
2026-11-17 -- A plan for the content index and files (RM-38)¶
On docs/rm-38-plan. Docs and records only.
- The plan:
plans/2026-11-17-content-index-and-files-understood.md, agreed by Andrew the same day (DEC-197 to DEC-200: off until an admin turns it on, tasks included, direct and group chats not for now, and the design). One index of everything in spaces, in the layer of each space's owner; one indexer fed by the write paths; chats in runs; thefilesrow's new fields with text kept infile_contents;readBytesfor a file in any store; search by words and then by meaning, for people, agents and tools; what's turned on and by whom; 16 steps in four parts. Its § 8 answers the Zoho plan's § 6. Closes R13 when built.
2026-11-17 -- Zoho first, and a plan for outside providers (RM-51)¶
On docs/zoho-integration-plan. Docs and records only.
- Decided by Andrew: integrations in the order Zoho, Google, Microsoft (DEC-190, changing ADR-038's order), and Cliq ahead of Telegram as the first channel (DEC-191, changing DEC-95's).
- The roadmap: RM-51 (Zoho Workplace) added after RM-38; RM-52 (Microsoft 365) added after RM-6; RM-42 is now Cliq, then Telegram, then email.
- The plan:
plans/2026-11-17-zoho-and-outside-providers.md. Ports with one adapter per provider; oneconnectionstable; a WorkDrive file as afilesrow whose bytes stay in WorkDrive (files.storage,readBytes); linked folders mirrored as records and kept in step; moving a file between stores; what RM-38 has to allow for (its § 6); Cliq on doc 16's model; Vault as links. - Agreed by Andrew the same day: everyone in a space sees a linked folder's files (DEC-192), a provider's text is stored only where an admin turns it on (DEC-193), Vault is linked and never read (DEC-194), and the design as a whole (DEC-195).
- The order (DEC-196): RM-38 with the foundation, then all of Zoho, then RM-39.
- For Andrew: ACT-28 (register Thinklio in Zoho's API console).
2026-11-17 -- A table's dropdown cells stay open (B42)¶
On fix/table-select-closes. Reported by Antonette through Send feedback, with a recording.
- The bug: in a table (tasks or a list), clicking a cell with a dropdown, such as a task's status, opened its list and closed it again before anything could be chosen. The kit's Select draws its list in a portal and moves focus into it; the cell editor's
onBlur(TableView.tsx) saw focus leave the cell and closed the editor. - The fix: focus moving into the editor's own list or popover isn't leaving. Clicking elsewhere and Escape still close it.
- Check:
scripts/ui-check/table-cell.mjs(fails without the fix, passes with it), run on dev.
2026-11-17 -- The website's developer reference, for what's built (RM-2 part 4, step 19)¶
On production 17 November 2026 (PR #56). With it every step of RM-2's plan is done, and Andrew agreed RM-2 is Done.
- thinklio.ai/developer described three APIs that were never built, every page marked Coming soon. It now has an Overview (introduction, tokens and keys, every call, connecting an MCP client) and a Reference with a page for each area and a card for each of the 35 calls: its inputs, what it answers, its scope, its MCP tool and a curl example.
- Generated: the calls are
apps/website/src/data/developer-api.json, written bysiteReference(packages/backend/test/apiReference.ts) from/openapi.jsonand/meta.apiReference.test.tschecks it as it checks Help's article. - Help's reference names the areas added in steps 16 and 17 properly (Files, Chats, Messages, Contacts, Knowledge, History and undo) and puts them in order.
- The platform page says the API and MCP server exist; Telegram and email are still on the way.
- Checks: the site type-checks, lints and builds; the pages were looked at on dev.
2026-11-17 -- Counting API and MCP calls (RM-2 part 4, step 18)¶
DEC-189, agreed as built by Andrew on 17 November 2026. On production the same day (PR #55).
api_calls_daily(new table): calls for each capability, by door (API or MCP) and day, with how many were refused and how many failed.audit.writekeeps it as each call's audit row is written, so nothing reads the audit log to count. Deleted with the organisation (orgDeletion.ts).apiUsage.calls, for admins, and a section on Organisation › Usage, API and MCP calls, the most called first.- Not built: which capabilities nobody uses across all organisations, which is what the standard's § 9 is for. Tech debt R19.
- Tests: one in
platform.test.ts(counts by door, refused, failed, admins only, each organisation its own). 636 backend tests pass. Checked on dev: seven calls made with a test token show on the Usage screen.
2026-11-16 -- Contacts, knowledge and history for tokens (RM-2 part 4, step 17)¶
Eight more capabilities reach the API and MCP (36 tools; Platform API 0.10.0), on feat/rm-2-contacts-knowledge-history. Andrew agreed DEC-188 as built on 16 November 2026, and it went to production the same day (npx convex deploy, PR #54).
- Contacts:
contacts.find,create,update,logInteractionandhistory, the agents' own, each with a route. Knowledge:knowledge.search, over the organisation's knowledge and the person's own. - Not for keys or narrowed tokens: contacts and knowledge aren't in a space, so a key, and a token limited to some spaces, are refused (
needsWholeReach). Agents are unchanged. - A search is a read:
reads: trueon a capability whose cost isn'tread(readsOnly), so a read-only token can search knowledge. - History:
history.listandhistory.undo(agentHistory.ts);changes.undoChangenow callsundoAs, which a token's or key's undo shares. - Tests:
platformPart4.test.ts(6), and the generated permission tests cover the eight. 635 backend tests pass. - Checked on dev: a contact saved, found by its email, renamed, its history read and the rename undone; a personal knowledge item found by a token's search.
2026-11-16 -- Files and chat for tokens and keys (RM-2 part 4, step 16)¶
Seven capabilities, each a /v1 route and an MCP tool (28 now; Platform API 0.9.0), on feat/rm-2-files-chat. Andrew agreed DEC-187 as built on 16 November 2026, and it went to production the same day (npx convex deploy, PR #53).
- Files:
files.list(a space's, or the ones on a task, entry or doc),files.get(details, where it's used, and a download link good for 15 minutes),files.uploadandfiles.attach(two calls, as the app uploads: a link to send the bytes to, then the check and the record; or a file already in the space put on something else).agentFiles.tsoverlib/files.ts, so the app's guard and write path do the work. A file a key adds shows under the key's name in the app (files.nameOf). - Chat:
chats.list,messages.list,messages.send.agentChats.tsoverlib/chats.tsandmessages.sendMessage. A space's chat follows the space; a person's own chats need a token with no limit on spaces; a key reads its spaces' chats and posts in none. - Rules: new policy actions
files:read,files:add,chat:read,chat:post; a team's rules hold for a call that names a file or a chat (spaceAgents.targetSpace). - Tests:
platformFilesChat.test.ts(11), and the generated permission tests cover the seven. 597 backend tests pass. - Checked on dev: a PDF uploaded, attached and downloaded byte for byte through its link; the same upload a second time is a 409; a text file named
.pngis refused; a message posted in a space's chat shows in the app as the person's. - CI: the backend type-check had failed on
mainsince part 2 (an unused name inplatform.test.ts, which--noUnusedLocalsrejects), so its later steps hadn't run. Fixed in PR #52. I had merged parts 2 and 3 without looking at CI; from now on a merge waits for it.
2026-11-16 -- RM-2 part 3 on production¶
Andrew approved it with DEC-186. npx convex deploy to festive-shrimp-468 (one new index, api_keys.by_accountId_and_kind; no backfill), and PR #51 merged to main. https://api.thinklio.ai/health answers, and a call with a made-up key is a 401.
2026-11-16 -- Organisation and team keys (RM-2 part 3, steps 13 and 14)¶
Built on feat/rm-2-keys after Andrew's go; he agreed DEC-186 as built on 16 November 2026.
- Keys with a reach of their own (DEC-175):
api_keysgainsreach,teamIdandaccess, and the indexby_accountId_and_kind. A key's call is the principalkey:<ID>(lib/principals.ts), androleInSpace,visibleSpaceIdsandensurePersonalSpace(lib/spaces.ts) answer for it fromlib/keyReach.ts, so no capability needed its own rule for keys. - Making and managing them (
apiKeys.ts):createKey(an action, for admins; the secret isthk_key_…, shown once),setReach,forAdmins(the keys, and every person's tokens), andrevokeas before. A key's maker is told a week before it ends. - Settings › Organisation › Keys (
components/admin/panels/KeysPanel.tsx): the keys with where each works, New key (the spaces chosen, or a team's; what it may do; how long), Spaces to change its reach, Revoke; and People's tokens, to revoke. - Refused for a key, plainly: no personal space, no
me, no comment, no Assistant or knowledge (needsPerson,meOfin the registry). - Removed:
tasksCrud.ingestTaskand the branch oftasks.createthat used it for integrations. It ignored a key's reach, and no caller was left once tokens came. - The organisation's download lists its keys (
keys.json). - Help: Organisation › Keys; the API reference links to it. What's new:
2026-11-16-keys.md.scripts/ui-check/keys.mjsmakes and revokes a key as the admin test user. - Tests: three in
platform.test.ts(558 pass): an organisation's key's reach, name and refusals; a team's key and approvals; who makes, sees and revokes. - Checked on dev: an admin made a key for Operations in Settings; it listed only Operations, made a task there shown in the app as "UI check key created … via API", was refused a personal space, another space,
meand a comment in plain words, and stopped with a 401 once revoked.
2026-11-16 -- RM-2 part 2 on production¶
Andrew approved it on 15 November 2026 with DEC-183 to DEC-185. npx convex deploy to festive-shrimp-468 (four new indexes, PLATFORM_VERSION 0.8.0), then tasksCrud:backfillUpdatedAt (98 tasks set) and lists:backfillUpdatedAt (run through to the end, by the function log) on production, and PR #50 merged to main. https://api.thinklio.ai/health answers 0.8.0 with 21 tools, /openapi.json lists 20 routes, and a call with no token is a 401.
2026-11-15 -- Help's API reference and the agent test (RM-2 part 2, step 12, before production)¶
- Help › Developers › API and MCP reference (
docs/help/developers/api-reference.md) is written from/openapi.jsonand/metabypackages/backend/test/apiReference.ts.apiReference.test.tsfails when it's behind the registry;UPDATE_API_REFERENCE=1 npx vitest run convex/apiReference.test.tsrewrites it. - The agent test (the API standard's § 8): a fresh Claude session, given only the two Help articles and a member's token on dev, found a space, wrote a doc, made, changed, commented on and completed tasks, added and changed a list entry, changed the doc by version and met the 409, searched, used MCP, and tried three things that should fail. Every step worked first time and it found no bug.
- What it stumbled on, fixed: a new task is assigned to the token's person unless someone is named, which nothing said; descriptions written for an agent ("Use it when they ask you to…") now read for anyone, and
docs.createis titled "Write a doc or note"; an entry'sfieldssays how each type of field is sent; a call's own name (tasks.list) is shown with each call and explained; the reference says a change answers with an ID, that an empty value is left out, how search matches, and what MCP answers; "(RM-36)" is out of/openapi.json. - Left as it is: there's no "who am I" call (
meworks wherever a person is taken);docs.searchgives apreviewandsearch.findasnippet. PLATFORM_VERSION0.8.0.- On dev, left from the checks: docs, tasks, a comment and two list entries whose titles start "API check:", in the test member's personal space, Operations, and Novansa's Projects and the Thinklio Decision Log lists.
2026-11-15 -- Docs and search for tokens, and a permission test for every capability (RM-2 part 2, steps 10 and 11)¶
Built on feat/rm-2-spaces-tasks; Andrew agreed DEC-184 and DEC-185 as built on 15 November 2026.
- Docs (
agentDocs.ts,capabilities/docs.ts):docs.createanddocs.search, the agents' two, are opened to the API and MCP, anddocs.getanddocs.updateare new. A doc can go in a named space or under another doc; with neither it's a note in the person's personal space, as before.docs.updatereplaces the whole text and takes theversionthe caller read: a text changed since is aconflict(409, a new code for capabilities) and nothing is written. The docs functions moved out ofagentCrud.ts. - Search (
agentSearch.ts,capabilities/search.ts):search.find,GET /v1/search, across tasks, list entries and docs. It searches only the kinds the token's scopes let it read, and drops a result the organisation's or a team's rules wouldn't let it read (decideCalltakes the place when the caller knows it). - The place of a call now includes a doc (
docId,parentDocIdinspaceAgents.targetSpace). - Fixed before it shipped:
tasks.getsent a task's own field values by field ID, sensitive ones included. They go out asfieldsby name, as entries' do, with sensitive ones left out (lib/fieldsOut.ts). Dev only; step 8 isn't on production. - Step 11:
capabilityPermissions.test.tsgenerates the shared permission tests for each of the 20 routes and 21 tools from the registry, and checks none is in an area kept for people (KEPT_FOR_PEOPLE). - Tests: 555 pass (87 more: three for docs and search, one for a task's fields, 83 generated).
- Checked on dev: a member's token wrote a doc, read it, changed it with its version, was refused with a 409 from the old version, and found it through
docs.search,search.findand the MCP tool; the app showed the doc with both changes "via API".
2026-11-15 -- Lists and entries for tokens (RM-2 part 2, step 9)¶
Built on feat/rm-2-spaces-tasks after Andrew's go; he agreed DEC-183 as built on 15 November 2026.
- Six capabilities for the API and MCP (
capabilities/lists.ts,agentLists.ts):lists.list,lists.get,entries.list,entries.get,entries.createandentries.update, throughlib/recordWrites.ts, the app's own write path. A list read from a repo is read-only. - An entry's values by field name (DEC-183), with choices as labels, in and out; a sensitive field's value never leaves.
collection_records.updatedAtwith two indexes (by_collectionId_and_updatedAt, andby_collectionId_and_archivedAt_and_updatedAtso live entries are read without a filter), set by the writes that are in an entry's history.lists:backfillUpdatedAtgives older entries their creation time: run on dev, and to run on production after its deploy.- The place of a call now includes a list or an entry (
spaceAgents.targetSpace), for a team's rules and a token's spaces. - Comments' query no longer filters: a deleted comment is dropped from its page.
tasks.liststill filters after its index (tech debt R18). - Tests: four more in
platform.test.ts(468 pass): lists and their fields, entries in and out,updatedSinceand deleted entries, and scopes, spaces, roles and another organisation. - Checked on dev: a member's token listed the organisation's 45 lists, read one with its fields and entries, made an entry with a choice by its label and changed it; an unknown field and a repo's list were refused in plain words.
2026-11-15 -- Spaces, tasks and comments for tokens (RM-2 part 2, step 8)¶
Part 1 went to production on 15 November 2026 (PR #49, then npx convex deploy; /meta answered 0.6.0). Step 8 is built on feat/rm-2-spaces-tasks; Andrew agreed DEC-179 to DEC-182 as built on 15 November 2026, and part 2 goes to production as one, at its step 12.
- Nine capabilities for the API and MCP (
capabilities/spaces.ts,tasks.ts,comments.ts):spaces.listandspaces.get;tasks.list,tasks.get,tasks.create,tasks.updateandtasks.complete;comments.listandcomments.add.tasks.list,tasks.updateandtasks.completewere agents' already and are the same capabilities, so agents get the list's new filters and the update's new fields too. - Routes (
platform/routes.ts,http.ts;PLATFORM_VERSION0.7.0): GET with its input in the query string, PATCH, and paths that name the thing (/v1/tasks/{taskId}), gathered under their fixed start for Convex's router./openapi.jsondescribes path and query parameters (DEC-179). tasks.updatedAt(DEC-180), with the indexesby_spaceId_and_updatedAtandby_accountId_and_updatedAt: set by every write inlib/taskWrites.ts, not a line in history.tasks.listpages by cursor in its order and takesupdatedSinceandincludeDeleted.tasksCrud:backfillUpdatedAtgives older tasks their creation time: run on dev (127 tasks), and to run on production after its deploy.- Comments (DEC-181) are their own area for scopes and rules.
comments.addopens the task's comments as the app does (chats.tsopenPlaceChat) and sends throughmessages.tssendMessage, whichmessages.sendnow calls too. - A team's rules (DEC-182):
decideCallfinds the place from the task or the space's slug a call names (spaceAgents.targetSpace, which now takes a space's ID as well), where it took onlyspaceIdor the chat before. - Errors:
agentCrud.tsanswersnot_foundandforbiddenwith codes, and the registry turns what the app's functions say to a person into a 404, 403 or 400 instead of a 500. - Tests:
platform.test.tscovers each route, paging,updatedSince, a token's scopes and spaces, another person's and another organisation's things, Read only in a space, a team's rule, and the tools over MCP (464 tests pass). - Checked on dev: a member's token listed spaces and tasks, made a task, changed it, commented on it and marked it done through
/v1, and listed it through/mcp; the app showed the task, its notes and the comment. A read-only token was refused the write with 403.
2026-11-14 -- Personal tokens for the API and MCP (RM-2 part 1)¶
Agreed by Andrew on 14 November 2026 (DEC-174 to DEC-178); built on feat/rm-2-tokens.
- Tokens: every member makes personal tokens in Settings › Profile › Tokens (
convex/apiKeys.ts, tablesapi_keysandapi_idempotency). The secret is shown once and stored as its SHA-256 hash; a token always ends (90 days unless chosen, a year at most, a notice a week before), stops with its person's membership, and is revoked by its person or an admin. - A token call is its person's call: the registry's principal carries the key, so the person's access, the policy engine (actor
key), approvals and spending limits apply, and the audit log and each change's source name the token. Scopes (lib/apiScopes.ts) and chosen spaces narrow it. A token limited to spaces also reaches its person's own personal space, as an agent's reach does (DEC-166). - The wire (
platform/respond.ts,routes.ts,mcp.ts;PLATFORM_VERSION0.6.0): problem details for errors, 120 calls a minute for each token,Idempotency-Keyon writes.INGEST_API_KEY,accountIdin the body andX-Thinklio-Accountare removed, which closes tech debt O2. - Also: tokens in a person's export (
tokens.json), deleted with the person and the organisation; Help has a Developers section; doc 09 § 1.5 is as built;scripts/ui-check/tokens.mjsmakes and revokes a token as a test user. - Checked on dev: a member's read-only token listed only reading tools; a full token made a task through
/mcpand throughPOST /v1/tasks; a repeatedIdempotency-Keyreturned the first answer; a revoked token got 401.
2026-11-14 -- A plan for RM-2, API keys and MCP tools¶
Proposed, not started: plans/2026-11-14-api-keys-and-mcp-tools.md. Personal tokens and organisation and team keys as principals under the policy engine (DEC-93), the wire shape brought to Novansa's API standard, and the first capabilities in four parts. Four questions for Andrew: Q-105 to Q-108. It closes O2 when part 1 lands.
2026-11-14 -- The website brought in line with what's built¶
Andrew's direction, 14 November 2026 (DEC-173): describe the platform, and keep governed, audited and costed as the major feature for organisations.
- Rewritten: the home page, Platform (the work, agents as members, governance and cost, knowledge, connecting, where it runs), Agents (the Assistant and the four focused agents as what comes today, then the planned catalogue from doc 08, 19 agents with Research first, under On the way) and Security (Convex in Ireland, Clerk, account checks on every query and change, in place of the old Go, PostgreSQL, Redis and row-level security claims).
- Corrected: About, Your Data, Use cases and Philosophy no longer say all data is in the EU (sign-in and model routing are in the United States, as the privacy policy lists), and the "regular third-party audits" claim is gone.
- Removed:
/docsand its data (Help is in the app), and the Platform page's Go deeper section with its three PDFs from March 2026. - Developers: the API reference stays, every section marked Coming soon with a notice on each page; its "Beta, available now" lines are gone.
- Domain:
thinklio.aieverywhere, email addresses included. - Unchanged: pricing (the early bird prices stand), terms, privacy, refund, contact, founder.
scripts/ui-check/site-shot.mjs: screenshots of the site's pages.
2026-11-14 -- RM-30 is Done, and Research is RM-50¶
Andrew, 14 November 2026: RM-30 closes with parts 1 to 4 on production, and the Research agent becomes RM-50 (DEC-172). He agreed DEC-165 and DEC-167 to DEC-169 as built, to be reviewed with actual use. Plan step 23 ticked. DEC-170, DEC-171 and ACT-26 stay with the Research work on feat/rm-30-research, so the registers skip them.
2026-11-13 -- RM-30 part 4: agents listening in a space's chat¶
On production since 14 November 2026 (PR #43), on Andrew's go that day; the plan's week on dev was cut short at his word (13 November 2026). Dev's reading was one unasked turn, about $0.04, which was wanted. Listening is off until a space's Owner or an admin turns it on for an agent.
Plan plans/2026-11-12-agents-as-members.md, steps 17 to 19. Andrew's go-ahead: "Yes do 3 to 5", 12 November 2026.
- A space as a run's principal (DEC-163, DEC-167):
lib/principals.ts;roleInSpace,visibleSpaceIds,ensurePersonalSpaceandteamIdsOfanswer for it as a Member of that one space; approvals with approverowners; no Assistant asking.agentForSpace.test.tsholds the isolation tests. - The listener (DEC-158):
agentListening.tsandagentListen.ts(the Easy tier's decision,lib/listenDecision.ts),space_members.listensand its limits,agent_listening_days, the note to Owners at a limit.agentListening.test.ts. proactiveremoved from the schema and code;agentListening:retireProactivemoved dev's 4 agents and 7 threads tomention. Production had none.- Unasked replies:
messages.listmarks them;unasked_feedbackandunasked_mutes;spaces.setSpaceAgentListeningandsetSpaceAgentListenLimits. Web:UnaskedActions,SpaceAgents. App:unasked_actions.dart, the space's Overview. - An unasked turn's story opens for the space's Owners as well as admins (DEC-168).
- Docs: doc 03, doc 04 (regenerated), Help (Spaces, Agents, Chat), What's new, the parity page.
2026-11-12 -- RM-30 part 3: reading what an agent did¶
On production since 13 November 2026 (PR #42).
Plan plans/2026-11-12-agents-as-members.md, steps 13 to 16. Andrew's go-ahead: "Yes do 3 to 5", 12 November 2026.
- The request on an agent's message and run:
messages.requestIdandrequestedBy,agent_runs.requestId, theagent.turnaudit row, and the indexpending_approvals.by_accountId_and_requestId. All optional: messages and runs from before have no story link. agentStory.get: one turn's story from its audit rows, changes, suggestions and usage, for the person the agent worked for and admins (agentStory.test.tsholds the access tests: the person, an admin, another member, another organisation, and who gets the ID on a message).- How it got here: one dialog on the web (
components/agents/HowItGotHere.tsx, opened byStoryLinkfrom a message, a suggestion, a task's run line and an agent's change), and a sheet in the app (features/agents/how_it_got_here.dart, from a message, a suggestion, a task's run line and Agents at work). - Agents at work on Home, web and app, from
agentRuns.mine. RM-4's note on the roadmap no longer waits for it. - Docs: doc 03, doc 04 (regenerated), Help (Agents, Your Assistant, Home), What's new, the parity page.
2026-11-12 -- RM-30 part 2: a space's agents¶
On production since 12 November 2026 (PR #41); the backfill added no agents there.
Plan plans/2026-11-12-agents-as-members.md, steps 9 to 12 (DEC-159, DEC-165, DEC-166). Andrew's go-ahead: "I tested my assistant and it works. Let's proceed with the plan", 12 November 2026.
- Membership:
space_members.modeon agent rows;spaces.setSpaceAgent,removeSpaceAgentandaddableAgents(Owners and admins; audited asspace.agent.added,.modeand.removed);listSpaceMembersreturns each agent's mode. Watch joins as Read only, the others as Member. - Only a space's agents work there (
lib/spaceAgents.ts:worksIn,modeIn,agentsIn): the mention list and resolution (lib/mentions.ts), the trigger (agentTrigger.ts),agents.assignablewith a space,tasksCrud's assignment check,agentRuns.beginand the turn (agentExecutionHelpers.turnPlace).messages.sendno longer adds a mentioned agent tochat_members. A person's own Assistant works wherever they can, in its own mode. - A turn's mode is the space's where it was asked, and its helpers follow it. Asked in a shared space's chat, the turn's instructions name the space, so "here" is that space.
- Existing agents (
spaceAgents:backfill, run once after each deploy): an agent with a task in a space, or in its chat, becomes one of its agents in the mode it had (DEC-134). - Screens: the web's Members (People and Agents apart,
components/spaces/SpaceAgents.tsx; Agents alone in a personal space) and the Assignee pickers; the app's Assignee picker and Overview.scripts/ui-check/space-agents.mjsandapp/space-overview-attached.yaml. - Where a turn reaches (DEC-166;
lib/scope.ts,scopeOf): a turn takes the spaces its agent is a member of, with each one's mode, when it starts (turnPlace), and the agents it asks carry it.decideCallfinds the space a change is aimed at (spaceAgents.targetSpace: a task, or a space's slug), refuses one outside it and uses that space's mode;agentCrud's task and doc functions andfields.listcheck it again and leave other spaces out of what they list. The person's own space is always reached; an Assistant has no scope. - Modes as built are agreed (DEC-164, Q-103).
2026-11-12 -- RM-30 part 1: modes, each person's Assistant, and Assistants asking each other¶
On production since 12 November 2026 (PR #40); handover docs/sessions/2026-11-12-assistant-handover.md.
Plan plans/2026-11-12-agents-as-members.md, steps 2 to 8 (DEC-159 to DEC-161, DEC-164).
- Modes (
lib/agentModes.ts):agents.defaultMode(watch, offer, act), a ceiling on the policy level indecideCall, carried to an agent's helpers. Act suggests what'sdestructiveorexternal(a new flag on a capability) in place of the plan'sundoable, and agents without a mode keep acting (DEC-164).defaultTriggerModeis still read for those (tech debt R17). - The catalogue in code (
lib/catalog.ts, 2.1.0): the Assistant, Tasks, Contacts, Writer and Finder; the 13 old entries unpublished. A new organisation no longer gets a default agent. - The Assistant (
lib/assistants.ts,assistants.ts):agents.ownerUserId, made on first open with its direct chat;canReachinagents.ts,tasksCrud.ts,lib/mentions.ts,chats.ts,agentTrigger.ts,agentExecution.tsandtools/delegation.ts;account_records.assistantsOff; deleted with its person or organisation (deletion.ts). - Asking each other (
capabilities/assistants.ts,assistantAsks.ts,assistant_asks):assistants.askandassistants.reply, held only by Assistants (only: "assistant"), the reply always a draft. - Suggestions grouped:
approvalsreturns the request ID asgroup; the web'sApprovalListand the app's group them in Waiting on you with Do all. A chat keeps one card per suggestion. - Screens: web
components/assistant/(Home's button, the chat list's first row, Rename, the admin's switch on Agents) and Mode inAgentEditModalandAgentProfilePanel(components/agents/modes.ts); the app'sfeatures/assistant/.AgentSetupModallost its reply controls, which nothing read (B41). - Fixed on the way: approving an agent's suggested task no longer notifies the approver that it was assigned to them (
notifications.onTaskAssigned); a chat the person can't read shows Chat not found, not an error (ChatViewwaits for the chat before asking for its messages). - Tests:
assistants.test.ts, a block insecurity.test.ts, and the app'stest/assistant/.scripts/ui-check/assistant.mjsdrives the Assistant on dev. - Docs: doc 03's As built, doc 04 regenerated, Help's new article
assistantand its agents and Home articles, What's new, the parity page.
2026-11-12 -- RM-30's plan proposed¶
- Plan:
docs/plans/2026-11-12-agents-as-members.md, Proposed: the Assistant on suggestions, agents as members of spaces in Watch, Offer or Act, reading what an agent did, and listening in a chat. Q-98 to Q-102 are with Andrew. Nothing is built.
2026-11-12 -- RM-40 part 2: an agent works a task assigned to it¶
Plan plans/2026-11-11-agents-own-capabilities.md, steps 8 to 11 (DEC-154; DEC-156 and DEC-157 as built, for Andrew to confirm).
- The workflow (
agentRuns.tsworkTask, oncomponents.workflow;lib/agentRuns.tsstarts, cancels and answers it): beginchecks in code (the task, its space, that the person can change tasks there, the agent, the spending limits) and sets In progress; a failure is a comment and the task back with the person, with no model call;agentExecution.runTaskTurnis the agent's turn in the task's comments (runTurn, shared with a chat's turn, now returns how it ended);finishsets In review, never Done, and tells the person; a blocked or failed turn hands the task back.- At a run limit it waits on an approval of kind
run(pending_approvals,approvals.ts): approving sends the workflow its Continue, declining or expiry its Stop;approvals.withdrawcloses the question when the run is cancelled. - Started and cancelled in the task write path (
lib/taskWrites.ts): a person's own assignment starts a run; unassigning, reassigning, marking done or cancelled, and deleting cancel one. - An outage is retried by the workflow only while the turn has changed nothing (
agentExecutionHelpers.changedIn). agent_runsis new (one row per run), purged with its task (lib/purge.ts). Doc 04 regenerated.- Public functions:
tasksCrud.createTaskandupdateTasktakeassignedAgentId;agents.assignable;agentRuns.forTask. Each is insecurity.test.ts.agentRuns.test.tscovers the run with the mock model and the workflow component. - The web: agents in the task panel's and the table's Assignee, the panel's line on what the agent is doing, Continue and Stop on
ApprovalItem. The app: the same in the task panel andApprovalTile. - History names an agent as the actor (
changes.ts), where it showed its ID. - R14 is done: the durable path is in use.
scripts/ui-check/agent-task.mjsruns an agent on a task on dev. - Docs: doc 03's As built, Help's tasks and Home articles, What's new (
2026-11-12-agents-work-tasks.md), the parity page. - Agreed by Andrew, 12 November 2026: DEC-156 and DEC-157 as built; RM-40 moved to Done on the roadmap; recurring agent work (RM-5) and agents listening in chats (RM-30) are still wanted (DEC-158). ACT-1 done: the old Supabase token is revoked.
2026-11-11 -- RM-40 part 1: each agent's own capabilities, coordinators and run limits¶
Plan plans/2026-11-11-agents-own-capabilities.md, steps 1 to 7. Decided with Andrew the same day: DEC-151 (focused agents and coordinators, graphs in code), DEC-152 (a capability list per agent, trust level retired), DEC-153 (run limits), DEC-154 (the first graph, part 2) and DEC-155 (the delegation set is the grant).
- Each agent's own capabilities (
agents.capabilities): - a turn is offered only those capabilities' tools and the two utilities (
tools/fromRegistry.tstoolsFor); decideCallrefuses an agent anything outside its list, before the rules;- the catalogue's
defaultCapabilitiesreplacedefaultToolIds; agents.backfillCapabilitiesgave agents made before every capability they had.- Coordinators (
tools/delegation.ts): - an agent asks the agents in its delegation set, which use their own capabilities;
- the delegate acts for the same person and chat, on the turn's rules snapshot and request ID;
- depth comes from the first agent (1 by default, at most 2), and no agent is asked twice in a chain;
- the delegate hands back what it changed (
agentExecutionHelpers.changesBy). - Run limits (
lib/runLimits.ts,lib/agentLimits.ts): - the limits are steps in a turn (10) and cost for a run ($0.50), delegates included, from
usage.spentOnRequest; - the step at a limit runs with the tool choice "none" and an instruction to wrap up, with tools left defined, since a history with tool calls and no tools fails at some providers;
- code adds the note, and the turn is audited as
agent.turn.limited. - Trust level is retired: optional and unread on
agents, gone from the screens andagents.create; R16 drops it. - The web. An agent's settings have:
- What it can do, by area, with those that change work marked;
- Can ask, with a tick allowing depth 2;
- Limits for one go.
The profile and cards call an agent a coordinator when it can ask others, and say what it can do. agents.settingsOptions holds the list and the limits' bounds.
- Tests:
- an agent offered and allowed only its own;
- a coordinator using a delegate's capability it lacks, and getting its changes back;
- depth 2 without loops;
- the step limit and the cost limit with a delegate's spend;
- the settings' checks in security.test.ts.
- Checked on dev, through the editor and chats as the test admin:
- a focused Tasker declining to save a contact;
- a coordinator, Lead, asking Tasker and Finder under one request ID;
- Turn Check stopping at 2 steps with its summary and note.
With Claude, refusing tools while keeping them defined worked.
- Docs: doc 03's as-built note, doc 07 Part B § 8, Help (Install, make and edit agents), What's new.
- Live, 12 November 2026: the backend deployed to production (festive-shrimp-468, which has no agents yet, so nothing needed backfilling), PR #38 merged at 0db2e8a, and the web app deployed through Coolify. CI's Flutter job is pinned to 3.44.1, because stable 3.50 deprecates package:flutter/material.dart (O13).
2026-11-11 -- O6: the agent libraries upgraded; B34 and B40 fixed¶
Plan plans/2026-11-11-agent-libraries-o6.md (DEC-142: agents working, after RM-44).
- The versions.
@convex-dev/rate-limiter0.4.3,@convex-dev/workpool0.4.16,@convex-dev/workflow0.4.10, then togetherai7,@ai-sdk/openai4,@convex-dev/agent0.7.9 and@convex-dev/rag0.7.9 (agent and rag both needai7).convex-test0.0.69. One AI SDK version in the tree. - The code.
isStepCountforstepCountIs; each turn's and each delegation's system prompt asinstructions(AI SDK 7's name forsystem);chatModeltyped as the provider's v4 model, which the agent requires. The context handler's system messages (the organisation's rules, knowledge) still work: the agent allows them by default. Messages saved by agent 0.6 stay readable. - The workpools. All three instances (ours for the audit log, and workflow's and rag's own, which were on 0.3.2) are on 0.4.16. Its 0.4.15 schema change can't be rolled back;
migrations:backfillPendingStartIdsran once per instance after the deploy. - Tests for an agent's turn, which had none:
agentTurn.test.ts, with the agent library's mock model and a seam inagentFactory.ts(setTestChatModel). A reply replacing the thinking indicator, a registry tool run as the agent for the person and audited, the next turn continuing the thread, the cost in the ledger, a turn the spending limit stops, the organisation's knowledge given to the model (rag with a mock embedding model), the durable path as a workflow (R14), and delegation. - B34: an agent with delegates keeps its own tools; the delegation tools come with them.
- B40: the agent's own message embeddings are
embeddingrows inusage_ledger, not model calls, so they no longer count as interactions. - Smaller:
runAgentTurndeclares its returns;agentWorkflow.startAgentTurn, unused and unbound from its manager, went.scripts/ui-check/agent-turn.mjsdrives a real turn on dev through the web. - Checked on dev, as the test admin: a reply,
tasks.create,tasks.listandknowledge.search, each audited, with OpenRouter's costs settled by generation ID. - The web's deploy failed once, and was fixed. npm installs the backend's agent libraries under
packages/backend/node_modulesrather than the root (the lockfile keeps that), and the web's Dockerfile copied only the root's into its build stage, so the build's type check couldn't find@convex-dev/agent. CI builds in the full checkout, so it passed. The Dockerfile now copies the backend's ownnode_modulestoo; the live app kept PR #35's build meanwhile. - Left: O12, the other components (presence 0.4 and three small ones).
2026-11-09 -- RM-44 part 2: deleting an organisation, its data, and the site (DEC-148); RM-44 done¶
Plan plans/2026-11-08-account-deletion-and-export.md, steps 7 to 9 (now Done).
orgDeletion.ts. The owner asks, typing the organisation's name. It then waits 30 days and can be restored until then.- Emails: the owner and admins hear when it's asked, 7 days before (with the final export) and 1 day before; everyone in it hears when it's asked and when it's done.
- The purge. First its knowledge layers (RAG). Then, in batches: its spaces (
lib/purge.ts), chats, contacts, agents, teams, rules, approvals, tags, repo links, imports, sources, field sets, history, audit log, moderation records, notifications, invitations, model pins, exports and memberships. - The tombstone: "Deleted organisation", with usage and cost by ID; the erasure's own audit row stays.
- The safety net: a daily sweep.
- Nobody works in it while it waits (
lib/orgState.ts): resolveAccountrefuses its account-scoped functions;- the policy snapshot denies every capability call, so the API, MCP and agents stop;
- repo syncs skip it.
- Its data. The owner and admins can download a ZIP of every shared space (with chats and milestones), the chats outside spaces, and its people, teams, agents and rules. Personal spaces are left out (DEC-147).
- Fixed in part 1's purge:
- a person's own knowledge (the
user:RAG namespace) is now deleted; - an agent's conversations in a deleted chat now go from the agent component too.
The tests register the RAG and agent components.
- The web:
- Settings › Organisation › Its data: Download its data, and Delete the organisation with the name typed.
- AccountGuard shows the closing screen: Restore for the owner, Download its data for the owner and admins, and switch organisation or sign out for everyone.
- The app: the same closing screen, in DeletionGate.
- The site:
- The privacy policy's rights (access, deletion, portability) and the terms' termination now describe the 30 days, restore, the downloads and what stays.
- A new thinklio.ai/delete-account page, for Google Play, is linked in the footer.
- The Your Data page said deletion was immediate and an organisation's cooling-off was 7 days; it now matches what's built.
- Help: Organisation's "Its data".
- Records:
- RM-44 is Done on the roadmap.
- R15: audit summaries carry names, so a deleted person's name stays in them.
- ACT-25: deletion requests that arrive by email.
- Checked on dev: an organisation made for the test, its download, its deletion screen and switching back. It's left closing, so dev's sweep purges it on 9 December 2026.
2026-11-09 -- RM-44, deleting your account and Download your data (DEC-147 to DEC-150)¶
Plan plans/2026-11-08-account-deletion-and-export.md, steps 1 to 6, under ~/dev/docs/standards/account-deletion.md. The organisation's export and deletion (step 7) and the site's pages (step 8) follow.
- The model:
- deletion fields on
user_profiles(lifecycle, the dates, the notices sent,notInClerkSince), with an index for the sweep; data_exports;- indexes the purge reads by (a person's spaces, private views, approvals for them, a chat's files).
- The guard: while a deletion waits, the middleware refuses everything (
lib/deletionState.ts, throughresolveAccountand the authed wrappers). OnlyselfQueryandselfMutationare let through: the deletion's status, Restore, Download your data andusers.me. Deliveries skip people who are leaving; assignees, mentions and the chat pickers leave them out; the members list says "Leaving". deletion.ts:- Asking, restoring and the reminders. Emails go when someone asks, 7 days before (with the final export), 1 day before and when it's done, plus a push for the reminders. Novansa's team is told when an organisation's owner asks.
- The purge. Clerk's sign-in goes first; if that fails, nothing else is deleted and the daily sweep tries again. Then each organisation: ownership passes to its longest-standing active admin (DEC-149), and their rules, private contacts and memberships go. Then their own spaces in full (
lib/purge.ts, which the organisation's deletion will share), then their rows elsewhere, R2 and OneSignal. Last, the "Deleted user" tombstone (DEC-147). - The safety nets. Clerk's
user.deletednow erases at once, instead of deleting the row. Upserts skip an erased profile. A daily sweep runs, and a weekly check against Clerk. - App admins can Delete, Restore and Delete now, each by typing the person's email.
yourData.tsandyourDataBuild.ts:- A ZIP is streamed into R2 as a multipart upload (Clindice's
ZipToParts, copied with credit), with the files inside, and kept 30 days. fflate0.8.3 and@aws-sdk/client-s3are now direct dependencies.- Checked on dev: built, downloaded through its link, and opened.
- The web:
- Profile's Your data and Delete my account. An owner is told what happens to each organisation they own.
- The waiting screen, shown by
AccountGuardbefore anything else. - App admin › People.
- The app: Profile's Your data and Delete my account, and the same waiting screen over the whole app (
features/account/). - The crons: the deletion sweep, export expiry, and the weekly Clerk check.
- Fixed on the way:
notionIdFromread IDs from page URLs wrongly (8 November, PR #33). - Help: "Your data and deleting your account", and App admin's People. What's new:
changelog/2026-11-09-your-data.md. - For Andrew:
- ACT-23:
CLERK_SECRET_KEYon production, for the purge and the weekly check. - ACT-24: turn off self-deletion in both Clerk instances, and check the webhook sends
user.deleted.
2026-11-08 -- RM-27, projects inside spaces (DEC-144 to DEC-146)¶
Plan plans/2026-11-08-projects.md; DEC-17 as designed (DEC-144).
- The project field.
projectIdon tasks, docs and milestones, the entry of a project in its space's Projects list (spaces.projectsListId, DEC-145).lib/projects.tsprojectProblemchecks it's the same space's and live.- A move to another space takes a task out of its project. A sub-task takes its parent's, and a child doc its parent's, following it in and out.
- History names the project (
changes.ts). projects.ts:forSpace: projects with status, lead, due date and progress, which is tasks done of all, worked out rather than stored (DEC-146).getandcreate: the first project makes the Projects list, with Name, Status, Lead, Start date and Due date.setProjectsList: a space's Owners choose a list, never a mirrored one.lists.tsinsertListis shared with list creation.- Agents and keys:
tasks.createandtasks.updatetake a project by name or ID (resolveProject). - Files:
files.listtakes a project: the files on its entry, tasks and docs. - The web:
- A space's Projects tab.
- A project's home, as
?project=on the space page: Overview with progress and milestones, Tasks, Docs, Files, and Chat as the entry's thread. - A Project column, grouping and filter in task views.
- Project pickers on a task's panel and a doc.
- "Use as the space's projects" in a list's ⋯ menu.
- The app: a Projects tab, a project's screen (status, progress, its tasks and docs), and a task's Project picker.
- Notion's tasks get their projects back (DEC-122):
connectors/notion/projects:runreads each imported task's project relation from Notion. It dry-runs first, and reports each relation column it saw, how many pages link through it, and its reasons for leaving tasks as counts. - On production, 8 November 2026: Novansa's Projects list made the Novansa space's projects (by Andrew), then the Notion pass. Notion's Tasks Tracker links its tasks through a Projects column, and one of its 80 tasks was in a project, now set. The other 18 imported tasks are Personal Tasks, which the integration can't open and which stay as they are (DEC-119).
- Fixed: Notion IDs read from URLs.
notionIdFromtook the dashes out of a URL before looking for the ID, so a page whose title ends in a-f or a digit ("…/p/Publish-New-FALL-Website-2f5b7828…") lost its ID's last character to its title's last letters. The 5 October import kept its tasks' URLs as their refs, so 13 tasks were kept under IDs Notion doesn't know: the first dry run couldn't read their pages, and a later import (RM-1) would have brought them in again. The ID now has to stand on its own, a peek's?p=wins, and otherwise the last ID in the path is taken.connectors/notion/sourceIds:runread each task's, entry's and page's ID again from its URL, and fixed the 13 on production and dev with no clashes. No other source was wrong, and no imported doc has a Notion link left unresolved.
2026-11-08 -- Notifications: email checked, a push test (ACT-12, ACT-13, DEC-141)¶
- Email works on production and dev:
delivery:sendTestEmailfrom each went through Postmark and arrived (ACT-12 done). delivery:sendTestPush, the push twin of the email test: it sends one push to a person, found by email, at their pseudonym (never their email), and says what happened without showing the key. For ACT-13: OneSignal's web app on production only (DEC-141); the Flutter apps get push once their store builds exist (ACT-22).
2026-11-08 -- RM-37, space owners and team templates (DEC-139, DEC-140)¶
Plan plans/2026-11-08-space-owners.md.
- Who can open a space follows its owner (DEC-84,
lib/spaces.ts): - the organisation's spaces, everyone in it;
- a team's, its people and the admins;
- a personal space, its person.
- A role comes from the space's member list, else Owner for an admin or the team's lead, else Member (DEC-139); Read only still caps it.
ownerOfmakes the owner explicit, with no schema change (kind,ownerId,teamId).spacePeopleworks out everyone's role from three reads.- It feeds the member list (each role marked set there or following the owner), assignees, mentions in a space's chat and, through
roleInSpaceandvisibleSpaceIds, lists, search, chats and the policy engine. Knowledge counts a team's space as the team's. - Owners:
createSpacetakes a team, now checked to be the organisation's.spaces.ownerChangeandspaces.setOwnermove a space between the organisation and a team, removing the member rows of people the new owner doesn't include.- A team that owns spaces can't be removed until they move, and its policy rules go with it.
- Admins always manage a space's people.
- Team templates (DEC-85, DEC-140):
teams.templatesandteams.addFromTemplates. Each makes the team, with the admin as lead (lib/teams.tsinsertTeam,addToTeam), and a space of its own (lib/spaces.tsinsertSharedSpace). They're offered at setup and as Add teams in Settings. - The web:
- Settings › Spaces shows and changes who each space belongs to, and People and roles replaces Members.
- A team's card has its spaces and its rules (RM-36's team level).
- A space's Members tab says who it belongs to.
- The app: a space's overview says who it belongs to.
- Tests: the visibility tests now use team spaces for outsiders within the organisation, and there are new tests for owners, templates and team removal.
2026-11-08 -- RM-36, the policy engine (DEC-134 to DEC-138)¶
Plan plans/2026-11-08-policy-engine.md; doc 07 Part B rewritten to what's built.
- The rules and the decision.
policiesreplacesaccount_policies,team_policiesandpolicy_templates(all empty on production). Each rule is written at the organisation, a team or a person. It's an action level, a spending limit, operating hours or a content rule. An organisation's rule may name a team or a person.- Each organisation's rules are compiled into one
policy_setsrow on every change. decide()(lib/policyEngine.ts) is pure: the cascade, named exceptions, the most specific pattern, an agent held to its person, group chats held to everyone present, a cap. It fails closed.- Defaults where no rule says: autonomous (DEC-134).
- Checked on every capability call (
invokeCapability). - A refusal is
forbidden: the API's 403, an MCP error, a tool result for the model. It's audited as denied. - An agent's turn takes a snapshot of the rules when it starts (
policyCheck.snapshot), with the person's teams, the chat's people and team, and the hours. - Approvals (DEC-136).
pending_approvalsis reshaped as the interaction protocol's action affordance.- The caller is told:
waiting_for_approvalfor agents, 202pending_approvalfor the API, an error result over MCP. - Answered in Waiting on you on Home (web and app) or from the chat's live card; a draft can be changed first on the web.
- Approving runs the capability as the one who asked, under its request ID, with the engine deciding again.
- Expires after 7 days. Notifications of kind
approval, read once it's answered. The audit decisionpending. - Spending limits (DEC-137,
spending.ts). - $10 a day and $100 a month to start, and a person's own.
- Checked before a turn (with an estimate from the model's price) and before a model capability.
- Admins are told at 80% and at the limit, once a period (
spending_alerts, notifications of kindspending). - The advisory token budget is gone (B21's note). The privacy draft gets a line for counsel.
- Operating hours and content rules on the new rules (
lib/policyHours.ts). - Outside hours, a turn is refused or its writes are capped at draft.
- Content rules match an agent by ID (B36 fixed).
governance.ts,governanceSeed.tsand the old tables are removed, andsetUpAccountseeds no policies.- Settings.
- Organisation › Policies is rebuilt: levels per action for agents and keys, exceptions, spending limits with what's been spent, operating hours, and what agents are told.
policies.actionslists the actions from the registry. - Profile has What agents may do for you.
- A team's own rules get their screen with RM-37.
- Elsewhere: doc 09 has the 403 and 202, doc 15 the new layers, and Help covers Policies, What agents may do for you and Waiting on you.
2026-11-08 -- The iPad checked; history in words¶
- Found on an iPad Pro 11-inch simulator, and fixed: the tablet rail had only Settings, so Contacts and Help couldn't be reached (they're in the phone's menu); they're on the rail now (
AdaptiveShell'sonContactsandonHelp). Home's What changed ran each change to any length (now two lines) and put a contact's under no space (now Contacts, as in Activity); the app's change summaries name a contact's and a milestone's fields in words. - History's wording, web and app: a contact's organisation ("put them in Novansa", named through
changes.ts'sNAMED_FIELDS), kind and who sees it;ownerIdanduserIdhidden. The registry'sfieldNameshook is nowfields, returning the definitions: each change row carries the fields its diff touches (name, type, choices), so Activity, which has no field definitions, words a choice as its label and a checkbox as yes or no, as a list's own history does. RbIconButtonis read aloud by its label (aSemanticslabel as well as the tooltip), so a screen reader and Maestro find an icon button by name.scripts/ui-check/:text.mjsprints a page's text;signin-attached.yamlandrail-contacts.yamlkeepflutter runattached (launchApp: stopApp: false). The README notes that a label can match more than one thing, so a tap is checked by its screenshot.
2026-11-08 -- Test users and screen checks; fixes found by looking¶
testUsers:create(dev only): a+clerk_testuser made through Clerk's Backend API with the dev deployment'sCLERK_SECRET_KEY(ACT-20, as Twikka's), with a profile and a role.claude-admin+clerk_test@novansa.com(admin) andclaude-member+clerk_test@novansa.com(member) are in Novansa's organisation on dev.scripts/ui-check/signs them in with Clerk's test code and takes screenshots (Playwright driving the installed Chrome; its ownpackage.json, not a workspace).- Found by looking, and fixed: a contact's history said "[object Object]" for its addresses and timeline (now "added sam@…", "logged a call: …"); a task assigned to an organisation admin who isn't on the space's member list showed a blank assignee and "Someone", on the web and in the app:
spaces.assignablePeople(the space's members and the organisation's admins, or a personal space's owner) now feeds the assignee pickers and person fields. B39 recorded (a development-only React key warning). - DEC-132 (no space belongs to a team for now; answers Q-56); Q-18 answered by DEC-104.
- The app, driven too:
scripts/ui-check/app/has Maestro flows (sign in from a clean app with the test code, Contacts, a contact) for aTHINKLIO_ENV=devbuild on a simulator; screenshots throughxcrun simctl. Found and fixed on the way: the app sent Clerk an empty code when none was typed, and called it "Sign-in did not complete" (now "Enter the 6-digit code from the email"); pages opened over the tabs (Contacts, a contact) had no back button (PlacePage). - Production's data into dev (DEC-133, ACT-21):
scripts/clone-prod-to-dev.shexports production, replaces dev's data with it, and makes the test users again (testUsers:restore,testUsers:accountNamed).
2026-11-08 -- RM-35, the capability registry (DEC-128 to DEC-131)¶
capabilities/:registry.ts(a capability's name, validators, field descriptions, policy action, cost class, audiences and function; the principal;invokeCapability, which checks the input first), andindex.ts, the one list:tasks.create,.list,.complete,.update;contacts.find,.create,.update,.logInteraction,.history;docs.create,.search;knowledge.search;fields.list.lib/validatorSchema.ts: a Convex validator as JSON Schema, and the check of an input against it.- Generated: agents' tools (
tools/fromRegistry.ts;tools/tasks.ts,contacts.ts,docs.tsandknowledge.tsare gone), and the Platform API's view (platform/capabilities.ts): REST, MCP (tasks_create,fields_list;create_taskrenamed, DEC-129),/metawith each tool's policy and cost, and/openapi.json. API, MCP and agents' calls are audited by the capability's name.PLATFORM_VERSION0.5.0: task creation no longer takesscopeorscopeId. - The agents' task functions take a task's ID as text (an unknown one is "Task not found") and a space for a new task.
- D11:
tools,agent_tools,agent_assignments,dispatch_log,event_triggers,scheduled_agent_runsandmcp_serversdropped (DEC-131). - Doc 09 § 1.5 describes the registry.
2026-11-08 -- RM-49 done: items, notes and the type tables retired; files in the registry (plan steps 7 to 9)¶
- Agents: the item tools and
/itemare gone (the task tools cover them, DEC-111); the note tools arecreateDoc, a doc in the person's personal space through the docs' write path, andsearchDocs, over the docs they can see (DEC-126;tools/docs.ts,agentCrud.createDocandfindDocs). - Retired:
items,item_types,notes,note_types,task_typesandtask_lists(empty on both deployments), withitemsCrud.ts,notesCrud.tsandcoreDataSeed.ts. D1 done. - Files in the registry (
objects/registry.ts): seen and changed where they're used (requireFile), opened in their space's Files.filejoins the object types, so links, tags and relation fields reach files;files.search_fileNameletssearch.everythingfind files in the spaces you can see (a Files group, on the web and in the app). - The plan
2026-11-07-object-model-the-rest.mdis done, and RM-49 with it; the object model's status says what's still to come.
2026-11-08 -- Contacts on the web (RM-49, plan step 5)¶
/contacts(in the rail after Chat, DEC-125): the contacts you can see on the collection surface (components/contacts/collection.tsx: kind, organisation, email, phone, who sees it, and the contact fields), with New contact.- The contact's panel (
?contact=,components/contacts/ContactPanel.tsx): name, kind, organisation, who sees it (everyone, a team, only you), how to reach them, the contact fields, an organisation's people, Linked, the timeline with logging, and Activity with Undo. Archive and Bring back from its menu. - Settings › Organisation › Contact fields (
ContactFieldsPanel), throughFieldsDialog's third kind. Relation fields can link to contacts, and the link picker and search find them (a Contacts group). - Help: the Contacts article, the word, the page's "?" and the search place; Sentry's route.
- The app (plan step 6): Contacts in the menu (
/contacts,features/contacts/): the list with a search and New contact, and a contact's page (kind, who sees it, how to reach them, its fields, people, Linked, the timeline). The Search tab has a Contacts group.flutter-parity.mdupdated.
2026-11-08 -- Contacts, the backend (RM-49, plan step 4); IDEA-43¶
contactsreplaced in place (empty on both deployments): kind, name, a person's organisation, the owner (ownerKindorganisation, team or person, andownerId),userId,values, archived, created by.contact_addresses(one row each, indexed by the normalised value), andcontact_interactionswithaccountIdandkind.- Access (
lib/contacts.ts): the organisation's are everyone's to see and every member's but Read only people's to change; a team's are its members' and the admins'; a person's are theirs alone, Read only or not. A new one is the organisation's (DEC-124).lib/teams.ts(teamMembership,teamIdsOf) is the one team check; knowledge and teams use it. - The write path (
lib/contactWrites.ts): create, update (core and field values, line by line), archive and restore, addresses as one change, interactions, and Undo. The registry hascontact, withcanUndofor a type with no space:changes:undoChangechecked nothing for such a change before. History and Activity show a contact's changes to who can see it (before, a change with no space showed to the whole organisation). contacts.ts:list,get,create,update,setArchived,setAddresses,logInteraction, and the organisation's contact fields (contactFields;add…,update…,archive…,reorderContactFieldsfor admins).lib/fieldSets.tsserves any object type and owner. The oldcontactsCrud.tsis gone (nothing called it).- Links, tags and relation fields reach contacts (
objects/types.ts, one list of the object types), andsearch.everythinghas acontactgroup. - Agents:
findContactsby an address (one indexed read) or by name,createContact,updateContact(new),logInteractionandgetInteractions, all as the person the agent acts for; a field markedsensitivenever reaches the agent (ADR-036's first piece). - IDEA-43: importing a person's Google or Apple contacts as their own.
2026-11-08 -- Milestones (RM-49, plan step 2); DEC-127¶
milestones(account, space, name, position, an optional due date, archived, created by;by_spaceId_and_position) andtasks.milestoneId(by_milestoneId_and_status). Written throughlib/milestoneWrites.ts, each change recorded in the space's history (not undoable; each is one click to reverse).milestones.ts:list,create,update,setArchived,reorder, for anyone who can open the space to read and its members to change.- A task's milestone is checked in the write path (
milestoneProblem: the task's space's, and not archived unless the task holds it already), cleared by a move to another space, and kept by the next occurrence of a repeating task.createTaskandupdateTasktakemilestoneId(an empty string clears it). - Web: a Milestones dialog from the Tasks tab's ⋯ menu; a Milestone column (grouping, filters, add in a group) and the task panel's picker. App: the picker in the task panel and a column in the tablet's table (
spaceMilestonesProvider); managing stays on the web. - History:
changesnames milestones as it names assignees; Activity describes milestones added, renamed, dated and archived. - Fixed on the way:
spaces:purgeSpaceleft a deleted space'stask_viewsand its taskfield_setsbehind; it removes them now, with its milestones. - DEC-127: CI moves to a self-hosted runner later, and processes are reviewed from time to time (
~/dev/docs/conventions/development.md§ 5).
2026-11-07 -- The object model's rest begins: the assignee checked, an agent as assignee, the old task fields stop¶
Plan plans/2026-11-07-object-model-the-rest.md, steps 1 and 3 (widen and migrate); DEC-123 to DEC-126.
- The assignee:
tasks.assignedAgentId(one of the organisation's active agents), never withassignedTo; setting one clears the other.lib/taskWrites.tsassigneeProblemchecks every write that sets it or moves the task: a person must be able to open the space (lib/spaces.tscanPersonOpen), which nothing checked before. A move whose assignee can't follow asks first (fieldsWouldBeDroppedwithunassigns), then unassigns; the recurrence copy, imports (keepableAssignee) andassignImportedleave out an assignee who can't open the space. People pick only people until assigning an agent starts a run (DEC-123); the web and the app show an agent assignee. The agents'createTasksetscreatedByAgent. - History names assignees:
changesqueries addnamesfor the people and agents in a diff's assignee fields; the web says "assigned it to …" (it showed Clerk IDs). - The old task fields stop: nothing writes
scope,scopeId,listId,taskTypeIdormetadata(now optional).listTaskLists,createTaskList,listTasks'slistIdandbackfillTaskSpacesare gone. The API'screate_taskacceptsscopeandscopeId, ignores them and says they're deprecated (PLATFORM_VERSION0.4.0). - D13: bundle imports find a list's entries by their source and don't write
key;discover:unresolvedFilesnames a row by its source.oldFields:countandoldFields:clearcleared the old fields where the sources are, on development and production (98 tasks, 55 docs, 721 files, 11 lists, 432 entries each). Then they went from the schema with their indexes (tasks.by_account_list,by_account_scope, andby_accountId_and_importRefon docs, files and lists), withsources:backfillandoldFields;sources:countstays. D13 done.
2026-11-07 -- RM-49 step 9: Notion's relations (D12 dropped); the plan done¶
connectors/notion/relations:run(dry run withapply: false): reads imported Notion lists' relation columns, resolves related pages by their sources, and withapply: trueturns the column into a relation field and sets the values through the write path. Run on production: no list had relation columns and no entry held the placeholder, so D12 is dropped. The Decision Log, which the integration can't reach, was checked in Thinklio: nothing to restore. The tasks' links to Projects come back with RM-27 (DEC-122, answering Q-69).- The plan
2026-11-06-audit-log-and-object-model-step-1.mdis done; RM-49's step 1 is noted on the roadmap, with steps 2 to 4 left.
2026-11-07 -- RM-49 step 8: tags on any object¶
object_tagsreplaces the emptyentity_tags;tagsCrud.ts(applyTag,removeTag,tagsOfby object type and ID) checks the object through the registry and the tag's organisation. No screens yet.
2026-11-07 -- RM-49 step 7: links, backlinks and relation fields¶
linksandlib/links.ts(add, remove, undo;fieldlinks kept in step with relation values through entry and task writes, moves and undo;checkRelations);links.ts(forObject,add,remove,describeMany); the registry'scanEditandspaceOf; therelationfield type withrelationTo(DEC-117);search.everything's entry hits carrylistId.- Web: Linked on tasks, entries and docs; relation chips and editor; the field dialog's Links to. App: relation values by name and a task's Linked list.
- Help's Tasks and Lists articles; What's new; the parity page; tech debt D14.
2026-11-07 -- Usage by person and by team, and your own (DEC-120, DEC-121)¶
usage_ledgergainsspaceIdandteamId(the place's, byplaceOfChat: a team's chat, or a space's chat or comments and the space's team);usage_dailygainsuserIdandteamIdin its key, andby_accountId_and_userId_and_day.usage.summaryaddsbyPersonandbyTeam;usage.mine(anyone) gives the caller's own.- Web: By person and By team on Organisation › Usage; Profile › Your AI use (
components/settings/MyUsageSection.tsx). Help's Profile and Organisation articles; What's new.
2026-11-07 -- Saved task views: All tasks first, and the switcher from the first one¶
SpaceTaskViews.tsx: a space's first saved view became the default silently, with no switcher until there were two (a list always has its All view; a space's tasks don't), and the Tasks tab stopped remembering its layout in the browser. Now All tasks comes first and is remembered in the browser as before (readRemembered, exported fromCollectionView); the switcher shows once there's a saved view; ⋯ › Delete removes the one you're on. Help's Tasks article.
2026-11-07 -- RM-49 step 6, the app: task fields and saved task views¶
SpaceTask.values;ListFieldgainsarchivedandreadOnly;spaceTaskFieldsProviderandspaceTaskViewsProvider(fieldSets.taskFields,fieldSets.taskViews).- The task panel shows and edits the space's task fields with the lists'
FieldEditor; a tablet's task table shows the first three; a space's saved task views can be picked on the Tasks tab, their filters and sorts applied byfeatures/tasks/task_query.dartthroughlist_query.dart. docs/product/flutter-parity.mdbrought up to date. Step 6 is done.
2026-11-07 -- RM-49 step 6, the web: task fields and saved task views¶
useTaskCollectiontakes the space's task fields as columns (v:<field ID>), drawn and edited with the lists'FieldValueandFieldEditor; the core task fields get editors too, so they change in place in the table.components/fields/FieldsDialog.tsx: one dialog for a list's fields and a space's task fields (rename, choices, hide, reorder, add);AddFieldDialogis gone.components/tasks/SpaceTaskViews.tsx: the Tasks tab's saved views (fieldSets.taskViews), and Task fields in its ⋯ menu.- The task panel shows and edits the space's task fields, and a move that would drop values asks first (DEC-116).
- Help's Tasks and Lists articles; What's new.
2026-11-07 -- RM-49 step 6, the backend: fields on tasks¶
field_sets(a space's task fields) andlib/fieldSets.ts;tasks.values, changed a field at a time, each its own line in history and undone alone;task_views(a space's saved task views, shared or private, DEC-118).lib/fieldDefs.ts:fieldDefinitiongainskey,readOnly,sensitive,indexed(optional);normaliseFieldValues,newField,changedField,reorderedFieldsandremapValues, shared with lists.fieldSets.ts: the space's task fields (add, rename, choices, hide, reorder) and task views;lists.reorderFields; field changes in the audit log.tasksCrud.createTaskandupdateTasktakevalues; a move keeps the values the new space has a field for and asks before dropping the rest (confirmDrop, DEC-116).
2026-11-06 -- RM-49 step 5: sources, every import reference in one place¶
object_sourcesandlib/sources.ts(DEC-109 § 2.4): each imported object's ID in its system, found in one indexed read. The bundle applier, the old task importer,assignImported, the Notion importer's discovery and repair, and the editor test use it; no import scans tasks any more (the five scans of up to 5,000 tasks are gone).tasks.importAssignee(typed, indexed) replacesmetadata.importAssignee; recurrence stops copying import references.sources:backfillmoves the existing references (run once per deployment;sources:countchecks it). The old fields stay until a later deploy (D13).
2026-11-06 -- RM-34 step 4: the Audit screen; RM-34 complete¶
audit.ts:searchandrequest(the organisation's admins),searchAllandrequestAll(app admins), choosing the index the filters allow; rows with the actor's and place's names; a request's audit rows, changes and costs together (usage_ledger.by_account_and_requestId).- Web:
AuditLog(components/admin/panels/AuditPanel.tsx) in Settings › Organisation › Audit and Settings › App admin › Audit: search, filters, paging, an entry's detail with its request, and a CSV export. Help's Organisation and App admin articles; What's new. Security tests. - DEC-119: Personal Tasks isn't imported again (supersedes DEC-108); ACT-19 dropped.
2026-11-06 -- RM-34 step 3: real costs, and the Usage screen (B37)¶
agentFactory.ts: the raw response handler hands OpenRouter's generation ID to the usage handler;usage.recordUsagewrites the ledger row (priced from the registry), adds it tousage_daily, and schedulesusage.settleCost, which asks OpenRouter'sGET /api/v1/generationfor what it charged and settles the row (settleLedger). OpenRouter's AI SDK provider needs AI SDK 7, so it isn't used.usage_ledgergainsrequestId,agentId,generationId,costSourceandsettledAt; newusage_daily;usage.rebuildDailyfor the rows before it;usage.summary(admins) for the Usage screen.- Knowledge search's embeddings are recorded (
knowledge.searchForRun, R13 in part). - The Usage screen shows real costs by day, agent and model, with estimates marked (B37 fixed). Help's Organisation article and What's new.
2026-11-06 -- RM-34 step 2: the audit log, written in the background¶
lib/audit.tsrecordAudit(through the workpool, to the internalaudit.write) is the only writer;audit.recordis gone.audit_loggains an optionalaccountId(none: a platform action), the integration actor,onBehalfOf,spaceId,action,decision,outcome,reasonandrequestId, with indexes by request, event, actor and place and a search index on the summary.- Audited: every admin action (members, teams, space members and roles, spaces archived, restored and deleted, policies and approvals, the offline switch, model defaults and pins, testers, app admin grants, the CLI's role and trial changes); every Platform API and MCP call and refusal (
platform/respond.tsauditCall; a call that can't name a known organisation has none); agents' tool calls and refusals (lib/auditedTool.ts); a turn blocked by a policy. - Tests register the workpool everywhere (
packages/backend/test/components.ts). Doc 04 regenerated.
2026-11-06 -- RM-34 and RM-49 step 1: the groundwork (step 1); the plan agreed (DEC-116 to DEC-118)¶
lib/requests.ts: a request ID on every mutation and action (ctx.requestId, fromlib/middleware.ts), on every REST and MCP call (a REST answer'srequest_idis it;PLATFORM_VERSION0.3.0) and on every agent turn (runAgentTurngives the thread a context carrying it;tools/tasks.tspasses it toagentCrud).changes.requestIdwithby_accountId_and_requestId;recordChangetakes it fromWriteOptionsor the caller's context.objects/registry.ts:canSeeandhreffor tasks, entries and docs.- Deleting a task archives it (
tasks.archivedAt; opsarchiveandrestore); Undo restores the same task. Reads, search, mentions, notifications and attachments leave archived tasks out; imports still see them. History says "deleted" for a task (webChangeList.tsx, the app'shome_data.dart). - Doc 04 regenerated; the Flutter API regenerated. The plan is agreed and in progress; Q-64 to Q-66 answered (DEC-116 to DEC-118).
2026-11-06 -- The plan for the audit log and the object model's shared pieces (proposed)¶
- Plan
plans/2026-11-06-audit-log-and-object-model-step-1.md, for Andrew's review: RM-34 (a request ID throughchanges, the audit log and the cost ledger; admin actions, capability calls and denials recorded through the workpool; real costs from OpenRouter, embeddings included; the Audit screen) and RM-49 step 1 (sources, fields on tasks, links and relation fields,object_tags, Notion's relations again), in nine steps, from two surveys of the code. Q-64 to Q-66 ask how a moved task keeps its fields, how relation fields are stored, and whether tasks get saved views.
2026-11-06 -- A task's metadata isn't the client's (B38)¶
tasksCrud.createTaskandupdateTaskno longer takemetadata, which let a member overwrite a task's import reference or the API'ssource. No client sent it.security.test.ts: B38. The Flutter API is regenerated.
2026-11-06 -- Testers (RM-43, DEC-106); the order from here (DEC-115)¶
- Backend:
user_profiles.tester(indexby_tester);lib/testers.ts(isTester,NOT_A_TESTER);testers.ts(list,addby email,remove, for app admins;check, internal, for actions).editorSpike.tsasks for a tester instead of an account admin, in its queries and mutations and, throughtesters:check, its actions; its space checks are unchanged.security.test.ts: only app admins choose testers;editorSpike.test.ts: someone who isn't a tester is refused, whatever their role. - Web: Settings › App admin › Testers (
workspace/settings/TestersSection.tsx) replaces Developer; Settings › Testing (/settings/testing), for testers, holds the editor test, moved from/settings/admin/editor-test(which redirects); Try the new editor on a doc shows to testers;useTester(). Help: the Testing article and App admin's Testers; What's new. - The app: Settings shows the editor test to testers in any build (it was debug builds only); the kit stays debug-only. API regenerated.
- Records: RM-43 done; Q-57 answered (DEC-115); ACT-12 and ACT-13 noted.
2026-11-06 -- An integration's own data (DEC-114)¶
product/object-model-proposal.md§ 5.1: an integration owns no work objects. What it creates lives in a space or under an owner people can see (a team's space keeps it to that team), its key is limited to those places, work for review is a draft, and its own workings live in its own storage (a Convex component or its Go service), tied in throughobject_sources. Q-63 answered.
2026-11-06 -- The object model (DEC-109 to DEC-113)¶
- New:
product/object-model-proposal.md, agreed. Every work object has a fixed core and is extended only through one field system (the lists' field definitions, in field sets for a list, a space's tasks, the organisation's contacts and each integration), onelinkstable, oneobject_sourcestable and templates. Contacts become a first-class type owned like spaces; items become tasks with a kind; notes become docs, comments or memory;task_types,item_typesandnote_typesgo. Stability rules for what integrations will rely on (§ 4) and the order of work (§ 6). Checked on production first: the legacy tables are empty, and none of the 98 tasks uses a type, a task list or a source item. docs/roadmap.md: RM-49 the object model, in Stage 3 alongside RM-34 and before RM-35; RM-1 and RM-27 note what they need from it. Q-58 to Q-62 answered; DEC-105 superseded by DEC-110 to DEC-112. Tech debt: D12 (Notion's relation columns came in as text), and D1's fix decided.
2026-11-06 -- The roadmap tidied to what's built (DEC-104); Q-5, Q-8, Q-10 and Q-14 answered¶
docs/roadmap.md: RM-21, RM-22, RM-23, RM-25, RM-28, RM-29, RM-33 and RM-12 move to Done, each with what's left (indexing and semantic search to RM-38; checks in use to ACT-18). RM-24, RM-4 and RM-26 say what's built and what's left. RM-43 (testers, DEC-106) is in Now. Proposed, to review: RM-44 account deletion and export, RM-45 test builds of the app (Next); RM-46 analytics, RM-47 billing from prepaid credit, RM-48 Convex Auth (Later).- Plans brought up to date: model tiers, accounts and members, chat parts 1 and 2, settings and help, files and the Flutter app are done; notifications waits on ACT-12 and ACT-13. Steps that were "Andrew and Antonette use it" are the testing, ACT-18.
- Decisions: DEC-105 (the legacy items, contacts and notes stay, as primitives), DEC-106 (a tester flag), DEC-107 (ormon's ceilings for
thinklio-prod: $10 an hour, $20 a day), DEC-108 (Personal Tasks imported again, without duplicates, once shared: ACT-19). Q-56 (which spaces belong to a team) and Q-57 (the order from here) are open.
2026-11-06 -- Node 22 for Convex's Node actions; Convex's AI files refreshed¶
packages/backend/convex.json(new):node.nodeVersion"22", the Node that local machines, CI and the Dockerfiles build and test on (convex1.49 needs 22 or newer). Without it, the four"use node"modules (knowledge.ts,storage.ts,agentExecution.ts,tools/delegation.ts) run on Convex's default (Node 24, by Convex's docs), which can move without us. The deploy dry run's "Change the server's version for Node.js actions" with nothing under it meant only that neither the server norconvex.jsonnamed a version. Deployed to production on 6 November; the R2 self-test passed on development and production.convex/_generated/ai/guidelines.mdrefreshed withnpx convex ai-files update(from April's). The update also wroteCLAUDE.md,AGENTS.md,skills-lock.jsonand 33 skills intopackages/backend; those were removed, since the rootCLAUDE.mdpoints at the guidelines and the Convex plugin carries the skills. The repo's ownconvex-create-componentandconvex-quickstartskills were refreshed from it;convex-migration-helper,convex-performance-auditandconvex-setup-authare no longer in Convex's set and stay as they were.docs/issues.md: B32 closed as a duplicate of B31.
2026-11-06 -- RM-30 after RM-40 (DEC-100)¶
docs/roadmap.md: RM-30 (agents as members) moves from Stage 2 to Stage 3, straight after RM-40, because it needs the policy engine and agents' own limits.
2026-11-06 -- The backbone on the roadmap (DEC-99)¶
docs/roadmap.md: Stage 3 starts with the backbone, in order: RM-34 the complete audit log, RM-35 the capability registry, RM-36 the policy engine, RM-37 space owners and team templates, RM-2 re-scoped to personal tokens and organisation and team keys with the first full set of capabilities, RM-38 files understood and the content index, RM-39 memory, RM-40 agents' own capabilities and limits, RM-41 the service registry, RM-42 Telegram, then email; then RM-5. RM-31 is superseded by RM-38 and RM-39; RM-10 keeps the channels after Telegram and email.- Q-55 answered (DEC-99); the briefing's order of work names each step's RM item.
2026-11-06 -- Read only enforced, then offered (B35, DEC-101)¶
lib/readOnly.ts(isReadOnly,refuseReadOnly,READ_ONLY).lib/spaces.tsroleInSpacecaps a Read only person (the organisation'sviewer, DEC-60) at a shared space's Read only, so every write in spaces is refused by the space's own check;CallercarriesmemberRolefrom the middleware (looked up when absent).lib/chats.ts:requireChatPosterandrequireChatManagerrefuse them, andchats.getshows them as an observer, so the web and the app leave out the message box.lib/middleware.tsaccountWriteMutationrefuses them, used for contacts, items, tags, knowledge, approvals, repo lists, model pins, the editor test, new spaces, new chats and messages; notes and task lists refuse them by scope (their own stay theirs). Personal settings, presence, safety, feedback and their own agent set-up stay onaccountMutation.- Read only is offered in People's role menu and Invite (
members.setRole,members.invite). Help's Organisation article and What's new.security.test.ts: Read only in the organisation. DEC-102 and DEC-103 record the audit log's denials and retention for RM-34.
2026-11-06 -- The app opens on production; direct messages and adding people on the web¶
- The Flutter app opens on Thinklio (production) in every build (DEC-98;
core/config/env.dart), and Settings switches to the test server from the next launch. On the test server, a banner across the top of every screen says so (TestServerRibbon, replacing the corner ribbon; amber, AA contrast in both themes). Testing on production is safe while it's a few internal users; production will be cloned to development when that changes (B32). - B33 fixed: the web's New chat starts a Direct message (
chats:createDirect) as well as a group, and a group's header has Add people (AddPeopleDialog) beside Add agent. Both sides follow one rule: people are added to groups only; agents to any chat but a space's and comments. Help's Chat article and What's new.
2026-11-06 -- The target architecture agreed: DEC-84 to DEC-97, and the coding agent's briefing (branch docs/scope-quick-fixes)¶
- Decisions with Andrew: every space belongs to the organisation, a team or a person (DEC-84) with team templates at setup (DEC-85); the content index, knowledge and memory kept apart (DEC-86); a small file record with summary, keywords, provenance, status, hash and blurhash, large content elsewhere, AI processing opt-in (DEC-87); memory about people, teams, the organisation and agents, under privacy rules (DEC-88); one capability registry (DEC-89); the policy engine (DEC-90) and agents' effective permissions (DEC-91); the complete audit log, in the background, with search in the admin area (DEC-92); the API and MCP on Convex with OAuth, personal tokens and organisation and team keys (DEC-93); external Go services registered through the API (DEC-94); channels, Telegram then email (DEC-95); pricing as RippleBase's revised early-bird model, AI at cost plus fees plus a small markup (DEC-96); the fifteen-doc set (DEC-97). Q-52 to Q-54 answered; Q-55 asks to put the backbone on the roadmap.
docs/sessions/2026-11-06-architecture-briefing.md: the target, area by area, what's built today, a recommended order (audit log, capability registry and policy engine first) and what's still open, for the coding agent to plan from.- Dated "Where it stands" notes in docs 01, 05, 06, 07, 09, 15 and 16 and in the memory, services-library and knowledge-synthesis proposals; the architecture docs plan is agreed and in progress.
- IDs renumbered after main took them meanwhile: B34 to B37, R13, R14, Q-52 to Q-54, ACT-17.
2026-11-06 -- The Flutter app's four gaps: chats, My tasks and Activity, list views, feedback¶
Andrew, 6 November 2026: "We need to do all 4" (the parity page's Not yet).
- Chats (
features/chat/chat_actions.dart): New chat (a direct message throughchats:createDirect, or a group, public or private); People and agents in each chat (Add people, Add an agent, where the chat allows it); Search this chat (messages:search). B33: the web can't start a direct message or add people. - My tasks and Activity (
features/home/):/work/tasksand/activity, linked from Home.TaskViews(features/tasks/task_views.dart) holds the Tasks tab's list, table and board for both, with a calendar (features/views/month_calendar.dart). Changes carry who made them and the thing's title. - List views: saved views (filters, sorts, hidden done, chosen fields), a board by a select or status field and a calendar from a date field.
features/lists/list_query.dartports the web'sworkspace/collection/query.ts, tested with the web's own cases. Making views stays on the web. - Send feedback in Settings, with photos or files (
feedback:startUpload,finishUpload,submit). - The kit's segmented control shrinks and wraps its choices rather than overflowing a phone. The parity page is current. Tests (182).
2026-11-06 -- Files: a preview, the type's icon, or a broken link¶
- The app couldn't open a file.
openFileread the signed address through an auto-disposed provider withref.read, so it was thrown away while it was being fetched and the file never opened. It now asks directly (signedUrl). Pictures open full screen; anything else (PDFs, documents, video, audio) in the app's browser view, which shows them. - One way a file looks, in the app and on the web (Andrew, 6 November 2026): a preview where there can be one (
canPreview: pictures the device can draw), an icon for the file's type where there can't (fileTypeIconandtypeIcon: PDF, document, spreadsheet, presentation, archive, video, audio, CSV, Markdown, code, text), and a broken link when it can't be reached. App:features/files/file_thumb.dart(FileThumb,FileThumbOf) in the gallery, a file's panel, Files sections, Send from Files, chat (whose files now open on a tap) and docs (whose pictures no longer wait forever). Web:fileMeta.ts,FileThumb,ObjectFilesandMessageFiles. Tests on both. - B32: development's 721 imported files have no bytes in its bucket, which is why nothing previewed there; production's do.
2026-11-06 -- Home: "Waiting on you"¶
- Home's "Needs you" (the web) and "What needs you" (the app) are now Waiting on you, and when it's empty, You're all caught up. The web's brief says "3 things are waiting on you." Help's Home and Getting started articles, the page's "?" words and search's summary for Home say the same (Andrew, 6 November 2026). The reminder email's subject ("N things need you in Thinklio",
convex/delivery.ts) is unchanged.
2026-11-06 -- The Flutter app, slices 3 and 4: Lists, Docs, Files, Search and Profile¶
Andrew, 6 November: slices 3 and 4 for parity before testing. Plan 2026-11-05-flutter-app.md, steps 7 and 7e.
- Lists (
features/lists/):/spaces/:slug/lists/:list?entry=; entries as a list on a phone and a table on a tablet; the entry panel with each field by type, notes, files, comments and Archive (Undo); add and Find; repo lists read-only; changes through the offline queue (DEC-79). - Docs (
features/docs/):/spaces/:slug/pages/:page, read (DEC-78) in Help's Markdown style withattachment:pictures and links, the trail, the docs inside, Files and comments, Rename and Edit on the web; the Docs tab as the tree. - Files (
features/files/): the Files tab (Library by folder, or Everything; a gallery; Find; uploads from photos, the camera or files);?file=opens a file's panel (Open, where it's used, Rename, Move, Delete with Undo, comments).ObjectFilesis now the Files section of tasks, entries and docs. Send from Files in the composer (DEC-83). - Search (
features/search/):search:everything(tasks, entries, docs) and Help, grouped by kind, each opening in the app; a list entry's web address mapped to the app's. - Profile (
features/settings/profile_screen.dart): your photo and name (Clerk, as the web), job title, and how it looks (light or dark, the theme, Spacing), applied at once and saved to the profile (DEC-70, DEC-81). flutter_markdown_plusandfile_pickerdeclared (both already in the app). More results read by hand (R11). Tests (156).- Fixed: a file's signed link (
fileUrl) asked for by a picture that scrolled away before the answer came threw "Cannot use the Ref … after it has been disposed", seen on the iPhone simulator; and its refresh timer couldn't be stopped. It now checks it's still wanted, and the timer is cancelled with it.
2026-11-06 -- Send from Files in a chat (DEC-83)¶
lib/files.ts:requireOpenableFile, for opening only (signed URLs,files.readableKeys): someone who can read the file in its space, or a member of a chat where a message they can read shares it.files.get,link,setDetailsand the rest keeprequireFile, so a chat member outside the space can't see its details, change it or link it onward.messages.sendtakessharedFileIds: files the sender can read in a space, not archived (a chat's own uploads can't be passed on), linked to the message (file_links,objectType: "message", not the file's home).messages.listmarks themshared, and a shared file archived or deleted since asdeleted("File deleted"). Deleting a message deletes its own uploads and only the links of shared files;spaces.purgeChatdoes the same.- Web: the composer's Send from Files (
FilePickerwithonChoose: no upload, and a choice of space outside a space's chat);MessageFilesshows "File deleted". Help's Send files in chat article and What's new. Security tests: opening only that file, not its details, not passing it on, deleting the message, deleting the file, leaving the chat.
2026-11-06 -- Help in the Flutter app, on novansa-help's Flutter package (DEC-82)¶
- novansa-help's Flutter package (
~/dev/novansa/novansa-help/flutter,novansa_help; branchfeat/flutter-package), built by Thinklio for every Novansa Flutter app (the help standard § 12.3, to Couple Tools' requirements, with its review of the backend interface): the same content and the same search as the web (the shared search cases pass on both), Help's home, sections, Browse all, articles, What's new and search ashelpRoutes(config), the "?" sheet and Learn more, Was this helpful?, Can't find it? and What's new's dot; 42 tests. - Thinklio's app adopts it: copied into
apps/mobile/packages/novansa_help(node scripts/copy-into.mjs --flutterfrom novansa-help).apps/mobile/scripts/build-help.mjswritesassets/help/help.en.json(the web's built help) andpages.en.json(each page's words for its "?", fromapps/web/src/help/page-info.ts); CI's web job checks they're current after building the help.features/help/: the words (the web'sstrings.ts), Phosphor icons,HelpThemefrom the kit's tokens, andThinklioHelpBackendonconvex/help.ts(votes, What was missing, searches that found nothing, the dot fromhelp:statefollowing sign-in) with Can't find it? as Send feedback (feedback:submit, a question), as on the web. Help's routes sit over the frame like Settings; the menu's Help opens it, with What's new's dot; everyPlacePageshows "?" when Help has an article for its route. Help's refusals are words, not codes: R12. Tests.
2026-11-06 -- The Flutter app, slice 2: Spaces and tasks¶
-
Fixed: the app asked Clerk for the
convexJWT template only, which development's Clerk doesn't have (it uses Clerk's Convex integration), so nothing loaded there after sign-in. It now gets Convex's token as the web's ConvexProviderWithClerk does: Clerk's session token when itsaudis alreadyconvex, and otherwise the template. Home words a list entry's changed fields once ("Changed 5 fields"). -
apps/mobile/lib/src/features/spaces/space_screen.dart: a space's tabs (Overview, Tasks, Lists, Docs, Files, Chat) with?tab=and?task=as on the web; the task beside the tab when wide, its own page on a phone.features/tasks/:TasksTab(an add box; a list by status on a phone; Table or Board on a tablet, a card dragged between columns changing its status, with Undo; ticks shown at once) andTaskPanel(title, status, assignee with Nobody, due date, priority, notes, files from photos or the camera, comments, Delete).features/chat/comments.dart: Comments (DEC-73) for any thing.api/offline_queue.dart(DEC-79): ticks, task changes and new tasks made offline are kept on the device and sent in order when the connection returns; a refusal while connected is an error; cleared at sign-out. Readsspaces:getSpaceBySlug,tasksCrud:listSpaceTasks,tasksCrud:getTask,spaces:listSpaceMembers,changes:listSpaceChangesand the space's lists and docs by hand (R11). Tests.
2026-11-05 -- The architecture docs plan (proposed)¶
- Plan
docs/plans/2026-11-05-architecture-docs.md: fifteen docs covering memory, knowledge and search, governance with audit and LLM costs, channels, the API and MCP, and the overview, tenancy, work model, agents, connectors, clients, Convex reference and developer guide; each doc's shape (how it works as built, then what's designed); what the code holds today in each area. Waits on Q-52 to Q-54. - Found reading the code: B34 (an agent with delegates loses its own tools), B35 (account-level Read only not enforced), B36 (agent-scoped content policies probably never match), B37 (the Usage screen ignores the ledger's costs); D11 (seven unused tables), R13 (thread messages embedded but never searched; ingestion embeddings not costed), R14 (the durable agent tier is unreachable).
2026-11-05 -- The docs' scope, and its quick fixes (branch docs/scope-quick-fixes)¶
- New audit
docs/audits/2026-11-04-docs-scope.md: a map of every doc, what's stale, duplicated and missing (DS-1 to DS-20), a proposed structure (a short reference to what's built, and the designs apart) and an order of work. Steps 2 to 6 wait for Andrew. - Step 1, the quick fixes: the web app's and the root's CLAUDE.md point to where the app and the plans are described;
ideas.md's counter (IDEA-43); the archive README lists the four files from 3 November and the four session notes; "Chatal" (from a find and replace) is "Conversational" again in 02, 03, 09, 11 and the decision log; doc 03 has a title, doc 07 a revision row (1.1.0), docs 08 and 09 their real dates, doc 16 the right routes. - Proposals: work-model, module-architecture, model-router, repo-ingestion and daily-driver say where they stand; memory-as-a-service's draft decision is no longer numbered ADR-029 (the Platform API's). DEC-20 is superseded in part by DEC-45: Knowledge stays in the menu.
- Four stale session notes moved to
sessions/archive/(the March performance notes, the June chats-and-channels notes, the October work model review, the editor-spike copy). scripts/build-doc-index.pyleaves tombstones (13, 14) out of the reading order; the index regenerated, with the accounts-and-members plan and the new audit.docs/skills/: the docs-maintainer copy says the docs are in this repo, 16 of them; a correctedconvex-component-updater-SKILL.mdtargets doc 11 Part B instead of archived doc 48. Installing both in claude.ai is ACT-17.
2026-11-05 -- The Flutter app, slice 1: Chat¶
apps/mobile/lib/src/features/chat/:chats:list,chats:getandmessages:listread by hand (R11); the list grouped as the web's (Spaces first, DEC-76) with unread counts;/messages/:chatIda page on a phone and beside the list when wider;ChatViewwith replies, reactions (a long press's quick row), mentions (messages:mentionablesOncefor the @ picker, sent as[Name](mention:kind/id)), photos from the library or camera (api/uploads.dart:files:startUpload, a PUT,files:finishUpload), edit, delete and report (safety:reportContent); older messages load as you scroll, the shown page kept while the next loads; a failed send stays, to send again with the same client ID. iOS asks for the camera. Tests. V3: check photos lose their location data.
2026-11-05 -- The Flutter app, slice 1 (part): Home and the bell¶
apps/mobile/lib/src/features/home/: Home readstasksCrud:listMyWork,notifications:listandchanges:listRecentChanges(by hand, R11): what needs you, your open tasks grouped overdue, today, this week, later and no date (tick to finish, with Undo), and what changed; one column on a phone, two when wide; pull to refresh.features/notifications/bell.dart: the bell on every page with the unread count, its list in a sheet (phone) or dialog (tablet), opening each notification's address and marking it read.shell/not_in_app.dartoffers an address the app lacks on the web. Tests.
2026-11-05 -- The Flutter app, step 3: the shell¶
apps/mobile/lib/src/shell/:AdaptiveShelldraws a tab bar and a drawer on a phone, an icon rail on a tablet in portrait, and the web's menu (places, your spaces, Help, Settings;ShellMenu, on the rail's colours) when wide. The router is aStatefulShellRoutewith the web's addresses (/work,/spaces/:slug,/messages,/search), each tab keeping its place; Settings over them, and the editor test in debug builds. The Spaces list readsspaces:listMySpaces; Home, Chat and Search hold until their slices. Tests at phone, tablet-portrait and tablet-landscape sizes. O11:flutter build ios --simulatorfails with Xcode 27 (flutter runworks).
2026-11-05 -- The Flutter app, step 4: the API and the cache¶
apps/mobile/scripts/build-api.mjswriteslib/src/api/thinklio_api.g.dartfrom the backend's function spec: a typed call for each of the 223 public functions, and Dart classes for the 90 results the backend declares.convex_calls.dartmakes one-off calls;query_cache.dartstarts every query with its last result on the device (DEC-79), per person and backend, cleared at sign-out. Tests.
2026-11-05 -- The Flutter app, step 2: the kit¶
apps/mobile/lib/src/kit/: the web kit's widgets with anRbprefix, on therb-tokens, adapting byWindowSize(a Select's options and a sheet are a bottom sheet on a phone, a menu and a dialog on a tablet); accessible labels and 44pt targets; Skeleton holds still with Reduce Motion. Settings › Kit (debug builds) shows every widget in any theme, light or dark, Comfortable or Compact. Widget tests, including the gallery at phone and tablet sizes in light and dark.
2026-11-05 -- The Flutter app, step 1: Thinklio's look (branch feat/flutter-foundations; plan docs/plans/2026-11-05-flutter-app.md, DEC-78 to DEC-81)¶
apps/mobile/scripts/build-tokens.mjswritesrb_tokens.g.dartfrom the web'stokens.cssandthemes.css(44 colours, the five themes, shadows, type scale, radii, row spacing); the Mobile CI checks it's current and now runs when those files change.app_theme.dartbuilds the Material theme from the tokens, withRbTheme(context.rb) for the kit;look.dartfollows the profile's light or dark, theme and Spacing (users:me), cached on the device. Instrument Sans and DM Mono bundled; Fraunces, Plus Jakarta Sans andgoogle_fontsremoved.novansa_phosphorcopied in from novansa-flutter (99702c5);ThinklioIconsnames its constants, and the app's own Phosphor fonts went.
2026-11-05 -- B17: two people editing one doc no longer overwrite each other (branch fix/b17-doc-conflicts)¶
pages.contentVersioncounts changes to a page's text (pages/writes.ts, update and undo).pages.updatePagetakesbaseVersionandforce: a save from an older version writes nothing and returns who changed it and when (saved: false); withoutbaseVersion(imports, repairs, other callers) nothing changes.getPageBySlugreturnsupdatedByName. Doc 04.- The doc page sends the version it started from, warns as soon as someone else saves while you edit, and offers Load their version, Copy my text or Save mine anyway (history keeps theirs); Edit now starts from the current text, not the text from when the page opened. Test in
pages.test.ts.
2026-11-05 -- Deleting a space (RM-33, Andrew: "create, configure, archive, delete")¶
spaces.deleteSpace(admins): only an archived space, confirmed by typing its name; the space row goes at once, so nothing can open it, andspaces.purgeSpacedeletes its contents in batches of 100, rescheduling itself: tasks, lists (entries, views), docs (editor-test copies), files (deleteFileNow: links and R2 bytes), folders, its chat and each thing's comments (spaces.purgeChat: messages, reactions, members, agent threads, approvals, invite links), history and members; repo links lose it as their default. Settings › Spaces offers Delete for good on archived spaces. Tests: the safeguards, and a purge that leaves no row of the space while another stays whole. O10.
2026-11-05 -- The Commenter role for spaces (DEC-77; chat part 2, step 2)¶
space_members.rolegainscommenter, ranked between viewer and member (lib/spaces.ts:roleMeets,canEditIn;pages.ts's own rank table replaced). Commenters post in a space's chat and comments (chats.openPlacefor comments needscommenter; the chat role ismember) and every write path still needsmember; docs and list entries read as read-only for them. The web app'scomponents/spaces/spaceRoles.ts(labels Owner, Member, Commenter, Read only;canEditSpace) is used by the space page, the doc page, the task panel, lists and Settings › Spaces. Doc 04. Tests.
2026-11-05 -- RM-28 Chat part 2: a chat in every space, and comments on things (branch feat/chat-part-2; DEC-73 to DEC-76, plan docs/plans/2026-11-05-chat-part-2.md)¶
- Backend:
chatsgainspaceId,objectType,objectIdand thespaceandcommentstypes (doc 04). The guard (lib/chats.ts) reads a place's chat by its space (inPlace,placeSpaceId,canReadAs,placeLink), and a person's state row is made when first needed (stateRow).chats.forPlace,chats.openPlace;chats.listadds your spaces' chats with messages; adding, removing and archiving are refused in a place's chat. Comments refuse replies, reactions and files; Read only people don't post or react. Mentions in places resolve against the space and the organisation's agents, and a mentioned agent joins.notifications.onPlaceMessage. A space's chat files get the space; unsent ones stay the uploader's (lib/files.ts,files.list). Doc 16 updated. Who-sees-what and notification tests. - Web: the space page's Chat tab (
components/chats/SpaceChat.tsx,ChatView'sembedded), with an unread dot;components/chats/Comments.tsxin the task, entry and file panels and on docs (the composer's and message bubble'splainmode); the Chat list's Spaces group. Help: a Comments article, and the chat and spaces articles.
2026-11-05 -- RM-33 Spaces, from Settings (branch feat/spaces-in-settings; plan docs/plans/2026-11-05-spaces-in-settings.md)¶
spaces.listAll(admins): every shared space, archived ones too, with its member count, owners and whether the admin is in it;spaces.restoreSpace(admins).setSpaceMemberadds only people in the organisation (account_members), and a role change can't leave a space without an owner, as removing someone already couldn't. Cases insecurity.test.ts.- The web app's Settings › Organisation › Spaces (
components/admin/panels/SpacesPanel.tsx): the list, Show archived and Restore, New space and Edit (name, description, icon), Members (add, change a role, take out; Owner, Member and Read only, DEC-60) and Archive.SpaceIconoffers 27 icons (SPACE_ICONS). Help: the organisation article's Spaces heading.
2026-11-05 -- RM-29 Files part 2: the Files tab, a file's panel, Gallery and the picker (branch feat/files-part-2; DEC-43, DEC-72, plan docs/plans/2026-11-04-files.md steps 3 to 7)¶
- The Files tab (
workspace/files/FilesTab.tsx), the space page's fifth tab (5): Library or Everything (remembered per space in the browser), the folders beside the Library (FileFolders), Gallery or Table through the collection surface, Upload files on New's face, and dropping files anywhere on the tab, into the open folder. Its empty Library offers Everything when the space has files elsewhere. - Gallery (
workspace/collection/GalleryView.tsx): a fourth view, offered to a collection with athumbnail; cards with the picture, the title and the first two fields shown. A list's saved view stays Table, Board or Calendar (ListPanel). - A file's panel (
?file=,workspace/files/FilePanel.tsx, inItemPanelHost): the preview (image, video, audio, PDF), facts, Open, Folder, Name, Alt text and Description, Used in (with links), and Delete with Undo.useItemPanelkeeps one oftask,recordandfilein the address. - The picker (
FilePicker) and one Files section (ObjectFiles) for docs, tasks and list entries: tick files from the Library or Everything in order (files.link), or upload into the object; removing has Undo (restore, orlinkagain). The task and entry panels can now add files (they only listed them), and the doc page's ownDocFilesis gone. - Backend:
files.getreturns null for a file the caller can't see (an old link), asgetTaskdoes;files.get's Used in andfiles.list'slivesIncarry anhreffor a doc or a chat (whereOf). The four files are adapted from RippleBase's media library at ddb14470 (MediaTile,MediaFolders,MediaPicker,MediaDetail), each header naming it. - Help: a Files article (
docs/help/spaces/files.md), and the spaces, views, docs, tasks, lists and words articles; the space page's "?" says 1 to 5.
2026-11-04 -- How it looks on the profile; novansa-help f7f9061 (branch feat/help-floors-and-look-on-profile)¶
user_profilesgainsthemePreference,colourScheme,densityandpageWidth, with RippleBase's names and values, set byusers.setTheme,setColourScheme,setDensityandsetPageWidth. The web app'sproviders/LookSync.tsxapplies the profile's settings in the browser (one way, as RippleBase's ThemeSync), whose localStorage still applies them before first paint; Profile saves each change, a default too (515c3fe), so other devices follow it. Doc 04 regenerated.- novansa-help copied in at f7f9061 (without its Next 16 and React dev dependencies, as its README says for Next 15):
search.everythingmarks a group's count as a floor (more) when a search stopped at its limit, shown "20+" (moreInandresultstake it); Ctrl or ⌘ opens a result in a new tab (keys.newTab); the results page runsaction:results (onAction, for Send feedback).
2026-11-04 -- The What's new dot on Help's icon (branch fix/whats-new-dot)¶
workspace/shell/Rail.tsx: the dot hangs on Help's icon (-right-1 -top-1, spark, a ring in the rail's colour), as RippleBase's 0bcd507d, instead of the row's corner;keys.ts'sshortcutAllowedalso stops for a Radix dialog (data-state="open") or a native<dialog open>, as RippleBase's copy does. Reported by Andrew through RippleBase's session.
2026-11-04 -- RM-29 Files part 1: one files table, and every reader and writer on it (branches feat/files-part-1, feat/files-part-1-switch; DEC-71, plan docs/plans/2026-11-04-files.md)¶
- Deploy 1:
files(one row per stored file, RippleBase'smediafield names; R2 only),file_links(where each file is used; the first link is where it was uploaded) andfile_folders, guarded bylib/files.ts(a file is as readable and writable as its space or chat).files.ts: upload to Files, a doc, a task, an entry or a chat; signed URLs; a space's Library or Everything; a file's details and Used in; links; folders. The empty oldfilesdesign anddocumentHelpers.ts/documents.tswent (D9).files:moveAttachmentscopied the 721 attachments on development and production, andfiles:checkMovefound none missing. - Deploy 2: chat uploads, messages (
fileIds), feedback, the editor test and the Notion import writefiles(lib/files.tsinsertFile); the doc page, the side panel's Files, chat and Markdown read them. Deleting a message deletes its files;files.sweepUnsentclears unsent chat uploads, which only their uploader can read. Removing a file uploaded to a doc archives it; one linked from elsewhere is unlinked. Links keep the rich-text standard'sattachment:<id>, now holding a file's ID; old IDs resolve throughlegacyAttachmentId(files.resolve,files.urlForRef). The web app has one upload helper (lib/files/upload.ts) and one URL cache (hooks/useFileUrls.ts). The old functions stay for tabs opened before, until deploy 3 removes them withattachmentsand the bucket tables. - Deploy 3 (development and production): 3a removes
pages/attachments.ts,chatFiles.ts,storageBuckets.ts, the bucket seed andsetUpAccount's bucket assignment, and deploy 2's fallbacks;files:clearOldTablesdeletes each attachment row whose file exists with the same key, and the bucket tables' rows (the bytes stay in R2, the files' now). 3b takesattachments,storage_bucketsandaccount_storage_bucketsout of the schema (doc 04 regenerated); ACT-16 deletes the empty tables. Docs 12 and 16, the work-model proposal and the regional-deployments standard updated. B31: development's bucket lacks the imported files' bytes.
2026-11-04 -- RM-32: App admins can take Thinklio offline (branch feat/app-offline)¶
app_settings(one row; none means open) andappSettings.ts:access(anyone: open, and whether the caller is an app admin),detailsandsetOpen(app admins). As RippleBase's "Open to people" (its D23).- While closed (
lib/appOpen.ts):authedMutation,accountMutation,accountAdminMutationandaccountAction(throughaccountCaller.resolve'sforWork) refuse everyone but app admins; queries carry on, so the app showscomponents/auth/AppClosed.tsxinstead of an error; the Platform API and running work carry on. Tests insecurity.test.ts. - Settings › App admin › The app (
workspace/settings/AppOpenSection.tsx), with a confirmation to close; "Closed to people" in app admins' top bar; the closed page inAccountGuardand onboarding. Help and What's new.
2026-11-04 -- RM-7 release 3: the Clerk organisation code goes (branch feat/rm7-release-3)¶
- After Andrew deleted Thinklio's Clerk organisations and turned Organizations off (ACT-15, production and development):
accounts.upsertFromClerk,deleteFromClerk,setMemberRole,backfillAccountMembersandbackfillAccountIdsare gone;accounts.setUp,addMemberandremoveMemberremain for tooling and tests, on the same membership code as invitations. The webhook handles user events only.accountMemberIdsandisAccountMemberreadaccount_membersalone.continueSession.tsloses its organisation step and the root layout its task URL. account_records.clerkOrgIdwent in two deploys: first optional and unread (every lookup byaccountId), thenaccounts:clearClerkOrgIdson each deployment (two accounts each, none missing an ID), then the field andby_clerk_org_idwent andaccountIdbecame required.- Doc 12 § 7.5 and § 11.3: Thinklio doesn't use Clerk organisations; the webhooks are user events only.
2026-11-04 -- Invitations accepted from Clerk's verified address, not the token (branch fix/invite-acceptance)¶
- Found with Andrew's first real invitation: Clerk's own Convex integration (on in development, and possibly production) sends a session token without
email, soacceptMinefound no address and the invited person would have been asked to make an organisation. Now Clerk's user webhook records the primary address and whether Clerk verified it (user_profiles.emailVerified; it used to take the first address), and accepts waiting invitations for a verified address as it writes the profile.acceptMineuses the token's address when there is one, else the profile's verified one.members.acceptForProfile(internal) accepts for someone who signed up before this, on Andrew's say-so. Tests: the webhook (verified primary accepted, unverified not, a decoy first address ignored), the profile fallback, the one-off. - Clerk, 4 November (Andrew): production's organisations deleted, Organizations disabled, the organisation events off the webhook, and the
convextemplate trimmed toaud,name,email,pictureandemail_verified(ACT-15, development to follow).
2026-11-04 -- A new person no longer waits for ever at onboarding (branch fix/pending-session)¶
- Found by Andrew inviting someone just after release 2: after their code, onboarding stayed on "Getting things ready…". With Organizations still on in Clerk, a new person's session is pending on "choose an organisation", and Clerk's
useAuthcounts that as signed out, so Convex never got a token.AppProviders.tsxnow gives ConvexuseAuth({ treatPendingAsSignedOut: false }). ACT-15 (Organizations off) removes the task altogether. members.acceptMinetakesemail_verifiedas a boolean or the string"true", since Clerk's template quotes it; a test covers both. Doc 12 § 7.3: Thinklio's token needs the minimal claims plusemailandemail_verified.
2026-11-04 -- RM-7 release 2: Thinklio decides who's in which organisation (branch feat/rm7-release-2, DEC-57, DEC-60, DEC-62)¶
- The middleware (
lib/middleware.tsthroughlib/accountResolve.ts; actions throughaccountCaller.resolve) takes the chosen account fromuser_profiles.selectedAccountIdand the role fromaccount_members, two indexed reads per call. The token's organisation claims are ignored;ctxkeeps its shape and gainsmemberRole. - Accounts:
accounts.listMine,current,selectandcreate(you as owner, the General chat and the trial;acc_IDs, mirrored intoclerkOrgIduntil release 3; five a day).syncFromTokenis gone. - People:
members.list,invite,invitations,cancelInvitation,resendInvitation,setRole,remove,leave,transferOwnershipandacceptMine(the token's verified email only), onlib/accountMembership.ts. Invitations are emailed through Postmark (taginvitation). Every change is in the audit log. Read only waits for release 2c. - Clerk's organisation webhooks answer 200 and change nothing.
- The web app:
AccountGuard, the top bar's switcher,usePermissions, onboarding (accounts.create), Settings › Organisation › People and teams, and sign-up's invited address. No Clerk organisation hooks remain (continueSession.tskeeps its organisation step until Organizations is off). - The mobile app asks for a token without an organisation.
- Tests:
test/asMember.tsreplaces theorg_idandorg_roleclaims in every test;accounts.test.ts,members.test.tsandsecurity.test.tscover release 2. - Records: RM-7's plan (release 2 done, 2c read only, release 3); ACT-15 (Andrew deletes Clerk's organisations once this is checked); doc 07 § 3.3 and § 4.2; What's new.
2026-11-04 -- The mobile app's icon (branch feat/mobile-icon)¶
- The Flutter app's icon is Thinklio's head on the kit's canvas colour, for iOS and Android (adaptive, with the head inside the safe zone), made with
flutter_launcher_icons(a development dependency, as Twikka and Couple Tools use it) fromapps/mobile/assets/icons/. Notes inapps/mobile/CLAUDE.md.
2026-11-04 -- Themes and page width (branch feat/themes-and-width, DEC-69, DEC-70)¶
apps/web/src/styles/themes.css: the theme sets (Calm, Warm, Bold, Modern, Pride) on the sharedrb-tokens, asdata-schemeon<html>, each changing the accent family and the rail in light and dark, every pairing at WCAG AA. Written for both apps: RippleBase copies it after itstokens.css.- Page width (
data-width="full", thefull-widthvariant inglobal.css,workspace/density.ts), as RippleBase's: page containers 5xl and wider lift their cap; docs keep 80ch. - Profile › How it looks: Light or dark, Theme, Spacing, Page width (DEC-70). The pre-paint script sets all four.
global.css: the old palette, colour scales and colour sets go (D8);bodyis on--rb-canvasand--rb-ink; the scrollbar onrb-tokens. B30 fixed.- Q-43 answered (DEC-69): the split New stays, to be reviewed after testing.
2026-11-04 -- Phase A finished, and every screen on the kit (branch feat/phase-a-finish)¶
Added¶
apps/web/src/workspace/collection/Toolbar.tsx: Filter, Sort, Group (Columns on a board), Dates and Fields as pop-ups with counts;query.tsholds what each filter and sort means (applyFilters,applySorts,visibleFields,spanOf), withquery.test.ts. A column heading sorts through the same state. RippleBase has no pop-ups like these yet: new shared pieces for novansa-kit.collection_views.config.endDateFieldId(lib/fieldDefs.ts): a calendar item spans its start to its end, and a drag keeps its length (edit.ts›editFieldsWithUndo). A list's saved views now keepfilters,sortsandvisibleFieldIds, which the config already allowed.usePageCollection(adapters.tsx): the Docs tab's Table, beside its Tree.workspace/shell/keys.ts(shortcutAllowed), shared by N, ? and the space's 1 to 4;workspace/density.ts(Spacing, applied before first paint);PageTrail'sdefaultTrail(DEC-68).- Help: Finding your way around, and Tables, boards and calendars; What's new: two entries.
Changed¶
- The Agents place is the one home for agents (B28): everyone sees agents in use and sets up their own use, admins also get the Catalogue, New agent and Edit.
/admin/agents/*redirect there. - Editor test is
/settings/admin/editor-testunder App admin. Every/admin/*route is a redirect, and the old admin layout (which read Clerk's organisation role) is gone. - Every screen is on the kit and the
rb-tokens: Chat, Organisation's panels, the model pickers, Knowledge, spaces, lists' dialogs and fields, the doc page, the editor's surroundings (editor.cssincluded), Send feedback, the bell's panel (a kit Sheet), the phone's tab bar, sign-in and onboarding (oneAuthFrame, shaped like RippleBase'sAuthScreen), the public pages and the notes' Markdown. No file outsidesrc/kituses the old palette orsonnernow. - The kit's
Icondefaults to the regular weight (DEC-67): Thinklio's copy is ahead of RippleBase's. - The side panel sits at
z-[35], under every dialog's scrim (z-40); the phone's tab bar atz-30.
Removed¶
- The agent-owned views and the one-to-one agent chat (
components/views,components/chat,hooks/useChat; D2, R1),/briefingandcomponents/briefing(D3),components/ui(nothing imported it), the oldsonnerToaster inAppProviders, and 21 more files nothing used. - Doc 10's Part B (the April app UI specification), now pointers to where the built app is described.
Records¶
- B28 fixed; B30 and Q-44 (Profile's Colours does nothing now; which appearance settings both apps offer); DEC-67 (no tinted icon backgrounds) and DEC-68 (every trail step links up); D2, D3, R1 and D6 done; D8 (the old palette in
global.css). - RM-7: Andrew is Novansa's owner on production (
accounts:assignOwners, after Antonette opened the app); release 2 is unblocked.
2026-11-04 -- One palette (branch feat/one-shell)¶
Added¶
packages/backend/convex/search.ts:search.everything, the palette's content (tasks, list entries and docs in spaces the caller can see, by title, and docs by text too), with asecurity.test.tscase.packages/helpcopied again from novansa-help a956b50:SearchDialogHosttakescommandsand shows a row of kinds.help/ui.tsx'sPalette: the page's New actions, New task and Go to each space as commands, andsearch.everythingas the outside groups; the results page (components/help/pages.tsx) asks it too.
Changed¶
help/places.ts: Home, My tasks and Activity in place of My work and Changed; the search order takes tasks, entries and docs. The search's words say "Search or run a command".- The top bar's search opens Help's search (
openSearch), with the platform's shortcut.
Removed¶
components/commands/CommandPalette.tsx,lib/commands/navigation-items.tsand the UI store'scommandPaletteOpen(B29 fixed).
2026-11-04 -- One shell for both apps (branch feat/one-shell)¶
Added¶
- Plan
2026-11-04-one-shell-for-both-apps.md; DEC-64 (one palette for search and commands, ⌘K and "/"), DEC-65 (RippleBase's full-width top bar, the account at the menu's foot, the trail and "?" with the page), DEC-66 (Instrument Sans and DM Mono everywhere); Q-27 and Q-42 answered; Q-43 (the split New) open.~/dev/docs/ui-ux/design-system.md§ 2a.
Changed¶
workspace/shell/TopBar.tsx: full width, in three parts (logo andWorkspaceSwitcher; search centred at a fixed width; the split New and the bell).PageTrailputs the trail and "?" above each page.ShellContext'susePageChrometakes the page's other New actions.Rail.tsxsits below the top bar, without the logo, organisation and trial line.global.css's--font-display,--font-sansand--font-monopoint at Instrument Sans and DM Mono; the Google Fonts link (Fraunces, Plus Jakarta Sans, JetBrains Mono) is gone.
Removed¶
components/layout/AccountSwitcher.tsx(the top bar'sWorkspaceSwitcherreplaces it).
2026-11-04 -- A list's toolbar and the keys (branch feat/list-toolbar)¶
Changed¶
components/lists/ListPanel.tsxis on the kit: one toolbar (CollectionView'stoolbarExtraholds Hide done and a ⋯ menu with Save view, Save as a new view and Add a field), saved views as aSegmentedrow only when there are two or more, a dialog in place ofwindow.prompt, and the GitHub source line restyled. The add box above the table is gone: the table's New entry row and N make one, and the side panel selects its title.TopBarhandles N (the page's main action) and ? (openHelpfor the page). "/" and ⌘K are left to Help's search (help standard § 6.2).
Records¶
- B29: ⌘K opens both the palette and Help's search. Q-42: which one stays.
2026-11-04 -- The side panel (branch feat/side-panel)¶
Added¶
apps/web/src/workspace/shell/SidePanel.tsx:SidePanel(non-modal, beside the page, Esc closes, clicking another row swaps it),useItemPanel(?task=and?record=in the address) and the property and section layout, in proposal § 2.3's order.apps/web/src/workspace/shell/ItemPanel.tsx: the task and list-entry panels, mounted once inMainLayout. A task's assignee can now be changed there.
Removed¶
components/views/TaskDetailSheet.tsxandcomponents/lists/RecordSheet.tsx; Home, My tasks, a space and a list open items through the panel.
2026-11-04 -- The shell and the views, phase A (branch feat/shell-phase-a)¶
Added¶
- One collection surface (
apps/web/src/workspace/collection/, DEC-37, DEC-49):CollectionViewwith a segmented view switcher, Find and the field selects;TableView,BoardViewandCalendarView; adapters for tasks and list entries (adapters.tsx); Undo in a toast (edit.ts). Lists keep their saved views through it. - The shell (
apps/web/src/workspace/shell/, DEC-45, DEC-46):Rail,TopBar,AccountMenuandShellContextwithusePageChromefor each page's trail and main action.MainLayoutmounts the kit'sTooltipProviderandWorkspaceToaster. - Home (
/work), My tasks (/work/tasks) and Activity (/activity, replacing/changes, which redirects). components/lists/ListPanel.tsx: a list on its own page or inside a space's Lists tab.convex/devRelink.ts: a dev-only internal action that points the dev deployment's data at new Clerk user and organisation IDs, for when the dev Clerk instance has lost the ones the data was made by.
Changed¶
- A space's tabs are Overview, Tasks, Lists (with a switcher) and Docs, with Activity and Members in its ⋯ menu (DEC-16, DEC-44).
shortDateshows the year for another year's dates.- Plan
2026-11-03-shell-and-views.mdis in progress: steps 2a and 4 done, 2, 3 and 5 partly.
Removed¶
components/layout/Sidebar.tsx, the oldTopBar.tsx, andcomponents/views/CalendarView.tsxwith the lists' week calendar (B27 fixed).
Records¶
- B27 fixed. Tech debt R8 (Undo writes the old value back). IDEA-42 (group a sync's changes in Activity).
2026-11-03 -- One shell, modules and integrations (proposal)¶
Added¶
- One Shell, Modules and Integrations (Proposal), a green-field pass over the interface and the architecture under it. It covers:
- the shell: five places, a top bar, a peek panel, and ⌘K driven by capabilities;
- one collection surface for tasks, lists, files, module data and Ripplebase content, with segmented view switching;
- a single calendar with Month and Week views and an Undated tray;
- progressive disclosure;
- novansa-kit, shared with Ripplebase;
- one integrations catalog, with per-account enablement and connections;
- modules declared by manifest, with embedded surfaces as the escape hatch;
- channels as an integration kind, Telegram first;
- every capability served to the app, the API, MCP and agents;
- Ripplebase linked with separate sign-ins.
It builds on the daily-driver shape and ADR-040, and comes with a clickable prototype of the shell.
- Decisions DEC-34 to DEC-37 (Andrew, 3 November): the design kit is copied in, modules are hybrid, Ripplebase is linked with separate sign-ins, and every collection gets uniform views with segmented controls.
- Questions Q-25 to Q-30.
- Issue B27: the calendar.
- After Andrew tried the prototype:
- five space tabs (Overview, Tasks, Lists, Docs, Chat), with files in Docs beside the pages (Q-31, replacing Q-26);
- any number of lists per space, behind a list switcher;
- relations across spaces (a task's Project, pointing at Novansa's Projects list);
- chat settings: visibility, posting, people's roles, and each agent's mode, answers, history and what it may do (Q-33);
- a Help item in the rail (DEC-42);
- no iframes: integrations ship React components through an integration SDK instead (DEC-41, amending DEC-35; Q-32 for outside developers).
- Agreed in part, with "Proceed" (Andrew, 3 November):
- Files is its own tab, a media library like Ripplebase's with Table and Gallery, and files embed in docs (DEC-43, answering Q-31);
- the Lists UI goes ahead (DEC-44);
- Agents and Knowledge stay as places, and Search leaves the rail (DEC-45);
- Help is a dedicated /help page, plus on-page help (DEC-46, amending DEC-42).
The first phase's plan is docs/plans/2026-11-03-shell-and-views.md.
- Home as the daily briefing (proposal § 2.1a, Q-34; phase A step 2a), after Andrew asked for it to be more like the old Briefing page, with consolidated tasks:
- the brief and Your spaces;
- Needs you, My tasks across every space, Today, Agents at work and What changed;
- each person can hide sections and pin lists.
- Andrew's answers (DEC-49 to DEC-56):
- Table everywhere;
- one common set of fonts, themes and colours, with the fonts deferred (Q-27 open);
- the best order of work, for a first test release with all the basic features and the new UI (proposal § 10);
- Home built and reviewed in use;
- Telegram as doc 16 describes it;
- Couple Tools as the first module;
- no outside party until docs, a full API and security measures are in place;
- a space's chat uses the space's members.
- Today's Administration menu and Changed (proposal § 2.1b):
- each admin page has a home in Settings' levels, or in the Agents place for making and editing agents;
- Editor test goes to App admin › Developer;
- Changed becomes Activity, opened from Home's What changed and from each space's ⋯ menu, filtered to that space;
- the calendar issue is renumbered B27, because B26 was taken on main.
2026-11-03 -- Help, through novansa-help (RM-22)¶
Added¶
- Help: to Novansa's help standard, through
packages/help, a copy of novansa-help at 32dbc98 as@thinklio/help. Its Next peer is widened to 15.5, as novansa-help PR #6. - Pages:
/help, its sections and articles,/help/whats-new,/help/browseand/help/search. - On every page: the panel and search are mounted around the app. The "?" is in
PageHeader, and Learn more is on each settings section. - The sidebar: Help, with a dot when What's new has a change the person hasn't seen.
- Content:
- 21 articles and 13 words in
docs/help/, drafted by Claude (DEC-58), with what each page's "?" says inapps/web/src/help/page-info.ts; - What's new from
docs/changelog/, whose entries lost their#titles and now keep to New, Improved, Fixed and Removed. - The build:
scripts/build-help.mjschecks every link, heading and page, and runs beforedev,buildandtypecheck, and in CI. The Dockerfile copiespackages/help,docs/helpanddocs/changelog. Coolify's watch paths need them too (ACT-14). - The backend:
convex/help.ts, from novansa-help's reference. - Was this helpful? counts per article per day.
- What was missing is kept with the person, and goes when they're deleted.
- Searches that found nothing are counted by their words only.
- What's new's dot, and the report for app admins on the Feedback page.
- Everything is signed in and limited per person.
- Can't find it? opens Send feedback with the words:
openFeedback()andFeedbackHostmake Send feedback one dialog, opened from anywhere. - Tests:
help.test.ts,security.test.tsand the web app'slearnMore.test.ts.
Removed¶
- The unused
AgentStudioForm, which had the old tier names. Making agents stays half built (B28).
2026-11-03 -- Settings by level, the Feedback page and the account menu (DEC-48, DEC-59)¶
Changed¶
- Settings is a page per tab, as RippleBase has it, built on the kit. The 1,224-line Settings page is gone, and with it its mock sections: billing, credits, services and keys, enterprise, platform status and the service registry.
- Profile (
/settings/profile): you, your email addresses, how it looks, and notifications. - Organisation (
/settings/organisation, its admins): sections for the overview, teams and people, AI models, policies, integrations, usage and audit. Today's/adminpages are these sections, in their own look until the shell's sweep restyles them, and their old addresses redirect. The Dashboard's counts are the overview. - App admin (
/settings/admin): AI models, and Developer with the editor test. - Feedback (
/settings/feedback): as RippleBase's, with a filter, a row each and a side sheet with the reply. The bell's and the email's links open the item (?item=). - Old links still work:
/settingsand its old?section=and?tab=links reach the right tab. - New shared pieces, in
src/workspace/:Page,PageHeader,SettingsNav,SettingsSections(from RippleBase) andSection. The shell session ownsPageandPageHeaderfrom its phase A. - The account menu, as RippleBase's, replaces the sidebar's link to Settings: who you are, Profile, Organisation (for its admins), Send feedback and Sign out.
- The sidebar's admin links go to Organisation's sections.
2026-11-03 -- RM-7 release 1: Thinklio copies its members' roles from Clerk¶
Added¶
- Thinklio keeps its own copy of who's in each organisation, with their role, alongside Clerk. Clerk still decides until release 2. Plan: accounts and members.
- Schema:
account_records.accountId: Thinklio's own ID, the Clerk organisation's ID kept for existing accounts, with an index;user_profiles.selectedAccountId;account_members.rolegainsownerandviewer(read only, DEC-60), plusconfirmedAt;- a new
account_invitationstable, used from release 2. accounts.syncFromToken: the web app calls it once per load (AccountGuard). It copies the caller's organisation and role from their Clerk token, and writes only when something differs, or once a day to confirm. An owner Clerk calls an admin stays the owner, here and in the Clerk webhook.- Internal functions:
accounts:membershipReport: whether each account is ready for the switch;accounts:assignOwners: the earliest admin becomes the owner, withdryRun;accounts:backfillAccountIds.- Tests: in
accounts.test.ts, plus one insecurity.test.ts. Agents acting for an owner act as an admin.
2026-11-03 -- RippleBase's kit in the web app (DEC-48, DEC-50)¶
Added¶
- The kit, in
apps/web/src/kit/: all of RippleBase'ssrc/kit(RippleBase127dafb5), copied unchanged with a header naming the source. - RippleBase's
rb-tokens are insrc/styles/tokens.css, imported byglobal.css. - Its fonts, Instrument Sans and DM Mono, come through
next/font. - Four radix packages are added: checkbox, radio-group, toggle-group and popover.
- What it's for: the settings, People, feedback and help screens are built from it, and so is the shell's phase A, which later lifts both kits into novansa-kit.
- The existing screens keep their own tokens and fonts. The rules are in
apps/web/CLAUDE.md.
2026-11-03 -- Agents use the knowledge of who they're talking to (B26, DEC-63)¶
Fixed¶
- Knowledge in agents' replies (B26):
- Before each model call, agents added only the organisation's knowledge.
- Its text went in as "[object Object]", because search results hold their text in
content[]. - Team knowledge and agents' own knowledge were never read.
- Now, through
knowledge.searchForRun, used both before each call and by the knowledge tool: - always the organisation's knowledge and the agent's own;
- a team's knowledge in that team's chat;
- a person's own knowledge only in a chat with them alone (DEC-63).
The rule is knowledgeAudience in lib/knowledgeScope.ts, with tests in knowledge.test.ts. Doc 03 § 11 has been rewritten to match.
2026-11-03 -- The organisation, teams and individuals; roles; knowledge by place (DEC-57 to DEC-61)¶
Changed¶
- Doc 07 § 4.2, roles:
- The levels are the organisation (the tenant: the account, with billing, containing everybody), teams (two or more people; a person can be in several) and individuals.
- The organisation's roles are owner, admin, member and read only. There's one owner, the creator, who passes ownership to an admin before leaving.
- App admin is set by hand from the backend.
- The old role table (account editor and viewer, team admin, editor and viewer, agent admin and user) is replaced. Roles are Thinklio's, not Clerk's.
- Doc 03 § 11, knowledge:
- Knowledge follows where the person is: the organisation's and their own everywhere, and a team's in that team's spaces. Nobody sees another person's personal knowledge.
- This replaces scoping by channel type.
- Agents don't follow it yet (B26). Personal knowledge in shared chats is Q-41.
- The RM-7 plan (accounts and members, proposed) takes accounts, members, roles and invitations off Clerk organisations in three releases. Clerk organisations were never meant to be used. They came in with the first Convex commit (2 April 2026).
2026-11-03 -- Notifications, and feedback from the app (RM-24, RM-23)¶
Added¶
- Notifications (plan, DEC-38 to DEC-40):
notify()inlib/notify.tsis the one entry point. It never notifies the person who acted, collapses repeats per chat while they're unread, and observes quiet hours (21:00 to 07:00 in each person's time zone).- Chat messages, agents' replies and task assignments notify:
- mentions, replies and direct messages always;
- small groups in the app only;
- large groups mentions only;
- subject to each chat's level and mute.
- What needs a response is pushed, and emailed if still unseen after 5 minutes. Reading a chat reads its notifications.
- Deliveries (
delivery.ts) retry with backoff and log each call without its content. Deleting a person deletes their notifications and their OneSignal user. - The bell's count comes from the server, and old notifications are pruned daily.
- Novansa Core's
emailandpushlibraries (novansa-core #48), with Postmark and OneSignal behind them (lib/delivery.ts). Without keys, deliveries are skipped. - The web app:
- the panel and the bells;
- a toast when something arrives;
- OneSignal in the browser, signed in as the person's pseudonym, asking permission only from Settings;
- the time zone saved for quiet hours;
- Settings' notifications card;
- muting a chat from its header.
- Feedback (
feedback.ts), as RippleBase has it: - sent from the sidebar, with files checked like chat files (the check is shared in
lib/uploadCheck.ts); - emailed to
FEEDBACK_EMAIL, and in the app admins' bell; - worked through in App Admin, with replies emailed back.
- The privacy policy lists OneSignal and Postmark.
Changed¶
- The mock notification panel and its local store are gone. Settings opens the tab named in
?section=.
2026-11-03 -- Reading project records, part 1 (RM-3)¶
Added¶
records:inthinklio.yml(plan, DEC-33), read by each kind's rules in~/dev/docs/conventions/project-records.md: the roadmap, ideas, issues, tech debt, decisions (with Questions as their own list) and actions.- Columns: the status word becomes a select, the rest of the cell a Status note. Each row gets a State (open, in progress, on hold, done, closed), App, and Was for old numbers.
- Shared files: a file serving two kinds feeds a list per kind, by ID prefix.
- Roadmap: items are keyed by ID and staged by their H2.
- Moves and re-keying: rows that move between lists keep their history and don't trip the hold, and a list read before carries on, re-keyed where needed.
- Module
ingest/records.ts;lists:is unchanged. - The validate route's replies all carry
ok,readandproblems, a refused request included. Its limits rose to 10 MB and 200 files, after a RippleBase check was refused at 2 MB with a bare{ error }. - App can name several of a repo's apps (comma-separated, each checked against
apps:), as the format doc now allows. It's stored as a multi-select. POST /v1/ingest/validate(ingest/validate.ts) checks a manifest and its files with the sync's own functions. The published schema acceptsrecords:andapps:, and the guide has a Project records section.
Changed¶
- Thinklio's own registers drop their stopgap front matter, and
thinklio.ymladdsbackendto its apps. R7 moves back out of Done, and B22's App becomeswebsite.
2026-11-03 -- Sentry keeps the time zone and language setting¶
Changed¶
- DEC-32: Sentry's error reports keep the browser's time zone and language setting, as well as the town or city (DEC-29). The privacy policy's Sentry entry says so, and
lib/sentry.tsno longer drops them.
2026-11-03 -- Chat, part 1: a full chat in the Chat menu¶
Added¶
- Chat, part 1 (DEC-30, RM-28), on the chat standard's message model:
- quoted replies;
- files, images, video and audio, through the
attachmentspath (the start of RM-29), checked by their first bytes, with signed 15-minute links; - emoji and reactions (
message_reactions); - edits and deletes;
- mentions of people, agents, tasks, pages, lists, rows and spaces, resolved by the server, in the editor's form;
- paging, unread counts and ✓✓;
- idempotent sends and rate limits;
- a message menu on hover or long press. Doc 16 § 9 says what's built.
- Tasks and list rows open from a link (
?task=,?record=). - DEC-31: notifications through OneSignal, with the pseudonym as its external ID.
Fixed¶
- B24: files can be sent in a chat.
- B25: threads, with their miscounted replies, became quoted replies.
Removed¶
FileAttachment,FileUploadButton,MentionAutocompleteanduseFileUpload.messages.listThreadandgetThreadCounts.
2026-11-03 -- Error reporting is live¶
Changed¶
- Sentry reports from the web app and from production's Convex functions.
- ACT-9: Andrew created the
thinklioproject and turned on its privacy switches. The DSN is inlib/sentry.ts, public by design, as Clindice's is. - ACT-10: Convex's webhook log stream sends only
function_executionandconsole. - The tests reached Sentry as THINKLIO-1 (browser) and THINKLIO-2 (Convex) with only the allowed fields.
- DEC-29: Sentry keeps the town or city it works out from the connection, for now, and the privacy policy says so. The scrub drops the browser's time zone and locale.
- The log stream route drops events more than five minutes old instead of refusing the batch, which could have blocked the stream. It logs counts, never content (O9).
- ACT-11: the source-map token is optional.
2026-11-03 -- Error reporting with Sentry; pseudonyms¶
Added¶
- Error reporting (plan, DEC-28):
- The web app reports errors to Sentry (
novansaorganisation, projectthinklio, EU) with@sentry/nextjs10.78.0. It reports errors only: no tracing and no Session Replay. src/lib/sentry.tsscrubs every event. It keeps the error, the browser's name and the route (/spaces/[slug]/pages/[page], never a slug). It drops bodies, cookies, query strings, other headers, console output and clicked elements' text, and replaces emails, Clerk IDs and Convex IDs in the text. The user is their pseudonym only.- Production's Convex failures and
console.errorlines arrive through a signed webhook log stream at/api/convex-log-stream. It doesn't use Convex's own Sentry integration, which sends the Clerk token identifier as the user. app/global-error.tsxshows "Something went wrong" with a way to try again.- Sentry is off until ACT-9 and ACT-10 set it up.
- Pseudonyms: every profile gets
thk_u_<UUIDv4>, made with Novansa Core'sids(copied intoconvex/lib/novansa/ids/), unique by index and never shown. It's the only ID that leaves Thinklio, as the analytics standard requires.users:backfillPseudonymsgives existing profiles one. - The privacy policy lists Sentry.
Changed¶
- ACT-7 done: the secrets are rotated and checked, and the old ones revoked.
- DEC-27: the draft section on decisions made with software stands for now, for counsel to review.
2026-11-03 -- The secrets rotated; an OpenRouter key self-test¶
Added¶
llmRegistry:keySelfTestchecks a deployment's OpenRouter key without spending. OpenRouter'sGET /api/v1/keyaccepts or refuses it, and the test returns the start of the key's SHA-256 hash, never the key, to match against ormon's registration. It's the OpenRouter step of a key rotation (ACT-5, ACT-7), asstorage:selfTestis R2's.
Changed¶
- ACT-7: Andrew rotated the backend's secrets. R2, Notion, GitHub and OpenRouter are checked on the new ones; Clerk's webhook waits for a test event.
2026-11-03 -- Automated decisions about people, for Australia's Privacy Act¶
Added¶
- The automated-decisions audit, following
~/dev/docs/policy/operating-in-australia.md§ 4.1 (APP 1.7 to 1.9, from 10 December 2026). Thinklio decides almost nothing about people yet: only Clerk's sign-up bot check and sign-in lockout are disclosed, as borderline. Trials, credits and per-account caps get their line when they're built. It drafts the privacy policy's new section, unpublished, for Andrew and counsel (Q-21), and raises B21, B22 and ACT-8.
Fixed¶
- B21: usage past an account's daily token budget is recorded. The budget is advisory until caps are built.
2026-11-03 -- Decision statuses brought up to date¶
Changed¶
- DEC-24 (Q-15): ADR-004 and ADR-018 superseded in part and ADR-012 superseded by the Convex design (no job system); ADR-014 stands, with only the Platform surface built.
decision-log.md's status lines say so. - DEC-25 (Q-16): ADR-031 (in part), ADR-033, ADR-034, ADR-035 and ADR-040 agreed as built; the proposals' records updated. ADR-036 to ADR-039's records now read Agreed, as the register already did.
- DEC-26 (Q-7): rotate the backend's secrets now (ACT-7).
2026-11-03 -- A space's tabs are object types; one dropdown style¶
Changed¶
spaces/[slug]/page.tsx(RM-26's first slice, DEC-16): the tabs are Tasks, Pages and Lists; task views (table, board, calendar) are a dropdown, as in a list; Activity and Members are in a ⋯ menu; the add-a-task bar is on the Tasks tab. Old?tab=boardlinks still work.global.css: every native<select>uses Phosphor's caret-down, inset from the border, in light and dark (Andrew: the caret sat against the border).
2026-11-03 -- Operating hours in the policy's time zone¶
Fixed¶
governance.checkPolicieschecked operating hours against the server's clock (UTC) and whole hours only, so an account in Perth or Tallinn had its hours shifted by 8 or 2 hours. It now uses the policy's time zone and minutes, falling back to UTC for an unknown zone (tests insecurity.test.ts).
Removed¶
apps/web/src/lib/api.ts, the Go-era REST client nothing imported. ACT-6 lists the web app's unused Coolify settings for Andrew.
2026-11-03 -- The docs pass (Stage 1)¶
Changed¶
index.mdopens with Start here: the project records, the plans, the audit and the proposals with their status (scripts/build-doc-index.py).- Doc 04, Data Model, is the model as built: how it fits together, the legacy tables, and every table generated from
schema.ts(scripts/build-schema-doc.py, checked in CI). The April design is archived. - Doc 08 points its model sections at DEC-13 (easy, medium and deep; defaults and pins). Docs 02 and 03 show an agent's tier, not a model.
- Docs 02 and 12: the Go-era sections are archived; doc 12's Part F is how Thinklio deploys and runs today, and its test and CI sections are current (R5 done; R7 for the rest).
- Docs 13 and 14 are now pointers to the roadmap, plans and index; their April text is archived.
- Proposals: repo ingestion is built, the model router and module architecture are built in part, the work model is agreed in part, and the daily driver's shape is agreed, each with a line saying what.
- CLAUDE.md files: the web app's describes today's app; the site's says its forms post to GoHighLevel, which the privacy page now lists as a processor.
Removed¶
- To
docs/product/archive/superseded-2026-11/: the consolidation plan,reconciliation/,expectations.md, the adoption strategy, docs 13 and 14's text, the April doc 04, and the Go-era parts of 02 and 12. Todocs/product/archive/web-ui-specs/: the web app's Go-era UI specs. Todocs/sessions/archive/: the phase 0 to 4 notes and the handovers of 9 and 27 October.
2026-11-03 -- Stage 1: authorisation, agents within permissions, CI¶
Changed¶
- Authorisation (audit
docs/audits/2026-11-02-pre-feature-push.md; plandocs/plans/2026-11-02-stage-1-groundwork.md): account-admin wrappers on every admin operation (B14); one guard for chats after Novansa's chat standard (B13); knowledge written only where the caller may (B12); personal notes private; presence for yourself in your own chats; the Clerk webhook refuses replays (B16);/adminfor admins; the Tavus demo removed. account_members, kept by Clerk's membership webhooks and backfilled on production, the start of RM-7. Leaving an account removes its chat, space and team memberships.- Agents run as a typed identity (
lib/runContext.ts, R2), see and change only what the person they act for can, put new tasks in that person's personal space, and are recorded as the actor, on their behalf (changes.onBehalfOf) (B15). A failed turn is retried only for provider outages. Mentions match whole names. - Every task belongs to a space; the Platform API takes a space slug.
- CI runs every test and build, and Flutter's when the app changes (O1).
Added¶
- DEC-23: a full chat as soon as practical, with Telegram's basics; RM-28 first in Stage 2.
2026-11-02 -- The daily driver's shape, and the Stage 1 plan¶
Added¶
daily-driver-shape-proposal.md(agreed by Andrew, to be tried in practice): a space's tabs as object types with consistent views, projects as entries inside spaces, chat everywhere with mentions, agents as members in Watch, Offer or Act mode with run transcripts, knowledge people can see, files as a type in every space, and help, notifications and feedback early. DEC-16 to DEC-22; Q-9 and Q-20 answered.docs/plans/2026-11-02-stage-1-groundwork.md: the audit's Stage 1.
Changed¶
docs/roadmap.md: Now and Next in Andrew's order (DEC-22): Stage 1 first, then Stage 2 (the daily driver: RM-24, RM-4, RM-23, RM-22, RM-25, RM-26, RM-29, RM-28, RM-27, RM-30), then Stage 3 (RM-2, RM-5, RM-31). RM-26 to RM-31 are new.
2026-11-02 -- Stage 0: the critical holes closed¶
Fixed¶
- Security (audit
docs/audits/2026-11-02-pre-feature-push.md, DEC-15): the agents'calculatetool parses arithmetic rather than running it as code (B8); member profiles stay inside their account (B9); the unauthenticated profile lookup is gone (B10); Clerk 7.9.23, Next.js 15.5.28 in both apps, zod 4.6.7, the R2 component 0.10.4 and Convex 1.49 leave no critical advisories (B11; what's left is O5 and O6). - Web: sign-in lands on My work (B18); the enterprise contact form no longer carries Andrew's details (B19).
Added¶
- DEC-14: help, feedback, notifications and universal search follow RippleBase's patterns (RM-22 to RM-25).
2026-11-02 -- Model tiers: Thinklio's defaults and account pins¶
Added¶
- The model registry ships (DEC-13; plan
docs/plans/2026-11-02-model-registry.md).llm_modelsis OpenRouter's catalogue with its prices, synced daily;llm_tiersholds Thinklio's default for each tier (easy Claude Haiku 5.5, medium Claude Sonnet 5.5, deep Claude Opus 5.5), set by platform admins in Settings → App Admin;account_model_pinslets an account's admins pin a tier to any model OpenRouter offers, in Settings → Organisation → AI models. Every agent moves from Claude Sonnet 4, fixed in code (tech debt R6), to its tier's model.model-router-and-tiered-inference-proposal.md§8 records it. - ormon's client guide: OpenRouter calls carry
X-Title(OPENROUTER_APP_TITLE), and a key OpenRouter refuses answers in the chat instead of failing silently (tech debt O4).
Changed¶
- Settings → Organisation: the data region reads EU (Ireland), where Convex keeps the data; it said Hetzner, Nuremberg.
2026-11-02 -- A 14-day trial, the privacy page's processors, and Ripplebase's part¶
Changed¶
- New accounts get a 14-day free trial (DEC-8;
accounts.tsTRIAL_DAYS), which fixes issue B3. - The privacy page's third-party services (
apps/website/src/app/privacy/page.tsx§5) list every service that processes personal data, with what it does, where it keeps data and the data it handles: Convex, Clerk, Cloudflare, OpenRouter and the AI providers behind it, and Hetzner. Paddle, OneSignal and PostHog, not used yet, are listed apart (DEC-9). novansa-pilot-build-plan.md§1 and §2: Ripplebase makes and manages all new content; Notion's social lists, the old ideas and content task lists, are imported as a record (DEC-12).- Decisions: Andrew's answers to Q-2, Q-3, Q-4 and Q-6 are DEC-8 to DEC-11; Q-1 and Q-5 stay open.
2026-11-02 -- Project records¶
Added¶
- Thinklio's records in the project records format (
~/dev/docs/conventions/project-records.md), declared inthinklio.ymlunderrecords::docs/roadmap.md(a first draft from the pilot plan, not yet reviewed by Andrew),docs/ideas.md(the agent backlog and the draft proposals),docs/issues.md,docs/tech-debt.md,docs/decisions.md(every ADR, the drafts as Proposed, today's decisions as DEC-2 to DEC-7, and questions Q-1 to Q-6),docs/actions.md, and What's new entries indocs/changelog/. The pilot plan and the services host migration plan are plan records (kind: plans), and the pilot plan's §0 has a Steps checklist. - Each register also has front matter, so today's reader shows them as lists in the Thinklio space until it reads
records:(roadmap item RM-3).
Changed¶
- Tech debt: the bug that people can hit (B3) and the fixed bugs (X1 to X5, X8) moved to
issues.md, keeping their IDs; B2 and B4 stay as debt. Every row has Severity, Raised and Status, and every open row was re-checked. New: D7 (@novansa/ui's Lexical components are unused), R6 (the model is fixed in code), V1 (the editor test's device round). R3 dropped: the web app has its own editor. - Decisions: new ones are
DEC-nrows indocs/decisions.md;decision-log.mdkeeps the ADR write-ups. The skills proposal's draft ADR-030 clashed with the accepted ADR-030 and is now DEC-1. - This file keeps the docs and engineering history; What's new is in
docs/changelog/.
Context¶
- The format was agreed by Andrew on 2 November 2026 for every Novansa repo; Thinklio is its main reader. Antonette was added to the eight pilot spaces and given her 88 imported items the same day.
2026-11-02 -- Permissions, Convex only, and the second Notion import¶
Changed¶
- Project setup follows
~/dev/docs's project standard..claude/settings.jsonis committed: Andrew approves pushes, merges, branch deletion and production writes at a prompt, and Claude then runs them; production reads, force pushes and secrets are handled asCLAUDE.mddescribes..mcp.jsonno longer has the Supabase server, whose token was written in.CLAUDE.mdand.env.exampledescribe Thinklio as it is. Dev ports moved to 3020 (web) and 3022 (website), per the ports convention. - Thinklio runs on Convex only. The legacy Go services, their Dockerfiles and Grafana dashboard,
go.mod, theMakefileanddocker-compose.ymlwere removed (tagarchive/go-legacy). The Supabase-era root docs moved toarchive/. Docs 02 and 12 still describe some of it (tech debt R5). novansa-pilot-build-plan.md§0 — imported Notion text tidied on production (79 pages and notes); the second import done: Tasks Tracker, Projects, the three Social Projects databases and Couple Tools Reel Gallery, with every file.- The Notion importer copies files through
storage:copyFromUrl, a Node action that streams them to R2 (up to 4 GB), and reads a database imported as a list 20 rows per action. A plan item can namerowsto re-import. The first run had stopped when a video ran the default runtime out of memory.
Added¶
connectors/notion/discover— what the Notion integration can see and what's imported (shared), databases' fields with the account's spaces (describe), an import run's progress and steps (runStatus), records with files still to copy (unresolvedFiles) and imported names waiting for a user (pendingPeople). All read only.
2026-11-02 -- The Notion import resumes; the pilot plan brought up to date¶
Changed¶
novansa-pilot-build-plan.md— status draft → active. New §0, where things stand: each phase's state, the editor decision and what's next for the Notion import. D3 is marked superseded: the MCP server is on Convex, not a Go service. The second 5.4 (Wiki) is now 5.5. The progress notes cover 6 October to 2 November.
Context¶
- Andrew, 2 November: editor Stage 0 works well enough to go on with. It's tested by using it, and we come back to it as the work needs it. The Notion import is the current work, and new UI is added as we find we need it.
- The Notion converter now applies the one-block-per-line fix (tech debt B5) and un-indents column content.
connectors/notion/repair:runfixes what was imported before. Re-imports in replace mode keep pages and records edited in Thinklio, as task descriptions already were.
2026-10-31 -- The services fleet moved to thinklio-nbg1¶
Added¶
decision-log.mdADR-041 — ten services run on thinklio-nbg1 (the five MCP servers,seo-service,researchv1 and v2,ormon,pocketbase-mcp); the per-practice deployments and other products' backends stay on apps-nbg1. Narrows the 27 October draft and refines ADR-030.services-host-migration-plan.md§0 — what was done, how (stateless apps, apps with data, the clone), what went wrong, and what's left: the tidy-up due about 7 November, telemetry and health checks, DataForSEO's IP allow-list, Traefik.
Changed¶
02-system-architecture.md§16.4 — box roles, DNS and the runbook reflect the move: steps 1 to 3 done, health checks and apps-nbg1's size still open.services-host-migration-plan.md— status draft → active (done).
2026-10-27 -- Thinklio's API: /health, /meta and an MCP server on Convex¶
Added¶
09-external-api-and-tool-integration.md§1.5 — what's live: one capability list inconvex/platform/projected as REST (POST /v1/tasks), as MCP tools (POST /mcp, stateless Streamable HTTP, protocol 2026-07-28 plus the 2025 handshake revisions), and in/meta;/healthand/metatake thethinklio-services' shape. MCP clients name the account inX-Thinklio-Account.
Changed¶
02-system-architecture.md§16.4 — runbook step 4: the custom domain goes on the HTTP Actions URL; smoke-test/health,/metaand/mcpas well asPOST /v1/tasks.-
02-system-architecture.md§16.4 — theapi.thinklio.aiPrometheus job is kept and repointed, not removed: it scrapes/v1/metrics(new; Prometheus text exposition with liveness, version and a database check). Convex's edge answers/metricsitself with an empty 404, so that path can't be served from Convex. -
services-host-migration-plan.md(draft) — moving everythinklio-servicesapp,pocketbase-falland ormon from apps-nbg1 to thinklio-nbg1, with a draft ADR-032. Linked from 02 §16.4.
Context¶
- No Go service: ADR-029 already put the API on Convex.
api.thinklio.aistill pointed at the empty thinklio-nbg1 box (Coolify has nothing deployed there), andINGEST_API_KEYwas unset on prod and dev, soPOST /v1/taskshad never been callable.
2026-06-30 -- Platform API on Convex; thinklio-services consolidated to a dedicated box¶
Added¶
decision-log.md— ADR-029 (Platform API is a Convex HTTP projection; Go inthinklio-servicesis a deferred Tier-3 transport tier, promoted only on a measured constraint) and ADR-030 (consolidate the self-managedthinklio-servicesfleet — Notion, Xero, Cliniko, research — onto the larger thinklio-nbg1 box; apps-nbg1 reverts to ad-hoc business apps).02-system-architecture.md§16.4 — new "Self-managed services (Hetzner nbg1)" subsection: box-role table (websites-nbg1 / thinklio-nbg1 / apps-nbg1), theapi.thinklio.aiapex→Convex +*.api.thinklio.ai→thinklio-nbg1 DNS scheme, removal of the stale:443monitor causing false offline alerts, and a deferred migration runbook.
Context¶
- First real Platform API route shipped in code:
POST /v1/tasks(convex/http.ts→ internaltasksCrud.ingestTask), doc-09{data,meta}/{error,meta}envelope, shared-secretINGEST_API_KEYauth v0 (upgrade path: per-accountapi_keys). Goes live onceINGEST_API_KEYis set andapi.thinklio.aiis attached as a Convex custom domain. api.thinklio.aicurrently A-records to the retired Go API box (thinklio-nbg1, 91.98.73.218) — the source of the offline-alert emails; resolved by the §16.4 DNS repoint.
2026-06-05 -- Cross-link to the cross-product Interaction Protocol¶
Changed¶
16-chats-channels-and-identity.md— added a companion note in §8 and a Cross-references entry pointing to the Interaction Protocol (dev/docs/interaction-protocol.md, outside this repo), the product-neutral contract (canonical envelope, input lanes, affordance schema/lifecycle, render→respond→handle, versioning) shared with Twikka and Couple Tools. Doc 16 is Thinklio's instance; the protocol wins on the shared contract.06-events-channels-and-messaging.md— precis now notes this layer instantiates the Interaction Protocol, pointing to it and to doc 16 §8.- Reciprocal links added in the protocol doc back to docs 16, 06, 15 (it lives outside the mkdocs site, so those are real relative links; the Thinklio→protocol references are non-link paths to avoid breaking the build).
2026-06-05 -- Doc set aligned to the channels→chats rename¶
Changed¶
- Root
CLAUDE.md— the messaging-first bullet now says "chats with user and agent participants" (with a note that "channel" = transport, pointing to doc 16), and the database-naming example join table ischat_members(waschannel_members). apps/web/CLAUDE.md— messaging route description updated to "chat list,/messages/[chatId]".- Live numbered docs (02, 03, 05, 06, 07, 10, 11) — schema and code examples aligned to the rename:
channelId→chatId,channel_members/channel_member→chat_members/chat_member,by_channel*→by_chat*,requireChannelMember→requireChatMember,v.id("channel(s)")→v.id("chats"), and the container messaging API in doc 10 (api.channels.sendMessageetc.)→api.chats.*. Only unambiguous container identifiers were changed; transport-meaning uses of "channel" were deliberately preserved per World B (ADR-023) — e.g.channel_identity/user_channel,channelType(the transport kind — telegram/email — inchannel_config/user_channeland the Telegram ingest flow; note the chat-type field is namedtype, neverchannelType), outbound/delivery "channels" (email/push/in-app/Telegram), the settings "Connected Channels" surface,api.channels.connect/listMine(the transport-connect/OTP flow), andapi.channels.telegram.ingest. archive/left frozen;changelog.md/decision-log.mdretain old→new names where they document the rename.
Known gap (pre-existing, not from this rename)¶
04-data-model.mddoes not define the chat container tables (chats,chat_members,messages) that exist inconvex/schema.ts; its section 12 models only the transport tables (channel_config,user_channel). This data-model/code gap predates the rename and is flagged for the next data-model pass.
2026-06-05 -- Doc 16 added: Chats, Channels & Identity¶
Added¶
16-chats-channels-and-identity.md(v1.1.0, layer: architecture). New canonical doc, expanding the set from 15 to 16. Captures the channel/chat design worked out across the audit: World B terminology (channel = transport, chat = container; rename map in §9); chat as the canonical, channel-agnostic container with three channel binding modes (Mirror / Relay / Injection) and the resulting per-chat agent memory; chat types, roles & a role-keyedpostPolicy(everyone | admins) for broadcast/announcement chats, with a worked validation mapping a real clinic's group and 1:1 chats onto chat types (§2.1–2.2); the verified deep-link identity-binding flow (Telegram worked example) and thechannel_identitytable; the principal model in which inbound identity and outbound credentials are polymorphic over user / account / agent, with agent identity/credentials attaching at assignment scope and the borrow-vs-own distinction; and the delivery & capability model (§8) — the universal semantic message (prose + typed affordances + text-fallback invariant), compose-once/render-by-binding-mode, the channel adapter contract, the native-only Mirror posture for v1 (non-native I/O = Relay/Injection only), and edit/routing defaults. Includes a worked-examples map, a current-vs-target status/rename section, and deferred items (multi-account routing, one-bot-many-agents, group-from-channel UX, external-party contacts). Supersedes doc 06 on terminology and the channel↔chat relationship; cross-references 04, 06, 07, 09, 15.decision-log.md— ADR-023 (channel = transport / chat = container), ADR-024 (chat canonical + Mirror/Relay/Injection binding modes), ADR-025 (principal-polymorphic identity & credentials, verified-link binding), ADR-026 (universal semantic message; compose once, render per channel), and ADR-027 (native-only conversational Mirror for v1; non-native I/O is Relay/Injection) added.
Note¶
- The
channels → chatsrename (ADR-023) is decided but not yet applied to code;convex/schema.tsstill uses the old names. Doc 16 §8 is explicit about this to avoid new doc-vs-code drift. The rename should land as one mechanical migration before any non-web channel is built.
2026-06-05 -- Doc 15 added: Tenancy & Deployment Topology¶
Added¶
15-tenancy-and-deployment-topology.md(v1.0.0, layer: architecture). New canonical doc, expanding the set from 14 to 15. Documents how Thinklio implements multi-tenancy today — a single pooled Convex deployment with JWT-derivedaccountIdisolation middleware, tenant-leading index discipline, and post-getownership re-checks — and why that is correct at the expected scale (a few thousand small B2B orgs). Defines the cell pattern for graduating a tenant per-demand to a dedicated deployment (T2) or a customer-owned Convex account (T3), the provisioning flow for each topology, and the pooled-to-dedicated migration procedure (per-tenant export + hard-delete, reused from GDPR tooling), including the ID-remapping, Agent-component, RAG, and R2 complexities. Cross-references docs 02, 04, 07.decision-log.md— ADR-022 added recording the single-pooled-deployment decision and the graduation path.
2026-04-17 -- Doc 04 rewritten for Convex-native representation¶
Rewritten¶
04-data-model.mdbumped to v2.0.0. The old doc described every entity using SQL-flavoured field types (UUID, JSONB, TIMESTAMPTZ, decimal, enum) and 266 SQL-type tokens despite the platform's Convex-first pivot. Full rewrite replaces all 61 entity tables with ConvexdefineTablevalidator blocks matchingconvex/schema.ts:v.id("table")for foreign keys,v.union(v.literal(...))for enums,v.number()for timestamps and amounts,v.any()orv.object({...})for JSON,v.array(v.float64())withvectorIndexfor embeddings. Every entity now declares its indexes explicitly. Section 2 adds a full SQL-to-Convex type mapping table for readers migrating between representations. Section 16.5secretentity added to complete the vault cross-reference (the legacy doc referenced it from other sections but never defined it). Conceptual model, relationships, scope and visibility rules, and lifecycle semantics are unchanged; only the schema representation changes. Line count grew from 1936 to 2449 reflecting the more verbose Convex validator syntax.
Added¶
archive/legacy-sql-data-model.md. The previous doc 04 preserved verbatim with an archival banner. Registered inarchive/README.md.
Stack-audit snapshot after this rewrite¶
| Doc | Convex | Postgres | Redis | Supabase |
|---|---|---|---|---|
| 04 Data Model | 23 | 1 | 2 | 0 |
Remaining Postgres/Redis mentions are contextual (SQL-to-Convex mapping table, legacy comparison in section 2). The 827 Convex validator tokens (defineTable, v.id, v.string, etc.) now dominate the schema representation.
Verified¶
python scripts/build-doc-index.py --check: passes cleanly on all 14 docs.mkdocs build: completes without errors;04-data-model/index.htmlrenders all 61 defineTable blocks with syntax highlighting.- Archive file correctly excluded from the built site.
2026-04-17 -- Docs 06, 08, 09, 13 retargeted for Convex-first runtime¶
Rewritten¶
06-events-channels-and-messaging.mdbumped to v2.0.0. The old doc described the Redis Streams event bus and the GoHarnessExecutor. Full rewrite replaces both with their Convex-native equivalents: the event table plus reactive queries for distribution, the Convex Workflow component for the durable harness, and HTTP actions for channel ingress. Channel identity, multi-channel delivery, Postmark email, and messaging UX conventions carry forward. A new Tier 3 promotion section explicitly documents when a dedicated Go service (channel ingress at scale, API surface under load, voice streams) becomes an analytics-driven next step.
Added¶
archive/legacy-event-system-harness-design.md. The previous doc 06 preserved with an archival banner. Registered inarchive/README.md.
Updated¶
08-agents-catalogue-and-platform-services.mdsection 3 Predictive Planning. Outcome Collector retargeted from a Redis Streams consumer group to a Convex scheduled function reading the event table against a persisted cursor.plan_scoreRedis cache replaced with Convex's reactive query cache. Supabase Vault references updated to the Convex-era secrets vault. Credential-security subsection rewritten for the Convex-first vault implementation. Phase 5 deploy note updated to describe the Score Service as a Convex query.09-external-api-and-tool-integration.md. Redis Streams references in section 1 (API strategy) and section 6 (Internal Service APIs) replaced with Convex reactive queries and the shared event table. Webhook delivery retargeted to a Convex scheduled function plus delivery actions, with the Tier 3 Go-service promotion path documented.13-implementation-plan-and-status.md. Added pre-pivot banner to section 2 (Implementation Phases) clarifying the VPS/Redis/Coolify bullets are archival while the capability outcomes are current. Added the same banner to section 3 (March 2026 Implementation Summary). Section 7 (Future Phases) now cross-references the Convex-era phases in doc 02 and explicitly flags voice and high-volume ingress as Tier 3 Go-service candidates.
Verified¶
python scripts/build-doc-index.py --check: passes cleanly on all 14 docs.mkdocs buildcompletes without errors.- Final per-doc audit: Convex mentions dominate across docs 02, 03, 05, 06, 10, 11, 12; remaining Postgres/Redis/Supabase mentions are either contextual (legacy comparisons, archive pointers) or explicitly framed as archival by a banner in the same section.
2026-04-17 -- Doc 05 rewritten for Convex-first persistence¶
Rewritten¶
05-persistence-and-storage.mdbumped to v2.0.0. The consolidation landed the old doc 06 (Persistence & Caching), 20 (Document Ingestion), 24 (Supabase Platform), and 41 (Document Intelligence) as-is, which meant doc 05 still read as a Postgres + Supabase + Redis reference despite the platform's Convex-first pivot (ADR-017). Full rewrite now covers Convex as the platform database, R2 as the file layer, native vector search, the ingestion pipeline built on the Workflow component, and execution-tier budgeting for ingestion. 21 sections, all Convex-era. The remaining Postgres/Redis/Supabase mentions are contextual (archive pointers and legacy comparisons).
Added¶
archive/legacy-postgres-persistence-design.md. The previous doc 05 content preserved verbatim under the archive with a clear "do not treat as current design guidance" banner. Retained because the Postgres schema, RLS, media pipeline, and document intelligence concepts carry forward conceptually into the Convex era.archive/README.mdregisters the new archival file.
Fixed¶
- Plain-text filename typos across docs 07, 10, and 12. References to
05-persistence-storage-and-ingestion.md,08-agents-catalogue.md, and09-external-api-tool-integration.md(all broken) updated to the correct filenames. These were in prose inline-code spans so they didn't show up in the earlier broken-link sweep.
Added¶
- Doc 05 style overrides. Added
docs/product/stylesheets/extra.csswired inmkdocs.ymlviaextra_css, giving the primary and secondary sidebars independent scroll so long navs and long ToCs reach the bottom on short pages. - Pygments 2.16.1 pin in
docs/requirements.txtto work around a Pygments 2.17 regression that brokemkdocs buildon unlanguaged code fences.
Verified¶
python scripts/build-doc-index.py --checkclean.mkdocs buildcompletes without errors;05-persistence-and-storage/index.htmlrenders Convex-era content.- Archive file is correctly excluded from the built site.
2026-04-17 -- Post-consolidation audit and cleanup¶
Fixed¶
- Cross-references across docs 01, 05, 06, 08, 09, 13. Seven broken links pointing at non-existent filenames (
03-agent-architecture-and-extensibility.md,07-security-and-governance.md) now resolve. Kept the existing short filename convention; updated the references. - Frontmatter drift across the set. All 14 canonical docs now carry the full schema (title, description, number, version, status, layer, tags, owners, supersedes, depends_on, last_updated).
supersedesanddepends_onare uniform integer arrays instead of the mixed integer/slug form that had emerged during consolidation. Leading-zero edge cases (e.g.[08, ...]) normalised to bare integers. - Doc 05 missing revision history. Added section 20 and matching ToC entry.
depends_oncycles. Cleaned up 02 ↔ 03, 07 ↔ 09, 02 ↔ 11 back-references so the dependency graph is a proper DAG. Reading order now topologically sorts without cycle fallbacks.
Added¶
scripts/build-doc-index.pyfull implementation. Replaces the step-2 placeholder. Parses every canonical doc's frontmatter, validates the schema (required fields, valid status and layer, ISO-8601 dates, duplicate numbers, numeric-sequence gaps, brokendepends_onrefs), and regeneratesindex.mdwith a document registry, layer-grouped authority map, Mermaid dependency graph, and topologically sorted reading order. Exits non-zero on validation failure so CI can gate on it. Supports--checkand--jsonmodes.- Pygments 2.16.1 pin in
docs/requirements.txt. Pygments 2.17+ regressed onHtmlFormatter(filename=None)which pymdownx.highlight triggers on unlanguaged code fences. The pin restores cleanmkdocs build.
Updated¶
docs/product/index.md. Regenerated from frontmatter via the build script. Now includes the agent-specs section and a clean reading order.thinklio-docs-maintainerskill. Rewritten for the new structure. Knows about the 14-doc canonical set, the frontmatter schema, the build script workflow, semver-bump rules, and the archive read-only policy. Both.skillzip bundles rebuilt.- Root
CLAUDE.md,apps/web/CLAUDE.md, anddocs/README.md. No longer reference archived files (00-document-index-v01.md,10-implementation-plan-v02.md).docs/README.mdnow describes the 14-doc layout and how to run MkDocs locally.
Verified¶
python scripts/build-doc-index.py --check: passes cleanly on all 14 docs.- No broken relative file references remain in any canonical doc.
mkdocs buildcompletes without errors once Pygments is pinned.
2026-04-17 -- Documentation consolidation complete¶
Consolidated¶
The Thinklio documentation set was consolidated from 56 numbered files into 14 canonical documents plus three living files (this changelog, the decision log, and the doc index). The consolidation was executed across multiple sessions from 2026-04-16 to 2026-04-17. Every byte of original content is preserved in archive/old-numbering/.
New canonical documents:
| Doc | Title | Absorbs old docs |
|---|---|---|
| 01 | Product & Strategy | 01, 03, 22, 26, 38 |
| 02 | System Architecture | 02 (tombstone), 04, 43, 44, 54 |
| 03 | Agent Architecture & Extensibility | 15, 33, 37, 40, 42, 45, 46 |
| 04 | Data Model | 05, 32 |
| 05 | Persistence, Storage & Ingestion | 06, 20, 24, 41 |
| 06 | Events, Channels & Messaging | 07, 25, 27, 49 |
| 07 | Security & Governance | 08, 36, 47, 52 |
| 08 | Agents Catalogue & Platform Services | 19, 21, 30, 31 |
| 09 | External API & Tool Integration | 09, 16, 28, 51, 53 |
| 10 | Client Applications & UX | 12, 18, 23, 29 |
| 11 | Convex Reference | 43a, 48 |
| 12 | Developer Guide | 14, 35, 50, 55 |
| 13 | Implementation Plan & Status | 10, 34, 39 |
| 14 | Thinklio Reference | 17 (regenerated from docs 01--13) |
Living files created:
index.md-- doc set homepage with reading order guidance, regenerated from frontmatterchangelog.md-- this file, carrying forward all history from old doc 13decision-log.md-- ADR records carried forward from old doc 11, with new ADRs 017--021 added for the Convex-first pivot
Archive created:
archive/old-numbering/-- all 57 original files preserved with git history intactarchive/README.md-- old-to-new mapping table with landed status for every source document
Key decisions recorded¶
- ADR-017: Convex-first greenfield rebuild (supersedes ADR-005, 006, 007, 008, 015)
- ADR-018: Three-tier execution model (interactive fast path, durable workflow, external queue)
- ADR-019: Clerk for identity and organisation management
- ADR-020: Messaging-first core abstraction
- ADR-021: MCP tool permission intersection in shared channels
Context¶
The consolidation was triggered by the March 2026 docs audit which identified significant overlap, inconsistency, and drift across the growing document set. The plan reduced 56 files to 14 by grouping them into coherent domains. Each consolidated document carries YAML frontmatter (title, number, status, supersedes, depends_on) enabling automated index generation. The archive preserves full recovery capability.
2026-04-16 -- Numbering housekeeping and registry corrections¶
Renamed¶
- 43-testing-observability-v01.md to 55-testing-observability-v01.md -- Resolved a document number collision. The testing and observability document had been created in late March with the same number (43) as the Convex Migration Architecture document, and was never added to the index. Renumbered to 55 so it occupies the next free slot in the registry.
Updated¶
- 00-document-index-v01.md -- Registered doc 55 (Testing & Observability) across the Document Registry, Layer 9 (Developer Guides), Authority Map, and LLM Reading Order (Tier 9). Also corrected the Current Version for doc 50 (Convex + Clerk Setup Guide) from v01 to v02 to reflect the v02 file that now lives on disk.
Removed¶
- 50-convex-clerk-setup-guide-v01.md -- Superseded on disk by the v02 file previously added in the 2026-04-10 update; the stale v01 file is now removed from the repo.
Context¶
Routine housekeeping ahead of a planned consolidation pass over the documentation set. The main action was resolving a numbering collision that had existed since late March (two documents sharing number 43, only one of which appeared in the index). No content changes to individual documents, only renaming, index updates, and removal of a superseded file.
2026-04-07 -- Governance Policy Framework expanded to v02¶
Updated¶
- 47-governance-policy-framework-v01.md to v02 -- Three significant additions. (1) New section 4 (Rule Type Definitions): formal TypeScript interfaces for every rule body across all eight policy categories, plus shared types (PermissionLevel, BudgetPeriod, Classification, ThresholdCondition, etc.) and a top-level PolicyRule discriminated union. This gives implementers a concrete contract rather than inferring shapes from inline examples. (2) Expanded section 5.4 (Default Templates): nine complete policy_templates records with full rule bodies covering the baseline governance set applied to all new accounts: external comms require confirmation, per-user daily budgets tiered by subscription plan ($5 Starter / $20 Professional / $50 Business), baseline brand voice, audit logging at both depths, learn-then-trust approval for the first 5 outbound messages, delegation origin restrictions, trust escalation cap, and cost attribution to the originating user. (3) New section 5.5 (Industry Template Packs): full rule bodies for healthcare (7 policies covering PII redaction, classification ceiling, external processing restriction, mandatory health disclaimer, no-diagnosis topic restriction, 7-year audit retention, AI disclosure on outbound comms), finance (7 policies covering transaction approval gates, compliance delegation restriction, full audit trace, 7-year retention, daily outbound cap, no-advice topic restriction, external party gate), and legal (8 policies covering classification ceiling, strict cross-channel isolation, external processing restriction, full audit trace, 7-year retention, no-advice topic restriction, always-on AI disclaimer, document edit review trigger). Sections renumbered (old 4-7 became 5-8). Revision history table added.
- 00-document-index-v01.md -- Registry updated to show doc 47 at v02.
Context¶
The v01 governance framework had solid category definitions and inline examples, but two gaps would have caused friction during implementation. First, the rule bodies used v.any() in the Convex schema with no formal type definitions, meaning an LLM implementing different parts of the codebase could produce inconsistent rule shapes. Second, the default and industry templates were described in prose ("sensible per-user daily budget", "PII redaction in broad channels") without concrete rule objects, so there was no actual seed data to implement. This revision closes both gaps: typed interfaces provide the contract, and the template bodies provide the seed data.
2026-04-06 -- MCP integration suite, execution tiers, messaging UX reference, and Convex setup guide¶
Added¶
- 49-messaging-ux-state-of-the-art-v01.md -- Survey of messaging UX patterns across nine major platforms (Apple Messages, WhatsApp, Telegram, Signal, Discord, Slack, Google Messages, Microsoft Teams, Meta Messenger) as of April 2026. Covers message composition, threading, reactions, read receipts, voice messages, search, AI integration, and accessibility. Intended as a planning reference for Thinklio's messaging-first UI.
- 50-convex-clerk-setup-guide-v01.md -- Internal setup guide covering the complete Convex + Clerk integration for development and production environments. Includes JWT validation, webhook sync for user/org lifecycle events, Next.js middleware configuration, and environment variable reference.
- 52-mcp-credential-and-permission-model-v01.md -- Defines the credential layer (three scopes: platform, account, user; injection via HTTP headers; OAuth token refresh lifecycle) and the permission layer (channel-aware tool visibility resolution based on user permissions, agent configuration, and channel participant membership). Child of doc 51.
- 53-mcp-server-reference-v01.md -- Reference for the three Go MCP servers maintained in thinklio-services: Cliniko (6 tools, user-scoped), Notion (15 tools, account-scoped), and Xero (18 tools, account-scoped OAuth). Documents the common architecture (single Go binary, /mcp + /health + /meta endpoints, Streamable HTTP transport), tool inventories with trust levels, deployment configuration, and Docker/health check setup.
- 54-execution-tiers-workflow-budget-v01.md -- Establishes a three-tier execution model to manage Convex's 100-slot workflow/workpool ceiling on the Professional plan. Tier 1 (fast path) uses direct actions with the Action Retrier for interactive chat; Tier 2 (durable workflow) uses Convex Workflow for delegation chains, email processing, and knowledge indexing; Tier 3 (external queue) provides an escape hatch for high-volume workloads. Includes channel classification table, slot budget allocation (55 allocated, 45 headroom), monitoring thresholds, and the growth path to Enterprise/self-hosted.
Updated¶
- 51-tool-integration-developer-guide-v01.md to v02 -- Major revision. Added Streamable HTTP transport section (replacing ambiguous stdio/remote mix). Rewrote the server example to use
StreamableHTTPServerTransportwith Express. Changed credential injection from environment variables to HTTP headers. Added sections on authentication between Thinklio and MCP servers (bearer token and OAuth 2.1), tool call timeouts (60-second limit), idempotency and retry design for write operations, tool discovery and update lifecycle (24-hour re-discovery cycle), and a note that Cliniko API examples are illustrative rather than production-ready. - 00-document-index-v01.md -- Docs 49 through 54 added to registry. Layer assignments: 49 to Layer 5 (Client Applications), 50/51/53 to Layer 9 (Developer Guides), 52/54 to Layer 2 (Platform Design). Authority map, dependency map, and LLM reading order updated. Five selective reading rows added. "Adding a new external integration" update trigger updated to reference docs 51, 52, 53.
- README.md -- Document count updated from 40 to 49.
Removed¶
- 52-cliniko-mcp-server-plan-v01.md -- Superseded by docs 52 (MCP Credential and Permission Model) and 53 (MCP Server Reference), which cover the broader integration pattern rather than a single server's implementation plan.
Key Decisions Recorded¶
- Interactive agent turns (web app, Telegram) bypass Convex Workflow entirely, using direct actions with the Action Retrier for LLM call resilience
- Workflow slots are reserved for work that genuinely needs durability: delegation chains, email processing, document indexing
- Notifications are always separate from the work that triggers them (decoupled failure domains, no workflow slot consumption for standard notifications)
- MCP servers use Streamable HTTP transport (the current MCP standard); SSE-based transport is deprecated
- Credentials are injected via HTTP headers per request; MCP servers never store credentials
- MCP tool permission resolution is channel-aware: agents only use tools that every channel participant is permitted to see
- Calendar, Mail, and File Storage are platform internals (Convex tools with provider abstraction), not MCP servers, because they require multi-account OAuth, reactivity, and deep platform integration
Context¶
This batch of changes came out of a design session focused on three questions: how to keep chat interactions maximally responsive on Convex's Professional plan, how to structure the MCP integration stack now that working servers exist (Cliniko, Notion, Xero), and which integrations should be MCP servers vs platform internals. The execution tiers doc (54) addresses the first question by splitting work into fast path (no workflow slots), durable path (budgeted workflow slots), and external queue (zero slots, for when volume demands it). The MCP docs (51 v02, 52, 53) address the second by documenting the transport model, credential/permission system, and server reference as a coherent suite. The third question led to a taxonomy: foundational capabilities (calendar, mail, files) stay internal because they need OAuth, reactivity, and deep identity coupling; vertical API integrations (practice management, accounting, project tools) are MCP servers because they're stateless and credential-simple.
2026-04-03 -- Convex Component Directory added¶
Added¶
- 48-convex-component-directory-v01.md -- Comprehensive catalogue of all 75 Convex components available on convex.dev/components, organised into eight categories: AI (13), Authentication (12), Backend (10), Collaboration (6), Database (8), Durable Functions (6), Integrations (13), and Payments (7). Each component entry includes npm package name, version, weekly downloads, author, licence, GitHub URL, description, installation command, and use cases. The document is designed primarily for LLM context windows, giving agents a complete picture of what Convex components exist and when to use them. Covers both official get-convex components and community contributions. Includes installation patterns, the
convex.config.tsconfiguration approach, and links to machine-readablellms.txtendpoints for each component. Written in Australian English.
Updated¶
- 00-document-index-v01.md -- Doc 48 added to registry (Active), Layer 2 (Platform Design), authority map (authoritative for the Convex component ecosystem), dependency map (reads from 43a), and LLM reading order (Tier 3, item 18, subsequent items renumbered). Two selective reading rows added/updated for browsing Convex components and understanding Convex platform capabilities.
- README.md -- Document count updated from 39 to 40.
Context¶
The Convex component ecosystem is a key part of Thinklio's platform infrastructure now that the project has moved to a Convex-first architecture (doc 44). Having a comprehensive, LLM-consumable catalogue of all available components means that coding agents like Claude Code can make informed decisions about which components to integrate when implementing features, rather than discovering them ad hoc. The document complements doc 43a (Convex Capability Statement) which covers the platform itself, while doc 48 focuses specifically on the component marketplace. A companion skill (convex-component-updater) was also created to refresh the document periodically as new components are published.
2026-04-03 -- Governance Policy Framework added¶
Added¶
- 47-governance-policy-framework-v01.md -- Comprehensive governance framework defining eight policy categories for controlling agent behaviour: (1) Action permissions with five-level autonomy gradient (deny, read, draft, confirm, autonomous) covering mail, calendar, CRM, and clinical data examples; (2) Cost limits covering per-interaction, per-period, per-user, per-team, and per-tool budgets plus model tier restrictions; (3) Data boundaries for classification ceilings, PII handling, external processing restrictions, data residency, and cross-channel isolation; (4) Temporal constraints for operating hours, cooldown periods, quiet hours, and rate-of-action limits; (5) Delegation constraints for external agent restrictions, trust escalation prevention, prohibited combinations, and cost attribution; (6) Content policies for brand voice, topic restrictions, mandatory disclaimers, response format, and language; (7) Audit requirements for logging depth, review triggers, disclosure requirements, periodic review thresholds, and retention policies; (8) Approval gates with action-type, first-of-type (learn-then-trust), confidence, external-party, and escalation triggers. Also defines the policy evaluation model (four evaluation points during agent turns), layered resolution with most-restrictive-wins rule, policy scoping (agent, channel, tool, user dimensions), approval state tracking with workflow integration, policy templates for new accounts and industry-specific packs (healthcare, finance, legal), governance UI concepts, and performance considerations. Three new schema tables: extended
account_policiesandteam_policieswith full category set and scoping,pending_approvalsfor human-in-the-loop state, andpolicy_templatesfor reusable governance patterns.
Updated¶
- 00-document-index-v01.md -- Doc 47 added to registry, Layer 2 (Platform Design), authority map, dependency map (reads from docs 46, 45, 08, 44, 38), and LLM reading order (Tier 3, item 19, subsequent items renumbered). Three selective reading rows added for governance configuration, data boundaries, and approval gates.
Key Decisions Recorded¶
- Eight policy categories cover all governance concerns without requiring custom code
- Five-level autonomy gradient (deny/read/draft/confirm/autonomous) provides the right granularity for action permissions
- Most-restrictive-wins resolution across account, team, and user layers
- Policy resolution is snapshotted once at turn start, not re-evaluated per step
- Approval gates pause workflows via awaitEvent and surface confirmations in the channel
- Policy templates ship with the platform for new accounts, with industry-specific packs for regulated sectors
- Team policies support a subset of categories (delegation constraints and audit requirements are account-level only)
Context¶
This document was prompted by a discussion about what governance constraints organisations would need beyond the obvious email send-with-permission example. The eight categories emerged from working through real scenarios: healthcare practices needing PII controls and clinical data access restrictions, financial services needing transaction approval thresholds and compliance audit trails, and general business needs around operating hours, cost management, and brand voice enforcement. The framework is designed so that all governance is declarative data (not code), evaluated by lightweight matching logic, and configurable through the admin UI without developer involvement.
2026-04-02 -- Agent Extensibility and Composability Model added¶
Added¶
- 46-agent-extensibility-composability-v01.md -- Unified model for how all functionality is constructed, composed, extended, and executed in Thinklio. Covers five extensibility layers: (1) Tools as stateless capabilities with three types (internal Convex functions, external REST endpoints, MCP-discovered tools) sharing a single invocation interface; (2) Agents as declarative reasoning entities with three construction patterns (catalogue, composed, custom); (3) External orchestration via a generic dispatch/callback/status contract for n8n, Go services, and any HTTP-callable system; (4) Custom Convex components for isolated reusable infrastructure (governance engine, usage metering, document parser, dispatch manager); (5) Platform agent catalogue as the composition surface. Also defines five trigger types (channel message, external webhook, scheduled cron, dispatch callback, internal system event), MCP server integration with dynamic tool discovery, agent versioning policy (config snapshot at turn start, changes apply on next turn), durability and recovery patterns (workflow journalling, tool call recovery, dispatch timeout handling), and the performance tier model inherited from doc 42 (sub-10ms computational parser, sub-500ms fast execution, full LLM reasoning). Introduces four new schema tables:
dispatch_log,event_triggers,scheduled_agent_runs,mcp_servers. Extends thetoolstable with MCP type and auth config. Concludes with Agent Studio implications: if primitives are correct, Agent Studio is a configuration and composition surface, not a programming environment.
Updated¶
- 00-document-index-v01.md -- Doc 46 added to registry, Layer 4 (Agents), authority map, dependency map (reads from docs 45, 44, 40, 33, 42, 07, 16), and LLM reading order (Tier 5, item 32, subsequent items renumbered). Five selective reading rows added for extensibility model, external integration, external orchestration, and custom agent building.
Key Decisions Recorded¶
- Tools and agents remain distinct entities (not unified into a single "capabilities" concept) but share a uniform invocation interface through the tool resolver
- Agent delegation is invoked through the same tool-calling interface as regular tools, preserving a flat tool list from the agent's perspective
- External orchestration uses a generic dispatch/callback contract regardless of target system (n8n, Go, external)
- MCP servers are a first-class tool source alongside internal and external REST tools
- Agent versioning uses config-snapshot-at-turn-start rather than explicit version numbers
- Graceful degradation for partial failures is handled by agent reasoning (option 2), not special infrastructure
- Custom Convex components are reserved for cross-cutting infrastructure, not for individual agents or business tools
Context¶
This document emerged from a design discussion about how Thinklio's agent primitives, tool types, and execution models fit together into a unified extensibility model. The discussion identified that if the primitives are correct, the Agent Studio becomes a composition surface rather than a programming environment. The five-layer model covers the full spectrum from simple stateless API calls through to complex multi-agent orchestration with external workflow dispatch. The document also addresses performance concerns (triage tiers ensure quick things stay quick), durability (workflow journalling, dispatch recovery), and real-world integration patterns (e.g. a podiatry practice connecting its patient management system's REST API as external tools for a custom Practice Assistant agent). The dispatch/callback contract was designed to be generic enough for n8n, Go services, and any future external orchestration target.
2026-04-02 -- Agent Component Integration Plan added with UX model refinements¶
Added¶
- 45-agent-component-integration-v01.md -- Implementation playbook for Phase 2 (Agents) of the greenfield Convex-first architecture. Covers two major areas:
- UX model (section 2): Defines agents as first-class participants in message channels, added and managed like any other user. Three trigger modes (mention-only, proactive, silent) per agent per channel, respecting a governance hierarchy where organisation policies set the ceiling and teams/users can tighten within those bounds. Introduces the agent catalogue concept (platform-level templates that organisations activate and customise), user-level agent configuration (personal credentials such as connected email accounts), composable agent delegation with privilege isolation, channel-scoped knowledge retrieval (knowledge context derived from where the chat happens, not agent config), and notification/interruption control (inline, threaded, DM, or silent response modes).
- Implementation plan (sections 3-9): Maps five Convex components (Agent, Workflow, RAG, Rate Limiter, Sharded Counter) to Thinklio's architecture. Defines three integration callbacks (usageHandler for cost accounting, rawResponseHandler for audit, contextHandler for knowledge injection with channel-derived scoping). Specifies the channel-to-thread bridge linking the UI message stream to Agent component execution threads. Adds nine new schema tables:
agent_catalog(platform-level templates),agents(account installations with catalogEntryId, defaultTriggerMode),tools,agent_tools,agent_threads(with per-channel triggerMode),agent_assignments,user_agent_config(personal credentials and preference overrides),team_policies(tighten-only within account bounds), and additions toaccount_policies(trigger_mode_restriction, notification_default types). Twelve incremental implementation steps from component installation through governance policy enforcement. Risk register covering proactive agent noise, policy layering complexity, and delegation visibility.
Updated¶
- 00-document-index-v01.md -- Doc 45 added to registry. Added to Layer 4 (Agents). Authority map entry added. Dependency map entry added under Agent Layer Dependencies. LLM reading order updated (doc 45 inserted into Tier 5 as item 31, subsequent items renumbered through Tier 9). Two selective reading rows added for agent implementation on Convex and agent trigger modes/governance.
Key Decisions Recorded¶
- Agents are channel participants, not a separate interaction surface: same channels, same message streams, same permission model
- Three trigger modes (mention, proactive, silent) configurable per agent per channel, with governance hierarchy enforcement
- Platform agent catalogue model: off-the-shelf agents as templates, organisation "installs" and customises them
- Knowledge context derived from channel scope (team channel = account + team knowledge), not from agent configuration
- Layered governance: account policies set the ceiling, team policies tighten, user preferences tighten further; no layer can loosen restrictions set above it
- User-level agent credentials (e.g. connected email accounts) stored separately from agent config and governance
- Delegation does not transfer privileges: delegate agents are governed by their own trust level and account policies regardless of the invoking agent
Context¶
This document was drafted after a design discussion about the user experience model for agents in Thinklio. The original v0.1.0 covered the technical component integration but lacked the UX framing: how users discover, add, and interact with agents in channels; how proactive vs explicit interaction works; how personal configuration (credentials, preferences) fits alongside organisational governance; and how the agent library/installation model works. The v0.2.0 revision adds section 2 (UX Model) addressing all of these, updates the schema to include agent_catalog, user_agent_config, team_policies, trigger modes, and notification modes, and refines the contextHandler to derive knowledge scope from channel context rather than agent configuration. The implementation steps and risk register were also updated to reflect these additions.
2026-04-01 -- Greenfield Convex-first architecture proposed; Convex capability statement and migration analysis added¶
Added¶
- 43-convex-migration-architecture-v01.md -- Initial analysis of migrating Thinklio's agent execution layer to Convex.dev. Proposed a two-plane architecture (Agent Plane in Convex, Platform Plane in Go/Postgres/Redis) with Keycloak for auth. Covers the performance problem (7-hop latency chain), component mapping, cross-plane communication flows, risks, and a five-phase implementation plan. This document is now superseded by doc 44, which takes a more aggressive Convex-first approach, but it is retained as a record of the analysis that led to that decision.
- 43a-convex-capability-statement-v01.md -- Comprehensive reference for Convex platform capabilities as assessed in April 2026. Covers: core database (OCC/MVCC, indexes, queries/mutations/actions), reactivity and real-time, search (text + vector), file storage, scheduling, authentication (OIDC/Clerk), the convex-helpers library (custom functions, RLS, relationships, CRUD, Zod, Hono, triggers), the full component ecosystem (first-party and community), data streaming (log streams, Fivetran/Airbyte), self-hosted deployment (pros/cons/limitations), pricing, platform guarantees, best practices and anti-patterns, and client libraries including Flutter/Dart community packages.
- 44-greenfield-convex-architecture-v01.md -- Proposed greenfield rebuild of Thinklio's architecture centred on three managed services: Convex for all application logic and data, Clerk for authentication and organisation management, and Cloudflare R2 for file storage. Eliminates Redis, Go services, Supabase, and the custom event bus. Key design decisions: messaging-first model where channels are the core abstraction and agents are first-class participants alongside users; single Convex project with reactive caching replacing Redis and multi-tier caching; Clerk Organisations mapping to Thinklio accounts with RBAC; governance enforced as custom function middleware reading reactively cached policy documents; four-layer knowledge model preserved with Convex native vector search and RAG component; document ingestion via Workpool; audit trail via triggers with Fivetran CDC export. Includes full Convex schema definitions (18 tables), five-phase build plan with exit criteria, six resolved design questions, and a self-hosted Hetzner deployment option for enterprise customers.
Updated¶
- 00-document-index-v01.md -- Docs 43, 43a, and 44 added to registry. Doc 43 marked as superseded by 44. Docs 43a and 44 added to Layer 2 (Platform Design). Authority map entries added for both active docs. Dependency map entries added for all three. LLM reading order updated (43a and 44 inserted into Tier 3 as items 17–18, subsequent items renumbered through Tier 9). Selective reading rows added for Convex architecture and capabilities.
Key Decisions Recorded¶
- Convex Cloud (Ireland) as the primary application platform, replacing Go services, Supabase, and Redis
- Clerk for authentication and organisation management, replacing Supabase Auth and the planned Keycloak deployment
- Messaging-first architecture: channels with user and agent participants as the core interaction model
- Single Convex project (consolidation over partitioning) for reactive caching performance and LLM-friendly development
- Go services deferred: not required for initial build, available as a scale optimisation later
- Flutter mobile app with convex_flutter, validated via proof-of-concept in Phase 1; Swift/Kotlin native as fallback
Context¶
This is a significant architectural pivot. The prior design (Go services, Supabase Postgres/Auth, Redis Streams event bus, pgvector, multi-tier caching) was sound but introduced structural latency and operational complexity that would slow both development and runtime performance. The Convex-first approach collapses six Go services, Redis, and Supabase into a single reactive backend with managed auth. The analysis progressed through three stages: doc 43 (conservative two-plane split with Convex for agents only), then broadening Convex's role to include governance and permissions (leveraging reactive query caching for policy enforcement), and finally doc 44 (greenfield rebuild with Convex, Clerk, and R2 as the entire stack). The primary motivations are agent interaction latency, development velocity for a small team, and the LLM-assisted development advantage of a single-codebase architecture.
2026-03-27 -- Smart input triage architecture added¶
Added¶
- 42-smart-input-triage-v01.md -- Design document for a three-tier message routing system that classifies user input before any LLM call is made. Tier 1 is a computational parser running in under 10ms using lexicon lookups and regex to detect intent (knowledge lookup, knowledge store, greeting, tool request, time query, complex reasoning, etc.) and assign a confidence score. High-confidence simple intents are routed to Tier 2 for direct tool execution or template responses (target under 500ms). Low-confidence or complex intents fall through to Tier 3 for full LLM reasoning via Claude/OpenRouter. The motivation is that the current uniform execution path takes 2.5–8 seconds regardless of message complexity; triage eliminates that overhead for the majority of common interactions.
Updated¶
- 00-document-index-v01.md -- Doc 42 added to registry, Layer 3 groupings, authority map, dependency map, and LLM reading order (Tier 4, item 24). Reading order renumbered throughout subsequent tiers. Selective reading row added for message routing and execution performance.
Context¶
Smart input triage is an execution-layer optimisation that sits upstream of the harness. It does not change what agents can do, only the latency profile for common interactions. The design is presented as a companion to the event system and harness docs (07, 15).
2026-03-27 -- Document intelligence architecture added; doc 20 updated to v02¶
Added¶
- 41-document-intelligence-v01.md -- New companion document to doc 20. Covers the document intelligence layer: what it is, why parsing quality sets the ceiling for all downstream operations, and how parsing is structured as a tiered, upstream stage separate from the enrichment and indexing pipeline. Defines two document classes (uploaded vs. generated), three parsing tiers (Tier 1 local spatial parsing via LiteParse/PDF.js/Tesseract.js, Tier 2 agentic OCR via LlamaParse API, Tier 3 fallback), the Parse Orchestrator that selects tier based on complexity signals and account data policy, and the
allow_external_processingaccount flag that governs whether documents can be sent to external parsing APIs. Also specifies theparsed_contentintermediate representation format and how generated documents bypass the parse step entirely.
Updated¶
- 20-document-ingestion-storage-v02.md (bumped to 0.3.0) -- Revised to align with the new document intelligence architecture.
pdf_extractprocessor replaced withdocument_parsethroughout; chunking strategy updated to format-aware (consuming structured output from the parser rather than raw text);allow_external_processingaccount flag andis_externalprocessor flag added;MediaProcessingJobstatus enum extended; implementation phases updated to reference doc 41 for the parse layer; architecture diagram updated. - 00-document-index-v01.md (bumped to 0.2.1) -- Doc 20 version updated to v02. Doc 41 added to registry, Layer 3 groupings, authority map, dependency map, and LLM reading order (Tier 4, after doc 20). LLM reading order item numbers incremented throughout subsequent tiers. Selective reading row added for document parsing and intelligence.
Context¶
The document intelligence architecture separates parsing (the derivation of a high-quality structured text representation from a raw file) from the enrichment and indexing pipeline that follows it. This split clarifies ownership: doc 20 owns the storage, processing pipeline mechanics, library system, and retrieval layer; doc 41 owns the parsing layer upstream of all of that. The key design decision captured in doc 41 is that parsing tier is determined by document complexity and account data policy, not by file type, and that the default path runs entirely on Novansa-managed infrastructure with external API parsing as an explicit opt-in.
2026-03-26 -- Documentation audit and rewrite: five-sprint revision of the full doc set¶
Added¶
- 40-agent-architecture-v01.md -- New conceptual reference for the agent layer. Covers: what an agent is; the two execution models (platform-executed vs. externally-executed); the four knowledge layers (Agent, Account, Team, User) and their runtime resolution; channel architecture and multi-channel delivery; agent composition and the coordinator pattern; governance (trust levels, policies, cost controls, audit trail); the Tier 1/Tier 2 agent taxonomy; and the agent lifecycle. This doc is the entry point for understanding how agents work and where to find agent specifications.
- docs-audit-march-2026.md -- Audit report recording all inconsistencies identified, the five-sprint rewrite plan, the implementation reconciliation (phases 0–3 complete, 4–5 partial, 6 not started), and the five structural decisions made before work began.
Updated (full rewrite)¶
- 04-system-architecture-v02.md (bumped to 0.3.0) -- Complete merge and rewrite of former doc 02 (Architecture Overview) and doc 04 (System Architecture). Now the single authoritative architecture document. Key corrections:
admin/replaced withapps/web/andapps/mobile/; PostgreSQL Docker container removed; single-binary + Supabase Cloud deployment documented; config struct updated with SupabaseURL, SupabaseServiceKey, DatabaseURL, DatabasePoolURL; new event types added (note.shared, comm.dispatched, mention.created). 17 sections including Go service interfaces, communication patterns, deployment architecture, and technology stack.
Updated (targeted corrections)¶
- 03-prd-specification-v02.md (bumped to 0.2.1) -- Account roles corrected from
owner, admin, membertoowner, admin, editor, viewer(FR-09.2). Constraints section updated: self-hosted PostgreSQL replaced with Supabase Cloud (PostgreSQL 16 + Auth + Vault, Frankfurt EU, Supavisor pooling, pgvector). Five remaining "organisation/organisations" occurrences corrected to "account/accounts". - 09-api-contracts-v03.md (bumped to 0.3.1) --
"registered_by": "org-uuid"corrected to"registered_by": "account-uuid"in Integration API tool registration response. March 2026 addendum restructured from "Addendum" to "Complete Endpoint Reference" with proper framing. All footer cross-references updated with correct version suffixes. Status changed from Draft to Active. - 07-event-system-harness-v03.md (bumped to 0.3.1) -- Footer cross-references updated with correct version suffixes.
- 14-deployment-administration-v03.md (bumped to 0.3.1) -- Repository structure corrected:
admin/replaced withapps/web/andapps/mobile/in the directory tree. Footer cross-references updated with correct version suffixes. - 01-product-overview-v02.md (bumped to 0.2.1) -- Placeholder pricing section replaced with the real four-tier structure (Free, Team, Account, Enterprise) and a pointer to doc 38 for full details. Footer references updated:
02-architecture-overview.mdreplaced with04-system-architecture-v02.md; version suffix added to doc 03 link. - 24-supabase-platform-database-auth-v02.md -- Five broken cross-reference filenames corrected in section 7 and footer.
- 38-subscription-plans-enforcement-v01.md -- H1 heading number corrected from 37 to 38.
- 39-monorepo-migration-plan-v01.md -- Status updated from Proposed to Completed.
Tombstoned¶
- 02-architecture-overview-v03.md -- Replaced with tombstone redirecting to doc 04 (v0.3.1). The document set no longer maintains doc 02 as an active document; doc 04 (System Architecture) is the sole authoritative architecture reference.
Out-of-date notices added¶
- 17-thinklio-reference-v03.md -- Banner added at top directing readers to doc 00 for reading order and noting the reference is pending regeneration.
- 10-implementation-plan-v02.md -- Banner added pointing to doc 34 for current implementation status.
Updated (index and metadata)¶
- agent-specs/00-index.md (bumped to 0.2.0) -- Full rewrite. Replaced production-order groupings with Tier 1 / Tier 2 structure. Tier 1 (11 fundamental agents): Research, Writer, Fact Checker, Data, Taskmaster, Rolodex, Keeper, Mail, Calendar, Messenger, Knowledge Base. Tier 2 (26 applied agents) across six sub-groups: Content Pipeline, Engagement & Support, Coordinator, Synthesis & Communications, Business Intelligence, Creative, Platform & Executive. Complete agent list runs to 37 named agents. Points to doc 40 for conceptual context and doc 33 for the manifest format.
- 00-document-index-v01.md (bumped to 0.2.0) -- Docs 36–40 added to registry. Doc 02 marked as Tombstone. Doc 32 status corrected from Draft to Active. Document Groupings updated: Layer 1 corrected (doc 02 removed, doc 38 added), Layer 4 extended with doc 40 and agent-specs reference, Layers 10–11 added. Authority map: doc 02 row corrected to point at doc 04; new authority rows added for docs 36, 37, 38, and 40. Dependency map: doc 40 added to Agent Layer block. LLM Reading Order: Tier 1 now references doc 04 rather than tombstoned doc 02; Tier 5 leads with doc 40 and includes agent-specs reference; subsequent tier numbering corrected throughout. Selective reading table updated.
Context¶
This revision was triggered by accumulated inconsistencies across the 40-document set following the Supabase migration, single-binary consolidation, org-to-account rename, and monorepo restructure. A formal audit pass (docs-audit-march-2026.md) identified 15 specific inconsistencies. Work proceeded across five sprints with explicit sign-off between each. The most significant structural output is doc 40 (Agent Architecture) and the rewritten agent-specs index, which together give the agent layer a proper conceptual home in the doc set. The most significant correction was the full rewrite of doc 04, which had drifted substantially from the implemented architecture.
2026-03-21 -- Comprehensive doc revision: org-to-account rename, Supabase migration, v03 updates¶
Added¶
- 34-implementation-summary-march-2026-v01.md -- Point-in-time snapshot of what's been built, what's pending, and the key architectural decisions made up to March 2026. Covers the single-binary consolidation, Supabase Cloud migration, account rename, 63-table schema, and the four source-of-truth documents (02, 09, 32, 34).
- 35-programming-guide-v01.md -- Skeletal developer reference for the Go backend and custom agent development. Covers repository structure, dev environment setup, architecture conventions, database layer, event bus, auth, harness, agent system, tool system, knowledge system, job system, channel system, core data structures API, platform services, predictive planning, custom agent development, integration API guide, app UI integration, and deployment. Each section has TODO markers for the implementation agent to fill in from the codebase.
Updated (version bumps)¶
- 02-architecture-overview-v03.md -- Updated for March 2026 implementation status, single binary model, Supabase Cloud migration.
- 05-data-model-v03.md -- Complete rewrite. Organisation renamed to Account throughout. Four-tier roles (owner/admin/editor/viewer). user_profile entity synced from Supabase Auth. 24 new entities added (tasks, contacts, items, notes, tags, channels, communications, planning, platform services, invitations, credit ledger). All tables use singular naming. Updated ER diagram.
- 06-persistence-caching-v03.md -- Complete rewrite of SQL schemas with singular table names and account_id scoping. All new CREATE TABLE statements with indexes and constraints. RLS policies updated to auth.uid() pattern. Connection pooling updated for Supavisor. New data classification entries for tasks, contacts, items, notes, and planning tables.
- 07-event-system-harness-v03.md -- OrgID renamed to AccountID in all Go structs and code. 11 new event types added (note.shared, note.mentioned, comm.dispatched/delivered/failed, agent_event.received, task/contact/item CRUD events). Updated consumer group table.
- 08-security-model-v03.md -- Authentication section rewritten for Supabase Auth. JWT structure updated to Supabase format. Four-tier RBAC model. Secret management rewritten for Supabase Vault. RLS enforcement updated to auth.uid() pattern. Inter-service auth updated for single binary. Added note sharing visibility rules.
- 09-api-contracts-v03.md -- Cleaned 13 stale organisation references in pre-addendum sections (Platform API auth, knowledge scope, Organisation Management endpoints renamed to Account Management, internal service APIs).
- 14-deployment-administration-v03.md -- Single Go binary replaces 6 separate binaries. PostgreSQL removed from local deployment (now Supabase Cloud). Docker Compose simplified to 4 services. Environment variables restructured for Supabase. Backup and migration sections updated.
- 17-thinklio-reference-v03.md -- Comprehensive update across all sections. 22+ org-to-account replacements. New sections for Core Data Structures, Predictive Planning, and Unified Capability Model. Technology stack updated for Supabase Cloud and single binary. Document lineage extended to docs 17-35.
- 24-supabase-platform-database-auth-v02.md -- Table name fix (public.users to user_profile). Complete 63-table list grouped by domain. Four-tier roles documented. Cross-references to docs 28 and 32.
- 28-api-reference-accounts-onboarding-v02.md -- Added missing GET endpoint response body. Added Related API Documents section with cross-references to docs 09, 31, 32, 33.
Updated (content changes, no version bump)¶
- 01-product-overview-v02.md -- Organisation renamed to Account throughout.
- 03-prd-specification-v02.md -- Organisation renamed to Account (24 occurrences).
- 04-system-architecture-v02.md -- Organisation renamed to Account.
- 10-implementation-plan-v02.md -- Organisation renamed to Account.
- 11-decision-log-v02.md -- Organisation renamed to Account.
- 12-user-guide-v02.md -- Organisation renamed to Account.
- 15-job-system-agent-composition-v02.md -- Organisation renamed to Account.
- 16-external-api-strategy-v02.md -- Organisation renamed to Account.
- 18-thinklio-internationalisation-v02.md -- Organisation renamed to Account.
- 19-starter-agent-catalogue-v01.md -- Organisation renamed to Account; fixed Knowledge Base Agent tagline.
- 20-document-ingestion-storage-v01.md -- Organisation renamed to Account.
- 22-thinklio-pricing-revision-v01.md -- Organisation renamed to Account.
- 23-thinklio-app-ui-specification-v03.md -- 7 manual edits: Agent roster grouping, knowledge scope tab, Settings tab, Profile card field, Predictive Planner setting, User data model field, OrgSettings type renamed to AccountSettings.
Updated (index and metadata)¶
- 00-document-index-v01.md -- Registered docs 34 and 35. Version bumps for 8 documents (02, 05, 06, 07, 08, 09, 14, 17 to v03; 24, 28 to v02). Promoted docs 14, 23, 24, 28 from Draft to Active. Added Layer 9 (Developer Guides). Updated dependency map. Extended reading order to Tier 9.
Context¶
This is a comprehensive pre-deployment revision of the entire documentation set. The trigger was the need to ensure all 35 documents are consistent and up to date before initial backend deployment and app integration testing. The three major changes that cascaded through the full set were: the organisation-to-account rename (245 occurrences across 25 files), the Supabase Cloud migration (affecting auth, database, secrets, and deployment docs), and the addition of 24 new entities to the data model (tasks, contacts, items, notes, planning, channels, communications, and platform services). Doc 35 (Programming Guide) was created as a skeletal structure for the backend coding agent to fill in from the actual codebase during implementation.
2026-03-20 -- Docs 31–33, agent definition spec, platform services, core data structures¶
Added¶
- 31-platform-services-llm-credits-admin-v01.md -- External service management, LLM model selection, credit-based billing (platform-managed vs BYOK), and app administration configuration. Defines the two billing modes (platform-managed with 2% margin, bring-your-own-key), model routing, cost tracking, and admin settings.
- 32-core-data-structures-tasks-contacts-items-v01.md -- Four universal data structures for agents: tasks (with lists, status, priority, assignment), contacts (person/organisation, visibility model, CRM sync), items (generic ticketing/request entity), and notes (free-form with linking). Agent-first design with UI as secondary interface.
- 33-agent-definition-extensibility-v01.md -- Universal agent definition format and extensibility specification. Defines the agent manifest (YAML), two execution models (platform-executed via system prompt, externally-executed via HTTP endpoint), the external agent execution contract (synchronous and deferred patterns with callbacks), agent registration and lifecycle, and agent UI views as a content type. Views use declarative definitions for standard types (kanban, calendar, table, summary, detail, timeline) and sandboxed iframes for custom components. Includes seven open questions for backend team review.
Updated¶
- 23-thinklio-app-ui-specification-v03.md -- Version bump from v02 to v03 with backend integration addendum (role model standardisation, API endpoint mapping for all pages, Supabase Auth integration, onboarding flow, agent lifecycle states).
- 00-document-index-v01.md -- Registered docs 31–33 across all sections. Updated doc 23 to v03. Total document count now 34 (docs 00–33).
- README.md -- Updated document count to 34.
Key Decisions Recorded¶
- Agent manifest is YAML-based, portable, and the same format for built-in, custom, and external agents (doc 33)
- UI is a content type alongside text, audio, and documents; channels render what they support (doc 33, section 7)
- Agent views use two data paths: conversational (agent-mediated, governed) and direct (API, authenticated but not governed) (doc 33, section 7.2)
- Task agent designated as the proof of concept for agent UI views (doc 33, section 7.9)
Context¶
Three new documents and a version bump. Doc 31 specifies how the platform manages external service credentials and billing. Doc 32 defines the lightweight data structures (tasks, contacts, items, notes) that agents operate on. Doc 33 is the most significant addition: it proposes a universal agent definition format that works across all agent types (built-in, Studio compositions, and external autonomous agents), defines the external agent execution contract extending the existing Integration API, and introduces agent UI views as a first-class content type where agents can declare structured visual representations of their data. The task agent with kanban, calendar, list, and summary views is the designated proof of concept.
2026-03-20 -- Docs 22–30, unified app UI, Supabase platform, channels, email, predictive planning¶
Added¶
- 22-thinklio-pricing-revision-v01.md -- Pricing tiers, credit model, LLM cost pass-through, plan structure and pricing page specification
- 23-thinklio-user-app-spec-v01.md -- Full UI/UX prototype specification for the user-facing client app (navigation, layout, interaction patterns, design system)
- 24-supabase-platform-database-auth-v01.md -- Replaces self-managed PostgreSQL and custom authentication with Supabase Cloud. Covers Supabase Auth integration (email/OTP, Google, Apple, SSO), managed PostgreSQL with native RLS via
auth.uid(), account/team/user lifecycle, invitation system, role management, JWT enrichment, andaccount_idmulti-tenancy via RLS. Renames "organisation" to "account" throughout the platform. - 25-channel-architecture-v01.md -- Channel identity linking and verification (user_channels model), connection lifecycle state machine, OTP verification flows, admin controls for channel suspension/revocation, multi-channel response delivery with status tracking, and agent channel context injection.
- 26-feature-ideas-backlog-v01.md -- Living document for capturing uncommitted feature ideas and product concepts. Initial entry: MCP Server for Thinklio.
- 27-email-channel-postmark-v01.md -- Bidirectional email channel via Postmark. Agent email alias model, per-account alias namespaces, inbound routing via Postmark Inbound webhooks, outbound construction with threading headers, email thread and message data model, domain configuration, security, and unsubscribe compliance.
- 28-api-reference-accounts-onboarding-v01.md -- Concrete API endpoint specifications for account creation, onboarding flow, user/team management, invitations, and role model. Four-tier role system (owner, admin, editor, viewer) at both account and team level.
- 29-docs-and-developer-ui-v01.md -- Thinklio website documentation and developer docs UI. Defines /docs (user) and /developer (API reference) routes, unified data model (doc_sections, doc_pages, api_endpoints, api_code_examples), two-column code panel layout. UI complete, backend integration pending.
- 30-predictive-planning-system-v01.md -- Complete rewrite from outline to full specification. Defines what a "plan" is in Thinklio terms (canonicalised tool sequences from the Harness think step), what "success" means (composite signal from interaction state, step outcomes, user feedback), and the three-component architecture: Outcome Collector (event-driven, subscribes to existing Redis Streams), Score Service (internal API with Redis cache, sub-5ms p99), and Learning Engine (background Bayesian updates with hierarchical priors at four levels: global, account, agent, context). Phase 1 (implement now): data collection, Beta-Binomial scoring, Harness integration. Phase 2 (design now, implement later): gradient-boosted ML model with score blending. All tables use account_id scoping with RLS. Includes score decay, de-identified global priors, opt-in/opt-out governance, and data retention policies.
Replaced¶
- 23-thinklio-app-ui-specification-v02.md -- Replaces 23-thinklio-user-app-spec-v01.md. The separate admin and client apps have been merged into a single unified app at app.thinklio.ai. New spec covers: agent gallery with four tabs (active, available, studio, installed), Agent Studio for custom agent creation, agent lifecycle model (origin types, deployment states), client-side agent onboarding with configurationSchema, Predictive Planner organisation opt-in/out setting, outcome feedback (thumbs up/down) on agent messages, artefact cards, and completed jobs. Also documents the full technology stack, component library, Zustand stores, file structure, and responsive behaviour for the merged app.
Updated¶
- 00-document-index-v01.md -- Registered docs 22–30, updated doc 23 to v02 with new title and expanded authority/dependency entries. across all sections (registry, layers, authority map, dependency map, reading order, selective reading, update triggers). Added Layer 5 (Client Applications) and renumbered subsequent layers. Added update triggers for database/auth platform changes and channel modifications. Total document count now 31 (docs 00–30).
- README.md -- Updated document count to 31, restructured the contents section, added consuming projects table.
Key Decisions Recorded¶
- Supabase Cloud adopted as platform database and authentication provider (doc 24)
- "Organisation" renamed to "account" across the platform (doc 24, section 3.3)
- Channel identity model separated from platform authentication (doc 25)
- Agent email aliases scoped per account, routed via sender identity lookup (doc 27)
- Postmark selected for both inbound and outbound agent email (doc 27)
- agents.thinklio.com subdomain recommended for initial email deployment (doc 27)
- Four-tier role model (owner/admin/editor/viewer) for accounts and teams (doc 28)
Context¶
Nine new documents added in this batch. Docs 22 and 23 were produced in earlier sessions but not yet registered in the index. Docs 24 and 25 came from an architecture session that moved to Supabase Cloud for database and auth, and defined a proper channel identity model. Doc 26 is a lightweight backlog for feature ideas. Doc 27 extends the channel architecture with bidirectional email via Postmark and the agent alias model. Doc 28 provides concrete API endpoint specifications for the account and team management flows introduced by doc 24. Doc 29 specifies the website documentation UI (user-facing and developer docs). Doc 30 describes a predictive planning system for agents to learn from past executions and improve plan selection over time. Three documents that were previously all numbered 28 were renumbered to 28, 29, and 30; the predictive planning doc also had its filename corrected to include the v01 version suffix.
2026-03-14 -- Document Set v0.2.0¶
Added¶
- 15-job-system-agent-composition.md -- Job system for deferred and long-running work, agent-as-tool composition model, observer pattern, execution modes, delegation governance, Agent Studio concept, per-assignment tool restrictions, scenario walkthroughs
- 16-external-api-strategy.md -- Three API surface strategy (Channel API, Platform API, Integration API), cross-cutting concerns (auth, governance, cost attribution, versioning), design implications for existing architecture
Updated (cascading from docs 15 and 16)¶
05-data-model.md (v0.2.0)
- Added Job, Subjob, and JobObserver entities
- Added agent as a tool type (alongside internal and external)
- Added tool_restrictions field to AgentAssignment
- Added parent_interaction_id and delegation_depth fields to Interaction
- Added execution_mode and job_id fields to Step
- Added default_execution_mode and registered_by fields to Tool
- Added delegation_config field to AgentTemplate
- Extended failure reasons to include delegation_depth_exceeded and delegation_cycle_detected
- Updated knowledge isolation rules for delegate agents
- Updated data lifecycle tables for jobs and subjobs
- Updated GDPR deletion procedures to include job observer cleanup
06-persistence-caching.md (v0.2.0) - Added PostgreSQL schema for jobs, subjobs, and job_observers tables - Extended interactions table with parent_interaction_id and delegation_depth - Extended steps table with execution_mode and job_id - Extended tools table with type 'agent', default_execution_mode, and registered_by - Extended agent_assignments table with tool_restrictions - Added agent_templates table with delegation_config - Added RLS policies for jobs - Added Redis key patterns for active job store - Added job lifecycle documentation (active in Redis, terminal flushed to PostgreSQL) - Added operational store cache pattern for active jobs - Added job archival SQL - Added indexes for parent interactions, job references, and job events - Updated monitoring metrics to include job system and flush latency
07-event-system-harness.md (v0.2.0) - Added job-related event types (job.created, job.dispatched, job.state_changed, job.resolved, job.failed, job.cancelled, job.timed_out) - Added agent service subscription to job notification events - Documented three step execution modes (immediate, deferred, interactive) with mixed mode support - Extended harness executor to handle deferred dispatch, job creation, and execution mode routing - Added dispatchDeferredWork function - Added resolveExecutionMode function - Added follow-up interaction trigger mechanism (HandleJobNotification) - Updated interaction lifecycle diagram to show deferred and follow-up flows - Extended failure reasons in error_data schema - Updated timeout documentation to distinguish immediate vs deferred step timeouts
09-api-contracts.md (v0.2.0) - Restructured around three API surfaces (Channel, Platform, Integration) - Added Channel API endpoints (send message, get interaction, get history) - Extended Platform API with job dispatch, job status, job results, job cancellation, and observer registration endpoints - Added bulk knowledge import endpoint - Added delegation-related fields to agent management endpoints (tool type, assignment tool_restrictions) - Added Integration API section (tool registration, tool execution contract, event subscription) - Added webhook delivery service description - Extended internal tool service API with delegation chain, delegation depth, and assignment tool restrictions - Extended internal usage service API with parent_interaction_id and job_id - Extended internal context service API with job_data for follow-up interactions - Updated contract change policy for independent surface versioning
03-prd-specification.md (v0.2.0) - Added product principle 6 (simple agents pay no complexity tax) - Added FR-01.5: Agent Composition (Agent Studio) - Added FR-04.6: Step Execution Modes - Added FR-05.1: agent tool type and dynamic registration - Added FR-05.2: per-assignment tool restrictions in policy evaluation - Added FR-06.5: Delegation Governance - Added FR-07: Job System (FR-07.1 through FR-07.4) - Replaced FR-09 (API) with FR-10 covering three API surfaces (FR-10.1 through FR-10.4) - Updated success criteria for Phases 3 and 4 to reflect job system and composition - Updated NFR-01 with job dispatch latency target - Updated NFR-04 with delegation chain validation - Updated NFR-06 with delegation chain tracing and job metrics
04-system-architecture.md (v0.2.0) - Added internal/jobs and internal/delegation packages to monorepo structure - Added admin/ directory description (includes Agent Studio) - Extended gateway service with APISurfaceRouter and WebhookDelivery - Extended agent service with DeferredMode, JobNotificationHandler, JobStore - Extended context service with JobContextLoader - Extended tool service with AgentExecutor, DelegationDepthRule, DelegationCycleRule, AssignmentRestrictions, HealthMonitor, CircuitBreaker - Extended queue service with JobTimeoutMonitor - Extended usage service with delegation cost rollup - Updated policy decision flow to include assignment restrictions and delegation rules - Added job-related event types to event type list - Added service-to-service pattern for Agent to Job Store (Redis) - Added configuration fields for job system and delegation - Updated logging fields for delegations and jobs - Updated metrics for job system
08-security-model.md (v0.2.0) - Added security principle 6 (delegation does not escalate) - Added job data and delegation chains to asset table - Added malicious delegate agent and malicious external tool to threat actors - Added delegation escalation and external tool injection to attack vectors - Restructured authentication section around three API surfaces - Added assignment-level authorisation (four-level model instead of three) - Added per-assignment tool restrictions documentation - Added delegation security section (depth limits, cycle detection, permission narrowing, context isolation) - Added external tool security section - Added Integration API rate limiting - Added job dispatch rate limiting - Updated GDPR section for job observer cleanup
10-implementation-plan.md (v0.2.0) - Added Phase 4: Jobs & Composition (between Multi-Tenancy and API & Channels) - Renumbered Phase 4 (API & Channels) to Phase 5 - Renumbered Phase 5 (Production Hardening) to Phase 6 - Phase 3 extended with per-assignment tool restrictions - Phase 4 includes job system, deferred execution, agent-as-tool delegation, delegation governance, Agent Studio - Phase 5 restructured around three API surfaces (Channel, Platform, Integration) - Phase 6 extended with job system resilience, delegation chain testing, external tool security - Added risks: job system complexity, delegation chain bugs, external tool reliability - Updated future phases with composed agent blueprints and delegation chain analysis
11-decision-log.md (v0.2.0) - Added ADR-012: Job System for Deferred and Long-Running Work - Added ADR-013: Agent-as-Tool Composition Model - Added ADR-014: Three External API Surfaces - Added ADR-015: Redis as Operational Store for Active Jobs - Added ADR-016: Per-Assignment Tool Restrictions
02-architecture-overview.md (v0.2.0) - Extended gateway service description with API surface routing and webhook delivery - Extended agent service description with delegation and job system - Extended context service description with job context injection - Extended tool service description with three tool types, delegation governance, dynamic registration - Extended queue service description with job timeout monitoring - Extended usage service description with delegation cost rollup - Added step execution modes section - Added job system section - Added agent composition section - Extended knowledge architecture with delegation isolation - Extended tenancy model with per-assignment tool restrictions - Extended API architecture with three surfaces - Extended security architecture with delegation security - Updated technology stack (Redis role includes job store)
01-product-overview.md (v0.2.0) - Added agent composition section (Agent Studio, delegation, composition) - Added deferred work and long-running tasks section - Extended governance section with delegation limits and deferred work cost tracking - Extended service provider persona with Integration API - Extended integration section with three API surfaces - Updated "What's Next" with job system, agent composition, and composed agent blueprints
12-user-guide.md (v0.2.0) - Added Agent Composition and Delegation section - Added Agent Studio section (skeletal) - Added Jobs and Deferred Work section - Extended administrator getting-started with composition and delegation - Updated agent capabilities list with delegation and deferred work - Extended knowledge section with delegation isolation explanation - Extended governance section with delegation limits - Extended tips with progress checking for deferred work - Updated troubleshooting with job system issues
14-deployment-administration.md (v0.2.0) - Updated system components table with delegation and job responsibilities - Added job system environment variables - Extended admin dashboard sections with Agent Studio, job monitoring, delegation graph - Added job operations CLI commands - Updated backup notes for active jobs in Redis - Updated upgrade notes for Redis persistence of active jobs - Extended vertical scaling indicators with Redis job store memory - Extended monitoring metrics with job system and webhook delivery - Added job system alerts (timeout rate, Redis memory, webhook failures) - Extended routine maintenance with terminal job archival - Added job system troubleshooting section - Updated security operations with external tool deregistration and job cancellation on kill switch
Key Decisions Recorded¶
- ADR-012: Job system with Redis operational store and PostgreSQL durable store
- ADR-013: Agent-as-tool composition model (agents registered as tools, same governance path)
- ADR-014: Three external API surfaces (Channel, Platform, Integration)
- ADR-015: Redis as operational store for active jobs (flush to Postgres on terminal)
- ADR-016: Per-assignment tool restrictions (narrow only, never widen)
Context¶
Documents 15 and 16 produced from a follow-up design session extending the initial architecture with: - Deferred and long-running work support via job system - Agent-to-agent delegation via agent-as-tool pattern in the existing tool registry - Observer model decoupling job creation from consumption - Three explicit step execution modes (immediate, deferred, interactive) - Per-assignment tool restrictions for context-specific capability narrowing - Three distinct external API surfaces designed as first-class architectural concerns - External tool dynamic registration via Integration API
All existing documents (01 through 14) updated to reflect the implications of these two new documents.
2026-03-13 -- Document Set v0.1.0 (Initial)¶
Created¶
- 14-deployment-administration.md -- Deployment, scaling, admin dashboard, maintenance, and troubleshooting guide
- 01-product-overview.md -- Non-technical stakeholder description of Thinklio
- 02-architecture-overview.md -- Technical stakeholder architecture description (no proprietary detail)
- 03-prd-specification.md -- Product requirements and specification
- 04-system-architecture.md -- Full internal system architecture
- 05-data-model.md -- Entity relationships and knowledge model
- 06-persistence-caching.md -- PostgreSQL schema, Redis caching, data lifecycle
- 07-event-system-harness.md -- Event bus design and durable execution harness
- 08-security-model.md -- Trust model, authentication, authorisation, data isolation
- 09-api-contracts.md -- External and internal service API definitions
- 10-implementation-plan.md -- Phased build-out roadmap
- 11-decision-log.md -- Architectural decision records (ADR-001 through ADR-011)
- 12-user-guide.md -- Initial user guide skeleton
- 13-changelog.md -- This file
Key Decisions Recorded¶
- ADR-001: Platform named "Thinklio"
- ADR-002: Agents as first-class platform entities (Model C)
- ADR-003: Four-layer knowledge model (agent, org, team, user)
- ADR-004: Step-level state machine harness (created to running to success/failed)
- ADR-005: Go for all services
- ADR-006: Redis Streams directly (no separate event bus service)
- ADR-007: Single Redis instance initially
- ADR-008: Hetzner/Coolify deployment
- ADR-009: Agent capability levels as policy configuration
- ADR-010: No calendar-bound timeline
- ADR-011: Built from scratch, not migrated from MyAI
Context¶
Document set produced from comprehensive design session covering: - Review of original MyAI audit documents (6 documents) - Reframing from migration plan to new platform architecture - Tenancy model design (agents as independent entities, assigned to contexts) - Knowledge layer design (four layers with privacy, precedence, portability rules) - Harness design (step-level state machine with durability and cost tracking) - Agent capability level progression (tools to workflow to experimental to learning) - Implementation phasing (foundation-first, no fixed dates)
Entries are added as documents are updated, decisions are made, or implementation progresses.