Non-destructive apply + reaction-based scoring#4
Open
dsfaccini wants to merge 1 commit into
Open
Conversation
Two capabilities for running braindump incrementally against a repo: - `apply --into <repo>`: merge generated AGENTS.md / agent_docs into a target repo, replacing only the content between the braindump markers and preserving hand-written content outside them. Topic docs are now fenced too, so nothing braindump writes clobbers manual edits. - Reactions as a human verdict on review comments. `download` fetches reactor attribution for comments that have reactions. A 👍 reclaims a filtered bot autoreview comment as human-vetted signal; the net thumbs signal boosts (endorsed) or penalizes (vetoed) a rule's score, so an endorsed single-PR rule can clear the floor and a vetoed rule drops below it. `--reaction-authors` restricts which logins count.
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.
Two capabilities that make braindump usable incrementally against a live repo, rather than as a one-off dump.
1.
apply— non-destructive merge into a repogeneratewrites to staging (data/<owner>/<repo>/7-generate/). The newapplycommand merges those files into an actual repo without clobbering hand-written content:Every generated file is fenced between
<!-- braindump: ... -->and<!-- /braindump -->. On merge, only the fenced block is replaced; content above/below is preserved. If the target has no markers the block is appended; if it doesn't exist it's created. Topic docs underagent_docs/are now fenced too, so nothing braindump writes clobbers manual edits — this applies uniformly to every generated.md. Files braindump doesn't generate are never touched.2. Reactions as a human verdict on review comments
A 👍/👎 on a review comment is an explicit human verdict — the highest-precision signal in the pipeline.
downloadnow fetches reactor attribution for any comment that has reactions (only reacted comments are queried, so it's cheap). It feeds two things:github-actions[bot],coderabbitai[bot], …) are normally filtered out. A 👍 reclaims one as human-vetted signal, so you can curate a bot reviewer's output just by reacting to the good comments.--reaction-authors alice,bobrestricts which logins count (default: anyone). Reactions are captured atdownloadbut the allowlist is applied atextract, so changing it only needs a re-run from extract.Notes
calculate_rule_score, recomputed on dedupe merges (combiningreaction_netacross merged rules);place/group/generateinherit it with no changes.0/empty when absent.<!-- rule:ID -->markers — block-level merge already protects hand-written content; edits inside the fence are still overwritten.