|
Download agent-workflow/missing-information.md from swedishembedded/knowledge: direct link, hf CLI and curl.
- Browser
- Download file 4.38 kB
-
https://huggingface.co/swedishembedded/knowledge/resolve/main/agent-workflow/missing-information.md
- Command line
-
hf download hf://swedishembedded/knowledge/agent-workflow/missing-information.md
-
curl -L -o missing-information.md https://huggingface.co/swedishembedded/knowledge/resolve/main/agent-workflow/missing-information.md
4.38 kB
| # SPDX-License-Identifier: CC-BY-4.0 | |
| # Copyright (c) 2026 Martin Schröder <info@swedishembedded.com> | |
| title: When information is missing - do not guess | |
| tiers: rule 1, procedure 2, example 3, mistakes 2 | |
| # When information is missing: do not guess | |
| For tasks that say the data "may be incomplete", say "do not guess", ask you to name what is | |
| missing, or let you answer with the fact you need. | |
| <!-- tier: 1 --> | |
| ## Rule | |
| **The task's own files and stated rules always win over this page; use this page only for what | |
| the task leaves open.** | |
| 1. **A conclusion needs every fact its rule uses.** If one of those facts is absent, the honest | |
| result is "cannot be determined", together with the name of what is missing. | |
| 2. **Missing is not zero, not "no", and not the usual value.** A blank category is not the | |
| standard category. An absent document is not proof that nothing happened. | |
| 3. **Abstain only about what truly depends on the gap.** Everything that can be determined | |
| without the missing fact is still computed and reported. | |
| 4. **Anything built on an unknown is unknown.** A total over lines of which one is unknown is | |
| unknown; write it as the request says (usually `null`), not as the sum of the known lines. | |
| 5. **Name the missing thing in the task's own words**: the record it belongs to and the field or | |
| document type, chosen from the names the request offers. | |
| 6. **Do not abstain when nothing is missing.** If every needed fact is present, decide. | |
| <!-- tier: 2 --> | |
| ## Procedure | |
| 1. Write down the rule you must apply and list the facts it needs (inputs of the rule). | |
| 2. Tick each fact off against the task's files. A fact can be present under a slightly different | |
| wording; look before you call it missing. | |
| 3. For each fact not found, decide whether the outcome really depends on it: would two different | |
| values of that fact give two different answers? If not, it is not decisive. | |
| 4. If nothing decisive is missing: solve the task normally. | |
| 5. If something decisive is missing: | |
| - set the status the request prescribes for an incomplete case; | |
| - list each gap once, with the record and field names the request prescribes; | |
| - give the dependent results as the request prescribes for unknown values; | |
| - still compute every independent line and report it. | |
| 6. In a system where you ask a person (a ticket, a request): ask for exactly the missing field, | |
| say its name plainly in the message, and change nothing else while you wait. | |
| <!-- tier: 3 --> | |
| ## Worked example | |
| Illustration only, with invented data. Your task's data differs: take no fact, count or | |
| expected result from this example. | |
| Invented task: compute a handling fee per parcel from a fee table by parcel class, and the total. | |
| "If a parcel lacks what the table needs, give its fee as `null`, list it under `missing`, set | |
| `status` to `incomplete` and the total to `null`." | |
| Parcels: P1 class `small`, P2 class blank, P3 class `bulky`. | |
| 1. Rule inputs: the parcel's class and the table's fee for that class. | |
| 2. P1 and P3 have a class. P2 does not. Would P2's fee change with its class? Yes: decisive. | |
| 3. Result: | |
| ```json | |
| { | |
| "status": "incomplete", | |
| "missing": [{"record": "P2", "field": "class"}], | |
| "lines": [ | |
| {"parcel": "P1", "fee": 4.5}, | |
| {"parcel": "P2", "fee": null}, | |
| {"parcel": "P3", "fee": 12.0} | |
| ], | |
| "total": null | |
| } | |
| ``` | |
| P1 and P3 are computed. P2 is `null`. The total is `null`, not 16.5: the sum of the known lines would hide | |
| an unknown one. | |
| A second situation: a case file should decide whether goods arrived late, but the document that | |
| records the arrival date is not in the file. Do not reason "no record, so probably on time". The | |
| decisive document is missing: name its type, and leave the conclusions that depend on it open. | |
| <!-- tier: 2 --> | |
| ## Common mistakes | |
| - Filling a blank with the most common value and computing as if it were given. | |
| - Setting the status to incomplete but still reporting totals as numbers. | |
| - Reporting nothing at all, although most lines could be determined. | |
| - Naming the gap in your own words instead of the record and field names the request offers. | |
| - Listing as missing something that is present, or that does not affect the outcome. | |
| - Abstaining as a safe default: when every needed fact is there, an abstention is a wrong answer. | |
| - Deciding the outcome although the one fact that separates two outcomes is not in the case. | |