Repository navigation
Conversation
The kernel-luau fixture's quiet() switched the process to --json and left it there, so updatecheck.test.ts (which uses it and has no reset) left json mode on for init-backend.test.ts, whose bless test then took the JSON path and failed in the full run. (The audit blamed progress.test.ts, which already resets in afterEach.) Audit 2026-12-05, C6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… right prompt The remote gateway prefixed body.id with remote/<device>/ on every POST, including /tt/claude/deploy and /tt/claude/cancel, where it is the dev-server's prompt id: the request failed (over 64 chars, or a 404 upstream). The prefix now applies to plugin routes only, as the query-string id already did. Prompt ownership stays with the paired Roblox user (claudeUser). Audit 2026-12-05, C2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… it signed for approveProposal signs with the stricter of the proposal's channel and typetorch.json's current one, but approveCommand passed the proposal's stale channel to waitSeconds, waitAfterRelease and autoRefreshBackup: a branch moved to prod after proposing got no default wait, no backup refresh, and an unsigned (refused) auto-rollback. Both now use approvalChannel(). Audit 2026-12-05, C3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build.ts honoured project.config.minify and the darklua warning suggested it, but config.ts didn't know the key: it warned `unknown key "minify" (ignored)` and dropped it, so prod payloads were minified anyway. Now a known boolean key on ProjectConfig (a non-boolean is an error); README updated. Audit 2026-12-05, C4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t made Two runs that saw the same stale lock both rmSync'd "it"; the second could delete the lock the first had just created, and both ran. removeStaleLock moves the file aside atomically, checks it is the lock it judged stale (each lock's text holds its pid and creation time), and puts a live one back with a hard link (never over a newer lock). Audit 2026-12-05, C5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
serve's QuickTunnel removes its temp folder on stop (and writes the empty config again on each spawn); backend run removes each tunnel start's folder once its cloudflared exits. Audit 2026-12-05, O3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
resignHeads took each prod branch's head from this machine's deployments.jsonl only. On a machine whose log is behind (CI or another PC deployed since), it re-signed and published the older asset with a new seq: a rollback. It now reads the kernel's DataStore heads first: - a live head with a higher seq (or the same seq on another asset) than the local one: that branch is not re-signed (failed, with the fix: run keys resign where it was deployed); a live head that lags (no server since) is fine - a prod branch live in the DataStore but absent from the local log: a warning (it isn't re-signed here) - heads unreadable with a deploy key: every branch fails closed (keys resign retries) - no deploy key: a warning, then the old behaviour (proposals; approving needs the key) Stored heads are unsigned data, so a game-written one can only block a re-sign, never cause one. Audit 2026-12-05, C1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Correctness fixes and one optimization from the 2026-12-05 audit (
.audits/cli-2026-12-05.md, written by Gemini). Every finding was checked against the code first. The security findings are in the companion PR (fix/audit-2026-12-05). The two branches merge cleanly.Findings
keys rotate/resignre-sign from the local log only: possible prod rollbackreadHistoryis local-onlyresignHeadsreads the kernel's DataStoreheadsfirst. A live head newer than the local one (higher seq, or same seq on another asset) is not re-signed: it fails with the fix. A live head that lags is fine. A prod branch that is live but missing from the local log gets a warning. Heads that can't be read with a deploy key make every branch fail closed. With no deploy key there is a warning, then the old behaviour. Forged heads can only block a re-sign, never cause onebody.idwas prefixed withremote/<device>/on every POST/tt/plugin/*only (as the query-string id already did). Prompt ownership still comes from the paired Roblox userapproveuses the stale proposal channel for--wait, rollback and backupapprovalChannel()is shared byapproveProposalandapproveCommand"minify": falsedropped as an unknown keyProjectConfig; a non-boolean is an error; README updatedremoveStaleLock: rename aside atomically, check it is the lock that was judged stale, and put a live one back with a hard linkjsonModeleak failsbun testprogress.test.tsalready resets. The leak came from thequiet()fixture, used byupdatecheck.test.tsquiet()restores the previous mode; the bless test sets its ownrojo buildper buildindex.tsbackend runremoves each start's folder when cloudflared exitsrbxmWriter byte-by-bytereadHistorynaming, duplicated helpersNeeds your call
resignproposal still checks only the local log at approval time (approveProposal). The live-head check runs when the proposal is created. Adding it at approval too would need the deploy key there, which approval already uses.Test results
bunx tsc --noEmit: passbun test: 912 pass, 4 skip, 0 fail (the bless test that fails on main passes here)bun run build: pass.node scripts/smoke.mjs: all smoke checks passed.🤖 Generated with Claude Code