Skip to content

fix(knowledge): video-digest X preflight misclassifies nonexistent and link posts, and 0-entry runs write a false README #6821

Closed

Description

@kyle-sexton

Severity: medium (P2 medium; P7 and P8 low; probe severities, uncalibrated)
Readiness: needs-decision. Telling a removed post from a 0-video post needs a classification decision; the README part is mechanical.

Summary

Three X-source defects from runtime probes: a nonexistent status preflights ok and then every watch reports it as rate-limited ("retry later"), so it never leaves the queue; a post that links a YouTube video preflights transient with a "No suitable extractor" note although the spoke says such posts take the ok row; and a 0-entry transcript run writes a README listing source/transcript.txt, which is never written.

Failure scenario

  1. Preflight https://x.com/dexhorthy/status/1000000000000000001 (nonexistent id). Expected unavailable/reject per the queue spoke. Actual ok/enqueue, then acquisition exits 1 with X acquisition degraded (rate-limited syndication fallback is a partial response, retry later): {"warningSeen":false,"countsMissing":true,"entryCount":0,"possibleMultiMediaCollapse":false}.
  2. Preflight a post that links youtu.be/.... Expected ok/enqueue. Actual transient/enqueue with note preflight: No suitable extractor found for URL https://youtu.be/....
  3. Run transcript on a post with no video. Expected a README that says no video entries were found. Actual: README Artifacts lists source/transcript.txt; only README.md exists; transcriptDegradation is null.

Evidence

  • Missing counts are classed as rate-limit degradation: adapters/x.js:358-370, message at :628.
  • Queue spoke: removed or 404 is reject/unavailable (watch-queue.md:156); a 0-video post takes the enqueue/ok row (watch-queue.md:164-167).
  • Preflight maps any non-fatal error to transient: preflight-metadata.js:146; delegation-refusal pattern: adapters/x.js:66.
  • Static README list: write-transcript.js:87-105.
  • Bare yt-dlp on the nonexistent id returns title twitter video #1000000000000000001 with null uploader, description and counts; without --ignore-no-formats-error it exits 1 No video could be found in this tweet, the same text a 0-video post gives.
  • Not exercised: a post that was deleted (as opposed to never existing), login-required posts, multi-video posts.

Suggested fix (cheapest first)

  1. Build the README Artifacts list from what was written; say "no video entries" for a 0-entry post.
  2. Classify the delegation-refusal pattern as ok with an empty-media note in preflight.
  3. Decide how to detect a removed post (for example, null uploader, description and every count together means unavailable), and cap degraded retries for one id.

Audit reference: plugin-quality audit run 20261010T195441Z, findings P2, P7, P8 (runtime probe 6). Validated against main 28a5541cbb91f5ca0aeb3c361ebafbde4c0c0b41.

🤖 Generated with Claude Code

Activity

  1. added
    needs-owner-decision
    needs-triage
    on Oct 10, 2026
  2. github-actions commented on Oct 10, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    on Oct 10, 2026
  4. added theissue type on Oct 12, 2026
  5. removed
    needs-triage
    on Oct 12, 2026
  6. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner approved applying independently verified recommendations on 2026-10-12.

    Three X-source defects: a nonexistent status preflights ok and then loops as 'rate-limited, retry later'; a post linking a YouTube video preflights transient; a 0-entry transcript run writes a README listing a transcript that was never written. All three code paths are unchanged on main.

    Verification notes:

    • Assumption 'a real 0-video post always carries a non-null uploader' is false for link posts: reference/sources/x.md:70-75 says a link post yields no info JSON, only the status id and refused link. It does not break the heuristic because link posts take the preflight error path (delegation refusal), but the fix must classify the delegation refusal as ok before any null-tuple check.
    • Assumption that a deleted post yields the same null tuple is unverifiable (not probed); the retry cap bounds it.
    • Line drift: preflight classifyPreflightFailure is at ~148, write-transcript README list at 233-236, watch-queue reject row at ~158.

    Verified by an independent fresh-context check (confirmed, risk low): origin/main extraction/adapters/x.js:355-372 (countsMissing), :624-630 (retry-later message), :66 (DELEGATION_REFUSAL_PATTERN); origin/main extraction/acquisition/preflight-metadata.js:138-150; origin/main extraction/transcript/write-transcript.js:222-236 (static Artifacts list); origin/main context/watch-queue.md:150-168; origin/main reference/sources/x.md:60-75; git log on the three scripts: no fix merged

    Admission to an agent lane stays with the work-class rules and owner ratification.

  7. removed
    needs-owner-decision
    on Oct 13, 2026
  8. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Owner batch-ratified this admission in an attended session on 2026-10-12: work-class: scoped. Rule: class C1-C3, no trust surface, the independent check confirmed the recorded decision, and no owner step remains.

  9. added
    agent-ready
    needs-human
    and removed
    needs-human
    agent-ready
    on Oct 13, 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

    agent-ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions