Skip to content

ingest-fixes: rsvg-convert in the command's timeout row; command-upgrade note integrated - #53

Merged
JaimeStill merged 1 commit into
mainfrom
ingest-fixes
Dec 2, 2026
Merged

JaimeStill merged 1 commit into
mainfrom
ingest-fixes

Conversation

@JaimeStill

Copy link
Copy Markdown
Contributor

capstone.data-intelligence.showcase · task 7/10 · ingest-fixes

Summary

Core changes

  1. go-ai's chat request: the instruction first. Why: the old order made a window with no
    speech return the instruction. On the stored last window at temperature 0, 3 of 3 runs echoed
    it before the change; after it, 3 of 3 returned an empty transcript.
  2. docinfer's transcription key. Why: without it, the corrected request would still be
    served the cached echo.
    {"request":"4","mode":"chat","prompt":"","instruction":"<ai.TranscriptionInstruction(lang)>",…}
    
  3. route.MediaType. Why: the media type and the route come from one reading of the
    content.
    func MediaType(r io.ReaderAt, size int64, head []byte, name, mimeType string) (string, error)
  4. go-web-sdk's untyped creation. Why: browsers give .one, .msg, and .heic no type, and
    RFC 9110 §8.3 lets the handler assume application/octet-stream.
  5. The root on the releases. Bunrei's FROM pins 0.1.1. The uploader is typed by
    route.MediaType. The upload note says the Content-Type is optional, and the presentation
    note drops the Ghosts caveat.

Verify

mise run check: ✓ in the root, go-ai, go-web-sdk, and docproc. The root's run covers compose,
shellcheck, Go tests and lint, the context lints, secrets, and the dataset (18 contexts, 37 files).

  1. mise run stack:reset && mise run stack:mikoshi && mise run dataset:live → passes: 18
    contexts, 43 items, 48 references, every ingest completed (896 s in the session's run).
  2. PGPASSWORD=mikoshi psql -h 127.0.0.1 -p 5439 -U mikoshi mikoshi -Atc "select count(*) from chunk where text ilike '%Follow these specific instructions%'" → 0.
  3. The same connection, select right(c.text,120) from chunk c join source s on s.text_sha256=c.source_text_sha256 where s.kind='transcript' and s.input_sha256 like 'fd847081%' order by c.chunk_index desc limit 1 → Ghosts ends "…These are the Cywar
    soldiers.", not on the instruction.
  4. curl -s http://127.0.0.1:3000/api/profiles → the transcription settings show
    "request":"4" and go-ai's instruction under "instruction".
  5. docker image inspect capstone-data-intelligence-bunrei --format '{{index .Config.Labels "org.opencontainers.image.version"}}' → 0.1.1.
  6. gh release list -L 1 in docproc, go-web-sdk, go-ai, docinfer, and capstone-bunrei →
    v0.13.0, v0.21.0, v0.7.0, v0.8.0, image/v0.1.1.

Decided without you

  1. docinfer also keys the instruction in route mode, which never sends it, as behavior 3
    reads. A change to go-ai's instruction would make route transcripts miss once. A pending edit
    puts "key it in chat mode only" on bunrei-backlog.

  2. The root's dataset-type test reads the gitignored dataset cache. It skips a file the cache
    lacks, so CI proves only the fixtures. The standards review made it fail on a stale sha256
    pin. 14 docs-corpus files have no sha256 in dataset.json, so their pins can still go stale.

  3. Notes and docs the reviews completed:

    • go-ai's tools/infer and its docs name v0.7.0;
    • upload.Client.Create's doc says an empty media type sends no Content-Type, with a test;
    • docproc's command docs list rsvg-convert under the unit timeout, so the planned
      command-upgrade note is integrated and deleted.
  4. Release notes: image/v0.1.1 also lists go-core v0.15.0 and go-messaging v0.10.0, and
    docproc's cmd/docproc bounds test follows v0.12.0's LibreOffice memory default.

  5. Decisions dropped because the released code expresses them:

    • go-ai's request order;
    • docinfer's request-4 key;
    • route.MediaType staying in docproc;
    • go-web-sdk's octet-stream default;
    • demo-load's "Content-Type from route Kind".

    The parts .mikoshi upload-types relies on, including the rejected mimetype, now sit in
    one Decision.

  6. The bunrei-backlog goal file had no default-instruction item to close.

Redirects and escalations

  1. Escalation, before slice 6: merge and tag each library at its checkpoint ahead of SHIP?
    Answer: yes, without stopping.
  2. Redirect, after go-ai v0.7.0: bring go-ai's tools/infer onto v0.7.0 and flip its order
    tests. Answer: yes. infer stays Unreleased.

Merge danger:

  • The one-way parts are done: the five tags are released, as the Release line named:
    • docproc v0.13.0
    • go-web-sdk v0.21.0
    • go-ai v0.7.0
    • docinfer v0.8.0
    • capstone-bunrei image/v0.1.1
  • What SHIP merges is two-way:
    • docproc: the docs row and the integrated note;
    • go-web-sdk: Client.Create's doc and test;
    • go-ai: infer on v0.7.0;
    • the root: its uploader, notes, Bunrei pin, and record.
  • Blast radius: the root stack; nothing tags.
  • Each merge waits on CI.

Needs you: none. At SHIP, the session sends .mikoshi's agent the details for
upload-types.

@JaimeStill
JaimeStill merged commit 36aba1e into main Dec 2, 2026
7 checks passed
@JaimeStill
JaimeStill deleted the ingest-fixes branch December 2, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant