Skip to content

Fail closed when TES edit_control lookup is Err - #147

Closed
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/edit-control-fail-closed-upstream-adfa
Closed

Fail closed when TES edit_control lookup is Err#147
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/edit-control-fail-closed-upstream-adfa

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown

Five-line proof

  • Entry: TesHydrator::hydrate_tweets get_edit_control (timed_results Found / NotFound / Failed)
  • Sink: omit-from-hydrate → FilterTweets Verdict::unresolved_author Drop
  • Break: Failed assembled as edit_control = None; is_stale_tweet treats None as current
  • Viewer effect: a superseded pre-edit tombstone (labeled old text) still serves
  • Twin: Fail closed when TES NSFW, takedown, nullcast, or media reads error #134 fail-closes TES nsfw / takedown / nullcast / media. edit_control was the leftover.

Genuine NotFound / Ok(None) (never edited) is unchanged.

retain_candidates_with_usable_edit_control drops Failed ids before assemble.

Tests: Found / NotFound / empty batch stay; Failed RPC and timeout drop; retain keeps only usable ids; assemble still collapses Failed to None.

Standalone decision-table harness (same match arms): 12/12 passed.

cargo test cannot run. Public dump has no visibility-filtering crate manifest.

Fork PR: none

A Failed get_edit_control was assembled as None, so is_stale_tweet
treated superseded (pre-edit) tombstones as current. Drop those ids
before assemble. Genuine NotFound (never edited) is unchanged.

Co-authored-by: Jon Bailey <Pitchfork-and-Torch@users.noreply.github.com>
@Pitchfork-and-Torch

Copy link
Copy Markdown
Author

Same class as #145 (TES edit_control fail-closed). Closing this twin so one class has one ship vehicle. Prefer #145 (rules + golden corpus + stale treatment).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants