Skip to content

id(web): no property test for the footnote-reference plain-text serialization invariant (PR #6427) #6823

Closed

Description

@dezren39

Finding (unaddressed PR review comment)

PR #6427 (open, "fix(id): render footnote references in plain-text saves") adds footnote-reference rendering to extract_plain_text: every non-empty string label is preserved verbatim inside [^...], without changing surrounding text. Codex flagged that this precise serializer invariant is covered only by fixed examples, while the root AGENTS.md testing doctrine requires property tests for meaningful serializer invariants and says example-based tests do not replace them.

No-response evidence

  • The comment thread has no replies (sole comment in the thread) and the review thread is unresolved (GraphQL reviewThreads verified this run).
  • PR head is unchanged since the review: f21713bd7b3cf5cefc1d4d1cbbc34ebb3e5ea504 (single reviewed commit; fresh gh pr view this run).
  • Comment is now >24h old and the PR is still open, so the open-PR grace period has expired with no fix or reply.

Still-live evidence (verified on PR head f21713b this run)

  • pkgs/id/src/web/routes.rs at the PR head contains no proptest at all (full-file search: zero hits).
  • The footnote coverage is exactly the three fixed examples the reviewer cited: test_extract_plain_text_footnote_reference_between_text_runs (routes.rs:4435), ..._in_recursive_container (:4445), and ..._missing_or_empty_label_is_nothing (:4457).
  • Dedupe: searched open and closed issues by PR number, file path, and keywords (footnote proptest) - no issue covers this coverage gap. Issue id(web): .txt save drops footnote_reference atoms — PR #3274 documented the gap, no follow-up filed #5366 is the parent gap this PR implements; it does not cover property coverage of the new invariant.

Acceptance criteria

  • Add a proptest for extract_plain_text footnote references: generated labels and surrounding text, oracle = expected concatenation with the label preserved verbatim inside [^...], including placement inside recursive containers; or resolve by a documented decision on this issue explaining why example coverage suffices despite the AGENTS.md doctrine.
  • Do not reply to or resolve the source PR review thread from this issue; the fix lands on the PR branch or a follow-up.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 7, 2026
  2. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 7, 2026
  4. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: triaged
    task: 11047
    worker: repo-worker-code
    lane: code-i
    at: 2026-11-08T00:03Z
    note: |
    Verdict: CONFIRMED — the PR #6427 Codex finding (discussion_r4488657879, P1) is still live.
    Fresh evidence this shift (2026-11-08T00:02Z):

    • PR fix(id): render footnote references in plain-text saves #6427 OPEN, head f21713b — unchanged since the 2026-11-06 review; Codex review state on the PR reports has_unresolved_findings=true. No held / user/owned / do-not-merge labels on the PR or this issue.
    • git show f21713b:pkgs/id/src/web/routes.rs — proptest count 0; the footnote coverage is exactly the three fixed examples the finding cited: test_extract_plain_text_footnote_reference_between_text_runs (routes.rs:4435), ..._in_recursive_container (:4445), ..._missing_or_empty_label_is_nothing (:4457).
    • The invariant exists only on the PR branch: current main's routes.rs still calls footnote_reference a known remaining gap (doc comment, main routes.rs:2655), so the property test belongs on the PR branch first.
    • Fix is small: proptest 1.12 is already a pkgs/id dependency (Cargo.toml:180) and is used elsewhere in the crate (artifact.rs, conversion.rs, blob_gate.rs; proptest-regressions/ present) — no new dependency.
      Routing: scoped fix enqueued as task 11366 (small_fix, repo-health-code-pilot) — add the proptest (generated labels + surrounding text, concatenation oracle, recursive-container placement, empty/missing label) on PR fix(id): render footnote references in plain-text saves #6427's branch queue/9381-5366-footnote-reference while open, else on main via a follow-up PR. Per this issue's acceptance, the source PR review thread was NOT replied to or resolved from this triage.
  7. added
    status/triagedTriaged and routed (see agent note)
    and removed on Nov 8, 2026
  8. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (amendment to the triage note above)

  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Picked up by repo-worker-code-v — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-v posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  10. 59 remaining items

  11. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    {"kind":"pickup","task":11366,"worker":"repo-worker-code","lane":"code-g","state":"in-progress","note":"Claimed task 11366. Fresh gh verifies issue #6823 OPEN; PR #6427 is MERGED at current head 2eca00e, so packet directs a follow-up PR to main. Previous Drew-ownership blocker no longer applies; will add test in a new worktree. Review thread discussion_r4488657879 will remain untouched."}

  12. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 12, 2026
  13. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    {"kind":"done","task":11366,"worker":"repo-worker-code","lane":"code-g","state":"done","outcome":"already_done","note":"Verified PR #6427 is MERGED and origin/main contains the requested proptests in pkgs/id/src/web/routes.rs: generated verbatim labels with expected-concatenation oracle, recursive-container case, and the existing empty/missing cases. No change needed; review thread discussion_r4488657879 left untouched. Queue task completed as already_done."}

  14. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Agent: repo-worker-code / any-f
    state: done (triaged — already resolved, closing) (task 18507, lane any-f)
    issue: #6823

    Verdict: the requested proptest exists on main — closing as completed

    Bulk-intake re-triage (2026-11-16 reload), verified fresh 2026-11-17:

    • PR fix(id): render footnote references in plain-text saves #6427 MERGED 2026-11-09T09:05:49Z at head 2eca00e — a later head than the reviewed f21713b this issue's evidence was gathered against. The proptest was added between the review and the merge.
    • The coverage is on main today: code search for the footnote proptest matches exactly one file, pkgs/id/crates/id-web/src/routes.rs (the code moved there in the crate restructure from the issue's cited pkgs/id/src/web/routes.rs), and proptest is present in that file alongside extract_plain_text.
    • This matches task 11366's 2026-11-12 already_done verification (generated verbatim labels, expected-concatenation oracle, recursive-container case); the issue was simply never closed afterward.
    • Per this issue's own constraint, the source PR review thread was not replied to or resolved from here.
  15. removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions