fixture: 88 entries in /tmp/tmp.JUDwlrNNrj/field, 1 commit, book at /tmp/tmp.l2Q4B7eych/.fallow-book

== 2. Rest, end to end, on the real repository

$ env FALLOW_TODAY=2026-10-13 fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 1
  | Resting /tmp/tmp.JUDwlrNNrj/field
  |   88 entries, 69 locked.
  |   Left as found: 18 already read-only, 1 symlink.
  |   Last touched 13 Oct 2026 (.git/objects).
  |   Nothing was deleted or moved. Reading is unchanged.
  |   Rested 13 Oct 2026 for 1 season. Ploughing from 25 Mar 2027.
  |   Entered as no. 1. Seal f138c526f745.
  ! Today is taken to be 2026-10-13 (FALLOW_TODAY).
  exit 0
  ok  exit 0
  ok  stderr first line names FALLOW_TODAY
  ok  Ploughing from 25 Mar 2027.
  ok  '88 entries, 69 locked.' (find before the rest)
  ok  no write bit left: 0
  ok  echo x >> run.sh fails
  ok  rm docs/notes.md fails
  ok  cat run.sh works
  ok  git log works, one commit
  ok  ls -l run.sh: -r-xr-xr-x
  ok  outside.txt still 644
  ok  symlink still points at it
  ok  objects still 444
  ok  book lines 1 to 5
  ok  book line 6 is an at instant
  ok  book lines 7 to 9
  ok  manifest row '  0755 run.sh'
  ok  manifest row for .
  ok  no row for a file under .git/objects
  book, first nine lines:
  > # Field book. Entries are added at the end and never altered. Each entry names the one before it.
  > entry 1
  > after -
  > did rested
  > date 2026-10-13
  > at 2026-10-13T14:38:57.112056031Z
  > field /tmp/tmp.JUDwlrNNrj/field
  > seasons 1
  > from 2027-03-25

== 3. The quarter day boundary and exact restoration

$ env FALLOW_TODAY=2027-03-24 fallow plough /tmp/tmp.JUDwlrNNrj/field
  ! Today is taken to be 2027-03-24 (FALLOW_TODAY).
  ! Not before 25 Mar 2027. 1 day to go. Nothing was changed.
  exit 1
  ok  exit 1
  ok  refusal begins 'Not before 25 Mar 2027. 1 day to go.'
  ok  still no write bit
  ok  book size unchanged (2072)

$ env FALLOW_TODAY=2027-03-25 fallow plough /tmp/tmp.JUDwlrNNrj/field
  | Ploughed /tmp/tmp.JUDwlrNNrj/field
  |   69 entries restored to the modes they had.
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Changed since rest: none found.
  |   Write permission: held on all 69 locked entries.
  |   Entered as no. 2. Seal 738b26ef8643.
  ! Today is taken to be 2027-03-25 (FALLOW_TODAY).
  exit 0
  ok  exit 0
  ok  starts 'Ploughed', not 'Ploughed early'
  ok  '69 entries restored to the modes they had.'
  ok  modes identical
  ok  modification times identical
  ok  contents identical
  ok  echo x >> docs/notes.md works
  ok  run.sh still executable

== 4. The trespass is written in plain words and the book only grows

$ env FALLOW_TODAY=2026-10-13 fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 2
  | Resting /tmp/tmp.JUDwlrNNrj/field
  |   88 entries, 69 locked.
  |   Left as found: 18 already read-only, 1 symlink.
  |   Last touched 13 Oct 2026 (docs/notes.md).
  |   Nothing was deleted or moved. Reading is unchanged.
  |   Rested 13 Oct 2026 for 2 seasons. Ploughing from 24 Jun 2027.
  |   Entered as no. 3. Seal 0ec8fe126a5b.
  ! Today is taken to be 2026-10-13 (FALLOW_TODAY).
  exit 0
  ok  rest exit 0, ploughing from 24 Jun 2027

$ env FALLOW_TODAY=2027-01-05 fallow plough /tmp/tmp.JUDwlrNNrj/field --trespass
  | Ploughed early /tmp/tmp.JUDwlrNNrj/field
  |   69 entries restored to the modes they had.
  |   Rested 13 Oct 2026 for 2 seasons. Ploughed 5 Jan 2027.
  |   Changed since rest: none found.
  |   Write permission: held on all 69 locked entries.
  |   Ploughed early, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Entered as no. 4. Seal 0681a2b9aa2e.
  ! Today is taken to be 2027-01-05 (FALLOW_TODAY).
  exit 0
  ok  exit 0
  ok  the posted line
  ok  writes work again
  ok  grep -c 'posted, not fenced' book is 1
  ok  the entry says did trespassed
  ok  earlier bytes untouched (cmp -n)

$ env FALLOW_TODAY=2026-10-13 fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 1
  | Resting /tmp/tmp.JUDwlrNNrj/field
  |   88 entries, 69 locked.
  |   Left as found: 18 already read-only, 1 symlink.
  |   Last touched 13 Oct 2026 (docs/notes.md).
  |   Nothing was deleted or moved. Reading is unchanged.
  |   Rested 13 Oct 2026 for 1 season. Ploughing from 25 Mar 2027.
  |   Entered as no. 5. Seal 75a6210b6c08.
  ! Today is taken to be 2026-10-13 (FALLOW_TODAY).
  exit 0

$ env FALLOW_TODAY=2027-03-25 fallow plough /tmp/tmp.JUDwlrNNrj/field --trespass
  | Ploughed /tmp/tmp.JUDwlrNNrj/field
  |   69 entries restored to the modes they had.
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Changed since rest: none found.
  |   Write permission: held on all 69 locked entries.
  |   Entered as no. 6. Seal 942556fdbce2.
  ! Today is taken to be 2027-03-25 (FALLOW_TODAY).
  exit 0
  ok  the flag alone: exit 0, 'Ploughed' not early, did ploughed

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  6 entries, each follows the one before.  Seal 942556fdbce2
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  exit 0
  ok  STATE shows 'ploughed early 5 Jan 2027'
  ok  the trespass block

== 5. The ledger holds without the permission bit

$ env FALLOW_TODAY=2026-10-13 fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 1
  | Resting /tmp/tmp.JUDwlrNNrj/field
  |   88 entries, 69 locked.
  |   Left as found: 18 already read-only, 1 symlink.
  |   Last touched 13 Oct 2026 (docs/notes.md).
  |   Nothing was deleted or moved. Reading is unchanged.
  |   Rested 13 Oct 2026 for 1 season. Ploughing from 25 Mar 2027.
  |   Entered as no. 7. Seal ba63a9400844.
  ! Today is taken to be 2026-10-13 (FALLOW_TODAY).
  exit 0

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  7 entries, each follows the one before.  Seal ba63a9400844
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  resting                    winter grain
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughing allowed from 25 Mar 2027 (163 days).
  |   Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |   Write permission: back on 1 of 69 locked entries.
  | 
  | A modification time can be moved by a backup, a sync or an indexer. This is evidence, not a finding.
  exit 0
  ok  exit 0
  ok  one line 'Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.'
  ok  one line 'Write permission: back on 1 of 69 locked entries.'
  ok  no evidence line says trespass
  ok  last line is the caution
  ok  status wrote nothing

$ env FALLOW_TODAY=2027-03-25 fallow plough /tmp/tmp.JUDwlrNNrj/field
  | Ploughed /tmp/tmp.JUDwlrNNrj/field
  |   69 entries restored to the modes they had.
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |   Write permission: back on 1 of 69 locked entries.
  |   Entered as no. 8. Seal 16f7adb94299.
  ! Today is taken to be 2027-03-25 (FALLOW_TODAY).
  exit 0
  ok  plough exit 0
  ok  'changed 1 ' once, in the newest entry
  ok  'writable 1 ' once, in the newest entry
  newest entry:
  > entry 8
  > after ba63a9400844
  > did ploughed
  > date 2027-03-25
  > at 2026-10-13T14:38:58.830209655Z
  > field /tmp/tmp.JUDwlrNNrj/field
  > of 7
  > restored 69
  > gone 0
  > changed 1 2026-10-13T14:38:58.728425135Z run.sh
  > writable 1 69
  > note Ploughed on the quarter day.

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  8 entries, each follows the one before.  Seal 16f7adb94299
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Found at ploughing:
  |     Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |     Write permission: back on 1 of 69 locked entries.
  exit 0
  ok  the Found at ploughing block

== 6. Edited books are visible

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  8 entries, Entry 2 names a different entry 1 than the one in the book.  Seal 16f7adb94299
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  4        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  4        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  4        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 4 seasons. Ploughed 25 Mar 2027.
  |   Found at ploughing:
  |     Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |     Write permission: back on 1 of 69 locked entries.
  exit 1
  ok  exit 1
  ok  the break in place of 'each follows'
  ok  table header still printed once

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  8 entries, each follows the one before.  Seal 16f7adb94299
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Found at ploughing:
  |     Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |     Write permission: back on 1 of 69 locked entries.
  exit 0
  ok  restored: exit 0

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  7 entries, Entry numbering jumps from 1 to 3.  Seal 16f7adb94299
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  resting                    winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Found at ploughing:
  |     Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |     Write permission: back on 1 of 69 locked entries.
  exit 1
  ok  deleted entry: exit 1, 'Entry numbering jumps from 1 to 3.'
  ok  table header still printed once
  ok  a line added to the last entry changes the seal (16f7adb94299 to b77fc48cccae)
  ok  the book is the good one again

== 7. Refusals each name the cause and change nothing

$ env FALLOW_TODAY=2026-10-13 fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 1
  | Resting /tmp/tmp.JUDwlrNNrj/field
  |   88 entries, 69 locked.
  |   Left as found: 18 already read-only, 1 symlink.
  |   Last touched 13 Oct 2026 (run.sh).
  |   Nothing was deleted or moved. Reading is unchanged.
  |   Rested 13 Oct 2026 for 1 season. Ploughing from 25 Mar 2027.
  |   Entered as no. 9. Seal 219337ee208e.
  ! Today is taken to be 2026-10-13 (FALLOW_TODAY).
  exit 0
  ok  rest again: exit 0

$ fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 1
  ! /tmp/tmp.JUDwlrNNrj/field is already resting. Ploughing from 25 Mar 2027. Nothing was changed.
  exit 1
  ok  exit 1: /tmp/tmp.JUDwlrNNrj/field is already resting. Ploughing from 25 Mar 2027. Nothing was changed.
  ok    nothing changed

$ fallow rest /tmp/tmp.JUDwlrNNrj/field/docs --seasons 1
  ! /tmp/tmp.JUDwlrNNrj/field/docs lies inside the resting field /tmp/tmp.JUDwlrNNrj/field. Nothing was changed.
  exit 1
  ok  exit 1: /tmp/tmp.JUDwlrNNrj/field/docs lies inside the resting field /tmp/tmp.JUDwlrNNrj/field. Nothing was changed.
  ok    nothing changed

$ fallow rest /tmp/tmp.JUDwlrNNrj --seasons 1
  ! /tmp/tmp.JUDwlrNNrj holds the resting field /tmp/tmp.JUDwlrNNrj/field. Nothing was changed.
  exit 1
  ok  exit 1: /tmp/tmp.JUDwlrNNrj holds the resting field /tmp/tmp.JUDwlrNNrj/field. Nothing was changed.
  ok    nothing changed

$ fallow rest /tmp/tmp.l2Q4B7eych --seasons 1
  ! ~ holds the field book. Fallow will not rest it. Nothing was changed.
  exit 1
  ok  exit 1: ~ holds the field book. Fallow will not rest it. Nothing was changed.
  ok    nothing changed

$ fallow rest /tmp/tmp.JUDwlrNNrj/field/run.sh --seasons 1
  ! /tmp/tmp.JUDwlrNNrj/field/run.sh is not a directory. Nothing was changed.
  exit 1
  ok  exit 1: /tmp/tmp.JUDwlrNNrj/field/run.sh is not a directory. Nothing was changed.
  ok    nothing changed

$ fallow plough /tmp/tmp.Kyj4rGW93z
  ! /tmp/tmp.Kyj4rGW93z is not resting. Nothing was changed.
  exit 1
  ok  exit 1: /tmp/tmp.Kyj4rGW93z is not resting. Nothing was changed.
  ok    nothing changed

$ fallow rest /tmp/tmp.Kyj4rGW93z --seasons 0
  ! Seasons are counted in whole numbers from 1 to 40.
  exit 2
  ok  exit 2: Seasons are counted in whole numbers from 1 to 40.
  ok    nothing changed

$ fallow rest /tmp/tmp.Kyj4rGW93z --seasons 41
  ! Seasons are counted in whole numbers from 1 to 40.
  exit 2
  ok  exit 2: Seasons are counted in whole numbers from 1 to 40.
  ok    nothing changed

$ fallow rest /tmp/tmp.Kyj4rGW93z --seasons x
  ! Seasons are counted in whole numbers from 1 to 40.
  exit 2
  ok  exit 2: Seasons are counted in whole numbers from 1 to 40.
  ok    nothing changed

$ fallow rest /tmp/tmp.Kyj4rGW93z
  ! Say how long: fallow rest DIR --seasons N.
  exit 2
  ok  exit 2: Say how long: fallow rest DIR --seasons N.
  ok    nothing changed

$ env FALLOW_TODAY=banana fallow status
  ! FALLOW_TODAY must be YYYY-MM-DD.
  exit 2
  ok  exit 2: FALLOW_TODAY must be YYYY-MM-DD.
  ok    nothing changed

$ fallow rest /tmp/tmp.OwLNF9ULv4 --seasons 1
  ! A name in this field contains a line break. Fallow cannot write it down. Nothing was changed.
  exit 1
  ok  a name with a line break: exit 1, the sentence
  ok    not locked, book unchanged

== 9. A copy carries its rest

$ env FALLOW_TODAY=2027-03-25 fallow plough /tmp/tmp.JUDwlrNNrj/field
  | Ploughed /tmp/tmp.JUDwlrNNrj/field
  |   69 entries restored to the modes they had.
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Changed since rest: none found.
  |   Write permission: held on all 69 locked entries.
  |   Entered as no. 10. Seal 225d8c94680a.
  ! Today is taken to be 2027-03-25 (FALLOW_TODAY).
  exit 0
  ok  close the open rest: exit 0

$ env FALLOW_TODAY=2026-10-13 fallow rest /tmp/tmp.JUDwlrNNrj/field --seasons 1
  | Resting /tmp/tmp.JUDwlrNNrj/field
  |   88 entries, 69 locked.
  |   Left as found: 18 already read-only, 1 symlink.
  |   Last touched 13 Oct 2026 (run.sh).
  |   Nothing was deleted or moved. Reading is unchanged.
  |   Rested 13 Oct 2026 for 1 season. Ploughing from 25 Mar 2027.
  |   Entered as no. 11. Seal 9a2c03e17a40.
  ! Today is taken to be 2026-10-13 (FALLOW_TODAY).
  exit 0

$ fallow status /tmp/tmp.uMxYw8HUYq/copy
  | /tmp/tmp.uMxYw8HUYq/copy is not in the book. It carries the locks of entry 11 (/tmp/tmp.JUDwlrNNrj/field): 69 of 69 locked entries.
  exit 0
  ok  exit 0, carries 69 of 69

$ fallow status /tmp/tmp.uMxYw8HUYq/copy
  | /tmp/tmp.uMxYw8HUYq/copy is not in the book. It carries the locks of entry 11 (/tmp/tmp.JUDwlrNNrj/field): 68 of 69 locked entries.
  exit 0
  ok  after chmod u+w: 68 of 69

$ fallow status /tmp/tmp.JUDwlrNNrj/field
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughing allowed from 25 Mar 2027 (163 days).
  |   Changed since rest: none found.
  |   Write permission: held on all 69 locked entries.
  exit 0
  ok  status F: only its block, no heading, no table

$ fallow status /tmp/tmp.Kyj4rGW93z
  | /tmp/tmp.Kyj4rGW93z is not in the book.
  exit 0
  ok  status OUT: exactly '/tmp/tmp.Kyj4rGW93z is not in the book.'

$ fallow plough /tmp/tmp.uMxYw8HUYq/copy
  ! /tmp/tmp.uMxYw8HUYq/copy is not resting. Nothing was changed.
  exit 1
  ok  plough the copy: exit 1, not resting
  ok  book unchanged, field still locked

== the book as it stands

$ fallow status
  | FIELD BOOK
  | ~/.fallow-book  11 entries, each follows the one before.  Seal 9a2c03e17a40
  | 
  | FIELD                      RESTED       SEASONS  PLOUGH FROM  STATE                      CROP
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  2        24 Jun 2027  ploughed early 5 Jan 2027  spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       fallow
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       winter grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  ploughed 25 Mar 2027       spring grain
  | /tmp/tmp.JUDwlrNNrj/field  13 Oct 2026  1        25 Mar 2027  resting                    fallow
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 2 seasons.
  |   Ploughed early 5 Jan 2027, 170 days before 24 Jun 2027. The field was posted, not fenced.
  |   Found at ploughing:
  |     Changed since rest: none found.
  |     Write permission: held on all 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughed 25 Mar 2027.
  |   Found at ploughing:
  |     Changed since rest: 1 entry. Newest: 13 Oct 2026, run.sh.
  |     Write permission: back on 1 of 69 locked entries.
  | 
  | /tmp/tmp.JUDwlrNNrj/field
  |   Rested 13 Oct 2026 for 1 season. Ploughing allowed from 25 Mar 2027 (163 days).
  |   Changed since rest: none found.
  |   Write permission: held on all 69 locked entries.
  exit 0

all 91 assertions passed
