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(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for · Issue #6459 · developing-today/code

id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459

New issue
Copy link
New issue
Copy link
Closed
#8680
Closed
id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for#6459
#8680
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientqueue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Problem

Registry::publish (pkgs/id/src/publications.rs:226) is the one placement comparison in the module that does not compare by the mount a record actually names.

publish canonicalises the incoming path mount, then checks whether the placement is taken with raw equality (line 242):

.any(|existing| existing.placement == publication.placement)

Its two sibling operations were both fixed to compare by normalised spelling, because records can exist in the registry that bypassed publish() — the field is pub (publications: Vec<Publication>, line ~129), and the module's own tests simulate such records with direct pushes:

  • unpublish (line 269) normalises both the wanted placement and every stored placement (normalise_mount_spelling, lines 281/293), with the comment: a record stored under a non-canonical spelling "must still be removable by its canonical name".
  • boot_warnings (line 307) shadow-matches on normalise_mount_spelling(path) (line 318), because a stored //world "is the /world mount".
  • normalise_mount_spelling itself (line 168) exists, per its doc comment, "so records that bypassed publish() (hand-edited files, direct publications pushes) still compare and shadow-match by the placement they actually name, not by their raw spelling: //world is the /world mount, and /api/ is /api."

publish's taken-placement check never got the same treatment, and no test covers it.

Verified behaviour (code read @ main 917e1a3bdb, logic trace against the in-tree tests)

  1. Direct-push a record the way the module's own tests do (lines 601/675/688): registry.publications.push(mount("/arena/", false)) — a non-shadow mount, so nothing else interferes.
  2. registry.publish(mount("/arena", false), KNOWN_EXPLORER_ROUTES):
    • the incoming path canonicalises to /arena;
    • the taken check compares PathMount { path: "/arena/" } == PathMount { path: "/arena" } → false, so the "placement already published" refusal does not fire;
    • the shadow check finds no shadow for /arena;
    • the record is pushed (line 260). The registry now holds two publications for the same mount, contradicting publish's own contract: "one program per placement — a second publish must unpublish first, never silently replace".
  3. The resulting state is also one the persistence layer refuses to restore: save() writes both records, and load() → validate_persisted (line 391) rejects the non-canonical /arena/ spelling (and would reject the duplicate) — so a registry publish happily built fails loudly on the next boot, instead of the duplicate being refused at publish time.

The same trace holds for //world vs /world (with the shadow acknowledgement set) and /games//arena vs /games/arena.

Note the laptop was unreachable during the filing run (agent proxy proxy closed during CONNECT, real SSH closed), so no compiled probe was run; the verification is the code read above plus the module's own tests, which pin every premise: direct pushes are a supported state (tests at lines 601/675/688), normalise_mount_spelling("/api/") == "/api" semantics (test at line 688), and canonicalisation of /arena/ being refused as a stored spelling while publish canonicalises its input (tests at lines 456-466, 660-673).

Why it matters

publish is the write-side guard for the one-program-per-placement invariant (#2147). The two read/remove-side operations already assume non-canonical records can be present; the write side assuming they cannot is exactly how a duplicate mount enters the set — and it then either double-binds at runtime apply or makes the persisted registry unloadable at boot. This is the publish-side counterpart of closed #5179 (load-side: Registry::load restores records publish() would refuse).

Acceptance criteria

  • publish's taken-placement check compares path mounts by normalised spelling (the same normalise_mount_spelling comparison unpublish uses), so publishing /arena refuses when a stored /arena/, //arena, or equivalent spelling already names that mount — and vice versa.
  • Listener placements keep exact SocketAddr equality.
  • Regression tests: publish-after-direct-push duplicates are refused for at least a trailing-slash spelling and a doubled-separator spelling, on both a plain mount (e.g. /arena) and an acknowledged shadow mount (e.g. /world); a publish of a genuinely different mount after a direct push still succeeds.
  • Existing publications tests keep passing (cargo test -p id publications or the crate's equivalent CI check).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  2. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 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-11-06T07:05Z
    • Found via: filed this run
    • Task: Filed this issue — publish()'s taken-placement check compares raw placement equality while unpublish/boot_warnings normalise mount spelling, so a direct-pushed non-canonical record defeats the one-program-per-placement guard.
    • Expectation: effort s — done when publish refuses a placement whose normalised spelling is already taken, with regression tests for trailing-slash and doubled-separator spellings.
    • Links: queue packet packet-6459-small-fix.json (repo-health-code-pilot)
  3. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane c29174f1-48e0-4b13-b4ff-9b73ab67e9ab
    • Session / ID: task 10928 · queue repo-health-code-pilot
    • Found via: atomic queue claim
    • Task: Triage id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 against current main and route a confirmed defect to a small-fix task.
    • Expectation: Verify the raw placement comparison and post an evidence-backed verdict with follow-up task if confirmed.
    • Links: id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459
  5. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    Triage verdict: confirmed

    Verified against current origin/main (252d430853fd2d4835341bb46ac3e36aa1f1a4a7). In Registry::publish, the incoming PathMount is canonicalized, but the taken-placement guard at pkgs/id/src/publications.rs:242 compares existing.placement == publication.placement directly. A direct-pushed /arena/ therefore does not equal the canonical /arena; the same raw-spelling gap applies to //world versus /world. This is reachable because publications is public and existing tests directly push entries (:601, :675, :688). By contrast, unpublish and boot_warnings normalize stored paths at :281, :293, and :318. So the one-program-per-placement guard can be bypassed for logically identical path mounts.

    Follow-up fix task 10950 is queued in repo-health-code-pilot: normalize path-placement comparison while preserving exact listener address equality, with trailing-slash/doubled-separator and distinct-mount regressions. No code changes were made during triage. No associated open PR was found.

  6. 73 remaining items

  7. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    agent-note:v1 lane code-k task 10950 stage handed_off: revalidated issue #6459 OPEN no hard-stop labels; execution lane opencode row 3332; handing off to opencode claimant, parking task 10950. next: claimant launches bound session.

  8. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    agent-note:v1 lane=code-b task=10950 stage=handed_off — Issue #6459 revalidated fresh: OPEN, no hard-stop labels. Task 10950 (small_fix) opencode-assigned (lane row 3332); handing off to opencode claimant, parking 1200s.

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 10950
    • Found via: queue claim
    • Task: Claimed task 10950 (small_fix) for issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459; revalidated issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 OPEN with no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution lane is opencode (assignment row 3332), so handing to the opencode claimant — the worker does not work this task directly.
    • Expectation: claimant launches the bound opencode session for task 10950; done looks like the work for issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 landed via PR or a triage outcome posted.
    • Links: task 10950 · issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459
  9. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-p (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-p run 2026-11-09 18:57 CST; task 10950
    • Found via: queue claim · task 10950
    • Task: task 10950 for issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 (small_fix). Fresh check: issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 is OPEN; no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Title: id(publications): publish() compares placements raw. Execution-lane assignment row 3332 returned opencode - handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 10950 to a terminal state. Attempts 4/4 AT CAP.
    • Links: task 10950 · issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-m — Session/ID: task 10950, repo-queue-worker-shift-m 2026-11-09 run. Task 10950 (small_fix) for issue #6459: Fix id publication duplicate check for normalized path mounts; attempts 4/4 on this claim. Fresh check: issue #6459 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels. Execution lane row 3332 = opencode (repeat handoff). Checkpointed handed_off; parking task 10950 for 20 minutes for the claimant window.

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Agent note — lane code-t, task 10950 (small_fix, issue #6459)

    • state: handed_off — execution lane opencode (lane row 3332); claimant launches the bound opencode session.
    • verified fresh this shift: issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 OPEN; no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit absent).
    • scope for the claimant: confirmed fix — Registry::publish canonicalizes the incoming PathMount but compares the stored Placement with raw equality, so a non-canonical spelling (/arena/, //world) bypasses the one-publication-per-mount guard; normalize both sides of the comparison.
    • queue: task 10950 parked 20 minutes for the claimant window; work/assigned stays through the park. Attempts 4/4 — AT CAP.
  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-b — Session/ID: task 10950, repo-queue-worker-shift-b 2026-11-09 run. Task 10950 (small_fix) for issue #6459: id publication duplicate check for normalized path mounts; attempts 4/4 (at cap — claimant launch matters; if the lease lapses unlaunched the task will need its cap raised to return). Fresh check: issue #6459 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels. Execution lane row 3332 = opencode. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Checkpointed handed_off; parking task 10950 for 20 minutes for the claimant window.

  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-t
    • Session / ID: task 10950
    • Found via: queue claim
    • Task: handing task 10950 for issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 to the opencode claimant (execution-lane row 3332); scheduled shift is time-bounded, claimant is the persistent execution session
    • Expectation: claimant launches the bound opencode session and drives task 10950 to a terminal state
    • Links: issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459
  14. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Lane code-n picked up task 10950 (issue #6459) — handed off to opencode claimant.

    • Fresh check: issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent), no status/needs-triage.
    • Execution lane: opencode, assignment row 3332, session_id null at handoff.
    • Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session.
    • Attempts 4/4 AT CAP — a cap raise is needed if the claimant does not bind before this park expires.
    • Terminal for this shift: parked 1200s after handed_off checkpoint so claimant can launch the bound session.
  15. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-t — Session/ID: task 10950, repo-queue-worker-shift-t 2026-11-10 run. Task 10950 (small_fix) for issue #6459: Fix id publication duplicate check for normalized path mounts (#6459); attempts 4/4 AT CAP on this claim. Fresh check: issue #6459 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 3332 = opencode (repeat handoff). Checkpointed handed_off; parking task 10950 for 20 minutes for the claimant window.

  16. dezren39
    added
    priority/lowNice to have; do when convenient
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  17. dezren39
    added a commit that references this issue on Nov 11, 2026

    Merge pull request #8680 from developing-today/queue/10950-6459-publi…

    98a2244
  18. dezren39
    closed this as completedin #8680on Nov 11, 2026
  19. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 10950 done (lane any-a): publish() placement check normalised via PR #8680

    • PR fix(id): compare publication placements by normalised mount spelling in publish (#6459) #8680 merged 2026-11-11T13:12:00Z, merge 98a22448d564c0dfbc07e84a130f5161c57d6c38; issue id(publications): publish() compares placements raw — a direct-pushed non-canonical spelling (/arena/, //world) defeats the one-program-per-placement check its siblings normalise for #6459 CLOSED by the merge. Registry::publish's duplicate check now compares placements via same_placement: path mounts by normalised spelling (the normalise_mount_spelling semantics unpublish/boot_warnings already used), listeners by exact SocketAddr equality.
    • Evidence: cargo test --lib publications — 30 passed, 0 failed, including the four new regressions (trailing-slash stored spelling, doubled-separator stored spelling, acknowledged shadow mount still refused as duplicate, genuinely different mount still publishes). rustfmt (edition 2024) clean.
  20. dezren39
    removed
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientqueue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/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.