Tags

Tags give the ability to mark specific points in history as being important
  • v0.9.1

    protected Release: bairn v0.9.1
    ## [0.9.1] - 2026-11-23
    
    ### Added
    
    - `bairn repair pruned [--dry-run] [ID...]` restores files that
      `bairn prune` deleted, by downloading them from Famly again; with no
      IDs it takes every pruned entry. An entry whose media is still on
      disk is only un-pruned. An entry Famly no longer serves is reported
      as `notRestorable` and left as it is. Every other entry is requeued
      for `bairn fetch --retry-failed`, which saves the file again
      without uploading it to Immich a second time. `--dry-run` changes nothing.
  • v0.9.0

    protected Release: bairn v0.9.0
    ## [0.9.0] - 2026-11-23
    
    ### Added
    
    - State fields `verifiedAt`, `verifyResult` and `prunedAt`, all
      omitted when unset, so state written by 0.8.1 loads unchanged. They
      are the groundwork for `bairn verify` and `bairn prune`.
    - `bairn verify [--dry-run]` asks a sink that can confirm copies
      (Immich is the one today; with none configured, `verify` and `prune`
      exit 2 before touching state or files), with `POST
      /assets/bulk-upload-check` in batches of 500 (key permission
      `asset.upload`, which the upload key already holds), whether it still
      holds each uploaded entry's `uploadSha1` under the entry's own
      `immichAssetId`, not trashed. It stamps `verifiedAt`, or
      `verifyResult` (`trashed`, `mismatch`, `absent`) and clears an earlier
      verification. Entries with no `uploadSha1` are `unverifiable`: no call is made
      and an earlier verification is cleared; pruned entries are skipped. Immich unreachable, a 5xx or a
      malformed reply stamps nothing for that batch and exits 1. It deletes
      nothing.
    - `bairn status` reports `verified`, `verifyFailed` and `pruned`.
    - `bairn prune [--apply]` deletes the saved copy of entries Immich holds
      (and the `.xmp` only for a feed-video, whose sidecar bairn uploaded;
      any other `.xmp` is never touched). A dry run by default, which writes nothing; the real
      prune is operator-gated (after a restore drill), so run `bairn verify`
      and a `prune` dry run first. An entry goes only if it was verified, a
      re-verify in the same run says Immich still holds it untrashed, the
      local SHA-1 equals `uploadSha1` (a file re-saved after upload is kept)
      and the path is a regular, non-symlink file under the save directory.
      `prunedAt` is written to the state (one write per batch) before any
      unlink, so a crash is finished by the next run, which re-verifies the
      leftovers with the same gate (media present but the gate failing: the
      file is kept and the entry unpruned; media absent: the tombstone stays,
      so nothing is re-downloaded) and downloads nothing. It refuses
      on an unmounted save root and exits 1 on any error. The summary JSON is
      in `docs/configuration.md`. `--restore` is not part of this release.
    
    ### Changed
    
    - An entry with `prunedAt` set is never counted as a missing file:
      `status --missing`, `missingFile` and `repair missing` skip it, and
      the store refuses to requeue it, so it is never downloaded again.
      No behavior change for state without `prunedAt`.
    
    ### Fixed
    
    - A saved entry whose upload succeeded on a later run no longer keeps
      the earlier failure in `lastError`: `MarkUploaded` clears it. On load,
      an entry that is saved and uploaded has a leftover `lastError`
      cleared in memory (pre-0.7.0 saves kept it), so `status` stops
      counting it under `withErrors`. `retries` is kept as history, and the
      file is not rewritten until the next real write.
  • v0.8.1

    protected
    9e19292b · release: v0.8.1 ·
    Release: bairn v0.8.1
    ## [0.8.1] - 2026-11-23
    
    ### Added
    
    - `bairn repair missing [--dry-run]` re-queues saved entries whose file
      is gone: it clears `savedAt` and `savedPath` and sets `lastError`,
      keeping the Immich receipt, so `fetch --retry-failed` downloads them
      again (recovery: `status --missing`, `repair missing`, `fetch
      --retry-failed`). Run `--dry-run` first and check the mount. It marks
      only absent files (other stat errors are reported and exit 1;
      `status --missing` lists them) and refuses, writing nothing, when the
      save directory is absent or every saved file is missing. A re-downloaded
      entry already in Immich is recorded as saved and not uploaded again, so
      no second asset is made.
    - The fetch summary gains `stamped`, the number of `feedItemAt` stamps
      written this run (left out when 0; a dry run writes none), so the
      stamping of already-saved entries can be confirmed from output.
    - `bairn status` reports `undated` (saved entries with no `feedItemAt`)
      and `missingFile` (saved entries whose file is not on disk), and
      `bairn status --missing` prints the ids of the latter.
  • v0.8.0

    protected
    fbf17e82 · release: v0.8.0 ·
    Release: bairn v0.8.0
    ## [0.8.0] - 2026-11-22
    
    A **minor**: exit codes tighten. `fetch` and `status` now exit 1 on
    state errors, a failed state close, or a failed `/relations` lookup
    under `--source=tagged|liked`, where 0.7.0 exited 0, so a scheduler's
    last-success marker can stop advancing on a run that used to pass.
    
    ### Added
    
    - `bairn backfill upload-sha1 [--dry-run]` fills `uploadSha1` on
      entries uploaded before it existed, offline, by hashing the saved
      file. An entry whose EXIF stamp or file mtime is later than its
      upload is left blank, existing values are never overwritten, and the
      summary counts `considered`, `hashed`, `skippedModified`,
      `missingFile` and `errors` (any error exits 1).
    - State entries gain `uploadSha1`, the SHA-1 of the bytes uploaded to
      Immich (its asset checksum). `sha1` still holds the download hash,
      which differs once EXIF is reinjected. Entries uploaded before this
      release lack the field until the backfill runs.
    - `fetch --retry-failed` marks an entry `goneAt` (`omitzero`, so entries never marked gain no key) after a walk that
      covered its post date (or reached the feed's end) did not find it,
      and later retries skip it. `--retry-gone` revisits marked entries; a
      find clears the mark. `--retry-gone` without `--retry-failed` is
      refused with exit 2. The retry summary gains `gone`.
    - `docs/configuration.md` holds the configuration, flag, exit-code and
      summary reference moved out of the README, with a flag table for
      `login`, `drift` and `smoke immich`.
    
    ### Changed
    
    - `fetch --retry-failed` logs `jumpTo` and `stopAfter` as `none` when
      there is nothing to retry, instead of a zero date.
    - The README is a short front page; local dev and the pre-tag gate
      moved to CONTRIBUTING.md.
    - ADR 0004 points at `internal/state/store.go` for the record fields
      instead of carrying an example that had drifted.
    - CI installs exiftool and runs the metadata round-trip test, which a
      missing exiftool used to skip silently; it now fails instead. CI
      images move to ci-go 4.17.0.
    
    ### Fixed
    
    - A fetch now stamps the post date (`feedItemAt`) on entries that are
      already saved but undated, so `--retry-failed` can jump to dated
      entries instead of walking the whole feed. The stamp is flushed with
      the next batched write or at exit, not on its own.
    - Silent state and household errors now surface in the exit code.
      `bairn status` exits 1 when its state close fails, as `fetch`
      already did. Under `--source=tagged` or `--source=liked` a failed
      `/relations` lookup aborts the run before sync (it was a warning that
      left a partial household set and dropped images). A failed state read
      or `feedItemAt` stamp in the saved-item check counts into
      `stateErrors` and exits 1; an item whose read failed is skipped, not
      reprocessed as unsaved.
  • v0.7.0

    protected
    7cd8bc9f · release: v0.7.0 ·
    Release: bairn v0.7.0
    bairn v0.7.0. Pre-1.0: 0.x minors may change behaviour. The key scope widens to six permissions.
    
    ## [0.7.0] - 2026-11-21
    
    ### Added
    
    - In-run download retry. A connection reset, truncated body, timeout
      or 5xx on a media download is retried up to four times with jittered
      exponential backoff (2s, capped at 30s). Before each retry the feed
      item is read again for a newly signed URL; if that fails the same
      URL is used. Partial temp files are removed between attempts. A
      4xx, a disk error or a cancelled run is not retried.
    - `bairn fetch --retry-failed` revisits only state entries with a
      `lastError` and no `savedAt`. The walk jumps to the newest failed
      item with the feed's `olderThan` parameter and stops after the
      oldest, instead of walking the whole feed. The state file now
      records `feedItemAt` for each discovered item; entries without it
      are located from their discovery time. The summary gains a `retry`
      block (`failed`, `retried`, `fixed`, `uploadFailed`, `stillFailing`,
      `notFound`; dry-run reports only the first, second and last).
      Not combinable with `--source`, `--include-system-posts` or
      `--allow-missing-state`; works with `--dry-run`.
    - Progress log lines every N feed pages (`--progress-every`,
      `BAIRN_PROGRESS_EVERY`, default 10, 0 = off) with pages walked, the
      date of the last post read and the running counts.
    - A `buckets` block in the run summary that places every discovered
      item in exactly one outcome (`savedNew`, `alreadyDone`,
      `uploadedNew`, `uploadedDuplicate`, `skippedSystem`,
      `filteredBySource`, `notReady`, `wouldProcess`, `failed`). The sum is
      checked against `discovered`; a mismatch is logged as an error and
      shown as `unreconciled`.
    - Every Immich upload, new or duplicate, is tagged `bairn`
      (`--tag` / `BAIRN_TAG` to rename, `--no-tag` / `BAIRN_NO_TAG` to turn
      off). The tag is created once per run with `PUT /tags` and assets
      are added in batches with `PUT /tags/{id}/assets`; bairn never
      removes a tag. Uploads already in the state file are tagged once
      (`taggedAt`); an asset Immich refuses is recorded (`tagRefused`) and
      not retried. `bairn status` reports `tagsApplied`, `tagsOwed` and
      `tagsRefused`. `bairn smoke immich` gains a tag leg on the narrow
      key and deletes its tag with the login session.
    
    ### Changed
    
    - The Immich API key scope is now exactly `asset.upload`, `album.read`,
      `album.create`, `albumAsset.create`, `tag.create` and `tag.asset`
      (checked against Immich 3.4.2). A key without the two tag scopes
      still uploads; with tagging on, fetch exits 1 until the key is
      widened or `--no-tag` is set. Widen the key before deploying. Rolling
      back to 0.6.x drops the tag and post-date markers from the state file
      when it next writes it, so rolling forward re-queues the tags.
    - `discovered` now counts every media item read from the feed,
      including those filtered by `--source`, skipped as system posts or
      not ready, where it used to count only items that reached the
      pipeline. `skipped` is unchanged.
    - Saving an asset clears its `lastError`, so `bairn status`
      `withErrors` no longer counts items that failed once and then
      succeeded.
    
    ### Fixed
    
    - The run summary no longer leaves `saved` and `uploaded` looking like
      they should match: `saved` counts files newly written, `uploaded`
      only Immich "created" answers. The two legitimately differ when
      Immich answers "duplicate" or a saved file's upload fails, so a gap
      between them is not by itself a sign of missing data. The new
      per-item buckets (each discovered item in exactly one) account for
      every case, and the summary cross-checks them against these counters.
    - The "matched 0 of N" warning for a filtered `--source` now fires only
      when nothing passed the filter, not when every match was already
      saved.
  • v0.6.2

    protected
    9215273d · release: v0.6.2 ·
    Release: bairn v0.6.2
    ## [0.6.2] - 2026-11-21
    
    ### Added
    
    - Famly session reuse. bairn keeps the last access token (and the
      device id) in `session.json` next to the state file (0600, written
      atomically) and starts from it, so a run logs in with the password
      only when the token has expired. This stops Famly's "new log-in
      activity" e-mail on every scheduled run. `FAMLY_ACCESS_TOKEN` still
      wins when set and is never written to the file; dry runs and
      `bairn drift` reuse the file but never write it. Delete the file to
      force a fresh login.
    
    ### Changed
    
    - The Famly device id is stable per install. Precedence is
      `FAMLY_DEVICE_ID`, then the id stored in `session.json`, then a
      random UUIDv4 generated once and stored. The MAC-derived default is
      gone: containers and CI get a different MAC every run, so Famly saw a
      new device each time. A device id Famly returns from login is stored.
      `FAMLY_DEVICE_ID` must be a UUID. `bairn login` now sends the same
      resolved id.
    
    ### Fixed
    
    - `bairn fetch` exits 1 when any item failed to download or save
      (for example a full disk), so a scheduler no longer records a
      partial run as a success. Exit codes are documented in the README.
    - `bairn drift` with Famly credentials logs in fresh again instead of
      probing with a stale `FAMLY_ACCESS_TOKEN` or cached session token.
    - The session file gains no token while `FAMLY_ACCESS_TOKEN` is set,
      even after a re-login.
    - Partial downloads (`.bairn-dl-*.part`) left by a killed run are
      removed at the next start once a day old.
    - `bairn fetch` also exits 1 when the state file could not be written
      while recording progress (`stateErrors` in the summary). EXIF
      reinjection failures remain warnings and exit 0.
    - Media downloads no longer use a client without timeouts. A stalled
      CDN connection now fails after connect, TLS, response-header and
      idle-read deadlines (a slow video that keeps sending is unaffected,
      there is no total timeout) instead of hanging until the unit's limit.
    - The download temp file is created inside the save directory (a
      dot-prefixed `.bairn-dl-*.part`, removed on failure) rather than the
      system temp dir, so large videos no longer fill a small tmpfs and the
      move into place is a same-filesystem rename. The missing-state guard
      ignores these files.
    - Creating an Immich album survives a lost response. After a transport
      error or a 5xx from the create, bairn looks the album up again by
      exact owned name and only creates it again while it is still absent
      (at most three attempts), so a create that landed no longer fails the
      run or leaves an unshared duplicate.
  • v0.6.1

    protected
    edcecab4 · release: v0.6.1 ·
    Release: bairn v0.6.1
    ## [0.6.1] - 2026-11-21
    
    ### Removed
    
    - The Immich required-fields manifest machinery: `bairn smoke immich
      --probe-only` and `--capture`, `make refresh-immich-validator` and
      the `TestUploadEmitsAllRequiredFields` test. The manifest was never
      committed, so the test skipped on every run; the live
      `make smoke-immich` is the gate.
    
    ### Fixed
    
    - Uploads recorded before 0.6.0 (no post date) are now filed into the
      month and year albums, once. Their post date is the `downloadedAt`
      already in the state file, which has always held the item's
      creation time. This reverses the 0.6.0 note that such entries are
      not back-filled; entries without an Immich asset id are still never
      touched.
    - One asset Immich refuses for an album (for example one deleted or
      trashed in Immich since upload) no longer blocks the rest of its
      batch or fails every run. Only the final reasons `no_permission` and
      `not_found` count: the item is recorded as `albumsRefused` in the
      state file, logged once as a warning, never retried and not counted
      toward a non-zero exit; bairn still never removes anything. A
      whole-call failure (HTTP error, bad key) or any other per-item reason
      (such as `unknown`) stays a retryable error.
    - Release binaries are no longer stamped `+dirty`: the CI build's module
      and build caches sat untracked inside the checkout, and Go's VCS
      stamp counts untracked files. Both directories are ignored, and a tag
      pipeline job flags the linux-amd64 binary if it is not stamped clean.
      The job runs after the catalog has published the release, so a red
      `stamp-check` means yank the release and re-tag.
    - `bairn status` reports `albumsFiled`, `albumsUnfiled` and
      `albumsRefused`.
    - Documentation now matches the code: no configuration file, no
      `--state-path` flag, Go 1.26+, one Immich version story (3.0.2 floor,
      verified against the `IMMICH_VERSION` pin), the add-only and
      state-file-tombstone rules and the API key ceiling written down, the
      committed discovery manifest and `main` baseline explained, release
      gates and the exiftool and Immich-only-local checks stated, and the
      `--filename-pattern` help default no longer shows a doubled prefix.
      The `make smoke` target, which re-ran the unit tests, is removed, and
      `make pre-tag-check` now fails when `exiftool` is missing.
    - `bairn version`, `bairn --version` and `-V` print the version, and
      `bairn --help` no longer creates the data and state directories. A
      build without a stamped version reports the module version or the
      commit it was built from.
  • v0.6.0

    protected
    cac835e3 · release: v0.6.0 ·
    Release: bairn v0.6.0
    ## [0.6.0] - 2026-11-21
    
    ### Added
    
    - Immich albums: with `--albums` (or `--album-month` / `--album-year`),
      each uploaded asset, newly created or answered `duplicate`, is added to
      a month album and a year album named from its post date in the run's
      zone (`EDC November 2026` and `EDC 2026` by default). Albums are found
      by exact name among those the API key's owner owns and created only
      when absent, shared as editor with the `--album-share` user IDs, so
      reruns never make a second album. Adds are batched per album and
      idempotent. bairn only ever adds: it never removes an asset from an
      album, deletes an album, or trashes anything. The key needs
      `album.read`, `album.create` and `albumAsset.create`. The state file
      records `postedAt` and `albumsFiledAt` per asset, so an asset whose
      filing failed or was interrupted is filed on the next run; entries
      written before these fields existed are not back-filed.
    - `bairn smoke immich` (login path) runs an album leg with a key holding
      only `asset.upload`, `album.read`, `album.create` and `albumAsset.create`,
      sharing to `SMOKE_SHARE_USER_EMAIL`, and cleans up with the login session.
      The login-path round trip no longer mints `asset.delete`.
    - `--allow-missing-state`: `bairn fetch` now refuses to upload to Immich
      when the state file is absent but the save dir already holds media
      (every file would look new); the flag overrides the refusal. The check
      runs for every fetch, dry runs included, and a dry run no longer
      records assets in the state file.
    - `--tz` / `BAIRN_TZ` set the fallback zone for video dates. `--max-pages
      0` (unlimited) is documented and tested as the way to walk a full
      history.
    - Both the Famly and Immich clients retry transport errors, 429
      (honouring `Retry-After`) and 5xx with capped exponential backoff and
      jitter; other 4xx fail at once. A retried Immich upload is safe: the
      server dedupes on the file checksum per owner and answers
      `duplicate`.
    - A Famly 401 mid-run refreshes the token once through the token
      source (ADR 0003) and retries; a second 401 fails.
    - The feed walk pauses one second between pages.
    - CI: a weekly scheduled `drift-gate` run against the operator's own
      Famly account (two GETs). Drift diffing now treats `<empty>` and
      `null` shapes as wildcards and merges nested shapes across
      feed items, so a week with photos is not reported as drift.
    - `IMMICH_VERSION` in the Makefile names the Immich release bairn is
      verified against via `make pre-tag-check`; Renovate tracks it with
      automerge off.
    - XMP `digiKam:TagsList` (flat child names, same source as
      `dc:subject`) in the photo packet; Immich reads it and ignores
      `dc:subject`.
    - Videos now carry metadata: a standalone `<file>.xmp` (description,
      date with its offset, tags) is written beside each video and sent to
      Immich as `sidecarData`. Photos still embed their XMP and get no
      sidecar.
    
    ### Changed
    
    - The default save root and state directory (under the XDG data and state
      dirs) are set to mode 0700 even when they already existed at a looser
      mode. A directory you choose with `--save-dir`, `BAIRN_SAVE_DIR` or
      `BAIRN_STATE_PATH` is created at 0700 if missing but never chmodded;
      bairn logs a warning when it is accessible to group or other.
    - `main.Version` defaults to `dev`; `make build` targets stamp it from
      `git describe`. The EXIF Software tag reads `bairn 0.6.0` for a `v0.6.0`
      tag and `bairn dev` for an unstamped build, including a build from a
      source tarball with no `.git`. `make build VERSION=v0.6.0` overrides it.
    - Every client that carries a credential (Famly login, Famly API, drift
      probe, Immich, the contract and smoke gates) refuses a redirect to another host or from https to
      http, and stops after 10 redirects. Immich previously refused all
      redirects; same-host ones now follow.
    - A 401 or 403 from Immich, or five failed uploads in a row, stops
      uploads for the rest of the run instead of retrying every asset; the
      rest are saved to disk, counted in `uploadFailed`, and a rerun
      uploads them. A 403 now reports as unauthorized.
    - `bairn fetch` logs the zone it will use for zoneless posts.
    - Scheduled pipelines run only `drift-gate`; every other job sits behind
      an include that skips schedules.
    - `bairn drift --diff` exits 2 when a manifest endpoint has no readable
      baseline file, instead of printing `ok`.
    - Drift shapes walk every feed item and every nesting level (no
      5-item sample, no depth cap), so tag fields now appear. Reseed
      `discovery/baselines/main/` from the next schedule artifact.
    - A response field that arrives as a different container than bairn's
      struct declares is recorded as `<object>` or `<array>`, so vendor
      keys never reach a shape. The drift artifact is developer-only.
    - Drift documentation lives in `discovery/baselines/main/README.md`.
    
    ### Removed
    
    - `discovery/probe/shape.py`, superseded by `bairn drift`.
    - CI: the `drift-gate-immich` and `smoke-immich` jobs (web/api only,
      never reachable from the runner), the Immich drift manifest and
      its empty baseline, and the `claude-drift-triage` include. `make
      pre-tag-check` remains the Immich gate.
    - The vendored Immich `openapi.json`, the unused generated `imapi`
      client, the oapi-codegen config, `make gen-immich` and
      `make refresh-immich-spec`, and the oapi-codegen `go.mod` tool.
      The hand-written `api/immich` client and its contract test stay.
    
    ### Fixed
    
    - Videos upload to Immich: bairn sent a `filename` form field, and
      Immich validates every file part against it, so a video's `.mp4`
      name rejected its `sidecar.xmp` part ("Unsupported file type"). The
      name now rides only on the asset part. The README's
      `IMMICH_BASE_URL` example now ends in `/api`, which the client needs.
    - Videos download again: Famly sends a video's link as `videoUrl`, and
      bairn read `url`, so every video was discovered with no link and
      never saved. Videos Famly is still transcoding are left for a later
      run.
    - Images Famly labels "UTC" are dated in `--tz` / `BAIRN_TZ` (default:
      the local zone) like zoneless ones: Famly stores the instant, not
      where the photo was taken, so a Detroit nursery's photos no longer
      land 4-5 hours late, or on the next day, in Immich's timeline.
    - Neither client follows a redirect that would replay its credential
      header to another host (Immich follows none, Famly stays on its host).
    - An image with no zone of its own is dated in the local zone (as videos
      are), not as a UTC wall clock.
    - A download error no longer carries the signed CDN query string.
    - Retry-from-disk refuses a recorded path outside the save directory.
    - The state lock lives on `<state-path>.lock`; on the state file itself it
      was lost at the first flush, so a second `bairn fetch` could run.
    - A video's `.xmp` sidecar is written before the media file, and added
      beside media already on disk, so a retry-from-disk never lacks it.
    - The save path is refused when a vendor id would resolve outside the
      save directory.
    - State, config and archive directories are created 0700.
    - A `Retry-After` longer than the 30s backoff cap is honoured up to five
      minutes; a longer one ends the retries instead of hammering a 429.
    - A feed walk whose cursor stops moving ends with `feed cursor did not
      advance` instead of looping on the same page.
    - A video in a post with no zoned image was dated as UTC, so it showed
      hours late in the timeline. It now uses the zone of the running
      machine (override with `--tz` or `BAIRN_TZ`), with the offset
      computed at the post's date.
    - The Immich upload no longer sends `deviceId` / `deviceAssetId`;
      Immich 3.x dropped them. The Immich floor is now v3.0.2, and
      `IMMICH_VERSION` is pinned to 3.0.2, the version the home server
      runs.
    - A failed Immich upload is retried on the next run. Assets saved to
      disk but not confirmed in Immich (a failed upload, an Immich outage,
      or an earlier `--no-immich` run) are uploaded from the disk sink,
      with the video `.xmp` sidecar, instead of being skipped. `duplicate`
      counts as confirmed. The fetch summary gains `uploadDuplicates` and
      `uploadFailed`, and `bairn fetch` exits 1 while any upload failed.
      Entries in existing state files without `uploadedAt` count as not
      uploaded.
    - The state file is flushed every 50 changes and on exit instead of
      being rewritten and fsynced on every change, which was quadratic
      over a full history.
    - `bairn drift` exits 2 when an endpoint errors, answers non-2xx, or
      serves a non-JSON page, instead of passing on the endpoints that
      did answer. With `--anonymize` it no longer prints response sizes.
    - A merged array shape keeps its `<n=*>` marker when the first sampled
      item had an empty array.
    - The video sidecar also carries `exif:DateTimeOriginal`, the date tag
      Immich reads, and its offset comes from the zone of a sibling image
      in the post instead of a fixed `+00:00`. An image's offset is now
      evaluated at the instant that is stamped.
    - EXIF `DateTimeOriginal` and XMP `photoshop:DateCreated` now carry the
      wall-clock time in the labelled offset. Previously the UTC clock
      reading was written next to a non-UTC offset, so the label disagreed
      with the time. Files already archived keep the old values.
  • v0.5.0

    protected Release: bairn v0.5.0
    v0.5.0 - rebase onto pipeline 2.0.3 catalog overhaul
    
    Switches all catalog includes to the v2.0.x catalog overhaul.
    Container build collapses to a thin runtime layer over UBI micro
    9.6 with the cosign-signed binary COPYd from go-release-binary's
    dist/ output (provable byte-for-byte parity).
    
    Multi-arch binary set: linux/amd64, linux/arm64, darwin/arm64.
    Per-binary .sha256 sidecars. Container image is single-arch in
    v0.5.0; multi-arch container in v0.5.1 once storr qemu support is
    verified.
    
    Lint hygiene: three hits previously masked by the v1.x catalog
    docker.io/golangci-lint allow_failure pattern, all fixed.
    
    CI: workflow:auto_cancel for MR pushes; smoke-immich and
    drift-gate-immich moved off tag rules to web/api triggers only
    (local make pre-tag-check is the actual tag-time gate for the
    operator).
    
    No user-facing CLI changes. The binary, archive format, and flags
    are identical to v0.4.6.
    
    See CHANGELOG.md for full notes.
  • v0.4.6

    protected Release: bairn v0.4.6
    v0.4.6 - bairn smoke immich + write-side contract gate
    
    Adds a real round-trip Immich smoke that verifies the upload
    contract end-to-end: login, mint ephemeral API key, upload tiny
    JPEG via the production sink/immich code path, assert created,
    delete asset, delete API key. ~5 HTTP calls per run, ~250ms.
    
    Catches what a vendored OpenAPI spec or an upstream zod schema
    cannot: controller-layer wire-contract enforcement (the
    deviceId / deviceAssetId class-validator decorators that produce
    HTTP 400 on Immich >= v2.7.5 when omitted). v0.4.3 + v0.4.4
    shipped without this gate and broke uploads; both have been
    pulled. v0.4.6 is the first release with the gate.
    
    Local invocation: `make pre-tag-check` runs unit tests + the
    live smoke against an operator-configured Immich. CI runs the
    same smoke as a job (allow_failure: true until the runner can
    reliably reach the configured Immich host).
    
    Reads IMMICH_BAIRN_HOST / IMMICH_BAIRN_USER / IMMICH_BAIRN_PASSWORD
    or falls back to IMMICH_BASE_URL / IMMICH_API_KEY.
  • v0.4.5

    protected Release: bairn v0.4.5
    v0.4.5 - restore deviceId/deviceAssetId for live Immich (v2.7.5+)
    
    Reverts v0.4.3's drop of deviceId / deviceAssetId on the Immich
    upload. Andrew DeJong reproduced v0.4.3 failing on his actual
    Immich v2.7.5 (MR !2): the live server enforces both fields even
    though they are absent from the vendored OpenAPI spec.
    
    The vendored spec at api/immich/openapi.json (sourced from
    immich-app/immich/main) does not model AssetMediaBase and lists
    neither field on AssetMediaCreateDto. The server enforces them
    anyway. v0.4.3 trusted the spec; this release trusts the server.
    
    Lesson logged in the commit body: the spec is not the source of
    truth for write-side contracts. v0.4.6 will add a write-side smoke
    test against a live Immich (in CI when IMMICH_BASE_URL +
    IMMICH_API_KEY are set; locally otherwise) so the next contract
    drift fails the release pipeline before binaries ship.
    
    Apologies for the v0.4.0 add -> v0.4.3 remove -> v0.4.5 re-add
    cycle. The smoke is the durable answer.
  • v0.4.2

    protected Release: bairn v0.4.2
    v0.4.2 - dep bumps + UX guardrails for silent zero-result traps
    
    Two strands rolled together:
    
    Renovate dep bumps (auto-merged into main via MR !3):
    - catalog v1.6.0 -> v1.7.0 across 7 includes (claude-drift-triage,
      go-audit, go-build, go-release-binary, go-sbom, slsa-attest,
      release-create)
    - github.com/BurntSushi/toml v1.3.2 -> v1.6.0
    - golang.org/x/sys v0.43.0 -> v0.44.0
    - golang.org/x/term v0.42.0 -> v0.43.0
    
    UX guardrails - five Andy-shaped traps fixed:
    - Trap A: --source=tagged|liked with empty children/logins now
      errors with exit 2 instead of running the fetch and saving zero.
    - Trap B: bairn drift --diff <empty dir> now exits 2 with a
      seeding hint instead of looking like a healthy gate that's
      actually a passthrough.
    - Trap C: source-matching images inside system-generated posts
      count toward Result.SystemPostsFiltered; visible in the
      fetch-complete log so operators see what --include-system-posts
      would unlock.
    - Trap D: a filtered source (tagged|liked) that walked pages but
      matched nothing now logs an explicit warn with a hint at the
      most likely cause (--max-pages too low).
    - Trap E: bairn login displays the email used to authenticate
      when me.Email comes back empty.
    
    Audit triggered by Andrew DeJong's MRs !1+!2 surfacing the
    --feed-all default-true / --feed-tagged silent-override trap. The
    --source enum that replaced it (v0.4.0) is the same shape of fix
    applied estate-wide.
  • v0.4.1

    protected Release: bairn v0.4.1
    v0.4.1 - Immich drift gate (multi-vendor)
    
    Mirrors the Famly drift design against the operator's Immich
    server. Tag-push only, manifest + baseline committed, anonymize
    for cardinality, struct-allowlist when Immich endpoints get bound
    to typed structs (currently full-shape; see drift_schemas.go).
    
    New: discovery/probe/manifest-immich.toml, discovery/baselines/
    main-immich/, drift-gate-immich CI job (allow_failure: true so
    forkers without IMMICH_BASE_URL/IMMICH_API_KEY are not blocked).
    
    Drift command made vendor-agnostic: env-expanded base_url, per-
    vendor token resolution keyed off m.AuthEnv, validation moved
    into Probe and runDrift's vendor branches.
    
    Operator next steps:
      1. Set IMMICH_BASE_URL + IMMICH_API_KEY as masked + protected
         CI variables on dunn.dev/bairn.
      2. Locally seed the baseline:
         bairn drift --anonymize \\
           --manifest discovery/probe/manifest-immich.toml \\
           --out-dir discovery/baselines/main-immich
      3. Commit + push the seeded shapes; the next tag pipeline gates
         on them.
  • v0.3.1

    protected Release: bairn v0.3.1
    v0.3.1 - catalog v1.6.0 / ci-go consumer
    
    Behavioral change: none. Routine bump consuming the catalog's new
    ci-go pre-baked builder image. Verifies ci-go end-to-end:
    - go-build (branch jobs): pulls ci-go for cross-compile
    - go-release-binary (tag): pulls ci-go for cross-compile + cosign sign
    - go-audit (lint stage): pulls ci-go, govulncheck pre-installed
    - go-sbom (tag): pulls ci-go, syft pre-installed
    - slsa-attest (tag): pulls ci-go, cosign pre-installed
    - bairn-side test + drift-gate: also flipped to ci-go
    
    Authenticated pull from registry.gitlab.com replaces v0.3.0's
    mirror.gcr.io stopgap.
  • v0.3.0

    protected Release: bairn v0.3.0
    v0.3.0 - drift signatures scoped to bairn's typed decode surface (re-tagged at same SHA to verify catalog v1.5.3 release-create + upload-release-assets upsert PUT paths; release contents identical to first push)
  • v0.2.5

    protected Release: bairn v0.2.5
    v0.2.5 - drift baseline seeded; manifest scoped to no-param endpoints
    
    Commits the first real bairn drift baseline at
    discovery/baselines/main/ (me + feed-page1, anonymized
    keys-only signatures). The drift-gate stage in CI now diffs
    against this baseline on every tag and fails the pipeline if
    Famly's response shapes have moved.
    
    Drops /api/v2/relations from the drift manifest: it requires
    operator-private ?childId param. Relation shape continues to be
    covered by the typed unmarshal in api/famly/me.go on every real
    fetch.
    
    No binary behaviour change beyond version reporting.
    
    Posture and conditions of use unchanged: NOTICE.md.
  • v0.2.4

    protected Release: bairn v0.2.4
    v0.2.4 - drift --anonymize masks array cardinality
    
    Adds an --anonymize flag to bairn drift that replaces "<n=N>"
    markers with "<n=*>" in shape signatures, so household-side
    cardinality (number of relations, roles) does not leak into
    committed baselines. Default stays unchanged; bairn's drift-gate
    opts in via .gitlab-ci.yml.
    
    Posture and conditions of use unchanged: NOTICE.md.
  • v0.2.3

    protected Release: bairn v0.2.3
    v0.2.3 - upsert release behavior via dunn.dev/pipeline@v1.5.2
    
    Bumps the catalog includes to v1.5.2 so release-create upserts
    the release record and asset links on every fire instead of
    skipping when present. Re-tags and duplicate-pipeline-fires now
    converge cleanly.
    
    No binary behavior change beyond version reporting.
    
    Posture and conditions of use unchanged: NOTICE.md.
  • v0.2.2

    protected Release: bairn v0.2.2
    v0.2.2 - drift validation hardening
    
    Folds in the validation fix that surfaced while wiring v0.2.1's
    drift-gate end-to-end:
    
    - Validate("drift") now accepts FAMLY_EMAIL+FAMLY_PASSWORD
      (recommended for CI; refreshing token) in addition to the
      static FAMLY_ACCESS_TOKEN. Matches Validate("fetch")'s logic.
    - runDrift now calls Validate("drift") and fails fast when the
      resolved token is empty, with an error message that names the
      protected-variable / protected-ref mismatch as a likely cause.
    
    No behaviour change for the binary's hot path; this lands the
    clearer error messages and the corrected validation gate.
    
    Posture and conditions of use unchanged: NOTICE.md.
  • v0.2.1

    protected Release: bairn v0.2.1
    v0.2.1 - drift gate as pre-release verification
    
    Adds a tag-triggered drift gate to bairn's CI: each tag pipeline
    builds bairn, hits Famly's parent-side surface using the operator's
    own refreshing credentials, and diffs response shapes against the
    committed baseline at discovery/baselines/main/. The gate fails
    the tag pipeline (and blocks the binary from shipping) when drift
    is detected.
    
    Companion docs (NOTICE.md, discovery/PROTOCOL.md, ADR 0007) name
    the trigger model explicitly: tag push is a human action; this is
    not a recurring schedule against Famly's surface.
    
    No behaviour change in the binary itself beyond version reporting.
    
    Posture and conditions of use unchanged: NOTICE.md.