hypothesis-annotation-visibility
БесплатноЗапускает вложенные скриптыНе проверенDiagnose and fix Hypothesis (hypothes.is) annotation visibility — why two people in the same group see different annotation counts, why a class or study group…
от mjunaidca★ 27 звёзд на GitHubОб этом скилле
Hypothesis annotation visibility
Hypothesis visibility problems get misdiagnosed constantly. People report them as broken integrations, stale caches, or group-membership bugs. They are almost always one thing: a per-annotation read permission that points at a person instead of a group.
This skill exists because that mechanism is easy to state, easy to verify, and easy to fix
safely — but the failure looks nothing like its cause, and some of the widely-repeated
folklore about it is wrong (see references/api-facts.md).
The mechanism
Every annotation carries two independent fields:
group— a label. Which group was selected when it was written.permissions.read— the access check. Exactly one of three shapes:
permissions.read |
Who can read it |
|---|---|
["acct:[email protected]"] |
the author alone ("Only Me") |
["group:AbCd1234"] |
that group's members |
["group:__world__"] |
the public web |
These do not constrain each other. An annotation written privately while a group was
selected still stores group: "AbCd1234". So it matches a ?group=AbCd1234 search,
which is why it inflates the author's sidebar count — and then the permission filter
drops it for everybody else.
That is the whole illusion: one query, two totals, no error. The total field in a search
response is computed against the requesting token's identity, not against the group.
Membership does not defeat it. Neither does moderator or owner. The check is per
annotation, and the only identity that satisfies ["acct:alice@..."] is Alice.
Four states, and the one that bites
Because the two fields are independent, there are four combinations. Three are ordinary. The fourth is a trap worth naming before you touch anything:
group |
permissions.read |
Meaning |
|---|---|---|
AbCd1234 |
acct:author |
in the group, invisible to it — the usual complaint |
AbCd1234 |
group:AbCd1234 |
working as intended |
__world__ |
group:__world__ |
on the public web — a live leak |
__world__ |
acct:author |
private, but scoped to Public — "sharing" this publishes it |
That last row is why "just make the private ones shared" is not a safe instruction. For an
annotation in group scope, sharing means ~N members. For one in __world__ scope, the same
words mean the open internet. Always read the group field before changing read.
If something is in __world__ scope, separate the two goals, because only one of them
has a verified fix:
- Stop the exposure — set
readback to["acct:<author>"]. Reliable, reversible, needs no group. Do this first when anything is already public. - Move it into a group — this is a scope change, not a permission change, and whether
groupcan be PATCHed at all is unverified (seereferences/api-facts.md§5b). Test on one annotation and re-GETit before promising anyone a batch fix. Changingreadalone would leave it in the public scope wearing a group permission, which is a state nobody intended.
Triage order
Work read-only until you have the numbers. The audit is fast and it prevents the two mistakes that actually cause harm: publishing something, and touching another person's data.
1. Establish identity
Whose token is this? It decides everything downstream, because a token can only ever fix its own annotations.
export HYP_TOKEN="..." # from https://hypothes.is/account/developer
python scripts/hyp_audit.py whoami
2. Audit, read-only
python scripts/hyp_audit.py group <GROUP_ID> # inside one group
python scripts/hyp_audit.py site "example.org" # public leaks across a site
python scripts/hyp_audit.py mine # everything this token owns
group reports, per author and per document: how many are visible to you, how many are
private, and how many of the private ones are text-less highlights versus written notes.
That highlight/note split is the single most useful number in the report — see step 4.
3. Prove it with a second identity
One token can never prove group visibility, because an author always sees their own work. If a second token is available (any other member of the group), compare directly:
export HYP_TOKEN="<member A>"
export HYP_TOKEN_B="<member B>"
python scripts/hyp_audit.py compare <GROUP_ID>
This prints both totals side by side and lists exactly which annotation IDs one identity can see and the other cannot. That difference is the bug, expressed as data. It converts an argument into a diff, and it is the only way to confirm a fix actually landed.
4. Decide what may be shared — this is not your call to make
Before proposing any write, split the private set in two. The audit does this for you:
- Text-less highlights (
text: "", no tags) carry no opinion. Someone marked a passage. Sharing these is low-stakes. - Annotations with text or tags are written notes. On a person's
Установить hypothesis-annotation-visibility в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hypothesis-annotation-visibility?
Diagnose and fix Hypothesis (hypothes.is) annotation visibility — why two people in the same group see different annotation counts, why a class or study group can't see someone's notes, why highlights never show up for anyone else, and how to safely move "Only Me" annotations into a group or pull accidentally-public ones back out. Use this whenever someone mentions Hypothesis, hypothes.is, web annotations, annotation groups, highlights that aren't appearing, mismatched annotation counts ("I see 5, they see 149"), students who can't see the teacher's notes, or annotations that went public by mistake — including when they describe it as a broken integration, a sync issue, a caching problem, or a membership/permissions bug, because it is almost never any of those.
Как установить скилл hypothesis-annotation-visibility?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hypothesis-annotation-visibility запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic