为什么 Z5 受控停止
当前 live readiness 显示 token/cache/provider 不可用或已过期;同时 router 中没有可安全调用的 refresh-dry-run endpoint。因此 refresh 不能继续。
token provider readiness:false
token cache metadata readiness:false
required scope readiness:true
refresh service callable:true
refresh-dry-run endpoint:false
next_gate:
FEISHU_READONLY_TOKEN_CACHE_REFRESH_GATEZ4 ready 与 Z5 not ready 的差异
Z4 是准备包,主要依据历史 readiness JSON、代码存在性和 schema contract;Z5 是 apply 包,使用 live readiness endpoint 做硬检查。当前 live metadata 显示 token 已过期或 provider 不可用,所以必须回到 token cache/provider Gate。
Refresh endpoint 缺口
refresh service 文件存在,但当前 router 没有暴露安全的 POST /api/feishu-readonly-snapshot/refresh-dry-run。后续如补 endpoint,必须只允许 dry-run,只写三张 snapshot 表,不写主数据,不输出敏感字段。
行数保持
- 三张 snapshot 表 row_count:{"feishu_readonly_snapshot_runs": 0, "feishu_user_snapshots": 0, "feishu_department_snapshots": 0}
- 主数据 6 张表 row_count:{"departments": 0, "positions": 0, "employees": 0, "permission_subjects": 0, "employee_role_assignments": 0, "feishu_user_mappings": 0}