推荐顺序 / SDK
先读取节点状态,再建立主体、授权和事件责任链
/healthz 会返回节点状态、来源指纹以及 Prime RootTHK 同步摘要。点击上面的“连通性检查”后,本页会自动把来源指纹填入请求上下文。默认的 Claim / Grant 示例还会自动补齐测试密钥、主体指纹和前序锚点,让你可以直接把整条责任链跑通。
ClaimAnchor
先固定“谁”在行动。主体 ClaimAnchor 记录实体指纹、属性类型、属性摘要,以及主体签名与签发签名。
GrantAnchor
再固定“谁授权谁、边界是什么”。默认示例会自动创建一对临时 ClaimAnchor,再据此生成 GrantAnchor。
EventAnchor
最后把操作事件写成事件锚,并在
semantic_anchor 中引用最近一次 ClaimAnchor / GrantAnchor,形成可追责责任链。
Python
health = await client.healthz() print(health.status) print(health.origin_fingerprint) print(health.prime_root_thk_sync.status)
TypeScript
const health = await client.healthz(); console.log(health.status); console.log(health.originFingerprint); console.log(health.primeRootThkSync?.status);
Rust
let health = client.healthz().await?;
println!("{}", health.status);
println!("{:?}", health.origin_fingerprint);
println!("{:?}", health.prime_root_thk_sync);
当前 VPS 监控面
公网只开放 healthz,指标接口保留在宿主机 / 私网
当前生产 VPS 已部署 Prometheus 和 Alertmanager。开发者接入使用 /healthz 与业务 API;/metrics 不经过公网网关,而是保留给私有抓取链路。
公开路径
GET /healthz、GET /readyz 用于接入检查和探活。
私网抓取
127.0.0.1:15051/metrics127.0.0.1:18110/metrics127.0.0.1:18090/metrics
已启用告警
gnomon_prime_root_thk_sync_error == 1 time() - gnomon_prime_root_thk_last_sync_success_timestamp_seconds > 30
Gnomon 接口试验场
连接正在运行的 Gnomon 节点,测试主体 ClaimAnchor、授权 GrantAnchor、事件锚、验证追溯、批量处理和节点治理接口。