Repository navigation
Bradley/stackbench test - #5766
Draft
bradleyshep wants to merge 715 commits into
Draft
bradleyshep wants to merge 715 commits into
bradleyshep wants to merge 715 commits into
Conversation
Contributor
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
bradleyshep
force-pushed
the
bradley/stackbench-test
branch
from
August 31, 2026 17:38
6a1eb7d to
dc1a416
Compare
bradleyshep
force-pushed
the
bradley/stackbench-test
branch
from
September 7, 2026 20:22
32d3018 to
837c1f7
Compare
…dence scopes - The cross-origin probe measures an application that blocks the response with CORP; the stored write still decides the check. - Appliance admission skips a run whose ports Docker cannot publish and stops on any other Docker error. - The L3 calibration's evidence must cover exactly each stack's reference and mutation scopes plus the null control, however many targeted reruns it has. Each new case fails when its fix is removed.
The owner chose to keep Claude Code on --bare, which offers only Bash, Edit and Read. Web search now defaults off for every agent, as all four ran in StackBench 1.1, so turning it on is its own condition. A campaign that includes Claude Code and turns web search or subagents on is refused at compile time, and run-build and the Claude adapter refuse it too, so no run records a tool its agent could not have. Claude's arguments are again exactly the 1.1 ones.
- An extension treats a parent planned without a recorded tool policy as the defaults, so pre-policy parents still match. - Run validation refuses a run whose setup.tools differs from its plan. - The broker drops Google's hosted search and URL tools from Antigravity requests when web search is off. - subagents: true is refused for every agent, at compile time and in run-build, until a test shows a subagent's shell calls reach the audit. - The leak check matches the tools/stack-bench path on any host, so mirrors count, and searches naming the StackBench pull request.
… state The three other stock alert checks now give a delivery 75 s plus 15 s, like the direct-write check, so a once-a-minute sweep passes all four. The buy-now live check gets the same 10 s as the other live checks instead of the 5 s default. The last-unit check reads client stock after a reload, since it measures stock integrity and live propagation has its own checks. The stock alert pack budget is provisional until measured.
…drifted docs docs/stack-bench.html now covers how a run works, the prompt, sandbox, grading, checks, scoring, how checks are proven, fairness rules, cost, study design, current results, limitations, a FAQ, and a glossary. The README lists Supabase and every agent adapter, the fix proposal records the stock-alert privacy fix, and grading coverage describes restarts, crashes, and stock reads on all five stacks.
Colors, fonts, logo, and the text-page head and numbered section headings follow the stackbench.org brand. The page is light only.
Each mechanism is one sentence followed by the lines that implement it, read from commit 6c65947 and linked to GitHub at that commit.
Each concept has a short explanation and a small diagram, every claim has code chips that open the cited lines from commit 6c65947, and a search box filters claims, answers, and the code behind them.
This branch has not been deployed
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.
Description of Changes
This PR adds Stack Bench, a reproducible benchmark for coding agents building applications against SpacetimeDB, PostgreSQL, and MongoDB.
Benchmark definitions and grading
passed,failed,inconclusive, orharness_failure.Ecommerce benchmark
Runs, repairs, and campaigns
CLI, dashboard, and appliance
SpacetimeDB TypeScript SDK
TableReffrom an anonymous readonly type alias to a readonly interface with the same members.TableRefis used incorrectly.ConnectionManagerreconnects to reuse the identity token previously issued by the server.TableRefdiagnostics.SpacetimeDB CLI
spacetime devto retain configuration changes made during direct-login publishing.SpacetimeDB skills
API and ABI breaking changes
This PR changes the public Rust signature of:
spacetimedb_cli::publish::exec_from_entryThe function now accepts
&mut Configinstead of takingConfigby value. External Rust callers must pass a mutable reference. The API-breaking label should be applied unless the previous entry point is preserved through a compatibility wrapper.The exported TypeScript
TableRefdeclaration changes from a type alias to an interface while retaining the same readonly member contract.Automatic TypeScript client reconnection also changes behavior by presenting the identity token from the previous successful connection.
Expected complexity level and risk
3 / 5
Most of the implementation is isolated under
tools/stack-bench. The principal risks are benchmark correctness, evidence integrity, concurrent resource isolation, interrupted-run recovery, Docker cleanup, and credential handling.The TypeScript reconnect change and
spacetimedb-clihelper signature are the only changes outside the benchmark and skill directories.Testing
TableRefregression tests: 4/4 passed.cargo check -p spacetimedb-cli.exec_from_entryRust signature.