fix: ignore non-query Feishu messages

This commit is contained in:
ar51
2026-08-08 18:09:05 +08:00
parent 0aaedb8b66
commit d97b788e0e
7 changed files with 187 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
## Normal Query
1. Extract exactly one model and one positive quantity from the compact input or natural-language message; stop if either field is missing or ambiguous.
1. Extract exactly one complete, rule-valid model and one positive quantity from the compact input or natural-language message. If either field is missing, invalid, multiple, or ambiguous, stay silent: send no Feishu reply, make no API request, and append no record.
2. Read the capability `AGENTS.md`.
3. Confirm AR51 has approved the functional test.
4. Confirm a separate trusted AR51 approval record explicitly covers `api.zeroerr-agent.com`, the AM516 use case, and API-key use.
@@ -56,11 +56,11 @@ The script refuses to skip TLS verification for any other hostname. This option
| Error | Action |
|---|---|
| Missing model | Ask for one model |
| Multiple models | Ask AR51 to split queries |
| Missing quantity | Ask for quantity |
| Multiple possible quantities | Ask the user to state one quantity explicitly, for example `数量20台` |
| Invalid model | Stop and report parse failure |
| Missing model | Stay silent; no API call or record |
| Multiple models | Stay silent; no API call or record |
| Missing quantity | Stay silent; no API call or record |
| Multiple possible quantities | Stay silent; no API call or record |
| Invalid model | Stay silent; no API call or record |
| Missing trusted AR51 domain-and-permission approval record | Stop before the API request; report that a general functional-test approval does not automatically approve a specific outbound domain |
| Missing API key | Stop and report environment incomplete |
| `CERTIFICATE_VERIFY_FAILED` | Return the structured local certificate-trust error; use `--skip-tls-verify` only for one AR51-approved retry on a trusted network and only for `api.zeroerr-agent.com` |