Skip to content

feat(bots): learn and reuse skills from conversations - #1391

Merged
nixuuu merged 2 commits into
devfrom
feat/bot-learned-skills
Nov 28, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/bot-learned-skills

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What changed

Bots can learn a reusable procedure after working through a task with the owner, improve it after a correction, and read the current version for the next task. Each bot has its own library of up to 64 skills. An owner can also choose Learn from this conversation and edit the request before sending it.

Verified routines and event triggers can use a skill by name. Library changes and sample previews require a private owner conversation. A preview sends the selected procedure and example to a separate tool-free generation on the bot's worker. Bot moves and gateway consolidation preserve procedures and revisions.

Verification

  • Passed 37 distinct bot integration tests covering skills through the gateway and worker harness, event triggers, parked interactions, memory and routines. The restart test loses the gateway lease during a real preview and checks that the reconnected worker receives no second generation. The provider CLI was scripted. A paid live model's choice to learn a procedure was not tested.
  • Checked the migration, consolidation import and preflight, bot moves between gateways, isolation by owner, concurrent creation at the capacity limit and recreation after deletion.
  • Gateway, web and mobile typechecks passed. Checked lint and formatting on the edited files.
  • Exercised the private-chat action through sending the draft in Chromium at 1340 px and 390 px and in an Android emulator using a fixture API. Full repository checks and builds run in CI.

Copy audit

Passed the ten checks in docs/copy.md §8. The new action says Learn from this conversation. Its editable request identifies the steps, corrections, variable inputs and expected output. Widened the actions menu after the first narrow-viewport check clipped the label, then verified the complete label at 390 px. Existing drafts remain editable.

@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 06:42
@nixuuu
nixuuu merged commit 1394110 into dev Nov 28, 2026
46 of 48 checks passed
@nixuuu
nixuuu deleted the feat/bot-learned-skills branch November 28, 2026 06:56
nixuuu added a commit that referenced this pull request Nov 29, 2026
## Summary

- Trace completed local thread delegations to the owner request, routine
or event trigger that started them. Give verified continuations
read-only access to current procedures and restore the private chat
context for owner requests.
- Tell bots to check the scope of a failed action before reporting a
denial and continue any authorized work that can proceed. Refresh
existing native sessions when the gateway's approval or external
conversation instructions change.
- Cover a procedure revised while a delegation runs and verify that a
delegation originating from another bot cannot retrieve private
procedures or chat history.

Fixes: #1391

## Verification

- 47 local integration tests passed across thread notices, bot skills,
event triggers, parked interactions, approval review, instruction
refresh and bot memory.
- Gateway typecheck, lint on the changed TypeScript files and whitespace
checks passed.
- Repository-wide verification runs in GitHub CI.

## Follow-up

A separate two-worker test reproduced stale native context when a bot
returns to its original worker after receiving messages on another
worker. That case requires synchronizing the resumed session with the
gateway transcript.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant