Skip to content

Feature torqx - #129

Merged
alowrydi merged 1 commit into
mainfrom
feature-torqx
Sep 14, 2026
Merged

alowrydi merged 1 commit into
mainfrom
feature-torqx

Conversation

@alowrydi

Copy link
Copy Markdown
Collaborator
  • di.proc renamed to di.torq.proc, wired through torq.q properly
  • CLAUDE.md removed from the branch
  • README's stale module example fixed

@DI-Software-Engineering

Copy link
Copy Markdown

The diff is too large to review automatically (estimated 151,228 tokens, limit 90,000).

Addresses the housekeeping review points for the TorqX consolidation:

- Process modules moved under the orchestrator: di.proc.* -> di.torq.proc.*
  (hdb, rdb, wdb, tickerplant, gateway). Builtin registry, error messages,
  tests, docs and deps.toml headers updated; consistency.md describes the
  new hierarchy.
- Internal development docs (CLAUDE.md, docs/) removed from the public
  branch, along with code comments that pointed at them.
- No separate TorqX repo: launcher and test-fixture docs now refer to the
  kdbx-modules checkout.
- Other tidy-ups: README example uses di.querylog (renamed from di.usage)
  and no longer shows machine or licence details; stale depcheck doc paths
  fixed.
- di.torq: optional query logging via a [querylog] settings section, off by
  default. Its known limitation is documented in torq.md. di.torq -> 0.5.0.

Follow-up: the PoC's deps.toml and README need the matching di.torq.proc.*
and repo-structure update so it stays runnable against this branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CCAH8X6n4eyWfvkyC3gPxn
Comment thread di/torq/torq.q Resolved
@DI-Software-Engineering

Copy link
Copy Markdown

DIReview Summary

0 critical | 1 warning(s) | 2 suggestion(s)

⚠️ Spec check skipped — tracker lookup failed (NO_REF_FOUND). Standards axis only.

Suggestions

  • di/torq/torq.q:219 — The ignorelist default \upd`.u.updis a 2-element symbol vector, butqlignoreiterates witheach names,()and applies$[-11h=type x;x;`$x]to each element. A symbol atom passed to ``$ throws, but here each element is already a symbol so the cast is skipped — that's fine. However the default is passed as `opt[`ignorelist;\`upd\`.u.upd]` where `opt` is `{[s;k;d] $[k in key s;s k;d]}[sect]`. When `ignorelist` IS present in the TOML section, `di.util.toml` returns string values (TOML strings → q char strings), so `s k` yields a list of strings, which is correct. But when the key is absent, the default is the symbol vector upd.u.upd , and `qlignore` calls $x `` on each — `` $upd `` will throw </code>'type<code>because ``$ `` applied to a symbol atom (type -11h) throws. Fix: change the default to string list ("upd";".u.upd") so both paths through `qlignore` receive strings.
  • di/torq/test.q:75 — qlasync calls .z.ps via .z.ps (upd;trade;()) — but .z.ps is a handler that is set by di.querylog wrapping. After initquerylog runs, .z.ps is the wrapper. However .z.ps is the incoming async message handler; it fires when a message arrives over IPC, not when called directly. Calling .z.ps[msg] directly in a test is a reasonable in-process simulation, but di.querylog's wrapper likely captures .z.w (the calling handle) to record the client identity. In-process .z.w is 0, which may cause the wrapper to behave differently than in a real async scenario. This could result in flaky or incorrect test assertions about row counts. Verify that di.querylog's .z.ps wrapper handles .z.w=0 (no handle) without throwing, or drive the test via a real IPC call.

@ConorSwainDI ConorSwainDI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks okay to me

@alowrydi
alowrydi merged commit 0725f27 into main Sep 14, 2026
@alowrydi alowrydi mentioned this pull request Sep 17, 2026
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.

3 participants