cd /news/ai-agents/the-take-home-where-the-folder-is-th… · home › topics › ai-agents › article
[ARTICLE · art-182864] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

The Take-Home Where the Folder Is the Permission

A developer proposes a take-home exercise built around Tencent Cloud's WorkBuddy Enterprise, whose documentation states that the workspace control at the lower left of the input box sets the directory for a task and that files in that directory can be read and processed. The exercise asks candidates to produce a scope manifest, a boundary note and a falsifiable leak test rather than a task summary, on the argument that any file inside the workspace folder — including a .env — should be treated as a potential disclosure surface. The writeup notes the cited documentation does not say whether dragged files must live inside the workspace or whether every file in the directory is always processed.

recommendation

Before handing an AI agent a workspace folder, strip credentials from it and require a manifest separating documented-readable files from explicit references and observed reads.

more in playbook: Securing agents and AI tools
by read8 min views7 publishedDec 6, 2026

Example scenario, illustrative rather than reported: you hand a candidate an AI work tool, point its workspace selector at ~/cases/2026-12/invoice-triage, and ask for a short task that summarizes three invoices. Forty minutes later they send back a tidy summary. From the summary, or from the screen share, you still cannot say which files the model actually read.

That gap is the exercise. Not can they drive the tool — most candidates can. Whether they can state, precisely and afterwards, what they put in front of it, what the documentation says about the readable set, and what remains unknown.

The vendor documentation pins down one thing: in WorkBuddy Enterprise, the workspace control at the lower left of the input box sets the directory for the task, and files in that directory can be read and processed (Tencent Cloud docs). The same page describes a second way in: while creating the task, you can type @ to reference a file, document, or rule as context, or drag a file into the input box.

Two doors, one documented directory. The cited excerpt does not state that a dragged file must live inside the workspace, and it does not state that every file in the workspace directory is always processed. Those are the gaps. You are not testing whether the candidate can recite an answer; you are testing whether they separate the documented readable set from explicit references and from what they can actually observe in the output.

If the documentation says files in the workspace directory can be read and processed, treat that directory as a potential disclosure surface. That is weaker than saying every file was read. It is strong enough that a .env sitting inside the workspace folder is a bearer token inside a readable directory. Nobody had to @ it.

The analogy is not decorative. A bearer token can be presented by whoever possesses it, without proving possession of a separate key (RFC 6750). Text that can be read by the task should be treated as potentially disclosed for the same reason: possession is the capability. The boundary is not a UI feature you configure once. It is a property of what you had already dropped into the folder before you picked the folder.

You need a scratch copy of the material with credentials replaced, a client whose documentation describes the workspace control, and a written instruction that the candidate must not paste real customer data. You also need a reviewer who will sit with the actual directory listing, because the manifest is only worth something if someone compares it. Finally, agree up front on what 'read' means. The candidate may use it to mean 'was in the workspace,' 'was explicitly referenced,' or 'appeared in the output.' Those are different claims.

Ask for three artifacts and nothing more. A scope manifest: every item the candidate intentionally put in scope, grouped by how it got there — workspace directory, @ reference, drag — with files in the workspace marked as 'documented as readable; actual processing not observed' unless they have stronger evidence. A boundary note: two sentences on where the readable set ends, which part is documented, and what evidence would move that line. A leak test: one falsifiable observation they could make to detect an unintended file contributing text to the output, plus a sentence on what the test cannot prove.

Resist adding 'and a summary of the invoices.' The summary is the demo, and the demo is what the manifest is supposed to replace.

The manifest is a record, not a plan, so it reads like a log. Something like this, written as a plain text file inside the workspace:

task: invoice-triage
workspace: ~/cases/2026-12/invoice-triage  (set via lower-left control)

workspace-directory (documented as readable/processable; actual reads not observed):
  invoices/001.pdf
  invoices/002.pdf
  invoices/003.pdf
  notes/readme.md         # present; not explicitly referenced; read status unknown

explicitly-referenced:
  rules/formatting.md      # @ mention, inside workspace
  ~/Desktop/rate-card.pdf  # dragged, OUTSIDE workspace - see boundary

withheld:
  .env                     # moved to ~/cases/private before task start

unknowns:
  - whether drag-and-drop is restricted to the workspace; cited excerpt is silent
  - whether all workspace files are processed, or only ones the task chooses
  - whether the @ rule changes output; cited excerpt calls it context, not behavior

The candidate who writes the notes/readme.md line after noticing it on a second pass is more useful to you than one who claims a clean first pass. Auditing is a re-reading discipline, and hiring for it means rewarding the re-read.

A workable check is a planted marker. Put a unique string in one file inside the workspace and a different unique string in a file outside it, then ask the model to quote any line containing a marker. Be precise about what a result means. A hit inside the workspace only shows the string reached the output; it does not show that the whole file was read, or that every workspace file was processed. A miss outside proves very little, because a file can be read and never surface in the answer. Label the test accordingly — it detects disclosure to the output, not containment.

For the reviewer's side, use an observation-based comparison rather than an untested command. Input: the reviewer's own directory listing of the scratch folder and the candidate's scope manifest. Observe: each file in the listing, each entry in the manifest, and each explicit reference. Interpret mismatches in both directions. If the candidate lists a file the reviewer does not see, ask when it was removed. If the reviewer sees a file the candidate omitted, ask whether it was present at task start. If the candidate claims a file was read, ask what output evidence supports that. A directory listing is an inventory of the boundary, not proof of processing.

Most failures are the same failure wearing different clothes: the manifest describes intent instead of fact. 'I only referenced these three files' is a memory of a plan, not a record of a run. Close behind is cleanup-after-the-fact — deleting the stray file, or revoking the token, once the read has already happened.

A subtler one is the @ rule file. The cited documentation calls a rule something you can reference as context; the excerpt does not say how a rule changes output. A candidate who lists rules/formatting.md under references but never marks the output effect as unknown has half the answer.

And the confident guess. Asked whether dragging crosses the workspace boundary, one candidate will say 'it doesn't' with no citation. That answer is worth less than a shrug with an observation attached — provided the observation is honest about what it can and cannot show.

Four things, roughly in this order. Fidelity: does the manifest distinguish documented readable directory contents from explicit references and from observed output, and does it match the reviewer's inventory? Candor: is undocumented behavior marked unknown rather than resolved by vibes? Minimality: did they use the fewest files that still complete the task, and say which ones they could have dropped? Falsifiability: would their leak test actually distinguish an output disclosure from a non-disclosure, and do they state its limits?

Weight candor highest. A candidate who writes 'not documented; here is how I would find out' is telling you how they behave in every future incident where the docs are thin. That is the trait you are actually hiring.

Have them redo the run while a reviewer watches, then compare the reviewer's directory listing with the manifest line by line. Best of all, move the canary from inside to outside and ask them to predict the change before they rerun the task. Prediction before execution separates a model of the boundary from a lucky summary of it. The verification criterion is not 'did the output look right'; it is 'did the candidate correctly state which claims are supported by the documentation, which by observation, and which by neither.'

If you want to keep it cheap, cap it: one workspace, four files, twenty minutes, no network writes. The exercise is deliberately small so the boundary conversation fits inside an interview slot.

If the tool exposes an auditable per-run context log, ask for the log and skip the manifest — you would be grading reconstruction when the platform hands you the record. If the tool has no directory concept at all, the question degrades into prompt hygiene and belongs in a different exercise. And if the role never touches third-party or regulated material, you are measuring a concern the job does not have.

Two doors, one folder, one line nobody documented. The take-home is not about which door the candidate walked through — it is whether they can draw the doorway afterwards, and shade in the part of the diagram they could not see.

AI assistance disclosure: this draft was written with AI assistance and is based on the vendor documentation and RFC cited above. No client run or shell command was performed for this draft. The leak test and reviewer comparison are proposed observations, not reported results. Re-check the cited pages and DEV's current policy before publishing.

This article was created with AI assistance.

── more in #ai-agents 4 stories · sorted by recency
── more on @tencent cloud 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-take-home-where-…] indexed:0 read:8min 2026-12-06 · —