feat(8191): knowledge reaches a session from every project, ranked below its own and labelled
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Python tests (push) Failing after 2m0s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 2m7s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Python tests (push) Failing after 2m0s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 2m7s
A per-kind reach beside the kind-by-moment table (setting record_reach, default snippet/note/process/lesson) widens the passive note arms and their slots to the user's other projects. A record from elsewhere gives up 0.05 before the floor and the ranking, and its line names the project. Work kinds stay in their project, the visibility clause is unchanged, and an explicit project search still means that project. Settings > Moments edits the reach. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+7
-4
@@ -371,9 +371,10 @@ def _default_record_kinds(request):
|
||||
"""Stub the settings read behind the kind×moment table.
|
||||
|
||||
Both record searches read the user's kinds per door
|
||||
(`record_kinds.kinds_for`); stubbed to the shipped default so a unit test
|
||||
of a door needs no database. The integration lane, where the table's own
|
||||
tests live, reads the real setting.
|
||||
(`record_kinds.kinds_for`) and the kinds they take from other projects
|
||||
(`record_kinds.reach_for`); both stubbed to the shipped default so a unit
|
||||
test of a door needs no database. The integration lane, where the table's
|
||||
own tests live, reads the real setting.
|
||||
"""
|
||||
if request.node.get_closest_marker("integration"):
|
||||
yield
|
||||
@@ -383,7 +384,9 @@ def _default_record_kinds(request):
|
||||
async def _default(_user_id, door):
|
||||
return record_kinds.DOORS[door].default
|
||||
|
||||
with patch.object(record_kinds, "kinds_for", AsyncMock(side_effect=_default)):
|
||||
with patch.object(record_kinds, "kinds_for", AsyncMock(side_effect=_default)), \
|
||||
patch.object(record_kinds, "reach_for",
|
||||
AsyncMock(return_value=record_kinds.REACH_DEFAULT)):
|
||||
yield
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user