Z.AI Plan Probe
Governance: Irreversible infra ops (deploy/destroy/spend/credential changes) route via arifos-governance; irreversible actions require 888_HOLD release. (F1 AMANAH / F13 SOVEREIGN)
Verify the Z.AI GLM Coding Plan is alive and correctly wired. Key lives in env ZAI_API_KEY (vault: /root/.secrets/kunci-root.env; mode-600 configs only — never paste keys into chat, receipts, or configs beyond mode-600).
Probes (all live, F2 OBS)
- Plan models:
GET https://api.z.ai/api/coding/paas/v4/models(Bearer key) — expect glm-4.5 … glm-5.3 (9 models). - Anthropic-compat (Kimi path):
POST https://api.z.ai/api/anthropic/v1/messageswithx-api-key+anthropic-version: 2023-06-01, model glm-5.3 — expect HTTP 200. - OpenAI-compat (Qwen path): chat completion at
/api/coding/paas/v4/chat/completions, model GLM-5.3 — expect 200. - Cross-check wired surfaces: Qwen settings.json
[Z.AI]entries, Kimi config.tomlzai-coding-planprovider, OpenCodezai-direct, ClaudeZAI_DIRECT_*env — all must reference the same endpoints. - FED SOT:
/root/.config/federation-models.json→ providerzai-coding-planmust carryanthropic_endpoint_url+ live telemetry.
Gotchas (scars, not guesses)
glm-5.2requests silently return model=glm-5.3 — plan fact, not a bug.- Peak Mon–Fri 14:00–18:00 SGT burns credits at 2×; off-peak 50% off.
- If the anthropic endpoint 401s from Kimi: kimi-code does NOT expand
${ENV}in providerapi_key— literal key required in a mode-600 file.
Output
Report: endpoint statuses, model count, any drift between the 5 wired surfaces.