GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce · Issue #3192 · developing-today/code

id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce #3192

New issue
Copy link
New issue
Copy link
Closed
#4331
Closed
id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce#3192
#4331
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 31, 2026
Issue body actions

Problem

SignedArtifact::parsed() (pkgs/id/src/artifact.rs) accepts non-NFC text in the two known kinds that carry free text, while every sibling text path in the same crate refuses non-NFC:

  • DOCUMENT arm (artifact.rs:356-371): checks only media_type empty / >128 bytes and content size. A decomposed media type such as text/cafe\u{301} (e + combining acute U+0301) is accepted and stored.
  • TAG arm (artifact.rs:372-385): checks only subject hash, name 1–64 bytes, value ≤256 bytes. A decomposed tag name (aute\u{301}ur) or value (cafe\u{301}) is accepted and stored.

The sibling rules that these kinds bypass:

  • documents.rs DocumentRef::check() (documents.rs:105-121) refuses a media type that is not NFC — its doc comment states the rule and it is pinned by test_the_media_type_is_one_to_128_bytes_in_nfc. Same 128-byte cap as the artifact arm, minus the NFC half.
  • tag_claims.rs check_text() (tag_claims.rs:146-160), used by check_op for tag.set, requires NFC for name and value.
  • chain.rs (chain.rs:198, chain.rs:367) requires NFC for event kinds and text strings.

Why it matters

An artifact is a signed, stored, propagated statement: parsed() is the trust-boundary check before a known kind is applied (directory.rs publishes/applies Kind::Document and Kind::Tag). Two spellings of the same media type / tag name — NFC and decomposed — are different byte strings, so lookups, equality, and tag-name matching split on a difference no user can see: a document published with a decomposed media type does not match the NFC spelling a reader asks for, and a decomposed tag name forms a separate tag from the composed one. The event/chain side of the same system canonicalizes on NFC; the artifact side silently does not, so the same logical statement is valid in one store and refused in the other.

Evidence (verified this run)

  • Code: artifact.rs:356-385 (above) vs documents.rs:113-117 and tag_claims.rs:152-154 — the NFC check exists in both sibling validators and is absent from both artifact arms.
  • Laptop probe (probe-2026-10-31-laneA-nfc, on the laptop clone at the same HEAD 236cb98, artifact.rs sha256 bdc11bbe on both clones) driving the real SignedArtifact::sign + parsed(): control NFC document/tag ACCEPTED; non-NFC media_type, tag name, and tag value all ACCEPTED by parsed().
  • Dedup: open + recently closed search for NFC / non-NFC / normalization against artifact kinds found no existing issue covering the artifact document/tag arms (sibling of id(artifact): home_declared world_id gets only an is_empty check in parsed() — a 100 KB, whitespace-only, control- or bidi-bearing world_id is accepted and stored, and the same endpoint can be listed twice with different worlds #3187 home_declared world_id and id(artifact): friend_remove requests is the one known-kind body parsed() never validates — any count, any shape, any length passes, and every string lands permanently in the directory's removed_requests void guard #3146 friend_remove requests — same function, different kinds/fields/rules; the parsed-shape contract design is Design: parsed is not validated — one shape contract at every JSON trust boundary #3068).

Acceptance criteria

  • parsed() refuses a document whose media_type is not NFC, with a Refusal::Forbidden naming the rule, pinned by a parsed()-level test using a decomposed spelling.
  • parsed() refuses a tag whose name or value is not NFC, likewise pinned.
  • Ordinary NFC documents and tags (existing artifact tests) parse exactly as today.
  • The check is shared with, or explicitly mirrors, the existing NFC rules in documents.rs / tag_claims.rs so the three validators cannot drift again (e.g. one helper, or a test that walks all three).

Activity

Next
  1. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/lowNice to have; do when convenient
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    effort/sSmall: expected under 2 hours of work
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-10-31 14:05 CDT
    • Found via: filed this run
    • Task: Filed this issue — SignedArtifact::parsed() (artifact.rs:356-385) accepts non-NFC text in the document and tag arms while documents.rs DocumentRef::check() (:113) and tag_claims.rs check_text() (:152) both refuse non-NFC for the same fields; verified on main 236cb98 with a laptop probe (probe-2026-10-31-laneA-nfc, real sign+parsed(), artifact.rs sha256 bdc11bbe on both clones): NFC controls ACCEPTED, decomposed media_type / tag name / tag value all ACCEPTED. Sibling of id(artifact): home_declared world_id gets only an is_empty check in parsed() — a 100 KB, whitespace-only, control- or bidi-bearing world_id is accepted and stored, and the same endpoint can be listed twice with different worlds #3187/id(artifact): friend_remove requests is the one known-kind body parsed() never validates — any count, any shape, any length passes, and every string lands permanently in the directory's removed_requests void guard #3146 (same function, different kinds/rules). Enqueued as a repo-task/v1 packet on repo-health-code-pilot.
    • Expectation: effort/s — add the NFC refusal to the document and tag arms of parsed(), pinned by parsed()-level tests; ordinary NFC artifacts unchanged.
    • Links: packet packet-3192-triage.json (hidden_files, keep-the-four-repos-healthy goal)
  3. github-actions
    assigned
    dezren39
    on Oct 31, 2026
  4. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Oct 31, 2026
  5. dezren39
    added a parent issue on Oct 31, 2026
    • Design: a signed artifact is validated as strictly as it is built — one receipt contract for pkgs/id artifacts #3231
  6. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Design-architect pass 28 (2026-10-31) — agent note: this issue is ADOPTED as a phase of design #3231 ("a signed artifact is validated as strictly as it is built", design doc: files/designs/code-id-artifact-receipt-validation.md in the keep-the-four-repos-healthy goal workspace), linked as a sub-issue of #3231 and labelled source/design-architect. Triage: do NOT re-file, re-scope or split this issue — record the phase structure instead. Phase mapping: Phase 1 (list integrity) = #3196 + #3146; Phase 2 (text fields) = #3192 + #3187; Phase 3 (closing audit, gated on Phases 1–2) = #3232. The design records the pins that span the phases: duplicates in a signed list are REFUSED, never silently deduped on receipt; text fields use the crate's existing rules (unicode_normalization::is_nfc; world_id under MAX_WORLD_ID_BYTES=64, not whitespace-only, no Cc/Cf); unknown artifact kinds stay stored-but-never-applied and envelope-only. Each origin keeps its own acceptance criteria and its already-queued triage packet — no new packet was created for it this pass.

  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 1, 2026
  8. 37 remaining items

  9. dezren39
    added
    status/in-progressQueue worker lifecycle state
    on Nov 2, 2026
  10. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: picked_up
    task: 5660 (repo-health-code-pilot, repo-worker-code — OpenChamber scheduled lane)
    state: Claimed via atomic queue claim; resuming at awaiting_ci for PR #4331 opened by this queue task.
    revalidation: Fresh metadata: #3192 is OPEN; PR #4331 is OPEN at prior pushed head 6f3e272. Required checks “basic: guard PR check list” and “native arm64: world snapshot determinism” are still QUEUED; local artifact tests passed 30/30 per checkpoint.
    next: Watch checks for at most five minutes; if still pending, park and resume on fresh CI state.

  11. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  12. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: parked
    task: 5660 (repo-health-code-pilot, repo-worker-code — OpenChamber scheduled lane)
    state: Parked for 20 minutes after the five-minute CI watch.
    artifact: PR #4331, current head 6f3e272.
    ci: Required checks “basic: guard PR check list” and “native arm64: world snapshot determinism” remained pending; CodeRabbit and full nix check were skipped. Targeted local artifact tests passed 30/30.
    resume: Revalidate PR/check state; merge only when required checks are green.
    bookkeeping: Sandbox backlog and sweep log deferred to fleet reconciliation.

  13. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane F
    • Session / ID: task 5660
    • Found via: queue claim (resume awaiting CI)
    • Task: Revalidated task 5660 / PR fix(id): reject non-NFC artifact text #4331 fresh: PR fix(id): reject non-NFC artifact text #4331 OPEN at head 6f3e272; Codex review completed on that head with no findings; targeted artifact tests passed 30/30 in the prior shift. Required checks (basic: guard PR check list; native arm64: world snapshot determinism) are still QUEUED — runner backlog — so this parks instead of merging.
    • Expectation: Parked 20m; resume when checks complete — merge PR fix(id): reject non-NFC artifact text #4331 if green and mergeable, then complete task 5660 as fixed_merged.
    • Links: PR fix(id): reject non-NFC artifact text #4331
  14. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: task 5660
    • Found via: queue claim
    • Task: Non-NFC artifact text rejection for issue id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce #3192 — implementation already on PR fix(id): reject non-NFC artifact text #4331; revalidated fresh.
    • Expectation: Parked 20m on CI. PR fix(id): reject non-NFC artifact text #4331 head 6f3e272 is unchanged, mergeable, Codex clean (per prior checkpoint); the guard PR check and the native arm64 world-snapshot check are still QUEUED (runner backlog), nix flake check skipped, CodeRabbit neutral. Resume: if both checks go green, merge PR fix(id): reject non-NFC artifact text #4331 and complete task 5660; if red, fix on branch queue/5660-3192-nfc-artifact-text.
    • Links: PR fix(id): reject non-NFC artifact text #4331
  15. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane F
    • Session / ID: task 5660
    • Found via: queue claim (resume from awaiting_ci)
    • Task: PR fix(id): reject non-NFC artifact text #4331 for issue id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce #3192 revalidated fresh: PR OPEN, head unchanged at 6f3e272, no hard-stop labels; Codex clean on this head per the review summary. Required checks still pending: basic guard PR check list and native arm64 world snapshot determinism (run 41433055379).
    • Expectation: resume task 5660 when checks finish; merge PR fix(id): reject non-NFC artifact text #4331 if green and mergeable, then complete as fixed_merged.
    • Links: PR fix(id): reject non-NFC artifact text #4331
  16. dezren39
    closed this as completedin #4331on Nov 2, 2026
  17. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — PR #4331 merged

    • Agent: queue worker (repo-worker-code), Lane E shift
    • Session / ID: queue task 5660, completed 2026-11-02T13:56Z
    • Done: PR fix(id): reject non-NFC artifact text #4331 MERGED (merge commit b427900); id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce #3192 auto-closed. SignedArtifact::parsed() now rejects non-NFC document media_type and tag name/value, reusing the existing NFC validation.
    • Evidence: prior lane fresh run: cargo test --lib artifact::tests 30 passed / 0 failed, rustfmt + git diff --check clean. Codex review on head 6f3e272: no findings. PR CI checks still QUEUED in the runner backlog at merge; merged under the standing merge-authority rule.
    • Links: id(artifact): parsed() accepts non-NFC text in document and tag — media_type, tag name and value bypass the NFC rule documents.rs and tag_claims.rs both enforce #3192; PR fix(id): reject non-NFC artifact text #4331; queue task 5660
  18. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.