Skip to content

docs: state the definition of done and the sanctioned _notify exception - #110

Merged
bagowix merged 1 commit into
mainfrom
docs/definition-of-done
Aug 1, 2026
Merged

docs: state the definition of done and the sanctioned _notify exception#110
bagowix merged 1 commit into
mainfrom
docs/definition-of-done

Conversation

@bagowix

@bagowix bagowix commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Two gaps in AGENTS.md that have each cost rework already.

1. The CHANGELOG and docs obligations lived only in the PR checklist. They surface at review time rather than while the work happens, so a change could arrive at a PR complete in every respect except the two things a user actually reads. #108 shipped its CHANGELOG entry only because the template got opened at the end.

Adds a Definition of done section naming them explicitly, together with the llms-full.txt regeneration step (previously documented only in docs/CLAUDE.md, which an agent working in interlock/ never reads) and the tests-first expectation. The PR template is called out as the last gate, not the first reminder.

2. The "no silent exceptions" hard rule now has a deliberate, shipped counter-example. interlock/_notify.py logs a raising EventListener hook with its traceback and swallows it, so observability cannot replace a protected result, mask a dependency's exception, or kill a coordinator lane (#83). Without that written down, the next reader — human or agent — sees a blind except Exception in a codebase whose style guide forbids exactly that, and "fixes" it.

The note records the exception, states why it is not actually silent (BaseException still propagates, the traceback is logged), and bounds it so it is not read as licence to swallow anywhere else.

Checklist

  • Tests added or updated (suite stays at 100% coverage) — n/a, documentation only
  • uv run ruff format --check and uv run ruff check pass
  • uv run mypy and uv run pyright pass
  • Docs updated (docs/) for user-facing changes — n/a, AGENTS.md is contributor-facing
  • CHANGELOG.md [Unreleased] updated — n/a, no user-visible behaviour change
  • Commits follow Conventional Commits

Related issues

None — follow-up housekeeping after #108 and #109.

Two gaps in AGENTS.md that cost real rework.

The CHANGELOG and docs obligations existed only in the PR checklist, which
surfaces at review time rather than while the work happens -- so a change
could reach a PR complete except for the two things a user actually reads.
Adds a "Definition of done" section naming them, plus the llms-full.txt
regeneration step and the tests-first expectation, and points at the PR
template as the last gate rather than the first reminder.

The "no silent exceptions" hard rule now has one deliberate, shipped
counter-example: _notify.py logs and swallows a raising EventListener hook
so observability cannot fail a protected call or kill a coordinator lane
(#83). Recording it here keeps a future reader from "fixing" it, and bounds
it so it is not read as licence to swallow elsewhere.
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@codspeed-hq

codspeed-hq Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 21 untouched benchmarks


Comparing docs/definition-of-done (d3fbb6a) with main (80c165c)

Open in CodSpeed

@bagowix
bagowix merged commit 19e5460 into main Aug 1, 2026
12 of 13 checks passed
@bagowix
bagowix deleted the docs/definition-of-done branch August 1, 2026 14:59
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