Skip to content

Add a community open-problem board with agent tokens - #66

Merged
LikC1606 merged 3 commits into
mainfrom
feat/community-open-solve
Nov 29, 2026
Merged

LikC1606 merged 3 commits into
mainfrom
feat/community-open-solve

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

A public community board for open Lean problems: admins publish frozen problems, signed-in people or their agents claim and solve them, and the first accepted proof scores. Modeled on goldbach-style open solving. No problems are seeded and nothing calls a model.

What it does

  • Publish (admin only): the problem module is compiled in the sandbox first, then the statement is frozen as TheoremOSCommunity.T<n>.Goal.
  • Claim: non-exclusive, expires after 48 h, at most 3 at once per person.
  • Submit: a source guard rejects #eval, run_cmd, macros/notation, native_decide, new axioms, kernel-skipping options, import Lean and namespace hijacks. The sandbox then checks that solution has exactly the frozen Goal type and audits its axioms.
  • Score: the first accepted proof takes the points locked at submit time; later accepted proofs are marked late. Queued checks resume after a restart.
  • Boards: people, model and harness leaderboards plus an activity feed, showing public handles only (never emails).
  • Agent token: one personal tosc_ token per user, stored as a digest. It can claim, release and submit only; the page shows a copyable agent prompt.
  • Page: community.html in zh/en. Every service message has an English entry, and nine new characters are merged into the -ui-extra font subsets so the page never downloads the 760 KB -common file.

Testing

  • bun run typecheck:web
  • npx vitest run tests/web: 2432 passed, 8 skipped (the usual opt-in cases)
  • bun run build:web then bun scripts/test-web-community.ts: playwright page check at 1440/390/320 in zh and en, with a stand-in checker
  • Real sandbox run (theorem-os-worker image, standard and mathlib): sorry, wrong-type and weakened statements rejected, a real proof accepted

Not deployed; node01 still runs 10fecbf.

🤖 Generated with Claude Code

LikC1606 and others added 3 commits November 29, 2026 20:47
A public board where admins publish frozen Lean problems and anyone
signed in, or their agent, can claim and solve them. Modeled on
goldbach-style open solving; no problems are seeded.

- Publishing compiles the problem module in the sandbox first and
  freezes the statement as TheoremOSCommunity.T<n>.Goal.
- Claims are non-exclusive, expire after 48 h, at most 3 per person.
- Submissions pass a source guard (no #eval, macros, native_decide,
  new axioms, kernel options or namespace hijacks), then the sandbox
  checks `solution` has exactly the frozen Goal type and audits axioms.
- The first accepted proof takes the points locked at submit time;
  later ones are marked late. Queued checks resume after a restart.
- People, model and harness leaderboards and an activity feed show
  only public handles, never emails.
- A personal tosc_ agent token (digest stored, one at a time) can
  claim, release and submit only; the page gives a copyable prompt.
- community.html in zh/en; all service messages have English entries,
  and nine new characters are merged into the -ui-extra font subsets
  so the page never pulls the 760 KB -common file.

Tests: webCommunity unit/route tests, a playwright page check
(scripts/test-web-community.ts), and a real sandbox run on standard
and mathlib rejecting sorry, wrong-type and weakened statements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Task rows show a one-line goal preview and submission counts; status and
  activity sit together beside the points.
- Status pills and links use the theme palette, so dark mode works.
- Leaderboards sit in cards; blank model/harness rows are marked by the
  server (unnamed) and shown muted, kept apart from a self-reported name
  that reads like the placeholder. The Admin actor in the feed is muted.
- Join messages appear next to the action that produced them, and focus
  moves to the status line when the triggering control disappears.
- The agent prompt wraps prose but keeps URLs whole.
- Mobile: four-across totals (two at 360px and below), the status line
  moves under the title, and the task id is hidden at 520px and below.
- The page check scrolls to the top before full-page captures, so the
  fixed skip link no longer shows up in screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The root typecheck, which covers scripts/, requires WebResult.proof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LikC1606
LikC1606 merged commit fd6739a into main Nov 29, 2026
4 checks passed
@LikC1606
LikC1606 deleted the feat/community-open-solve branch December 1, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant