GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) · Issue #9973 · developing-today/code

atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973

New issue
Copy link
New issue
Copy link
Closed
Closed
atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1)#9973
Copy link
Labels
area/infraInfrastructure, deployment, and operationsepic/atlas-programReprioritization program epic (2026-11-12)kind/enhancementpriority/normalOrdinary priority (the default)status:done

Description

@dezren39
dezren39
opened on Nov 14, 2026
Issue body actions

Follow-on 1 of 5 from the #6027 design (doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md, merged via PR #8251). Parent program: #6018.

Scope (design §§2–3)

  • Mint query_id (UUIDv7) per executed search in the atlas search service; return it in every response envelope and print it in the CLI. Retries are separate executions linked by retry_of.
  • Persist the per-query trace as atlas-query-trace/v1 JSONL records: per-result stage scores (shard rank/score, merge rank + fusion score incl. the persisted FusedEntry rank_sources_json, rescore, final rank/served), resolved file/embed identity (source_file_id, embed_id, embed_content_hash, version, tier, provenance mark), parameters used, and pool counts. Results that entered a pool but did not survive still appear with served: false.
  • Fail closed (design invariant 2): a trace write failure is a search failure, never a silently untraced success.

Acceptance

  • A live search produces a trace record that parses against the §3 schema and lets an operator recover every served result's per-stage scores.
  • Killing the trace sink makes search fail visibly (test).
  • No change to ranking behaviour; trace overhead measured and reported on the PR.

Design: doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md §§2–3. Filed by queue-worker triage of #6027 (task 15280).

Activity

  1. dezren39
    added
    priority/normalOrdinary priority (the default)
    area/infraInfrastructure, deployment, and operations
    kind/enhancement
    epic/atlas-programReprioritization program epic (2026-11-12)
    on Nov 14, 2026
  2. developing-today commented on Nov 14, 2026

    @developing-today
    developing-todayBot
    on Nov 14, 2026 – with developing.today
    Contributor
    More actions

    CODE-3467

  3. developing-today
    added
    status:in-review
    on Nov 14, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 14, 2026
  5. dezren39
    added a commit that references this issue on Nov 14, 2026

    Merge pull request #10145 from developing-today/queue/16846-9973-atla…

    6a8fa5f
  6. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    Implemented and merged — PR #10145 (merge 6a8fa5f), task 16846, lane any-d.

    What landed, per design sections 2-3:

    • atlas-core trace module: atlas-query-trace/v1 record builder, TraceSink seam, production JsonlTraceSink (daily JSONL under ~/.local/state/atlas-search/traces/), UUIDv7 query_id minting, sha256 query-text hash.
    • run_search_traced / run_search_with_executor_traced share the exact run_search implementation; traced searches resolve details for EVERY pool entrant, persist the record before the response is released, and return query_id in the envelope. Fail-closed: a sink failure fails the search (pinned by test). The untraced envelope is byte-identical to before (also pinned by test).
    • CLI runs traced (surface cli, query text retained on the operator's own machine) and prints query_id in JSON and --text output; the service runs traced (surface service-api, hash-only) and surfaces sink failure as a search error.
    • Records carry per-entrant stage scores (shard best-rank branch + rank + vector distance; merge fusion rank/score + persisted rank_sources; rescore none — no rescore stage exists yet; final rank + served, non-surviving entrants at served: false), parameters, pool counts, duration, retry_of via the trace context.

    Acceptance evidence:

    • Live records verified from real CLI executions: atlas-traces-2026-11-14.jsonl entries parse as v1 with per-stage scores recoverable per served result.
    • Tests: atlas-core 61/61 (6 new trace tests incl. fail-closed), atlas-search 39 lib + 11 cli_parity green; the parity harness strips only the nondeterministic query_id (asserting UUIDv7 shape) — every other byte still diffs against the Python-recorded envelopes; the raw-mode parity test now also asserts distinct executions mint distinct query_ids.
    • Reviewers: Codex hit its usage limit and CodeRabbit stayed rate-limited through two windows — no findings were produced by either; merged on verified tests per fleet criteria, with this note as the record.
    • Overhead: one extra detail lookup over the fused pool (bounded by the existing pool parameter) + one file append; fixture traced searches record duration_ms 0-3 ms. Production Turso measurement is an operator follow-up — duration_ms is in every record for exactly that.

    Documented gaps (in the PR and the module doc): resolved embed identity fields are null until the versioning design's detail columns land; per-shard pool attribution keys the single logical shard the backends present to fusion; section-4 ingestion registration of trace files is a later follow-on.

  7. dezren39
    closed this as completedon Nov 14, 2026
  8. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 14, 2026
  9. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 14, 2026
  10. dezren39
    added a commit that references this issue on Nov 15, 2026

    feat(atlas): feedback capture surfaces — API, CLI, UI contract (#9976) (

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraInfrastructure, deployment, and operationsepic/atlas-programReprioritization program epic (2026-11-12)kind/enhancementpriority/normalOrdinary priority (the default)status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.