From 6877fc69b944e1d32447018e7d901c61f89d6579 Mon Sep 17 00:00:00 2001 From: wolfgang-aura <169568318+wolfgang-aura@users.noreply.github.com> Date: Mon, 5 Oct 2026 19:11:48 +0800 Subject: [PATCH] feat(capsule): state completeness at the top of every capsule An AI reading a capsule had to find gaps in a warnings list below the header, mixed with notes that are not gaps (video bytes kept in the companion file, duplicate hashes) and with repeated lines. A model asked to summarize would usually skip it. The .llm.md now opens with a Completeness section: COMPLETE, or INCOMPLETE with counts of what was not captured and what may be truncated, plus one sentence asking the reader to tell the user. The HTML shows the same status as a visible banner, only when incomplete. It is written as a stated fact and not hidden, so agents that treat file contents as data still see it. Only real gaps count. A video kept as poster plus source link, a quote tombstone and a missing avatar do not. The Warnings list is deduplicated and informational lines move to a separate Notes list; the manifest warnings array is unchanged. Co-Authored-By: Claude Opus 5.5 --- examples/sample-export.html | 13 ++++-- examples/sample-export.llm.md | 13 ++++-- sourcecapsule.user.js | 86 +++++++++++++++++++++++++++++++---- test/smoke.mjs | 32 +++++++++++++ 4 files changed, 125 insertions(+), 19 deletions(-) diff --git a/examples/sample-export.html b/examples/sample-export.html index e8b6e26..8730633 100644 --- a/examples/sample-export.html +++ b/examples/sample-export.html @@ -3,7 +3,7 @@ - + How we built a self-contained exporter - a "test" & demo