Repository navigation
feat(tools/discourse): add a read-only Discourse topic bridge - #1755
Open
MakerFlyFly wants to merge 1 commit into
Open
MakerFlyFly wants to merge 1 commit into
MakerFlyFly wants to merge 1 commit into
Conversation
Projects discussing design and governance on Discourse need structured topic context alongside their existing mail and forge sources. Read a topic and its bounded post stream with a stdlib-only CLI. Preserve rendered bodies and server body-replacement markers, and fail explicitly on missing requested posts or malformed responses. Keep optional API credentials within the configured HTTPS forum origin and path. Wire the package into the workspace, adapter inventory and specifications while declaring partial mail-archive coverage. This is the first implementation slice. Additional read commands, confirmed writes and the remaining archive verbs are follow-up work. Generated-by: Codex (GPT-6)
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
magpie-discourse topic view <id|url> [--max-posts N]command for structured forum context.contract:mail-archivewithCoverage: partial; this is not yet a complete/selectable archive backend.Proposed delivery plan
We intend to deliver the broader issue as separate, independently useful PRs.
Each includes its implementation, tests and required documentation/integration.
The sequence and details remain open to maintainer feedback.
Only PR1 is implemented here.
Skill integration, mega-topic pagination and response-byte/total-duration budgets remain follow-up design work.
Type of change
Test plan
prek run --all-files --verbose, including offline lychee and all four workspace hooks: 40 hooks passed; 51 workspace members, 9,374 passed, 361 conditional skips, 4 deselected and 26 passing subtests.truncated: true. No forum writes. The bridge files are unchanged from that verified version.RFC-AI-0004 compliance
Linked issues
Refs #307.
This first slice does not close the broader request.
Notes for reviewers
cookedbody, including posts beyond the output cap. Explicit empty strings, whitespace and placeholders are preserved; missing/null/invalid bodies fail the whole read.body_hiddenrelays the optional booleancooked_hiddenmarker, defaulting to false. It is independent ofhidden; false proves neither original text nor public visibility.truncatedmeans only the post-count limit; it is not a byte or total-time budget. Mega topics without an ordinary ID stream are explicitly unsupported.AI disclosure
AI-generated PR description.
Claude Code assisted the initial prototype; Codex (GPT-6) assisted revisions, tests, validation and PR preparation.
The author has reviewed the implementation and owns this contribution.