root and Claude Opus 5.5
21b7e8ff23
feat(agent): layered system prompt, environment facts and intent-routed skills
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-09-30 18:47:15 +08:00
root and Claude Opus 5.5
2ab6d452dd
feat(agent): 系统提示规定汇报格式(AGUI-3)
...
新增「汇报格式」一节:第一句写结论;对象用名字,不写函数名、工具名、字段名、UUID 或 hash;
不超过 10 行;列举 3 个以上资源才用表格;不写标题和 HTML。证据规则改为写对象名称和关键数值。
方案规则改为只在真有分歧时给方案,并说明方案绑定计划、选定即批准的用法;步骤标题不写工具名。
子会话与视觉子流程汇报给父会话(audience: agent),不加用户汇报格式。
加 prompt 回归测试,快照断言汇报格式的关键约束句。
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-09-29 22:41:13 +08:00
root and Claude Opus 5.5
b7cbc06567
feat(agent): prompt rules for probe queries, param types, Chinese reports and interrupted summaries
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-09-29 01:58:28 +08:00
root and Claude Opus 5.5
f48e1aac96
fix(security): W4-E1 approvals admin-session only, shared redact table, TMDB key redaction, prod mock gate
...
- POST /approvals and PATCH /approvals/{id} require a console admin session
(EndpointDef auth:"session"); API keys incl. admin scope get 403, so an
organize.execute key can no longer approve its own plan (S1)
- tests for single-use approval checks: expired, revision/payload hash
mismatch, consumed, revoked, pending/rejected, plan mismatch; re-approve
after plan change succeeds once and cannot be replayed (S4)
- one redact key table in @umt/contracts shared by server logger and agent
redactForModel: rsskey, torrent_pass, authkey, downhash, c_secure_pass,
passkey variants, x-api-key, cookie headers, nested objects/arrays (S2)
- TMDB network errors: message and cause redacted via redactUrl (S3)
- web Agent ?mock=1 only in DEV builds or when pi.provider is fake (S7)
- EndpointDef auth annotations for /auth/*, asserted against
PUBLIC_AUTH_PATHS (S10); doc drift fixes (S11)
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-09-27 22:24:44 +08:00
root and Claude Fable 5.1
304feea141
chore(deno): migrate toolchain from Node 24 + pnpm to Deno 2.9.7 + TypeScript 7.0.2 (W1.5)
...
- root deno.json workspace (nodeModulesDir auto), npm versions registered once in imports, deno.lock;
remove pnpm-lock/pnpm-workspace/root package.json; members keep minimal package.json (name/type/exports)
- tasks: dev, typecheck (tsc 7.0.2 per member + deno check), lint/fmt (biome, useImportExtensions),
test (vitest via deno), check:tokens, build (web + deno compile), ci, db:migrate/reset, gen:types
- tsconfig base moved to config/ (no root tsconfig.json); deno types -> types/deno.d.ts; web drops baseUrl
- server: Deno.serve entry with graceful shutdown, --role migrate|preflight|probe, WEB_ROOT static SPA hosting;
drop @hono/node-server, tsx, esbuild build.mjs
- logger: redact child() bindings and serialize err by message/stack; sync stdout destination; tests
- relative imports get explicit extensions (sites/mp-sync paths left for follow-up)
- crash-recovery tests spawn `deno run -A`; tasks tests use unique per-file schemas
- single-container Dockerfile + entrypoint (migrate -> preflight -> api+worker watchdog), docker-compose.yml
- docs: README, runbook, ADR-001 superseded, plan §1 validation row
Co-Authored-By: Claude Fable 5.1 <[email protected] >
2026-09-27 18:53:06 +08:00
root and Claude Fable 5.1
9c881e737f
feat(agent): capability registry, Pi AgentRuntimePort, fake model provider and redaction guard (W1-5)
...
- CapabilityRegistry: descriptor(id/version/schema/scope/risk/idempotent/preview/replay),
invoke = scope limit -> input schema -> server-side authorize -> idempotency key -> handler
-> output schema -> audit; capability id <-> tool name mapping (download.submit <-> download__submit)
- PiAgentRuntime (pi-agent-core AgentHarness 0.87.1): whitelist tools + before_tool re-check,
redacted event stream, JSONL session at sessionDir/<runId>.jsonl, resume/abort/compact,
tool-call/duration/token/cost budgets -> abort + run_failed(budget)
- AgentSettings -> pi-ai createProvider (anthropic / openai-compatible), compaction mapping
- FakeModelProvider + createFakeRuntime (scripted, transcript-derived, survives crash/resume)
- buildSystemPrompt, redactForModel; 27 tests incl. SIGKILL + resume
Co-Authored-By: Claude Fable 5.1 <[email protected] >
2026-09-27 17:55:28 +08:00