<feed xmlns='http://www.w3.org/2005/Atom'>
<title>krino.git/cmd/krino/sort.go, branch v0.0.12</title>
<subtitle>rule-based file sorter in Go, shows the plan before touching anything, applies only the files you choose, and can undo any run, with s-expression rules and a GTK 4 window</subtitle>
<id>https://git.labunix.xyz/krino.git/atom?h=v0.0.12</id>
<link rel='self' href='https://git.labunix.xyz/krino.git/atom?h=v0.0.12'/>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/'/>
<updated>2026-09-17T11:34:20Z</updated>
<entry>
<title>the directory lock is the kernel's, not a pid we believe</title>
<updated>2026-09-17T11:34:20Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-17T11:34:20Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=6971543d4749574d4ca575c4e8acf04f9e86d6bb'/>
<id>urn:sha1:6971543d4749574d4ca575c4e8acf04f9e86d6bb</id>
<content type='text'>
flock(2) on the lock file's descriptor replaces "write my pid, and
decide whether the pid in the file is still alive". The kernel drops
the lock when the process ends, however it ends, so there is no stale
krino lock to detect and no takeover to race over.

What that fixes:

- Two runs that both judged a lock stale could remove and recreate it
  and both believe they held it. Remove-then-create cannot be made
  atomic; there is nothing to make atomic now. Pinned by a test with
  eight callers over twenty rounds.
- A pid reused after a crash made the lock live for ever, and the
  message named neither the file nor the pid, so there was nothing to
  act on. The message now names both.
- Signal(0) reads EPERM as "not running", so a lock held by another
  user was taken over. There is no such judgement left to get wrong.

A run that waits for a held lock now says so first. Waiting is what
the spec asks for, but the wait has no timeout, and in silence it is
indistinguishable from a hang - I spent two minutes on one myself
today, waiting on a lock the window was holding.

Tests that faked a held lock by writing a file now hold a real one.
</content>
</entry>
<entry>
<title>the module path is git.labunix.xyz/krino</title>
<updated>2026-09-17T10:54:06Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-17T10:54:06Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=1884d56b0d399e9cdb80016a9c166b0120989933'/>
<id>urn:sha1:1884d56b0d399e9cdb80016a9c166b0120989933</id>
<content type='text'>
So that go install can find it. cgit serves no go-import meta tag, so
nginx answers a ?go-get=1 request for /NAME with one pointing at
https://git.labunix.xyz/NAME.git; the alternative was carrying a .git
suffix through every import line forever.

One sed over the imports, both go.mod files, and the dependency gate's
whitelist. Nothing else depends on the path. go install works from the
next tag, the first release whose go.mod carries it.
</content>
</entry>
<entry>
<title>comments that explain the code, not how it was written</title>
<updated>2026-09-17T10:11:42Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-17T10:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=bddbd74e4a73e8e32bcf648efd1cac5655f6d0cd'/>
<id>urn:sha1:bddbd74e4a73e8e32bcf648efd1cac5655f6d0cd</id>
<content type='text'>
About 340 comments cited the development process: task and plan
numbers, fix waves, rulings, reviewers, and the author in the third
person with a date. None of that exists outside the work itself, so to
a reader it pointed at nothing. Each one now states the engineering
reason it was standing in front of; where a comment was provenance and
nothing else, it is gone.

References to docs/design.md and docs/gui-design.md by section stay:
both ship with the repository. The design documents lose their
amendment diaries - CHANGELOG.md is that record - and the GUI's says
plainly that the window has gone further than the document.

Only comments changed. Every .go file was parsed and its code printed
with comments stripped, before and after: the two hashes are identical
across all 175 files.
</content>
</entry>
<entry>
<title>milestone 1 review: claims span the run, explain's chain is opt-in and its own, overrides keyed by clean path, splice and enum guards</title>
<updated>2026-09-15T23:34:45Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-15T23:34:45Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=ecfaeabf2a92e26c6a521d5fac404a0fff6263b6'/>
<id>urn:sha1:ecfaeabf2a92e26c6a521d5fac404a0fff6263b6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>undo runs through the same session</title>
<updated>2026-09-15T22:59:08Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-15T22:59:08Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=40ecbfae85c4c76a8ed944a91f8c000b4ec55fc5'/>
<id>urn:sha1:40ecbfae85c4c76a8ed944a91f8c000b4ec55fc5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>the engine owns a run: lock, log, run id, claims</title>
<updated>2026-09-15T22:57:03Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-15T22:57:03Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=d6a280d87a274abc8d9cab9956d2af1c845f83d1'/>
<id>urn:sha1:d6a280d87a274abc8d9cab9956d2af1c845f83d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>only where an earlier directory's files ended up stays claimed</title>
<updated>2026-09-14T22:41:00Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-14T22:41:00Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=2e812847572839e6c8097a7ecf5c4a469222087a'/>
<id>urn:sha1:2e812847572839e6c8097a7ecf5c4a469222087a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>an earlier directory's applied results stay claimed for later ones</title>
<updated>2026-09-14T22:26:36Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-14T22:26:36Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=f12f3f1356e4e96d419d66d13c2e67b73a50346f'/>
<id>urn:sha1:f12f3f1356e4e96d419d66d13c2e67b73a50346f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: apply error exits 1 and w stops krino through the real command; undo projection occupied half</title>
<updated>2026-09-14T21:58:43Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-14T21:58:43Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=67ada0b5bc25cb6cff3ab780d82cb0bfe64e4968'/>
<id>urn:sha1:67ada0b5bc25cb6cff3ab780d82cb0bfe64e4968</id>
<content type='text'>
</content>
</entry>
<entry>
<title>output: wrap by terminal columns, names cannot fake step lines, -v lists unscanned destinations</title>
<updated>2026-09-14T21:51:33Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-09-14T21:51:33Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/krino.git/commit/?id=1f1a303c617057f149b4f0d748ee0a195484642c'/>
<id>urn:sha1:1f1a303c617057f149b4f0d748ee0a195484642c</id>
<content type='text'>
</content>
</entry>
</feed>
