---
type: Attested Computation
title: wiki-summary
identifier: web/wiki-summary
description: 'The lead summaries of the Wikipedia articles that best match one or more topics (Wikipedia''s own search, then each article''s page summary), written to summary.md as each article''s title, link and a few paragraphs. Topics are separated by semicolons (cat behavior; object permanence) and share the byte budget. An article whose title shares no word with its topic is not taken (a search for a sentence finds noise), so a topic may find nothing; a query nothing matches still succeeds, and summary.md says no article was found, so a workflow that cites it goes on with no evidence rather than stopping. A rate limit or a server error exits 75 (temporary: fragletc --retry). Unlike web/page-to-markdown it needs no URL, only words.'
pack: web
tags:
- internet
- documents
runtime: fragletc
image: ofthemachine/python3@sha256:59784cff1945b7d6093a591b5e5292b8c989f0691af0494fbbe1c6b8083a16cb
network: required
stdin: none
execution_class: environmental
procedure_hash: sha256:a8c7da326cbf24ff21f5663e3536b6e3190b8f7fa1a592419f494d3dc7d5f625
parameters:
- name: query
  type: string
  required: true
  description: 'What to look up: a topic in a few plain words, or several separated by semicolons, e.g. cat behavior; object permanence'
- name: language
  type: string
  required: false
  default: en
  description: Wikipedia language code, e.g. en, fr, de
- name: max_bytes
  type: string
  required: false
  default: '3000'
  description: At most this many bytes of summary text in all, shared by the topics
computation: https://tools.ofthemachine.com/web/wiki-summary.py
executor:
  resource: https://github.com/ofthemachine/fraglet
  receipt:
  - schema
  - fragletc
  - procedure
  - procedure_hash
  - image
  - image_digest
  - network
  - stdin_mode
  - params
  - inputs
  - argv
  - env
  - memo_key
  - started
  - finished
  - exit_code
  - stdout
  - outputs
  format: fraglet-receipt/2 (fragletc --receipt <path>, or FRAGLETC_RECEIPT_DIR)
attester:
  resource: https://tools.ofthemachine.com/receipt/attest.py
  method: 'deterministic, no re-execution: procedure_hash equals sha256 of computation; memo_key recomputes from the receipt''s own fields; claimed params and any artifact hash match the receipt'
generated:
  by: process:tools/catalog/compile.py
  at: '2026-11-13T18:27:40Z'
outputs:
- summary.md
---

# wiki-summary

The lead summaries of the Wikipedia articles that best match one or more topics (Wikipedia's own search, then each article's page summary), written to summary.md as each article's title, link and a few paragraphs. Topics are separated by semicolons (cat behavior; object permanence) and share the byte budget. An article whose title shares no word with its topic is not taken (a search for a sentence finds noise), so a topic may find nothing; a query nothing matches still succeeds, and summary.md says no article was found, so a workflow that cites it goes on with no evidence rather than stopping. A rate limit or a server error exits 75 (temporary: fragletc --retry). Unlike web/page-to-markdown it needs no URL, only words.

Use when a workflow step needs encyclopedic background on subjects named in a few plain words -- a topic, a dish, a person -- as a file a later step reads. Name subjects, not sentences: "cat behavior", not "cats who knock things off tables".

# Schema

## Parameters
- `query` (string, required) — What to look up: a topic in a few plain words, or several separated by semicolons, e.g. cat behavior; object permanence
- `language` (string, optional, default `en`) — Wikipedia language code, e.g. en, fr, de
- `max_bytes` (string, optional, default `3000`) — At most this many bytes of summary text in all, shared by the topics

## Outputs
- `summary.md` (declared file under /output)

# Execution

The computation is [`web/wiki-summary.py`](https://tools.ofthemachine.com/web/wiki-summary.py) (frontmatter `computation`; in `tools.tar.gz` the same file sits at `web/wiki-summary.py` beside this bundle), run by `fragletc` in `ofthemachine/python3@sha256:59784cff1945b7d6093a591b5e5292b8c989f0691af0494fbbe1c6b8083a16cb` with network `required`. Its identity is `procedure_hash` = sha256 of that file, shebang included — the same value every receipt records. Parameters are passed as `-p name=value`; `--receipt run.json` (or `FRAGLETC_RECEIPT_DIR`) writes the receipt, a `fraglet-receipt/2` JSON document with the fields listed under `executor.receipt`.

# Attestation

A run's receipt is attested with [`receipt/attest.py`](https://tools.ofthemachine.com/receipt/attest.py): the computation that ran is this script (`procedure_hash`), the receipt is internally consistent (`memo_key` recomputes from its own fields), the claimed parameters are the ones that ran, and an artifact claimed as an output hashes to what the receipt recorded. No re-execution: attestation is provenance fidelity, not reproduction.

Environmental: the tool reaches the network, so outputs depend on state outside its inputs; the receipt records exactly what ran and what came out and makes no reproduction claim.

Skill: [SKILL.md](https://tools.ofthemachine.com/web/SKILL.md)
