Iaroslav Kozlov Русский

Tandem How this site was made

How this site was made

A static site written by AI agents to my brief: Astro, a fog drawn by its own WebGL2 program, a tight Content Security Policy, and mutants that test the tests.

My work

I made this site with my agents: Claude wrote the code, Codex checked it, blind auditors looked for what both had missed. What it says and how it looks are my choices.

How it is built

This layout is real: it is how this site is made and released.

data control My part

When a rule is broken

  • The build ends with an error at the rule that refused it, and the release stops there.
  • What is live stays the version that passed.
  • A rule taken out on purpose is how its test is checked: the mutant must make that test fail, here as in the tests.

Components

Press a component to read what it does.

Owner direction

Says what the site is for and what it must not say, approves what it shows, and decides on every release.

References Refero

Styles and screens of real sites, studied before a page is designed.

Claude the only author

Writes every line, runs the build, the tests and the mutants, and records what was decided.

Codex in rounds

The checker from OpenAI: its own view first, then a challenge, a review and a verification.

Auditors code, frames

Read-only helpers that look at the code or at frames of the pages, each through its own lens, without seeing Codex’s answer.

Source Astro, WebGL2

The pages, the copy in two languages, the stories with their sources, and the fog’s own program.

Tests Playwright

The built site opened in a desktop and a phone profile, in both languages; mutants put faults in to see that the tests catch them.

Build and gate rules, budget

Builds the pages and checks what it built: markup, styles, scripts, the header file, the size of the scripts.

Cloudflare pages, Worker

Serves the built pages, and runs the Worker that takes the letters from the contact page.

  1. Direction

    Each of my requests goes into the plan in my own words, with its date. What I have approved is not changed on a vague request, and what I asked to take out goes.

    My part The direction: what the site says, what it shows, and what it leaves out.

    In detail

    The plan of the sections keeps every request as it was said, what was done for it, and how it was checked. A line about my work comes from my CV or from what I have confirmed: until I answer, it is not written.

    Where it breaks A request read too widely changes what was approved: a vague word is asked about, not guessed.

  2. References

    Before a page is designed, the styles and screens of real sites are studied through Refero: several of them, so that none is copied whole.

    In detail

    A style is a site’s visual language; a screen is a concrete pattern. A direction is fixed before the code: what to keep, what to borrow, what to reject. Among the skills used on this site: refero-design for design research, scrollytelling, ru-text for the Russian copy, brainstorming, systematic-debugging, and find-skills-online for finding new ones. 6

    Where it breaks The two ways it goes wrong are copying one reference whole and averaging several into a bland middle, so one direction leads and the others lend only details.

  3. The code

    A static site on Astro, a fog drawn by its own WebGL2 program, and a tight CSP: scripts and styles from the site itself only, no style attributes, Trusted Types with no policy allowed.

    In detail

    Astro builds every page in advance; the browser gets HTML, CSS and a few small scripts. The fog is a field of particles that takes the forms of the sections and, at the top of the first page, my figure, drawn from my photo. The CSP starts from default-src 'none', allows scripts and styles from the site’s own origin only, forbids style attributes, and requires Trusted Types while allowing no policy: in a browser that enforces Trusted Types, a plain string handed to innerHTML throws. 1 23

    Where it breaks The scripts share one budget, 21.5 KB in all after Brotli: a new effect has to fit in it, and it is raised only on my word, as by a kilobyte for the particle text on the letter-sent card.

  4. Tests and mutants

    Mutants put specific faults into the source, and the tests must catch them: for the pages, a script rebuilds the site with the fault and runs the test named for it, which must go red.

    In detail

    Playwright opens the built site in a desktop profile and a phone one, a Pixel 7, in both languages. There are two suites of mutants, 427 in all: 154 change the gate, the header policy, the contact Worker, the code display or the release scripts, and some test of that file’s suite must fail; 273 change the pages, their scripts, their styles or the fog, and each rebuilds the site and runs the test named for it. The particle text on the letter-sent card alone has 52, each failing its own assertion. 4

    Where it breaks A test nobody has seen fail may not test what it says; and a test can fail on a correct page: a rare failure is traced to its cause before anything is changed.

  5. Cross-checks

    Codex checks in rounds: its own view before it sees mine, then a challenge, a review and a verification against criteria written down. Blind auditors look for what both missed.

    In detail

    One test, a window resized while the fonts are on their way, failed once in about 270 runs. Three auditors looking apart named the same cause: the test held the page’s clocks a frame after the cover went up, and a long task in that frame let the page take the cover away, as designed. A probe proved it: with 700 ms of work at the cover’s insertion, the old hold lost the cover in four runs of four, and a hold set in the same task as the cover kept it in four of four.

    Where it breaks Agreement is not proof: a claim that can be checked gets a reproducer or a targeted check.

  6. The gate

    The build checks what it built: the markup, the styles and the scripts against the site’s rules, the header file against its policy, the scripts against their budget.

    In detail

    The gate walks the built files: no inline script or style, no fetch, location or innerHTML in the scripts, the policy’s headers in the _headers file, all the scripts together under budget. Its own tests carry the hostile inputs each rule must refuse. 2

    Where it breaks A rule the gate does not have is not checked, and the files are not the host: what the live site really sends is asked of the host after a release.

  7. Release

    A release builds the site for its own address, checks that nothing in it points at a placeholder, and only then hands it to Cloudflare.

    In detail

    The deploy script stops before anything is sent if the address is missing or a placeholder, if the Worker’s routes reach past the site’s host and its www twin or cover only part of it, if the sender of the letters is not an address of that domain, or if the built pages do not name the address as their own. The form on the contact page posts to a Worker of the site, with two limits: about five letters a minute from one network and about ten from everyone together; without either limiter nothing is sent. 5

    Where it breaks What the build cannot see is asked of the live site: a script requests the pages, the headers and the form’s address from the host itself, since a host can ignore _headers or rewrite pages on the way out; a letter is sent by hand.

The whole diagram

How this site was made

Every component and step of the figure, drawn at once; the page lists them in text.

data control My part

Next story

Claude + Codex tandem

Implementation and independent review split between two models: Claude coordinates and is the only author of code; Codex, from another maker, runs read-only and researches, challenges, reviews and verifies.

Inside Claude + Codex tandem Tandem