@rubytech/create-realagent-code 0.1.575 → 0.1.577
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/preserve-house-cloudflare.test.js +2 -72
- package/dist/index.js +8 -59
- package/dist/preserve-house-cloudflare.js +2 -49
- package/package.json +1 -1
- package/payload/platform/lib/active-rules/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/active-rules/dist/index.js +32 -1
- package/payload/platform/lib/active-rules/dist/index.js.map +1 -1
- package/payload/platform/lib/active-rules/src/index.test.ts +52 -3
- package/payload/platform/lib/active-rules/src/index.ts +36 -2
- package/payload/platform/lib/dispatch-read/dist/allocate.d.ts +57 -0
- package/payload/platform/lib/dispatch-read/dist/allocate.d.ts.map +1 -0
- package/payload/platform/lib/dispatch-read/dist/allocate.js +33 -0
- package/payload/platform/lib/dispatch-read/dist/allocate.js.map +1 -0
- package/payload/platform/lib/dispatch-read/dist/index.d.ts +2 -0
- package/payload/platform/lib/dispatch-read/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/dispatch-read/dist/index.js +10 -1
- package/payload/platform/lib/dispatch-read/dist/index.js.map +1 -1
- package/payload/platform/lib/dispatch-read/src/__tests__/allocate.test.ts +41 -0
- package/payload/platform/lib/dispatch-read/src/allocate.ts +89 -0
- package/payload/platform/lib/dispatch-read/src/index.ts +14 -0
- package/payload/platform/plugins/admin/hooks/__tests__/prompt-optimiser-compliance.test.sh +7 -2
- package/payload/platform/plugins/admin/hooks/prompt-optimiser-compliance.sh +8 -2
- package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +2 -2
- package/payload/platform/plugins/admin/skills/whats-new/SKILL.md +12 -0
- package/payload/platform/plugins/cloudflare/mcp/__tests__/portal-visit-status-write.test.ts +333 -22
- package/payload/platform/plugins/cloudflare/mcp/__tests__/portal-visits-scope.test.ts +262 -0
- package/payload/platform/plugins/cloudflare/skills/data-portal/schema.sql +126 -21
- package/payload/platform/plugins/cloudflare/skills/data-portal/template/functions/api/visit-status.ts +142 -2
- package/payload/platform/plugins/cloudflare/skills/data-portal/template/functions/api/visits.ts +118 -6
- package/payload/platform/plugins/dispatch/PLUGIN.md +2 -0
- package/payload/platform/plugins/dispatch/mcp/dist/lib/allocate.d.ts +19 -50
- package/payload/platform/plugins/dispatch/mcp/dist/lib/allocate.d.ts.map +1 -1
- package/payload/platform/plugins/dispatch/mcp/dist/lib/allocate.js +1 -28
- package/payload/platform/plugins/dispatch/mcp/dist/lib/allocate.js.map +1 -1
- package/payload/platform/plugins/dispatch/skills/dispatch-page/SKILL.md +45 -6
- package/payload/platform/plugins/dispatch/skills/dispatch-page/template/planner.css +60 -0
- package/payload/platform/plugins/dispatch/skills/dispatch-page/template/planner.html +13 -0
- package/payload/platform/plugins/dispatch/skills/dispatch-page/template/planner.js +203 -5
- package/payload/platform/plugins/docs/references/internals.md +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts +5 -0
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js +29 -0
- package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
- package/payload/platform/services/telegram-channel/dist/notification.d.ts +35 -3
- package/payload/platform/services/telegram-channel/dist/notification.d.ts.map +1 -1
- package/payload/platform/services/telegram-channel/dist/notification.js +38 -5
- package/payload/platform/services/telegram-channel/dist/notification.js.map +1 -1
- package/payload/platform/services/telegram-channel/dist/server.js +1 -1
- package/payload/platform/services/telegram-channel/dist/server.js.map +1 -1
- package/payload/platform/services/webchat-channel/dist/notification.d.ts +2 -1
- package/payload/platform/services/webchat-channel/dist/notification.d.ts.map +1 -1
- package/payload/platform/services/webchat-channel/dist/notification.js.map +1 -1
- package/payload/platform/services/whatsapp-channel/dist/notification.d.ts +2 -2
- package/payload/platform/templates/agents/admin/IDENTITY.md +1 -1
- package/payload/server/server.js +670 -155
- package/dist/__tests__/converge-client-admins.test.js +0 -50
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { selectCandidates, overlaps } from "../allocate.js";
|
|
3
|
+
import type { DispatchConfig } from "../types.js";
|
|
4
|
+
|
|
5
|
+
const cfg = {
|
|
6
|
+
statuses: { job: [], visit: [], jobTransitions: [], visitTransitions: [] },
|
|
7
|
+
jobTypes: [{ name: "Boiler", requiredQualification: "gas", defaultDurationMin: 60 }],
|
|
8
|
+
workers: [
|
|
9
|
+
{ workerId: "w1", name: "Ann", qualifications: ["gas"], workingHours: {} },
|
|
10
|
+
{ workerId: "w2", name: "Ben", qualifications: [], workingHours: {} },
|
|
11
|
+
],
|
|
12
|
+
records: { checklists: {}, requiredBeforeTerminal: {} },
|
|
13
|
+
vocabulary: { job: "job", visit: "visit", worker: "worker" },
|
|
14
|
+
vehicles: { enabled: false },
|
|
15
|
+
} as unknown as DispatchConfig;
|
|
16
|
+
|
|
17
|
+
describe("selectCandidates, from the shared lib", () => {
|
|
18
|
+
it("offers a qualified worker and names why the other is excluded", () => {
|
|
19
|
+
const r = selectCandidates({ jobType: "Boiler", cfg, commitments: new Map() });
|
|
20
|
+
expect(r.offered.map((c) => c.workerId)).toEqual(["w1"]);
|
|
21
|
+
expect(r.excluded).toEqual([{ workerId: "w2", reason: "missing-qualification" }]);
|
|
22
|
+
expect(r.required).toBe("gas");
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it("offers a busy qualified worker WITH the conflict shown, never dropped", () => {
|
|
26
|
+
const busy = new Map([["w1", [{ visitId: "v9", start: "a", end: "b" }]]]);
|
|
27
|
+
const r = selectCandidates({ jobType: "Boiler", cfg, commitments: busy });
|
|
28
|
+
expect(r.offered).toHaveLength(1);
|
|
29
|
+
expect(r.offered[0].conflicts).toHaveLength(1);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it("excludes nobody for an unknown job type, because every reason would be a lie", () => {
|
|
33
|
+
const r = selectCandidates({ jobType: "Nope", cfg, commitments: new Map() });
|
|
34
|
+
expect(r).toEqual({ offered: [], excluded: [], required: "" });
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it("treats touching endpoints as no overlap", () => {
|
|
38
|
+
expect(overlaps({ start: "1", end: "2" }, { start: "2", end: "3" })).toBe(false);
|
|
39
|
+
expect(overlaps({ start: "1", end: "3" }, { start: "2", end: "4" })).toBe(true);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who can be sent to this job, and why the others cannot.
|
|
3
|
+
*
|
|
4
|
+
* The rule that matters: **a qualified worker who is already committed in the
|
|
5
|
+
* window is offered WITH the conflict shown, never dropped.** The office
|
|
6
|
+
* routinely double-books on purpose — a job runs short, a customer is on the
|
|
7
|
+
* way home, an engineer volunteers. A tool that silently removes the busy
|
|
8
|
+
* option makes that decision for them and gives no way to see it was made.
|
|
9
|
+
*
|
|
10
|
+
* Only a missing qualification excludes, and every exclusion is named with its
|
|
11
|
+
* worker and its reason, because `offered=0` with no explanation is the shape a
|
|
12
|
+
* quiet day and an unstaffable job type share.
|
|
13
|
+
*
|
|
14
|
+
* It lives in this shared lib rather than in the dispatch plugin because the
|
|
15
|
+
* portal visits push runs in `platform/ui` and cannot import a plugin's build
|
|
16
|
+
* output, and a second implementation of qualification and clash is the defect
|
|
17
|
+
* `functions/api/visits.ts:33-36` names: a gate written once per client is a
|
|
18
|
+
* gate got wrong once per client. Task 2510 moved `buildVisitKeyboard` here for
|
|
19
|
+
* the same reason. The dispatch plugin re-exports both from
|
|
20
|
+
* `mcp/src/lib/allocate.ts`, which is the import site its tools and tests
|
|
21
|
+
* already name.
|
|
22
|
+
*/
|
|
23
|
+
import type { DispatchConfig } from "./types.js";
|
|
24
|
+
// `Commitment` is `readCommitments`'s own return shape and is declared once, in
|
|
25
|
+
// read.ts. The dispatch plugin carried a second structurally-identical
|
|
26
|
+
// declaration beside its copy of this file; consolidating to one is part of the
|
|
27
|
+
// move, because two declarations of one contract can drift on a field.
|
|
28
|
+
import type { Commitment } from "./read.js";
|
|
29
|
+
|
|
30
|
+
export type { Commitment };
|
|
31
|
+
|
|
32
|
+
export interface Candidate {
|
|
33
|
+
readonly workerId: string;
|
|
34
|
+
readonly name: string;
|
|
35
|
+
/** Commitments overlapping the requested window. Empty means free. */
|
|
36
|
+
readonly conflicts: readonly Commitment[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Exclusion {
|
|
40
|
+
readonly workerId: string;
|
|
41
|
+
readonly reason: "missing-qualification";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface SelectCandidatesParams {
|
|
45
|
+
readonly jobType: string;
|
|
46
|
+
readonly cfg: DispatchConfig;
|
|
47
|
+
/** Committed visits per workerId, already narrowed to the window. */
|
|
48
|
+
readonly commitments: ReadonlyMap<string, readonly Commitment[]>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface CandidateSelection {
|
|
52
|
+
readonly offered: readonly Candidate[];
|
|
53
|
+
readonly excluded: readonly Exclusion[];
|
|
54
|
+
/** The qualification the job type demands, echoed for the log line. */
|
|
55
|
+
readonly required: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function selectCandidates(params: SelectCandidatesParams): CandidateSelection {
|
|
59
|
+
const { jobType, cfg, commitments } = params;
|
|
60
|
+
const type = cfg.jobTypes.find((t) => t.name === jobType);
|
|
61
|
+
if (!type) {
|
|
62
|
+
// An unknown job type is the caller's error, not a staffing outcome. Every
|
|
63
|
+
// worker is excluded for a reason that would be a lie, so none are: the
|
|
64
|
+
// caller checks the type before asking.
|
|
65
|
+
return { offered: [], excluded: [], required: "" };
|
|
66
|
+
}
|
|
67
|
+
const offered: Candidate[] = [];
|
|
68
|
+
const excluded: Exclusion[] = [];
|
|
69
|
+
for (const worker of cfg.workers) {
|
|
70
|
+
if (!worker.qualifications.includes(type.requiredQualification)) {
|
|
71
|
+
excluded.push({ workerId: worker.workerId, reason: "missing-qualification" });
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
offered.push({
|
|
75
|
+
workerId: worker.workerId,
|
|
76
|
+
name: worker.name,
|
|
77
|
+
conflicts: commitments.get(worker.workerId) ?? [],
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return { offered, excluded, required: type.requiredQualification };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** `[a, b)` overlap. Touching endpoints do not overlap. */
|
|
84
|
+
export function overlaps(
|
|
85
|
+
a: { start: string; end: string },
|
|
86
|
+
b: { start: string; end: string },
|
|
87
|
+
): boolean {
|
|
88
|
+
return a.start < b.end && b.start < a.end;
|
|
89
|
+
}
|
|
@@ -30,6 +30,20 @@ export {
|
|
|
30
30
|
} from "./keyboard.js";
|
|
31
31
|
export type { DispatchButton, VisitKeyboard } from "./keyboard.js";
|
|
32
32
|
|
|
33
|
+
// Task 2511 — qualification and clash, shared by the dispatch tools and the
|
|
34
|
+
// portal visits push. One implementation, for the reason allocate.ts states:
|
|
35
|
+
// the push runs in platform/ui and cannot import a plugin's build output, and a
|
|
36
|
+
// second copy of these rules is a gate got wrong once per client.
|
|
37
|
+
// `Commitment` is NOT re-exported here: it is `readCommitments`'s own shape,
|
|
38
|
+
// declared once in read.ts and already exported below.
|
|
39
|
+
export { overlaps, selectCandidates } from "./allocate.js";
|
|
40
|
+
export type {
|
|
41
|
+
Candidate,
|
|
42
|
+
CandidateSelection,
|
|
43
|
+
Exclusion,
|
|
44
|
+
SelectCandidatesParams,
|
|
45
|
+
} from "./allocate.js";
|
|
46
|
+
|
|
33
47
|
export { withSession } from "./session.js";
|
|
34
48
|
export { resolveAccountZone } from "./zone.js";
|
|
35
49
|
export {
|
|
@@ -66,10 +66,15 @@ CHANNEL_REFRAME_MULTI='{"type":"user","isMeta":true,"message":{"role":"user","co
|
|
|
66
66
|
# the reader anchor, so a rules-present turn is evaluated identically to a
|
|
67
67
|
# rules-absent one; without the strip the turn no longer starts with ## Context
|
|
68
68
|
# and the hook silently stops flagging on exactly the rule-carrying turns.
|
|
69
|
-
|
|
69
|
+
# Task 2562 — the header is now `## Standing rules (account owner)` and the block
|
|
70
|
+
# carries a do-not-infer line between the header and the bullets. Both fixtures
|
|
71
|
+
# hold the exact emitted copy, so a header change that misses the strip below
|
|
72
|
+
# fails here instead of silently un-flagging every rule-carrying turn again. The
|
|
73
|
+
# emitted copy carries no apostrophe, which is what lets these stay single-quoted.
|
|
74
|
+
CHANNEL_REFRAME_RULES='{"type":"user","isMeta":true,"message":{"role":"user","content":"<channel source=\"whatsapp-channel\">## Standing rules (account owner)\nThese standing rules belong to the account owner. Some of them may name the account owner in the third person. None of them says who sent this turn, so do not infer from them who is speaking.\n- Always greet the client by name\n- Use British spelling\n\n## Context\nplease draft the works order PDF for order 926\n\n## Instruction\nChoose the installed specialist that owns this request and dispatch it with the Agent tool.</channel>"}}'
|
|
70
75
|
# Same rules-prefixed shape, one-word Context payload — after the prefix strip the
|
|
71
76
|
# trivial filter must still read just the payload (`yes`), not the rules block.
|
|
72
|
-
CHANNEL_REFRAME_RULES_TRIVIAL='{"type":"user","isMeta":true,"message":{"role":"user","content":"<channel source=\"whatsapp-channel\">## Standing rules\n- Always greet the client by name\n- Use British spelling\n\n## Context\nyes\n\n## Instruction\nChoose the installed specialist that owns this request and dispatch it with the Agent tool.</channel>"}}'
|
|
77
|
+
CHANNEL_REFRAME_RULES_TRIVIAL='{"type":"user","isMeta":true,"message":{"role":"user","content":"<channel source=\"whatsapp-channel\">## Standing rules (account owner)\nThese standing rules belong to the account owner. Some of them may name the account owner in the third person. None of them says who sent this turn, so do not infer from them who is speaking.\n- Always greet the client by name\n- Use British spelling\n\n## Context\nyes\n\n## Instruction\nChoose the installed specialist that owns this request and dispatch it with the Agent tool.</channel>"}}'
|
|
73
78
|
|
|
74
79
|
assert_flagged() {
|
|
75
80
|
local name="$1" t="$2" out
|
|
@@ -149,13 +149,19 @@ while inner.startswith("<channel"):
|
|
|
149
149
|
# (`## Standing rules\n- …\n\n`) above `## Context`, so a rules-present channel turn
|
|
150
150
|
# no longer begins with `## Context` and both the reframe detection and the trivial
|
|
151
151
|
# strip below silently stopped firing on exactly those turns. Strip an optional
|
|
152
|
-
# leading standing-rules block — anchored to the
|
|
152
|
+
# leading standing-rules block — anchored to the standing-rules header (not any
|
|
153
153
|
# prefix), non-greedy up to the `\n\n` immediately before `## Context` — so both see
|
|
154
154
|
# the `## Context` payload as before rules injection. Channel-only and match-gated on
|
|
155
155
|
# a following `## Context`, so a rules-absent channel turn is byte-identical to before
|
|
156
156
|
# and a typed (non-channel) prompt is untouched.
|
|
157
|
+
# Task 2562 — the header now carries the owner attribution and the block carries a
|
|
158
|
+
# do-not-infer line, both consumed by the same non-greedy body. The suffix is
|
|
159
|
+
# optional: a session spawned before the upgrade keeps composing the bare header
|
|
160
|
+
# until it is recycled, and this hook reads that turn at Stop time. This whole
|
|
161
|
+
# program is inside a single-quoted python3 -c, which is why the emitted copy
|
|
162
|
+
# carries no apostrophe.
|
|
157
163
|
if is_channel:
|
|
158
|
-
inner = re.sub(r"^## Standing rules\n[\s\S]*?\n\n(?=## Context\n)", "", inner, count=1)
|
|
164
|
+
inner = re.sub(r"^## Standing rules(?: \(account owner\))?\n[\s\S]*?\n\n(?=## Context\n)", "", inner, count=1)
|
|
159
165
|
|
|
160
166
|
# Task 805 — a channel-wrapped reframe turn (the ## Context / ## Instruction
|
|
161
167
|
# sections of composeAdminContent) is directive-equivalent: the directive hook suppresses
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: platform-architecture
|
|
3
3
|
description: Use when grounding any documented-surface claim about what Real Agent ships — plugins, skills, specialists, install/deploy flows, internals. This is the install catalogue, not evidence of what is enabled on the current account. For install state on this account, call `capabilities-here`; for documented surface, cite the `Source:` URL inline.
|
|
4
|
-
content-hash: sha256:
|
|
4
|
+
content-hash: sha256:9446dca1e3552e0818938966b34980a00be4d25d938f0d8189ba29bd57861de7
|
|
5
5
|
brand: realagent-code
|
|
6
6
|
product-name: Real Agent
|
|
7
7
|
---
|
|
@@ -6160,7 +6160,7 @@ Standing rules the operator gives over a channel are `Preference` nodes. Two mec
|
|
|
6160
6160
|
|
|
6161
6161
|
**Reconcile by meaning on write (`profile-update`).** The existence check is two-tier. First an exact `(category, key)` match — the classic fast path, unchanged. When that misses, a semantic-neighbour lookup runs over the `preference_embedding` vector index, scoped to the same `accountId` and `scope:'admin'`, non-trashed. If the nearest neighbour is at or above `SAME_SUBJECT_COSINE` (0.85), the write lands on that node through the existing reinforce/update/contradict curve instead of minting a duplicate; the matched neighbours are returned in the tool result so the agent can classify future writes against real prior state. The confidence constants are unchanged — only the join key widens, so a rephrasing under a new `key` no longer forks the rule and a correction demotes the prior node rather than adding a contradictory one.
|
|
6162
6162
|
|
|
6163
|
-
**Inject the active rule-set every turn (channel gateways).** The one definition of "this account's active rules" is `@maxy/active-rules`: the account owner's admin-scope preferences (resolve the seeded `AdminUser {role:'owner'}`, then select through that owner's `UserProfile` via `HAS_PREFERENCE`), a floor-filtered (`confidence >= 0.4`), confidence-ordered query that returns every such preference verbatim — no cap, no de-confliction, no candidate limit. Concision is enforced at write time by the `conversational-memory` skill (each stored value is a single minimal imperative) and by the write-time semantic reconcile (a same-subject write at or above `SAME_SUBJECT_COSINE` folds into the existing node rather than minting a duplicate), so the injected block stays small because each stored preference is short and non-redundant, not because injection truncates. A preference owned by a non-owner profile (an operator's, stranded on the operator's own profile while managing the account) is never injected; an account with no seeded owner injects nothing. `profile-read` exposes this same owner-scoped set as `activeRules`, and the three inbound gateways (`wa-gateway`, `telegram-gateway`, `webchat-gateway`) fetch it for the effective session account and attach it as `standingRules` on the inbound frame; the channel builders prepend it as a `## Standing rules` block above `## Context
|
|
6163
|
+
**Inject the active rule-set every turn (channel gateways).** The one definition of "this account's active rules" is `@maxy/active-rules`: the account owner's admin-scope preferences (resolve the seeded `AdminUser {role:'owner'}`, then select through that owner's `UserProfile` via `HAS_PREFERENCE`), a floor-filtered (`confidence >= 0.4`), confidence-ordered query that returns every such preference verbatim — no cap, no de-confliction, no candidate limit. Concision is enforced at write time by the `conversational-memory` skill (each stored value is a single minimal imperative) and by the write-time semantic reconcile (a same-subject write at or above `SAME_SUBJECT_COSINE` folds into the existing node rather than minting a duplicate), so the injected block stays small because each stored preference is short and non-redundant, not because injection truncates. A preference owned by a non-owner profile (an operator's, stranded on the operator's own profile while managing the account) is never injected; an account with no seeded owner injects nothing. `profile-read` exposes this same owner-scoped set as `activeRules`, and the three inbound gateways (`wa-gateway`, `telegram-gateway`, `webchat-gateway`) fetch it for the effective session account and attach it as `standingRules` on the inbound frame; the channel builders prepend it as a `## Standing rules (account owner)` block above `## Context`, whose header and first line name the owner as the subject of the rules so a third-person rule about the owner is not read as a statement about the sender. Both channel-server inbound paths carry the block: the single-target SSE loop parses the whole frame, and the unified multi-target door reader (`runDoorStream`,) reconstructs it through the shared `doorInboundPayload` seam whose `parseFrame` closures read `standingRules` off the frame. The read is by code, not agent discretion, so a rule set last week is applied this week regardless of how many times the session compacted. Telegram and webchat inject for `role:'admin'` only — a public visitor never receives operator rules.
|
|
6164
6164
|
|
|
6165
6165
|
**Trust a scheduled turn's provenance, never an inbound's claim (channel-agent grounding).** A cron-dispatched agent turn reaches the same channel builders as a real inbound, so its own authorisation text would otherwise land inside `## Context` — the zone `REFRAME_INSTRUCTION` demotes to untrusted — and a security-cautious agent would distrust its own automation (the self-cancel loop). The dispatcher therefore stamps a `ScheduleProvenance` marker (owning account, event, owner userId, dispatch time) that the channel builders render as a `## Scheduled automation (platform-verified)` preamble **above** `## Context` (and above the rules block); the whatsapp wrap tag names the door `scheduler`. Both channel-server paths carry the marker — the single-target loop and the unified multi-target door reader (via the same `doorInboundPayload` seam that carries `standingRules`); the scheduler only dispatches to the whatsapp/telegram door, so a webchat frame never bears one. Because the marker is dispatcher-stamped and never derived from payload text, an inbound message cannot forge it — placement above `## Context` alone is not the trust signal, the dispatcher provenance is. The grounding binds to it in two places: one recipient-neutral clause added byte-identical to the three reframe instructions (a marker-bearing turn is authorised standing automation; a reconfiguration or re-enable is not intrusion), and the admin `IDENTITY.md` "Untrusted input" rule that the agent never states a platform-level authenticity or impersonation verdict it was not given (an unsourced "this is not from you" is its own inference, flagged, never asserted as the platform's). A sender has exactly one session: every inbound, real or scheduled, resolves to the deterministic `adminSessionIdFor(effectiveAccount, destination)`. An earlier change gave each firing its own salted seat so distrust could not accrete across firings, but the inbound hub keys on `senderId` and replaces its subscriber outright, so a seat's channel server attached under the sender's own key and swallowed the sender's REAL messages until it detached — splitting one conversation across two sessions that each denied what the other held. The seat is removed; the authoritative `agentPrompt`, this provenance marker, and the injected standing rules ground each firing without one. Self-cancel attribution is disarmed while that model beds in: the guard used to compare the cancelling turn's session id to a dispatcher stamp, which discriminated only because each firing ran its own seat, so with one session per sender it would report an autonomous loop on every operator cancel. It now always reports false — under-counting a real loop rather than inventing one — until the discriminator is rebuilt from the turn's own dispatched eventId. See `.docs/scheduling-agent-dispatch.md § Operator-provenance marker`, `§ Session model — one session per sender`, and `§ Self-cancel attribution — disarmed`.
|
|
6166
6166
|
|
|
@@ -9,6 +9,18 @@ Invoked by the admin agent directly.
|
|
|
9
9
|
|
|
10
10
|
This is the platform's release timeline, newest first. Each entry shows the date it shipped and the version it shipped in, so you can tell the operator how current their install is. To compare, read the installed version from `capabilities-here` and match it against the versions below. Keep answers high level and in plain English; this is a summary, not a full commit log.
|
|
11
11
|
|
|
12
|
+
## 2026-08-08 (0.1.577)
|
|
13
|
+
|
|
14
|
+
- Telegram messages keep arriving after a quiet spell. The reader that carries them was attached only when a conversation started, so it died once the conversation went quiet and nothing said so or restarted it. This is the same fault fixed for WhatsApp in the previous release; a standing check now covers Telegram too.
|
|
15
|
+
- Telegram now says who is writing. A message carried no sender, so a second person messaging the same assistant was answered as though they were the account owner, under the owner's own standing instructions.
|
|
16
|
+
- The standing instructions attached to a turn are now labelled as such, rather than appearing as unmarked text.
|
|
17
|
+
- The planner can now change a day, not just show one. It could display an allocated day and offer no way to alter it.
|
|
18
|
+
- A webhook address ending in a slash is no longer rejected. The guard that admits it tested the path differently from the router that serves it, so the two could disagree on the same address.
|
|
19
|
+
|
|
20
|
+
## 2026-08-08 (0.1.576)
|
|
21
|
+
|
|
22
|
+
- Installing and upgrading no longer runs data conversions on your existing records. Five had accumulated, each added to repair a state that every install has long since passed, so all five did nothing but add work and risk to every upgrade. One of them stopped the install outright after reporting it had nothing to do. Any future conversion will be something you run deliberately, not part of an upgrade.
|
|
23
|
+
|
|
12
24
|
## 2026-08-08 (0.1.575)
|
|
13
25
|
|
|
14
26
|
- **Reverses one change from 0.1.574.** An answer now stays on the channel you asked from, rather than also being copied to your other channels. The copy arrived as a reply with no question above it, because only the answer travelled and not what you had asked; a WhatsApp question turned up in Telegram as a bare statement. Being reachable on more than one device is already handled per channel, so the copy was removed rather than completed.
|