The Label You Have to Earn
Everybody has a migration label. Someone adds migrated: true, the dashboard turns green, and nobody looks again.
A label like that records what you meant to do. It's a wish with a key and a value.
We wanted one that couldn't be a wish.
The refusal¶
We were moving collectors from dumped files to published streams. The label said: this collector is done. So the policy engine asked one question of anything wearing it. Do you actually publish a stream?
No stream, no label. Admission refused it.
Put the label on early and the cluster said no. Which meant the list of labelled collectors was the migration status. Nobody kept a spreadsheet. The spreadsheet couldn't have lied anyway.*
* It would have found a way.
Old and new, at the same time¶
A migration has an ugly middle. Both formats exist, both carry the same facts, and the window has no closing date. A window without a closing date is just architecture.
Ours closed when the last reader of the old files had moved. Two files went. A test now fails if they come back.
One file stayed. A running service still depended on its exact shape, so it kept being written, byte for byte, with a comment saying why. It wasn't part of the contract any more. It just wasn't gone.
That's the part a label can't say. Migrated meant migrated as far as the contract could see.
What it didn't check¶
The rule only looked at things wearing the label. Everything else walked past.
That was on purpose. On day one nothing wore the label, so the rule could block nothing by accident, and we could enforce it from the first commit. No audit phase. No grace period.
But read it again. A collector that never asked for the label was never refused anything. The rule kept the list honest. It didn't make the list complete. If you want the old way gone, you need a second rule for the ones who didn't sign up.
And there was a trap in the small print. Only the quoted word "true" counted. An unquoted true wasn't rejected. It was ignored. Nothing complained, and nothing was enrolled.
The contract moved¶
Then the transport changed, and publishing the old stream became the thing the policy refused. Same label, new condition. The label didn't mean "uses streams" any more. It meant "meets the current contract".
We also found out you couldn't take it off. Admission compares the old object with the new one, so removing the label was still judged as if you wore it. A test environment refused a legitimate change for about twenty minutes, because someone was trying to leave.
You had to earn it to put it on. For a while, you had to earn it to take it off.
Monday¶
Pick the label your team trusts most. Then ask what happens if you put it on something that isn't true.
If the answer is "nothing", it isn't a status. It's a sticker.
The mechanics are in Migrating From Data Dumps to Stream-Based Assets.