feat: admin members roster with human spam votes - #187
Merged
Merged
Conversation
Staff get one place to see who joined and what they have done on the site, and to record a human verdict the offline pipeline treats as final. Human votes live on published as person-evaluations records authored by the voter; a spam vote deactivates immediately. Machine evaluations and Slack-derived inputs move to a private repo, so the public data repo never carries message text or LLM prose about people. Also records that heuristic records have no confidence and must be LLM-confirmed before they can prune. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
…Method gitsheets 2.x rejects ':' in a path component, so the May-era `human:<slug>` naming cannot be written. Also drop `lastLoginMethod` from the roster row — session metadata records when a session was issued, not how. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
Register the sheet, keep the records in InMemoryState keyed personSlug/evaluator with a per-person index, apply them through StateApply, and declare the config in every test fixture — gitsheets' openStore is strict about validators whose config is missing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
GET /api/admin/members (newest first, filters, staff-visible email and last sign-in, footprint counts, latest vote), GET /api/admin/members/:slug (full footprint + vote history), POST /api/admin/members/:slug/vote. A spam vote deactivates in the same transaction; a legit vote reactivates only when it reverses a prior spam vote. Every endpoint 404s to non-staff. Votes commit as the voter. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
…ns repo --evaluations-repo points at the private codeforphilly-spam-detection clone; --human-votes-ref (default: the pruned branch) supplies staff votes from the data repo. The latest human vote is final and a human spam vote bypasses the project-membership protection. The operations doc now describes the two-repo layout and the mandatory `evaluate-llm --filter spam` confirmation step. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
Staff-only page: newest signups first, search and vote/sort filters, expandable footprint and vote history, Spam / Not spam buttons with an optional reasoning note. Linked from the user menu for staff. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
themightychris
marked this pull request as ready for review
September 18, 2026 19:30
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ
This was referenced Sep 18, 2026
Merged
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.
Implements
plans/admin-members-moderation.md: staff get one place to see who joined and what they've done on the site, and to record a human spam/not-spam judgment the offline pipeline treats as final.What's here
specs/api/moderation.md):GET /api/admin/members(newest first;q,vote, joined range,includeDeactivated, sort, paging; staff-visible email, last sign-in, GitHub-linked, footprint counts, latest vote),GET /api/admin/members/:slug(full footprint + vote history),POST /api/admin/members/:slug/vote. All 404 to non-staff. A spam vote deactivates in the same transaction; a legit vote reactivates only when it reverses a prior spam vote; self-votes 422; re-voting replaces the caller's record. Votes commit as the voter (Test staffer <staffer@users.noreply…>asserted in tests).person-evaluationsloaded frompublishedintoInMemoryState(personEvaluations+evaluationsByPerson), applied viaStateApply, covered by the hot-reload swap test.specs/screens/admin-members.md):/admin/members— filters, expandable footprint, Spam / Not spam with an optional note, "Hidden by {voter}" state, own row disabled; linked from the staff menu.prune-spamtakes--evaluations-repo(the private clone) and--human-votes-ref; the latest human vote is final and a human spam vote bypasses membership protection.docs/operations/spam-detection.mdrewritten for the two-repo layout and the mandatoryevaluate-llm --filter spamstep.spam-exclusion.md(sources, human-vote-is-final, heuristic-has-no-confidence),person-lifecycle.md(vote-driven deactivate + reversal rule). Evaluator naming ishuman-<slug>— gitsheets 2.x rejects:in path components.Done outside this repo tonight
CFP_DATA_GIT_DIRclone; heuristic dry-run verified in the new layout.spam-detectionand the strayconflicts/*branch deleted from the public data repo (codeforphilly-data Smooth out getting started #5).person-evaluationssheet config added to the data repo'sempty,published, andfixturebranches.Validation
type-checkandlintclean; API 37 files / 460 tests; web 28 / 124. Browser check on sandbox after deploy.🤖 Generated with Claude Code
https://claude.ai/code/session_01LFyA5poHwrhAktrnsKrUiQ