Skip to content

Retrieval trigger for 'put this document into NodeSpace' and an agent-run check of the markdown-import guidance (needs a model) #4257

Closed

Description

@mstomar125

Split from the closed parent issue on guidance for writing markdown into nodes. The service-level structure test is merged (headings keep their prefix, list items are text children without markers, ordered lists keep their number, no typed syntax in text nodes).

Left

  • Change the use_for text in packages/agent/src/skill_pipeline.rs so requests like 'put this document into NodeSpace' or 'copy this Google Doc here' retrieve the import guidance (proposed text is in the parent issue's merged comment). This moves a digest pinned by a gate test, so it needs a re-record on the embedding model.
  • A guidance-driven check that an agent following it creates the document through import: the eval half of the acceptance criterion.

Why it is not done

Both need a model on a device where model work is allowed. packages/agent is covered by the 2026-11-03 sign-off.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Nov 6, 2026
  2. mstomar125 commented on Nov 12, 2026

    @mstomar125
    ContributorAuthor

    Held: use_for edit and two matrix rows are on branch issue-4257-bulk-import-trigger (no PR). Digest re-record and ranking check not yet observed (need the embedding model CPU-only).

  3. mstomar125 commented on Nov 12, 2026

    @mstomar125
    ContributorAuthor

    Not done. The use_for edit and two confusion-matrix rows ('put this document into NodeSpace', 'copy this Google Doc here' must lead with Bulk Import) are on branch issue-4257-bulk-import-trigger-v2 (62a556b, on current main, no PR). The digest (tests/golden/skill_retrieval/current.sha256, current.tsv) is NOT re-recorded and the ranking is not observed, so the digest gate test fails on that branch. Next: NODESPACE_FORCE_CPU=1 NODESPACE_LIVE_EMBED_MODEL= UPDATE_GOLDEN=1 cargo nextest run -p nodespace-agent --test it skill_confusion_matrix::skills_win_their_requests --run-ignored only -j 1; read the diff; commit current.tsv + current.sha256; then the agent-run check of the markdown-import guidance.

  4. mstomar125 commented on Nov 12, 2026

    @mstomar125
    ContributorAuthor

    Observed 2026-11-12 on issue-4257-bulk-import-trigger-v2 (62a556b), CPU-only (NODESPACE_FORCE_CPU=1, nomic-embed-text-v1.5.Q8_0 from the local models dir): UPDATE_GOLDEN=1 cargo test -p nodespace-agent --features testing --test it skill_confusion_matrix::skills_win_their_requests -- --ignored --nocapture --test-threads=1.
    Observed for the new rows: "put this document into NodeSpace" ranks Bulk Import 1st (1.002, +0.038 margin); "copy this Google Doc here" ranks Researching 0.898 first by raw retrieval, Bulk Import 2nd (0.841), but Bulk Import leads the routed list.
    BUT the re-record is not committable: it rewrote ~190 of the tsv lines (scores on unrelated rows moved) and the test still panics with 2 misses on rows unrelated to this change ("which tasks depend on the API migration?" and "continue the task I was working on": Completing a Task 0.984 leads Implementing a Task, main's tsv has 0.985 for the latter). My inference, untested: the committed golden was recorded on a different backend than CPU, and CPU numerics differ enough to reorder near-ties. I discarded the CPU re-record and committed nothing; no PR. Needs the digest recorded on the same backend as the committed golden (a GPU run, which was out of bounds here), or a decision that the golden is CPU-recorded. Stays open.

  5. mstomar125 commented on Nov 13, 2026

    @mstomar125
    ContributorAuthor

    Observed 2026-11-13, CPU-only (NODESPACE_FORCE_CPU=1, nomic-embed-text-v1.5.Q8_0). Re-recorded on a local branch from issue-4257-bulk-import-trigger-v2 (62a556b): commit 9a9d3b591, current.tsv 192 insertions / 190 deletions, current.sha256 changed; NOT pushed and NO PR, because the live test still fails after the re-record.

    Findings: (1) The two rows "which tasks depend on the API migration?" and "continue the task I was working on" miss again, with identical routed lists on unmodified main (c2c6d58) re-recorded the same way on CPU (main on CPU: 17 of 190 miss, 2 unrecorded; this branch: 16 of 192 miss, 2 unrecorded). So they are not caused by the use_for change; they are CPU numerics reordering near-ties against a golden recorded elsewhere (e.g. Completing a Task 0.984 vs the committed 0.985 for Implementing a Task). (2) The ~190 changed tsv rows are score drift on unrelated rows for the same reason; the sha256 digest covers the seeded text only (main re-recorded on CPU left it unchanged). (3) New rows observed: "put this document into NodeSpace" Bulk Import 1st (1.002, +0.038); "copy this Google Doc here" Bulk Import 2nd by raw retrieval (0.841 vs Researching 0.898) but leads the routed list. Non-ignored gate test the_recorded_matrix_is_of_the_seeded_text passes on the commit; skills_win_their_requests (ignored, model) re-run without UPDATE_GOLDEN FAILS with those 2 misses. Waiting on a decision: record the 2 rows as not-yet-won on CPU, or record on the original backend.

  6. mstomar125 commented on Nov 13, 2026

    @mstomar125
    ContributorAuthor

    Closing: #4271 merged. Bulk Import's use_for now covers putting a document, page or Google Doc into NodeSpace, and the two new rows lead Bulk Import. Golden re-recorded on CPU (shared Mac forbids GPU; nomic-embed-text-v1.5.Q8_0); the test passes against it and the seeded-text gate test passes. Two near-tie rows ('which tasks depend on the API migration?', 'continue the task I was working on') are recorded as not-yet-won because CPU numerics reorder them (shown by an unmodified-main CPU re-record); they may read differently on a GPU machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions