Attested Computation#
Attested Computation is an advanced concept template. Most users do not need it.
Use it only when you must document:
- a repeatable calculation;
- the runtime that performs it;
- its input parameters;
- the evidence a run should return;
- an optional checker or attester.
Creating or opening this concept does not run the calculation.
Simple meaning#
An Attested Computation file is a contract written in Markdown.
It can say:
- “Run this approved calculation.”
- “Use these inputs.”
- “Return these receipt fields.”
- “This separate resource may check the receipt.”
DevDesk validates the written structure. It does not claim that the computation ran or passed.
Create one from the app#
- Open Developer tools > Structure and OKF.
- Select Create concept.
- Set Template to Attested computation.
- Enter a Title.
- Review the suggested path under
computations/. - Add a one-line description.
- Keep Status as
draft. - Enter a valid Generated by actor.
- Enter Runtime, for example
python,postgres, orbigquery. - Add parameters when needed.
- Choose either an external computation file or the generated inline fenced block.
- Add executor, receipt, and attester resources only when they really exist.
- Select Create.
The Runtime must not be empty. Each parameter line uses:
name:type:required
or:
name:type:optional
Example:
year:integer:required
segment:string:optional
Inline computation#
Leave Computation file empty to create one inline fenced computation block:
# Computation
```python
# Add the sanctioned computation here.
```
Replace the placeholder only with reviewed project content.
External computation#
Enter a relative Computation file when the calculation already exists:
computations/monthly-active-customers.sql
When an external path is used, the template does not also create an inline computation block. Use one method, not both.
Executor, receipt, and attester#
- Executor resource: documentation for the approved execution process.
- Receipt fields: evidence expected from a run, such as
job_id,executed_sql, orresult. - Attester resource: documentation or code location for a separate checker.
These fields describe resources. DevDesk does not call them.
Example metadata:
type: "Attested Computation"
title: "Monthly active customers"
runtime: "postgres"
parameters:
- {name: "start_date", type: "date", required: true}
- {name: "end_date", type: "date", required: true}
computation: "computations/monthly-active-customers.sql"
executor:
resource: "references/run-monthly-metric.md"
receipt:
- "job_id"
- "executed_sql"
- "result"
attester:
resource: "references/check-monthly-metric.md"
Findings you may see#
Structure checks can warn when:
- runtime is empty;
- parameters are not valid mappings;
- a parameter lacks name, type, or required status;
- neither an external computation nor one inline fenced block exists;
- both external and inline computations are supplied;
- executor or attester does not contain a resource;
- executor receipt fields are missing.
These are structure checks. They are not evidence that the calculation is correct.
Record a real verification#
Only after the appropriate person or process checks the actual result:
- Return to Structure and OKF.
- Select Record verification.
- Select the computation concept.
- Enter the real actor.
- Review the plan.
- Apply it.
The verification event records the stated review. DevDesk still does not run the computation or attester.
Safety rules#
- Never paste credentials into the Markdown contract.
- Never treat a code block as permission to execute code.
- Review computation paths before sharing the workspace.
- Keep receipts and sensitive result data in an appropriate protected system.
- Do not mark a concept stable or verified merely to clear a dashboard count.
