Open a Canadian immigration form on a phone and it does not work. The file is an XFA PDF, a form that carries its own validation scripts inside the document, and only desktop viewers run them.

plz wait fills these forms in a browser, on a phone, with the form's own rules translated into code, each translation proving itself before it ships. That is my Kiroween 2026 Resurrection entry: dead technology, running on something it was never meant to run on.

The part worth writing about is not the filling. It is the day my custom agent refused to do its job, and why I kept that refusal instead of working around it.

The problem underneath the problem

A form like this does not just have fields. It has rules, hundreds of them, as JavaScript inside the PDF: this date cannot be in the future, this postal code has to match the country, if you are married this section becomes required. Code that fills the form and ignores those rules is guessing, and the applicant finds out at the counter.

So the real work is translation: find the function that decides something, write what it does as a rule, cite the exact text it came from. Hundreds of times, across several forms, with no realistic way for one person to check by hand.

That is a job for an agent, with one detail attached. An agent that translates a validation script and gets it slightly wrong is worse than no agent, because the wrong answer looks exactly like the right one.

The agent that could not finish

I gave the job to a custom Kiro agent called necropolis-translator, whose personality is its restrictions: three tools, read, write, one MCP server. No shell, no web, no sub-agents. It can write only under the two directories where reviewed translations and shared answers live. Its prompt says blank forms only, cite verbatim, never guess, leave reviewed null, never sign off. tests/agent.test.ts fails the build if any of those limits gets loosened.

Run as a sub-agent, it read both interaction models and proposed four shared answers between two forms: date of birth, country of birth, marital status, occupation. It refused to map ten fields, each with a reason: one name field against a form that wants family and given names separately, spouse details the first form never asks for. It left "Married" and "Unknown" out of the marital status table on purpose, because it could not cite them.

Then it stopped. It could not call propose_shared, the tool that writes the file, because the MCP server in that session had started before the tool existed and had not been restarted. It had write access and could have written the JSON by hand. Its prompt says the file goes through the tool, so it did not write it, and it told me why.

So I wrote the file from the main session, through the same propose_shared code, run from Node, valid, no errors, and replaced one of its reasons with the form's own heading, "Will accompany you to Canada?".

The agent did not complete the task, and the refusal was worth more than a completed file: a file written by hand would have been a file nobody could check.

A citation is a check, not a compliment

The rule it could not break is the one that makes the whole thing work. propose_rule writes a translation only if the path is under the reviewed directory, reviewed is null so an agent can never approve itself, every hash matches the form it claims to come from, every citation appears verbatim in that source, there are at least two test cases with one positive and one negative, every case passes in the real rule engine, and the file is new.

First real use, on 30 November: get_script returned a click script, its SHA-256 matched the hash in the interaction model, propose_rule wrote the rule file, run_rule_tests returned 59 pass and 0 fail.

When an agent writes hundreds of rules, "the model said the citation was there" is not a check. A hash is a check. A verbatim match is a check. Running the case in the engine the form actually uses is a check.

The number I was tempted to hide

The review desk does not say "all rules validated". It says how many rules were taken from the form, how many ran, how many did not, and how many failed. On the judge path it reads 573 rules taken from the form itself, 205 run, 368 not run, 2 failing. The 368 is not a bug report. Some rules cannot be translated without guessing, and an applicant is better served by that number than by a green check that means nothing.

The same instinct applies to the spec process, which failed me once. A task was marked done when its test file did not exist. When I wrote the test, it found dark text on a dark background and tap targets under 44 pixels. The checkbox was not a check. The test was.

Kiro is very good at producing the appearance of progress: a spec with every task ticked, a commit message that says done. What saved this project was refusing to accept that appearance as evidence, which Kiro supports well, because specs, steering files and hooks are all things a test can read.

What Kiro did, and what I did not use

I used Kiro IDE agent sessions on Kiro Auto (the first spec session on claude-sonnet-4.5), driven over ACP from the T3 Code desktop app. Two specs: xfa-revival-core, with requirements written as correctness properties, and necropolis-kit, when the goal became a reusable kit. Eight steering files: five always on, two scoped to paths, one manual. Four hooks. One custom agent. One MCP server with six tools, JSON-RPC over stdio, no SDK.

I did not use Kiro CLI, Kiro Web, Kiro Crew or powers, so I have no first-hand comparison between surfaces, and I won't invent one.

One documented difference changed a decision: a new manual-trigger hook cannot be created in the IDE, so the on-demand mobile end-to-end run became a steering file, .kiro/steering/e2e.md, run as /e2e. The hooks I kept are not all flattering: guardian prints only test failures and has no recorded catch, and summon-plugin's matcher was too broad, so it fired on prompts that had not asked for a plugin.

What actually changed

Before this project the non-negotiables lived in prose and in my head. Now they are rules something can check. Never guess became a hash and a verbatim excerpt on every rule. Show what was not checked became a list on the review screen. Official forms are never committed became a pinned downloader and a test that the shipped bundle contains no PDF.

The agent that could not write its file is the clearest example. Its limits are why I could hand the output to a person and ask them to sign it, and why the signature means something. A tool that can do anything proves nothing about what it did.

This post was written as part of the Kiroween 2026 hackathon.