feat: open bot access and guide invalid delivery queries

This commit is contained in:
ar51
2026-09-28 10:05:53 +08:00
parent 1c25c9e1d9
commit f35351d540
8 changed files with 101 additions and 47 deletions

View File

@@ -2,7 +2,7 @@
## Normal Query
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.
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, return input guidance in private chat or for group text mentioning eRob, AM516, 交期, or 候选型号; otherwise stay silent. 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.
@@ -18,7 +18,7 @@
## Candidate Continuation
1. Accept a clear request for more candidates only from the same sender in the same Feishu chat as the active initial query. Equivalent expressions such as `还有吗`、`有没有别的`、`再推荐几个`、`继续`、`下一批` or `more candidates` are valid; no exact phrase is required.
2. The in-memory continuation context expires after six hours and is cleared by a bridge restart. If no matching context exists, stay silent and require a new complete model-and-quantity query.
2. The in-memory continuation context expires after six hours and is cleared by a bridge restart. If no matching context exists, return guidance in private chat or relevant group text and require a new complete model-and-quantity query; unrelated group messages stay silent.
3. Immediately add the Feishu `OnIt` (typing) reaction to the original message, then query the next four unqueried rule candidates; do not re-query the original baseline or any earlier candidate.
4. Missing or unsupported candidates still consume their rule-order positions and remain under `不可用候选`.
5. Append one record block for the models queried in this continuation batch, then state whether more candidates remain.
@@ -68,11 +68,11 @@ The script refuses to skip TLS verification for any other hostname. This option
| Error | Action |
|---|---|
| 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 model | Input guidance for private/relevant group messages; no API call or record |
| Multiple models | Input guidance for private/relevant group messages; no API call or record |
| Missing quantity | Input guidance for private/relevant group messages; no API call or record |
| Multiple possible quantities | Input guidance for private/relevant group messages; no API call or record |
| Invalid model | Input guidance for private/relevant group messages; 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` |