Skip to content

Phrase the retention rationale neutrally - #44

Merged
myobie merged 1 commit into
mainfrom
docs/neutral-retention-rationale
Aug 4, 2026
Merged

Phrase the retention rationale neutrally#44
myobie merged 1 commit into
mainfrom
docs/neutral-retention-rationale

Conversation

@myobie

@myobie myobie commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Docs only, no behaviour change. cos flagged this and asked me not to block on it, so it rides on its own.

What was wrong

The doc comment on DEFAULT_LOG_RETENTION_DAYS said "the principal travels for about a month and is the only person who investigates an incident". That bakes a specific person's circumstances into shipped code — which the contract forbids, and which stops being true the moment anyone else runs fabric.

The reasoning is sound and stays. Only the framing changes: an operator may be away from a machine for a month, so retention must outlast a trip. The number, the floor, the margin, and the test are unchanged.

Also neutralised the assertion message in the pinning test, which said "before the only person who investigates it gets home".

Something I found while checking, and did not fix here

Grepping for the same class turned up more, all pre-existing and none of it mine:

  • src/daemon.rs:4680 and src/service.rs:865 — comments attributing a memory-policy decision by personal name ("Nathan's rule: …").
  • src/service.rs — six test fixtures hardcoding a username in sample paths: /home/nathan/.local/share/fabric, /Users/nathan/Fabric 100%.

I left them alone. cos asked for a small fix to my own comment, and rewriting six assertions plus two decision-attribution comments in a file I was not asked to touch is scope I should not take unilaterally — the test fixtures carry real regression risk for no functional gain, and the attributions encode who decided something, which may be deliberate.

Flagging rather than fixing or ignoring. Happy to do either on request.

Tests

201 lib tests green.

The doc comment said the principal travels for about a month and is the only
person who investigates an incident. That bakes a specific person's
circumstances into shipped code, which the contract forbids and which stops
being true the moment anyone else runs fabric.

The reasoning is sound and stays. Only the framing changes: an operator may be
away from a machine for a month, so retention must outlast a trip. The number,
the floor, the margin and the test are all unchanged.

Also neutralised the assertion message in the pinning test for the same reason.

No behaviour change.
@myobie
myobie merged commit 229cb64 into main Aug 4, 2026
2 checks passed
@myobie
myobie deleted the docs/neutral-retention-rationale branch August 4, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant