feat(7832): records reach an edit and a message by structure first; resemblance offers notes
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 12s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Failing after 1m39s
CI & Build / integration (push) Successful in 2m17s
CI & Build / Build & push image (push) Skipped
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 12s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Failing after 1m39s
CI & Build / integration (push) Successful in 2m17s
CI & Build / Build & push image (push) Skipped
The kind×moment table's first measured defaults (baseline note #7892): - The edit door splits in two rows. work.change is what is recorded where the edit is (snippets beside the file, issues naming it or open in its area); work.change.similar is what the code resembles, notes by default. Issues and snippets no longer reach an edit by resemblance. - Snippets recorded beside the file are named by id in an "Also recorded beside this file" pointer line instead of taking menu lines. - The message door leaves lessons and issues out by default: a lesson arrives at its confirmed situation, an issue through its area or its id. Its lesson slot runs only for a user who turns lessons back on. - The static context teaches the new pointer line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -165,17 +165,18 @@ async def test_no_ids_short_circuits_without_a_query():
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"lookups, expected_source",
|
||||
"lookups, expected_source, listed",
|
||||
[
|
||||
# A hit AT the exact file is the sync class; a hit from the
|
||||
# directory query is the reuse-shaped place arm. Both are un-scored,
|
||||
# and both must leave a usage trace under their own name.
|
||||
([(1, "hit"), (2, "empty")], "write_path_sync"),
|
||||
([(1, "empty"), (2, "hit")], "write_path_place"),
|
||||
# A hit AT the exact file is the sync class, given a line; a hit from
|
||||
# the directory query is the place arm, named by id in a pointer
|
||||
# line. Both are un-scored, and both must leave a usage trace under
|
||||
# their own name.
|
||||
([(1, "hit"), (2, "empty")], "write_path_sync", [42]),
|
||||
([(1, "empty"), (2, "hit")], "write_path_place", []),
|
||||
],
|
||||
ids=["at-the-file", "nearby"],
|
||||
)
|
||||
async def test_unscored_location_arms_are_recorded(lookups, expected_source):
|
||||
async def test_unscored_location_arms_are_recorded(lookups, expected_source, listed):
|
||||
"""The location arms carry no score, so they have no home in retrieval_logs
|
||||
— without a usage row they would surface snippets while leaving no trace
|
||||
anywhere. Asserted per class."""
|
||||
@@ -205,7 +206,7 @@ async def test_unscored_location_arms_are_recorded(lookups, expected_source):
|
||||
1, "src/a.py", code="def f(): pass"
|
||||
)
|
||||
|
||||
assert out["note_ids"] == [42]
|
||||
assert out["note_ids"] == listed
|
||||
sources = {c.kwargs["source"] for c in surfaced.call_args_list}
|
||||
assert expected_source in sources
|
||||
|
||||
|
||||
Reference in New Issue
Block a user