You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a dedicated epic for repo rules, checklists, gates, and implementation discipline around mandatory @read-the-room before writing code.
This is the hard anti-bot-slop rule:
Before any code change, the implementer must run/read through @read-the-room over the relevant local refs and upstream canonical sources.
Canonical ONLY:
find the shape upstream
find how upstream tests it
read why they do it that way
map local change to upstream pattern
then write code
The repo is now moving from ad hoc workflow repair into a TypeScript control-plane, app-auth, classifier, privacy, and generated-artifact system. That creates high leverage and high failure risk.
Bots must not write local cleverness from vibes.
Required sequence:
read local refs
-> read local issue/acceptance context
-> find upstream canonical implementation shape
-> find upstream tests/fixtures
-> understand why upstream chose the shape
-> map upstream shape to local constraints
-> write smallest coherent patch
-> prove with tests/gates
Skipping this is how we get YAML taxidermy, fake TypeScript architecture, and another month-long hole dug by a bot that thought a filename was evidence.
Hard Repo Rule
No implementation PR is acceptable unless it includes an explicit @read-the-room evidence block.
Minimum required block:
## @read-the-room evidence### Local refs read-[ ] AGENTS.md
-[ ] relevant issue body and comments
-[ ] relevant workflow/source/test files
-[ ] relevant docs under docs/ or .github-stars/docs/
-[ ] relevant .sisyphus proofs/plans if present
### Upstream canonical refs read-[ ] first-party docs
-[ ] upstream source implementation
-[ ] upstream tests/fixtures/examples
-[ ] upstream rationale/design note/changelog if available
### Mapping- local requirement -> upstream shape -> local adaptation -> proof
### Evidence labels- direct evidence:
- weak inference:
- unsupported/blockers:
No block, no merge.
Scope
This epic governs every implementation surface touched by the control-plane work:
app token minted
checkout with app token succeeds
write/PR path uses app identity
fallback modes still work or are explicitly gated
summary reports auth mode and token source without leaking secrets
Privacy hard block: private repos in public output
Required upstream refs:
GitHub repository visibility field docs/API behavior
GitHub stars/user starred repo API docs if used
GitHub Actions log/artifact behavior docs if relevant
Required tests/gates:
sentinel private repo fixture
public output repo blocks private identifiers
classifier input excludes private records
logs/summaries/artifacts/issues/PR payloads scanned for sentinel
unknown output visibility fails closed
AI classification / model output validation
Required upstream refs:
actions/ai-inference docs if still used
GitHub Models / inference docs if used
schema validation library docs if used
upstream examples for structured output or typed parser strategy
Required tests/gates:
invalid JSON rejected
wrong repo returned rejected
unknown taxonomy rejected
contradicted language tag rejected or needs_review
raw model output cannot directly mutate repos.yml
TypeScript control-plane shape
Required upstream refs:
package docs for tsx/typescript/vitest used by repo
Vitest test patterns for fixtures and snapshot/inline assertions if used
schema validation package docs if introduced
existing Juvenal repo shape as local inspiration, not blind copy
## @read-the-room checklist-[ ] I read the relevant local refs.
-[ ] I read the relevant issue bodies/comments, not just titles.
-[ ] I found the upstream canonical implementation shape.
-[ ] I found how upstream tests or validates this shape.
-[ ] I read upstream rationale or inferred the rationale from first-party code/tests/docs and labeled it.
-[ ] I mapped upstream shape to local constraints.
-[ ] I documented deviations from upstream.
-[ ] I added/updated local tests matching the invariant.
-[ ] I ran the relevant gate.
-[ ] I included evidence labels in the PR body or completion comment.
Required Evidence Table
Every PR must include this table:
Local change
Local refs read
Upstream canonical source
Upstream test/fixture read
Local adaptation
Proof/gate
Required Evidence Labels
Use these labels in PRs and completion comments:
Direct evidence: exact local file, issue, upstream doc/source/test, command output, workflow run, or artifact.
Weak inference: plausible mapping from direct evidence but not literally proven.
Unsupported: claim not grounded in read evidence.
Blocked: required source/file/tool unavailable.
Contradicted: direct evidence conflicts with the implementation claim.
Repo Rules To Add
Add these to AGENTS.md or equivalent repo instruction file:
Mandatory @read-the-room rule:
Before writing code, read local refs and upstream canonical sources.
Search hits, file names, snippets, and issue titles are candidate evidence only.
No full read, no material claim.
No upstream canonical shape, no implementation claim.
No tests/gates, no done claim.
Canonical-only rule:
Prefer first-party docs/source/tests over blogs, snippets, or LLM memory.
Privacy rule:
Public output repo must never surface private repo identifiers or metadata.
Evidence rule:
Every material claim must be labeled direct evidence, weak inference, unsupported, blocked, or contradicted.
Gate Ideas
Add automated gates where feasible:
PR template contains @read-the-room checklist
PR body includes evidence table
PR mentions upstream canonical refs for certain touched paths
privacy sentinel tests run for public-output surfaces
workflow grep blocks implicit STARS_TOKEN || GITHUB_TOKEN fallback
workflow grep blocks raw model JSON mutation path
Possible path-based enforcement:
Changed path
Required evidence
.github/workflows/**
GitHub Actions upstream docs and workflow test/summary proof
src/auth/**
GitHub App/auth docs and auth resolver tests
src/privacy/**
visibility/API docs and sentinel leak tests
src/classifier/**
structured output/parser docs and classifier fixtures
src/generated/**
artifact/provenance docs and generated registry tests
AGENTS.md
linked issue and canonical doctrine mapping
Milestone Shape
Suggested milestone name:
Control Plane: Evidence-Gated Implementation
Suggested epic checklist:
-[ ] Add PR template with @read-the-room checklist
-[ ] Add AGENTS.md repo rule for mandatory local/upstream reads
-[ ] Add evidence table requirement
-[ ] Add path-based PR guidance
-[ ] Add privacy sentinel gate from #74-[ ] Add auth resolver/app token proof gate from #69-[ ] Add classifier raw-output rejection gate from #71-[ ] Add bot naming/permission ledger docs from #73-[ ] Add CI check that refuses obvious missing PR checklist fields if feasible
-[ ] Add examples of valid and invalid PR evidence blocks
Acceptance Criteria
Dedicated docs/rules exist requiring @read-the-room before code changes.
PR template or equivalent requires local refs, upstream canonical refs, upstream tests, mapping, deviations, and proof.
AGENTS.md tells agents not to code before read-the-room evidence exists.
Upstream-first canonical rule is documented.
Path-based implementation guidance exists for auth/privacy/classifier/workflow/generated-artifact work.
Do not block the first app-token PAT replacement on full automation of every gate.
Do not accept generic "read docs" language without requiring actual refs and evidence labels.
Do not let agents cite their memory as upstream canonical source.
Definition of Done
github-stars has an enforceable repo rule: every implementation begins with @read-the-room over local refs and upstream canonical sources, every material claim is evidence-labeled, and every PR maps local changes to upstream shape, upstream tests, local adaptation, and gate proof before code is accepted.
Goal
Create a dedicated epic for repo rules, checklists, gates, and implementation discipline around mandatory @read-the-room before writing code.
This is the hard anti-bot-slop rule:
Parent: #69
Related: #42, #54, #71, #73, #74
Why this exists
The repo is now moving from ad hoc workflow repair into a TypeScript control-plane, app-auth, classifier, privacy, and generated-artifact system. That creates high leverage and high failure risk.
Bots must not write local cleverness from vibes.
Required sequence:
Skipping this is how we get YAML taxidermy, fake TypeScript architecture, and another month-long hole dug by a bot that thought a filename was evidence.
Hard Repo Rule
No implementation PR is acceptable unless it includes an explicit
@read-the-roomevidence block.Minimum required block:
No block, no merge.
Scope
This epic governs every implementation surface touched by the control-plane work:
Mandatory Local Read Set
Before changing code in this repo, read the relevant local context.
Baseline local refs:
Mandatory issue refs by topic:
Do not treat issue titles as proof. Read bodies/comments where needed.
Mandatory Upstream Canonical Rule
For every feature, find upstream canonical shape before local implementation.
Canonical source priority:
Forbidden sources as primary authority:
The implementer must record why the upstream shape was chosen and where local constraints require deviation.
Required Upstream Research by Feature Area
GitHub App auth / PAT replacement
Required upstream refs:
Required tests/gates:
Privacy hard block: private repos in public output
Required upstream refs:
Required tests/gates:
AI classification / model output validation
Required upstream refs:
Required tests/gates:
TypeScript control-plane shape
Required upstream refs:
Required tests/gates:
Workflow summaries / artifacts / provenance
Required upstream refs:
Required tests/gates:
Required @read-the-room Checklist For Every PR
Every implementation PR must include:
Required Evidence Table
Every PR must include this table:
Required Evidence Labels
Use these labels in PRs and completion comments:
Repo Rules To Add
Add these to
AGENTS.mdor equivalent repo instruction file:Gate Ideas
Add automated gates where feasible:
Possible path-based enforcement:
.github/workflows/**src/auth/**src/privacy/**src/classifier/**src/generated/**AGENTS.mdMilestone Shape
Suggested milestone name:
Suggested epic checklist:
Acceptance Criteria
AGENTS.mdtells agents not to code before read-the-room evidence exists.Proof Required
Completion comment must include:
AGENTS.mdor repo rules showing canonical-only/upstream-first instruction.Non-Goals
Definition of Done
github-starshas an enforceable repo rule: every implementation begins with @read-the-room over local refs and upstream canonical sources, every material claim is evidence-labeled, and every PR maps local changes to upstream shape, upstream tests, local adaptation, and gate proof before code is accepted.