Repository navigation
Conversation
… and the guest skill card test stages four kinds of work bacb532 left two tests red on dev. Its new skill_manage description dropped the word reusable, so find_tool ranked skills_list first for "save this procedure as a reusable skill"; the description says reusable SKILL.md again (a skill is recurring work, which that change keeps). Its duplicate check turns away a create that covers an existing skill, and the guest skill card test staged four skills with one description, the same as an earlier test's: each now has its own kind of work.
…list's two retries Fifteen tests failed in CI on Dec 1 in runs of main, a release and PRs DuskBotAI#477-DuskBotAI#483 whose changes do not reach them, a different set each run, and pass locally. Each entry names the runs it failed in. vps-routing's 'reuses the existing VPS with $settings' failed too (PR DuskBotAI#477, run 46623618361) but is left out: its name is made per case, and the list matches names written in the file.
…s 60 servers link from their own addresses Every link chaos run since the per-address limit on new links (adc99d7, Nov 14) was cancelled at CI's 60-minute limit, on main pushes, the weekly run and every PR that touches the link service: the scenarios finished in about five minutes and printed their table, but a socket or timer a scenario left open held the process. The run now exits once its results are written. The storm's 60 servers set up their links over one connection, so the node's front gave them one address, which the limit refused after 30 (Too many new links from here); each now uses its own connection, as 60 machines would. Locally, --quick passes all 12 scenarios and exits in 5.6 minutes.
…y list's retries chat-mcp-tools' shutdown verdict, memory-order and the encrypted workspace restore failed in PR DuskBotAI#479's run 46740020170, whose change does not reach them, and pass locally.
…os job installs no packages The job runs `node apps/link-service/chaos/run.mjs` straight after checkout, so the undici import failed with ERR_MODULE_NOT_FOUND before any scenario ran.
…ds nothing for 8 s, as the app does src/lib/live-events.ts gives up on a dial that sends nothing in LIVE_EVENTS_OPEN_MS (8 s) and dials again. The probe dropped a quiet stream only after it had sent something, so one silent dial after node-5xx's 502s held it down until the relay closed it, about 90 s, and failed the scenario in CI on five of seven runs.
… decision model, so events that clearly don't need work start no AI run trigger (when=app_event) takes only_when, the person's rule in words, at most 300 characters; update changes or removes it and Undo brings the old one back. Before an event starts a run, the decision model reads the rule and the event, cleaned and clipped, on its own eventGate seam within 3 seconds. Every event of one poll is judged first, so receive() stays in order and the cursor moves as before. Only a probability of yes under 0.15 skips an event: it starts no run and its attempt is "filtered", with the rule as the reason. A failed, slow or unsure answer, or no model set up, runs the event, and the run's instructions carry the rule, so the AI still applies it. Cloud's included relay does not take the seam yet, so it needs the person's own decision key.
Contributor
|
Thanks, this is careful work and the fail-open design is sensible. I'm not merging it yet: it lets a small model decide to skip real events (under 0.15) and adds a parameter to the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
An app-event automation starts an AI run for every event its plain filter lets through. Many events need nothing ("only when a customer asks for a refund"), and today the AI reads each one to find that out. This PR lets the cheap decision model answer that first, so those events cost no AI run.
trigger(when=app_event) takesonly_when: the person's rule in their words, at most 300 characters. An update changes it,""removes it, and Undo brings the old one back.eventGateseam within 3 seconds (server/app-event-gate.ts).receive()keeps its order and the cursor moves exactly as before.Limits, stated plainly:
eventGateto the relay's accepted seams on the Admin side would extend it to the included key.docs/decision-model.mdsays this under "What leaves this machine".This branch carries #483's commits (its tests are red on
devwithout them) and the link chaos fixes, as the other open PRs do. It conflicts with the "switch routines to events" PR ondetailinserver/app-trigger-requests.ts,server/app-triggers.test.tsand the catalog goldens: the second to merge needs bothdetaillines joined andUPDATE_AGENTS_CATALOG_GOLDENS=1run again.How it was checked
server/app-triggers.test.ts, with the real manager and the fake connected-apps service:server/app-event-gate.test.ts: the 0.15 line, every failure answering nothing, the seam, the cleaning and clipping of the event, and the rule in the run's instructions.server/drivers/agents-call-triggers.test.tsandserver/trigger-tools.test.ts:only_whengoes through on app events only, at most 300 characters.UPDATE_AGENTS_CATALOG_GOLDENS=1; the budget test passes.index.tsandagents-catalog.tsdo not grow.server/app-*,server/trigger*,server/drivers/agents-*,server/routine*,server/webhook*,server/automation*,server/deciderandserver/jobspasses (1,867 tests, 4 skipped), and so do the CI source guards.pnpm typecheck,pnpm lintandpnpm testpass (typecheck, lint and the tests above pass; the wholepnpm testwas not run on this branch)