neenv

The practice: written rules that let agents build and run it

The problem

Everything else in neenv is a commodity part. What usually holds the parts together is a team: people who remember why a thing was built, who check each other's work, and who know which change needs whose word. This estate has one person who decides and several AI agents who do the work. An agent starts each session with no memory of the last, writes with the same confidence whether or not it is right, and will build more than was asked unless something stops it.

The practice is the set of written rules that stands in for the team. Most rules were written after a failure they would have prevented, and each is short enough for an agent to read before it acts. Where a rule can be enforced by a machine, it is; the rest rely on the agents reading them, which is why the independent checks below exist.

Words used here. The decider is the one person who decides what exists. An agent is an AI model working in its own session on the applications it owns. A door is an address a program calls, such as an API endpoint. The consumer of a piece of work is whoever uses it.

Who decides what

Evidence

Done

Development and production

The independent eye

Records

The drill

drill-done.sh is the "done" rule as a script. The consumer calls the door it was promised with its own certificate; the same call with no certificate, and with another consumer's valid certificate, must be refused.

./drill-done.sh https://api.example.org/v1/things consumer.pem consumer.key other.pem other.key

./drill-done.sh selftest shows it on a machine with nothing else set up. It makes a throwaway root, two consumer certificates and three local doors, and removes them all afterwards:

-- the promised door, which admits only this consumer: must pass
ok    with the consumer's certificate: 200 (reach)
ok    with no certificate: the TLS handshake refused the certificate (refused)
ok    with another consumer's valid certificate: 403 (refused)
DONE  the consumer reaches the door, and the door refuses everyone else
-- a promised door that does not exist: must fail
FAIL  with the consumer's certificate: 404, a promised door that does not exist
ok    with no certificate: the TLS handshake refused the certificate (refused)
-- a door that admits any certificate from the root: must fail
ok    with the consumer's certificate: 200 (reach)
ok    with no certificate: the TLS handshake refused the certificate (refused)
FAIL  with another consumer's valid certificate: 200, so any certificate from the root gets in
-- a door that asks for no certificate: must fail
ok    with the consumer's certificate: 200 (reach)
FAIL  with no certificate: 200, so the door does not tell the consumer from a stranger
SELFTEST passed: one pass, three failures

What is still open