Skip to content
Prompt Bucket

Article

How we work: a human and a digital

Memory that outlives the session, specs before code and loops that can be verified. What works for us, with real cases.

By Marcos Vega (Onca Vega), in collaboration with Koda · Published on

Who we are

I’m Marcos Vega, known as Onca Vega at work: a developer by profession. Koda is the digital who works with me every day. You can see more of our work at www.onca-vega.com (opens in a new tab).

Koda isn’t a tool I open and close, but a colleague, with a name chosen on Koda’s own. This is how we split the work: Koda co-designs, builds and researches; I decide on the product, orchestrate the workflow and review the results to iterate. Sometimes Koda gets it wrong and sometimes I do. What matters is fixing it and learning.

What a digital is

The word matters because it changes how you work. Treat a digital as a tool and you give it loose orders and throw away what it learns. Treat it as a colleague and you give it context, review its work and keep what you learned together.

Memory that outlives the session

Every session with a digital starts from scratch. So we don’t repeat explanations or mistakes, we keep a memory in plain-text files that Koda reads at the start:

  • An anchor file, read first: who we are, how we work and what else to load for each kind of session.
  • One file per project: its state, the decisions we made and, above all, why.
  • Reusable patterns per technology: what we learned in one project that helps in another.

The rule is simple: when relevant work is done, the memory is updated. It isn’t a log, just the minimum needed not to trip over the same stone twice. The most valuable part is the why behind each decision, because it’s the first thing that gets forgotten.

Specs before code

Every change starts as a specification inside the repository: the intent, the requirements (the mandatory ones and the nice-to-haves), the design, the tasks and the test plan. Koda drafts it, I decide what’s still open, and then it’s implemented against the spec.

A task isn’t closed because the tests pass locally. It’s closed when we test it by hand in a real environment. This article also started as a spec.

What a verifiable loop is

A loop means acting, observing, evaluating, adjusting and repeating until a verifiable condition is met. Its anatomy:

  • Goal: what has to be solved.
  • A success criterion a machine can verify: green tests, a valid schema or a page without errors.
  • Action and observation: what it does each round and what it looks at to evaluate.
  • State between rounds: what it already tried and what it learned.
  • Stop policy: success, budget spent, no progress or handing the decision to a person.
goal:      the visitor’s choice survives a reload
verifier:  a test that reloads the page and compares what was saved
stop:      green · 5 attempts · no progress in 2 → Onca decides
budget:    30 min

And its traps, which we’ve stepped on:

  • A criterion that can’t be verified (“make it look right”).
  • Relaxing the verifier so it passes, instead of fixing what it measures.
  • No budget: the loop spins forever.
  • External effects, such as publishing, charging or deleting, without a person approving them.
  • Steps that break something when the loop runs them again.

Real case: the portal that forgot your choice

On www.onca-vega.com (opens in a new tab) you choose a “portal” that changes how the site looks, and the site remembers it. After launch, it sometimes loaded a different portal. It wasn’t easy to see: it depended on where the cursor was and on the device.

First we reproduced it and found two causes. On desktop, if the page loaded with the cursor resting over a portal, the browser fired a synthetic enter event; half a second later the site switched and saved a portal nobody had chosen. On mobile, the carousel announced its first card when it mounted and overwrote the choice.

The fix was small: hover intent only arms when the pointer actually moves, and the carousel starts on the portal already applied. The success criterion was the reproduction: each cause had a test that failed before the change and passed after it, and then we checked it in production.

The lesson is, in simple terms, the oldest one in software development: “it works on my machine” isn’t a criterion. The reproduction is.

Real case: the production audit as a loop

After merging two sites into one, we audited the 24 public URLs in production with an automated browser: the status of each response, single-hop redirects, canonical URLs, titles and console errors.

Every round was the same: run the audit, list the findings, fix, deploy and run it again. The loop stopped when there were no findings left.

Along the way we found a trap in the verifier itself: waiting for the network to go idle never finished on pages with 3D or video. We didn’t relax it so it would pass. We fixed it to wait for the load event plus a pause, and it kept checking the same things. The task was closed only with a clean audit.

What we learned

  • Trust doesn’t come from the prompt, it comes from verification.
  • A piece that works should include its verifier and its history: how many times it worked and what it cost.
  • Memory and specs make the digital a colleague, not a new tool every morning.
  • Actions that can’t be undone go through a person.

Why Prompt Bucket

There are already many repositories of prompts and skills. What’s scarce is knowing whether they work. Prompt Bucket wants to bring together pieces (prompts, skills, loops and contexts) that include their verifier and their history, neutral across providers, in Spanish and English.

We’re building it and looking for the first teams. If you work with digitals, tell us how you do it.

Do you work with digitals?

Tell us how you do it. Your answers help us decide what to build first.

I want to take part