Opened !184, feature/upload-rate-limit → main. Needs a person to merge.
samSep 12, 09:52
Watched it, clicked through the preview. Merging.
Add a note…Status: done ▾Add note
Tests show it runs. Video shows it working.
Every branch gets a live preview and a test run. Each workspace can record its change running in the deployed app.
take.pya take, in the repothe deployed app, recordedMP4chattask
A take is content
The agent writes it, committed next to the feature it shows. The video comes from running it.
Where the MP4 goes
It is posted to the chat and attached to its task.
Captions and fixes
Captions stay readable through the zoom. Fixing one never means re-recording.
A take, and the commands that record it
Without the video tools you still get a recording, without the camera move or captions.
devbench/takes/upload-rate-limit.pynext to the feature
def take(t):
t.goto("/settings/uploads")
t.mark_ready() # everything before this is trimmed off
t.say("Uploads are now limited to 20 a minute per user.", 4.0)
t.beat("[data-testid='upload-form']", "The form itself is unchanged.", 3.0)
t.click("button[type='submit']", after=2.0)
t.beat(".toast", "The 21st request answers 429 with Retry-After.", 3.5)
devbenchinside the container
$ devbench video check
Checks that this container can record.
$ devbench video setup
Installs what recording needs. No root access needed.
$ devbench video new <take>
Scaffold a take next to the feature it shows.
$ devbench video record <take> --notify "…" --task <id>
Record the deployed app, then post the video to the chat and the task.
$ devbench video rerender <take>
Rebuild the MP4 after editing captions. Takes seconds.
Review the diff. Then a person merges.
Changes is the diff before a merge. Git shows what is uncommitted, pushed or in a merge request.
The agent pushes its own branch, never a protected one. The rule is checked in the container and on our server.
The agent opens the merge request. A person approves it, unless an owner allows self-merge for that workspace.
Undoing a merge opens a revert merge request, so it gets the same review.
The git flow, history and the CLI
Changes.Push all commits and pushes every repo. Uncommitted work is not in a merge request.
The git flow. Your organization sets one flow, from start to production. Agents cannot push directly to its branches. Reaching main takes a merge request or a release.
Promotion. Merges promote along your git flow. A release ships one version across every repo.
History is kept. Waiting is the queue; All is everything ever opened.
Self-merge. Off by default. An owner can allow it for one workspace, and every use is announced to the organization.
devbenchinside the container
$ devbench mr status
Uncommitted and unpushed work, per repo.
$ devbench ci
CI runs and releases for this workspace's repos.
$ devbench mr targets
The stages --target accepts, and which are open.
$ devbench mr create --target <stage>
Open merge requests promoting this workspace's branch.
$ devbench mr list
This workspace's merge requests, with ids.
$ devbench mr approve <mr_id>
Land one. Only where the workspace allows self-merge.
$ devbench mr reply <mr> <discussion> "…"
Reply to a review thread.
$ devbench mr resolve <mr> <discussion>
Resolve a review thread.
Changes on this branch2 files, +47 −1
Rate limit rules+41−0
Upload view+6−1
@@ upload view @@- uploads: no limit+ uploads: 20 a minute per user+ over the limit: wait, then retry
Git flowfeature → main
feature/upload-rate-limitthis branchagent may push
mainprotectedagent cannot push
Recent commits
a41c9e Rate-limit uploads, 20 a minute per userauthored as sam
7f02b1 Add per-user upload limitauthored as sam
What the work leaves behind.
Docs that know which answer is current, and shared files with protected links.
security-audit3 documents
Security audit, week 37
Uploads now rate-limited.
supersedesSecurity audit, week 36
answersWho can open a shared file?
Security audit, week 36superseded
Uploads had no rate limit; recommended a per-user limit.
Load test, upload path
Sustained 20 a minute per user holds; bursts above wait within 40 ms.
Write a doc in the app, or publish one from the CLI. Docs are filed under subjects and linked to each other.
Details
Sharing. Share a doc publicly or keep it in the organization.
Subjects.Security Audit, security_audit and SECURITY-AUDIT file under one subject.
How docs relate. A link says how two docs relate: relates to, follows, supersedes, derived from, answers, contradicts. Use supersedes when a newer doc replaces an older one, and contradicts when two disagree.
A summary. Each doc has a summary to read in place of the body.
List and Graph. List answers “where is that document”. Graph answers “what do we know about X, and what replaced what”.
devbenchinside the container
$ devbench doc create <title> --file <path>
Publish a doc and print its share link.
$ devbench doc list
Docs and their share links.
$ devbench doc get <id>
Print a doc's Markdown.
$ devbench doc from-memory
Publish what the agent has learned about this workspace.
Mediaupload-rate-limitUpload
upload-rate-limit.mp4 video4.1 MB, Agent, Sep 12
load-test-results.csv data212 KB, Agent, Sep 12
rate-limit-toast.png image88 KB, Agent, Sep 12
report-q3.pdf file1.9 MB, sam, Sep 11
Protected linkreport-q3.pdf
PasswordExpires in 7 daysOne-time
Opened 3 times, last Sep 12 at 14:02, still works
samopened, Sep 12 at 14:02
alexopened, Sep 12 at 11:40
unknownwrong password, Sep 12 at 11:38
Shared files, with protected links.
Every file gets a public link. For anything sensitive, protect it with a password, a one-time use or an expiry.
Details
The Media tab. Shared files live there, and outlive the container that made them.
Password. The recipient types it in. DevBench can generate one, shown once.
One-time. The link dies after the first download.
Expires. Lapses on a date you set, or after a set time.
Audited. See who opened it, when, and any wrong password attempts.
devbenchinside the container
$ devbench media put <file> -m "<description>"
Share a file from a container; prints a public link.
$ devbench media get <id|name>
Fetch a shared file, from any container.
$ devbench media link <file-id> --password --expires 7d
Make a protected link.
$ devbench media opens <link-id>
Who opened a link and when. Every attempt.
$ devbench media check
Checks that uploads work, and says why one fails.
Set up with you
Start with one real project.
We set up your factory and ship one project from your roadmap.