Skip to content

feat: read-only Roadmap publication-history loop guard (#109) - #110

Open
xLagerFeuer wants to merge 1 commit into
mainfrom
issue-109-publication-loop-guard-20261123
Open

xLagerFeuer wants to merge 1 commit into
mainfrom
issue-109-publication-loop-guard-20261123

Conversation

@xLagerFeuer

Copy link
Copy Markdown
Member

Scope (partial implementation of #109)

Adds a read-only prior-publication history/loop guard over existing authoritative fork-local Roadmap cases and append-only events. Does not create or replace a publication ledger, regrade Index, grant permission to publish, or send external messages.

  • New scripts/publication_history.py: reuse roadmap_view.py current verified opensiro/meta case discovery, read case publication receipts / explicit historical README publication markers and append-only publish events; distinguish original_issue, fork_issue, original_discussion and PR channels, never count generic referenced original Issues/PRs as OpenSiro publications. Preserve immutable receipt/event/commit provenance.
  • Live source checks: GitHub REST original/fork Issues/PRs and bounded comment readback, including author, bot vs human, dates, status and hash mismatch; optional read-only GitHub GraphQL query for Discussions. No token/403/404/truncated/error => UNVERIFIED, not zero/false success.
  • New bounded candidate preflight: ALREADY_PUBLISHED for a second post of the same case and channel, REUSE_EXISTING for exact prior OpenSiro-original title, POSSIBLE_OVERLAP for related prior case or native Issue, NEW_PROPOSAL only for scoped checked evidence, and HISTORY_UNVERIFIED when source/history/search is incomplete. A public fork Issue and original Issue are different separately approvable actions. Supports explicit --candidate-delta; cross-repository keyword resemblance is advisory rather than an automated semantic equivalence claim. CLI nonzero for blocked/unverified findings.
  • Documented as an additional check in PROTOCOL.md, README.md, and docs/PUBLICATION_HISTORY.md. Requires the existing full native Issue/Form payload preview and separate exact owner consent, and rechecks immediately before any approved public POST. No S5 delegation.

Tests / proof

  • python3 -m unittest discover -s tests -p 'test_*.py' -q: 259 tests PASS, including 20 new deterministic offline cases: real historical event field shapes (OpenCode fork/original; Gas Town external issue; Cline Discussion), README-only proof vs dated NOT_PUBLISHED, original links vs publications, same-channel renamed repeat, distinct fork/original actions, bot replies, malformed/truncated/failed provider reads, SHA changes, and search errors.
  • python3 -m py_compile scripts/publication_history.py: PASS.
  • git diff --check: PASS.
  • Git object SHA for all five files compared against local source before creating the reviewable branch: MATCH.

Known limitations / remaining #109 work (do not mark fully complete)

  • Full live end-to-end CLI projection of 4 pilot forks could not be verified in this environment: GitHub REST from the external command runtime returned HTTP 403 / transient DNS failures (full error coverage and scan_complete=false returned, not a false empty successful scan). GitHub authenticated API sources were independently inspected when developing Issue Roadmap publication loop guard: reconstruct prior Issues/Discussions and dedupe proposals before external approval #109; this PR has offline deterministic test evidence, not a live full-portfolio attestation.
  • Historical upstream-old / full Git-tree replay and unlinked older publications/other publishers remain incomplete: historical_inventory_complete=false by design. Author-limited original Issue search is not an exhaustive historical inventory.
  • Original first-party Issues searches do not cover all Discussions/PRs; those candidate channels are HISTORY_UNVERIFIED without separate verified channel review. Product-native semantic equivalence and maintainer intent remain human decisions. The preflight is read-only and is not a substitute for current original source/native-template/PR checks.
  • A token is needed for the read-only GitHub GraphQL Discussion query; if missing/unavailable, that discussion status is UNVERIFIED. No automatic publication or external replies have been added.

Review focus: evidence provenance, bounded pagination/unknowns, same-case multi-audience semantics, future source-native channel checks, avoiding false novelty and duplicate external contact.

Relates to #93 and #98; implements an initial bounded portion of #109 without closing remaining checklist items.

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.

1 participant