Repository navigation
Commit 7b4fdc6
authored
chore(context7): drop the stale planning/ exclusion (#68)
* chore: migrate off the planning/ convention
Replaces the two-axis planning/ + architecture/ convention with PR-body-as-spec,
CONTEXT.md for vocabulary, and docs/adr/ for rejected alternatives, per
modern-python/.github#67.
- planning/ deleted in full (22 files). changes/ is git history's job; the three
release notes are byte-identical to the published Release bodies (spot-checked
0.4.1 and 0.4.0 with `gh release view` — the only difference is a trailing
newline GitHub adds), so the Releases are the record. deferred.md was empty.
- planning/decisions/ held two records, now docs/adr/0001 (the fake broker keeps
immediate delivery; no InMemoryTimerStore) and docs/adr/0002 (keep the
publisher/subscriber construction factories). Frontmatter stripped; each opens
with **Decision:** and closes with **Revisit trigger:**. Two more rejected
alternatives were rescued from change files: 0003, dropping the per-call
middlewares= kwarg that FastStream 0.7 removed upstream rather than routing it
to broker scope or re-implementing it locally; and 0004, backporting @OverRide
via typing_extensions unconditionally rather than gating on sys.version_info.
- architecture/ held seven pages. Nearly every enforceable claim they made was
already covered by a named test — the activation model (test_publish_api), the
lease/at-least-once guarantee (test_at_least_once), the self-heal paths
(test_isolation), the immediate-delivery fake (test_fake), the legacy envelope
read fallback (test_envelope), and every TimerStore method (test_unit). Two
claims were not, and become INVARIANT tests:
- tests/test_store_seam.py::test_the_redis_timer_protocol_is_issued_only_from_the_store
— timer-store.md's central claim that no caller touches the sorted set, hash
or Lua directly. An AST scan for protocol-command call sites; `ping` is
excluded because it is connection health, not the protocol.
- tests/test_tuning_defaults.py::test_every_declaration_of_a_subscriber_tuning_knob_carries_the_published_default
— delivery.md's Tuning table. The four poll-loop defaults are repeated in
four signatures (TimerSub, create_subscriber, TimersRegistrator.subscriber,
TimersRoute) and published in two docs tables, and nothing kept them in sync.
Both were verified by breaking them: making has_pending ZSCORE the timeline
directly fails the first (the exact violation its docstring names); raising
lease_ttl to 60 in the registrator only fails the second. Both stay green under
an allowed change — a new protocol command issued from inside store.py, and a
further ping() call outside it, for the first; a new non-tuning kwarg added to
one site only, for the second. Every source file was restored byte-identically
(md5-checked) and the suite is green. The rest of the pages was prose about
mechanism, deleted rather than relocated; nothing was invented to justify the
directory.
- CONTEXT.md is seeded from architecture/glossary.md and cut against real usage.
Of the glossary's eleven _Avoid_ lines, ten rejected synonyms that appear
nowhere in *.py/*.md outside the deleted trees: job/alarm, repository/backend,
fire-time, enqueue, ready/ripe, acquire/reserve/reservation, finish, abort and
revoke are all zero-hit, and the hits for task, deadline, TTL, expired, lock,
delete, complete and stream are unrelated senses (asyncio tasks, the *lease*
deadline, redis_client.delete, FastStream's own Channel/List/Stream subscriber
types). TimerStore and Cancel lost their listings entirely — they mean what
they say. The one surviving rejection is queue, which had ten real stragglers,
now fixed to the winning spelling: README.md, docs/introduction/how-it-works.md,
docs/usage/{basic,router,subscriber}.md and a schemas.py comment said "when the
queue has work", "previously-idle queue", "wipe a topic's queue" and "queue
resets". Seven of those are user-visible documentation prose; none is a code
identifier, error message or other user-visible string. `channel` keeps a
documented carve-out rather than a rejection: it survives only where FastStream
owns the spelling, in the raw_message field and the log-context key.
- AGENTS.md gains Workflow and Where-a-fact-goes, loses the planning lanes, and
sheds the `just test` and `just lint` descriptions the justfile already states.
- No docs/agents/domain.md. origin/main has a docs/ tree, but it is the mkdocs
site — there was no docs/agents/ and AGENTS.md has no Agent skills section to
link one from, so authoring it alone would be a half-rollout of a separate
convention.
- justfile and lint-ci drop index/check-planning; the offline lychee gate is a
new links job in _checks.yml (modern-python/.github#66). It reports 0 errors
over every .md, down from 2 — both were relative links to a plan.md that never
existed, inside planning/changes/, so deleting the directory is what fixed them.
- mkdocs.yml excludes /adr/ from the published site, matching modern-di. Without
it the new pages are files-not-in-nav, and `just docs-build` runs mkdocs
--strict, so the docs job would have gone red.
Beyond the recipe, and the reason this is chore: and not docs: release.yml
sourced the Release body from planning/releases/<tag>.md and hard-required one
for every stable tag, so deleting planning/ would have failed every future
stable release. It now uses GitHub's generated notes, copied verbatim from
modern-di's post-migration workflow, which dropped the same gate in 1ea74ee
(modern-python/modern-di#449). This retires the mandatory-curated-notes policy;
that is the precedent's call, not a new one.
* chore(context7): drop the stale planning/ exclusion
The sibling commit on this branch deletes planning/, so the exclusion now
names a directory that does not exist.
Dropping the key rather than leaving an empty list: Context7's schema
(https://context7.com/schema/context7.json) declares no required properties
and gives excludeFolders a default of [], so an absent key and an empty list
are equivalent. Absent matches the repos that never carried the line.1 parent 43aeb2d commit 7b4fdc6
48 files changed
Lines changed: 415 additions & 2437 deletions
File tree
- .github/workflows
- architecture
- docs
- adr
- introduction
- usage
- faststream_redis_timers
- planning
- _templates
- changes
- decisions
- releases
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 28 | | |
48 | 29 | | |
49 | 30 | | |
50 | 31 | | |
51 | 32 | | |
52 | 33 | | |
53 | 34 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
58 | 40 | | |
59 | 41 | | |
60 | 42 | | |
61 | 43 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 44 | | |
70 | 45 | | |
71 | 46 | | |
| |||
75 | 50 | | |
76 | 51 | | |
77 | 52 | | |
78 | | - | |
79 | | - | |
| 53 | + | |
80 | 54 | | |
81 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | | - | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments