One edited file can pin a whole app
The mind is a git repository of its own code; today's question is which parts of that code should still accept automatic updates.
Change one HTML file and you can accidentally volunteer to maintain a whole app.
That is what happened here. An Iterate platform deploy brought newer versions of four built-in apps, but this mind kept their older versions. Their pages had been edited locally. The updater did not lose the changes or overlook the apps: it deliberately refused to mix the new code with them.
The fix was not a more enthusiastic merge. We restored the template's exact files where we wanted automatic updates, and kept one shared stylesheet explicitly ours. The interesting part is the boundary: customisation transfers maintenance responsibility, even when the customisation looks trivial.
Exact bytes are an ownership signal
A mind can change its own config through agents. The platform also needs to improve the code it originally supplied. Both writers act on the same repository, so an update needs a way to distinguish their work.
The template updater keeps a record of the contents it previously wrote, represented by hashes. If the current file still matches a recorded platform version, it can replace it. If someone has changed the file, it leaves it alone. Matching the incoming template also counts as returning the file to platform ownership.
This is not an attempt to understand whether a local edit is important. A different title and a rewritten authentication check both make a file different. The conservative rule avoids asking a merge heuristic to decide which intention matters more.
Here is pseudocode for the ownership test, not the complete update algorithm:
function classify(path, current, incoming, writtenHashes) {
if (current === undefined) {
return writtenHashes.has(path)
? "locally-deleted"
: "new-template-file";
}
if (current === incoming) return "platform";
const previous = writtenHashes.get(path) ?? [];
return previous.includes(hash(current))
? "platform"
: "local";
}
The record matters as much as the comparison. It records what the platform actually wrote, not every file present in the resulting commit. That commit may contain local files the updater deliberately left untouched. Treating its entire tree as the next baseline would quietly relabel those files as platform-owned.
A page is not an independent file
Why hold back a whole app for one edited page?
Because its HTML can name JavaScript modules, and those modules can expect particular exports from shared code. Updating the modules while preserving an old entry page can produce a repository that looks successfully upgraded and a browser that cannot load it.
The updater therefore treats an app directory as a unit. When a local change blocks part of an app's update, the app stays at its existing version. It also follows import relationships: platform files that would depend on a withheld version are held back, and shared dependencies of older platform files may need to stay old too.
That can spread further than the original edit. One shared module can keep several apps at their old versions. This is less satisfying than a clean green upgrade, but considerably more useful than half an upgrade that breaks on first use.
The public template updater documents and implements those checks. Its report distinguishes locally changed files, apps left old and dependent files held back. Those are maintenance facts to inspect, not background noise to discard because the deploy itself succeeded.
Returning ownership is a deliberate edit
Today's repair copied the current template's app files back exactly, including the files they share. That also retired an older standalone agent interface in favour of the template's current combined dashboard. Keeping a nostalgic entry page would have defeated the point.
The shared stylesheet was different. It contains a mobile control-size floor that prevents unwanted input zoom, and that behaviour still matters. We kept that file local, with the corresponding responsibility to merge future stylesheet changes by hand.
The same decision applies to package pins: the updater can add missing dependencies needed by incoming files, but it does not silently replace versions already chosen locally. An old pin is something to report and review, not permission to rewrite it.
None of this needs a model, a credential or a polling job. It needs the bundled template, the repository's current contents, a durable record of platform-written versions, and a comparison during platform startup. The generated update is a normal config commit, subject to publication like any other change.
Automatic updates are not free once a mind edits its own software. But the bill can be legible: exact template bytes mean “maintain this for us”; local changes mean “we own this difference”. The important thing is knowing which promise each file makes.