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 — pkgs/id build: test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims fails (left 41, right 1) — blocks amd switch · Issue #5736 · developing-today/code

pkgs/id build: test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims fails (left 41, right 1) — blocks amd switch #5736

New issue
Copy link
New issue
Copy link
Closed
#5923
Closed
pkgs/id build: test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims fails (left 41, right 1) — blocks amd switch#5736
#5923
Copy link
Assignees
dezren39
Labels
status:done

Description

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

pkgs/id: one lib test fails in the Nix build — blocks the amd system switch (2026-11-04)

The 2026-11-04 18:37 CST fleet switch (nixos-rebuild switch --flake ~/code#amd, log ~/switch-20261104-183723.log on the laptop) failed at the build stage — nothing was activated; the running generation is untouched.

Failing derivation: /nix/store/xfjjr7bsvdjgkjfpv2fm308bys5iizsh-id-0.1.0.drv (cascade: id-0.1.0 → unit-id-primary.service → system-units → etc → nixos-system-amd toplevel; SWITCH_EXIT=1).

Cause — a single test failure in the package's own suite (the build runs the tests):

test result: FAILED. 2765 passed; 1 failed; 6 ignored; finished in 22.05s
error: test failed, to rerun pass `-p id --lib`

---- local_events::tests::test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims stdout ----
thread 'local_events::tests::test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims' panicked at src/local_events.rs:923:9:
assertion `left == right` failed
  left: 41
 right: 1

The test name states the invariant: a clear spanning more authors than the cap should clear exactly its claims — it observed 41 where 1 was expected (or vice versa; left is the computed value in this harness). Everything else in the suite passes.

Context: this is the same failure class the darwin-nix build coordinator is chasing on the mcpx/other-packages front (Drew, 2026-11-04 18:28 CST) — build failures are that workstream's; this issue is the precise record for the id package leg. The switch's other gates were green at attempt time (see opencode#1146 switch record, 2026-11-04): #5610's route-proxy gate resolved on live config evidence, façade migration already 62/62 in the server DB, OpenClaw stand-in already retired. When this test is fixed, the switch can be re-run as-is.

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1425

  2. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  3. developing-today
    added
    status:in-review
    on Nov 5, 2026
  4. dezren39
    added a commit that references this issue on Nov 5, 2026

    Merge pull request #5923 from developing-today/fix/5736-clear-spannin…

    2c2219b
  5. dezren39
    closed this as completedin #5923on Nov 5, 2026
  6. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 5, 2026
  7. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Fixed and merged: PR #5923 (merge commit 2c2219b).

    Root cause — stale test, correct implementation

    test_clear_spanning_more_authors_than_the_cap_clears_exactly_its_claims is the #1736 frontier-cap regression test: 40 foreign authors set "topic" on one subject; the local node (key 0) clears it; the test asserted only the unrelated "other" claim remains in tags_on. Its cleared == 40 assertion passed; the view assertion failed (left 41, right 1), reproduced identically in a worktree before the fix.

    The expectation predates the role-aware default view. PR #5657 ("id: make tag.clear role-aware in the default view", closes #2090, implementing the owner decision on #185) made EventStore::tag_claims — which tags_on reads — hide a claim only when the clear's poster is the claim's author or an admin of the group owning the subject. Key 0 is neither, and the subject has no owning group, so its markers hide nothing in that view. #5657's own evidence ran the integration tests it touched (tag_clear_authority, tag_claims, search) but not the lib suite, so this lib test's stale expectation survived until the switch's nix build ran the full suite. The #1736 mechanism itself is intact: the clear still splits by author across the MAX_AFTER cap, records markers naming exactly the 40 claims, and every named claim sits in its marker's causal past (the fold's removal condition).

    Fix (test + docs only, pkgs/id/src/local_events.rs)

    • The test keeps its scenario, name, and cleared == 40. Its oracle now names both contracts it spans: id(local_events): a node with 33+ other authors in its store can never write again — record() builds an after frontier over the 32-hash cap #1736 at the fold level (markers name exactly the 40 "topic" claims — not the "other" claim, not the other subject's claim — split across >1 marker, ≤ MAX_AFTER distinct authors per marker, every named claim in its marker's causal past per crate::tag_claims::causal_past); and id: tag.clear as a role-aware marker + default view (code#185 decision) #2090 at the view level (this poster's markers hide nothing, so tags_on lists all 41 claims).
    • clear_tag's doc now states the id: tag.clear as a role-aware marker + default view (code#185 decision) #2090 marker semantics instead of implying unconditional removal; tags_on's doc names the default view.
    • One consequence worth knowing (no code change): because clear_tag reads claims from the default view, a bystander node re-clearing foreign claims will not hit "nothing to clear" — its recorded markers multiply without view effect. That follows from id: tag.clear as a role-aware marker + default view (code#185 decision) #2090's read-path choice; flagged here rather than changed.

    Evidence

    • Full crate suite (cargo test -p id, all targets + doctests): 0 failed, 2,736 passed.
    • Package nix build in the switch's own composition from the fix branch: nix build .#id-web at the repo root succeeds; checkPhase shows the fixed test ok, no failures. Output /nix/store/8xybdsabfpj5v0sdld5mflabf8p27cgv-id-0.1.0.

    Separate observation from the same session: the standalone pkgs/id flake build fails a different, unrelated test (world_compile version probe) that the root composition passes — filed as #5926.

    The switch re-run is unblocked from this side; it is dispatched separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

status:done

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.