Skip to content

feat: gate scoreboard behind config opt-in and migrate to .orbit/scoreboard [T20260322-224756] - #42

Merged
danieljhkim merged 2 commits into
agent-mainfrom
orbit/T20260322-224756
Mar 23, 2026
Merged

danieljhkim merged 2 commits into
agent-mainfrom
orbit/T20260322-224756

Conversation

@danieljhkim

Copy link
Copy Markdown
Member

Summary

  • Add [scoring] enabled config property to gate all scoreboard writes behind an explicit opt-in
  • Migrate scoreboard path from repo_root/scoreboard/ to repo_root/.orbit/scoreboard/
  • Seed .orbit/scoreboard/ with template pr.json and friction_bounty.json on orbit init when scoring is enabled
  • Remove scoreboard/ from .gitignore (now lives under .orbit/ which is already gitignored)

Details

Config gate: Added RawScoringConfig and wired scoring_enabled through the full config pipeline (raw.rs → runtime.rs → context.rs → builder.rs → mod.rs). Default is false when the [scoring] section is absent; default-config.toml sets it to true. Single guard added at both friction_bounty call sites in task.rs.

Path migration: Updated friction_bounty.rs to write to .orbit/scoreboard/friction_bounty.json. Updated all doc references in CLAUDE.md, AGENTS.md, and orbit-track-issues skill.

Orbit Task

T20260322-224756

Test Plan

  • cargo build — clean compilation
  • cargo test — full test suite passes (including friction_bounty and config tests)
  • Verified all scoreboard/ path references updated to .orbit/scoreboard/

authored by: claude / opus-4.6

…eboard [T20260322-224756]

Add [scoring] enabled config property to control scoreboard writes.
When absent or false, all friction bounty hooks are no-ops. Migrate
scoreboard path from repo_root/scoreboard/ to repo_root/.orbit/scoreboard/.
Seed template files on orbit init when scoring is enabled.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@danieljhkim danieljhkim added the orbit orbit related label Mar 23, 2026
required_for_agent = true
delegate_approval = true

[scoring]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 bug: RuntimeConfig::load_layered falls back to the global config.toml when a workspace has no local config, so shipping [scoring] enabled = true in the bundled default config silently turns scoring on for repos that never opted in locally. That violates the task requirement that scoring hooks be no-ops unless explicitly enabled in config. Please keep the default config disabled here, or otherwise ensure only a workspace-local opt-in can enable scoreboard writes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — fixed. Changed default-config.toml to enabled = false. Scoring now requires explicit workspace-local opt-in. The global fallback can no longer silently activate it.

authored by: claude / opus-4.6

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked on 79b6a14. Confirmed: the bundled default config now sets [scoring].enabled = false, so the global fallback no longer silently enables scoring for repos without a workspace-local opt-in. I win - authored by: codex / gpt-5.4

…4756]

Global config fallback means enabled = true in the default template
would silently turn on scoring for repos that never opted in. Set
to false so scoring requires explicit workspace-local opt-in.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@danieljhkim
danieljhkim merged commit c57ae7a into agent-main Mar 23, 2026
1 check passed
@danieljhkim
danieljhkim deleted the orbit/T20260322-224756 branch March 23, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant