feat: 原生 Seal 授权续期自愈与本地 SQLite 分歧待办闭环

- 授权自愈: 引入长效会话 Cookie 备份池,支持 Seal 原生协助授权到期与 401 报错时平滑自动换发与静默续期;
- 存储升级: 审核报告人工裁决底座迁移至 SQLite (~/.config/seal-use/state/reviews.sqlite),支持历史 JSONL 自动平滑导入与向后兼容双写;
- 分歧待办: 新增 report review unreviewed 与 dismiss 命令,收集人机不一致单据并在日常企业命令完成后于 stderr 注入 Agent 动作指引;
- 精密频控: 实现 30 天单据时效窗口过滤(陈年单据自动归档)、动态 5 小时滑动窗口频控与 24 小时人工拒审静音抑制协议;
- 透明认知: 全面补充 Skill 路由与帮助手册,消除黑盒,透传数据边界与安全红线。
This commit is contained in:
gitea committed 2026-11-02 15:22:47 +08:00
1 parent 5c46c9bcc4
commit 8c9f102931
21 files changed
+1668 -50

No files matched your search

+23 -1
View File
@@ -766,7 +766,29 @@ export const HELP_REGISTRY: AreaHelp[] = [
{ flag: "--note <text>", description: "Optional adjudication note" },
{ flag: "--reviewed-by <who>", description: "Optional reviewer name for the audit trail" }
],
description: "Append-only local JSONL per tenant (~/.config/seal-use/state/reviews/). Supports exact recordId target or SN. Typically adjudicates diverged blocks or overrides specific agreed runs."
description: "Local SQLite store with companion JSONL (~/.config/seal-use/state/reviews.sqlite). Supports exact recordId target or SN. Typically adjudicates diverged blocks or overrides specific agreed runs."
},
{
name: "review unreviewed",
summary: "List unreviewed human-AI divergence records for incremental triaging",
usage: ["seal-use report review unreviewed [--limit <n>] [--days <n>] [--all] [--corp <corpId>]"],
options: [
{ flag: "--limit <n>", description: "Max unreviewed items to return (default 20)" },
{ flag: "--days <n>", description: "Only return records created within recent days (default 30)" },
{ flag: "--all", description: "Include all historical unreviewed records regardless of age" },
{ flag: "--corp <corpId>", description: "Target enterprise corpId" }
],
description: "Returns unadjudicated diverged records from local SQLite (~/.config/seal-use/state/reviews.sqlite). CLI throttles reminder notifications on a 5-hour sliding window and filters to recent 30 days to avoid ancient debt. Use this command to fetch items, present a natural-language summary to the user, and record verdicts with 'report review set'."
},
{
name: "review dismiss",
summary: "Suppress divergence reminders for a tenant when the user declines reviewing",
usage: ["seal-use report review dismiss [--hours <n>] [--corp <corpId>]"],
options: [
{ flag: "--hours <n>", description: "Hours to suppress reminders (default 24)" },
{ flag: "--corp <corpId>", description: "Target enterprise corpId" }
],
description: "Mutes CLI divergence prompts for the enterprise for N hours (default 24h) when the user declines reviewing. Agents must call this immediately when the user says 'not now' or 'later' to ensure zero repeated disruption."
},
{
name: "review list",