1869 lines
93 KiB
Org Mode
1869 lines
93 KiB
Org Mode
# vim: et sw=2 ts=2
|
|
#+TITLE: piker project store
|
|
#+TODO: TODO(t) WIP(w!) WAIT(a@) | DONE(d!) NOPE(n@)
|
|
|
|
# Checkbox states: [ ] open, [-] partial, [x] complete
|
|
|
|
* piker
|
|
:PROPERTIES:
|
|
:CATEGORY: piker
|
|
:END:
|
|
** TODO prs
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-15]
|
|
:CARRIED: 29
|
|
:END:
|
|
- [ ] move the below into *** todos with pr/branch links
|
|
* [ ] DPI-aware font scaling + manual kb bindings.
|
|
* [ ] gap_annotator for time gaps.
|
|
* [ ] moar `claude`-y skills,
|
|
* [ ] /lint with ruff
|
|
* [ ] /run-tests
|
|
*** WIP qualify known-FQME history backfill
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-24]
|
|
:CARRIED: 21
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
- [x] preserve the dirty `flake_update` main checkout before
|
|
switching branches
|
|
- [x] check out `backfiller_deep_fixes` in the main checkout and
|
|
verify every process imports it
|
|
- [ ] complete the below qualification plan
|
|
* [ ] select one known-problem provider, FQME, timeframe, date range,
|
|
and original symptom
|
|
* [ ] preserve and checksum any known-bad parquet
|
|
* [ ] bootstrap `pikerd` with disposable config and NativeDB storage
|
|
* [ ] record baseline timestamps, rows, uniqueness, nulls,
|
|
ordering,
|
|
indexes, gaps, and readability
|
|
* [ ] reproduce fresh-backfill, restart, and append behavior for
|
|
only
|
|
the selected case
|
|
* [ ] convert each reproduced failure into a failing deterministic
|
|
test before fixing it
|
|
* [ ] rerun the exact manual lifecycle after every production
|
|
correction
|
|
* [ ] add deterministic subprocess coverage for process death and
|
|
cross-process locking
|
|
* [ ] exercise Ctrl-C, SIGTERM, SIGKILL, provider interruption, and
|
|
restart recovery
|
|
* [ ] qualify MarketStore and actual sampler backpressure separately
|
|
* [ ] expand to other timeframes and providers only after the
|
|
selected FQME passes
|
|
**** TODO fixed-FQME-case backfill qualify
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-29]
|
|
:CARRIED: 17
|
|
:REPO: piker/
|
|
:END:
|
|
- [ ] follow through using both new files,
|
|
* ./docs/manual_backfill_qualification.rst
|
|
* ./snippets/nativedb_backfill_audit.xsh
|
|
- [ ] choose and record one known-problem FQME, timeframe, UTC range,
|
|
and original chart symptom
|
|
- [ ] source `snippets/nativedb_backfill_audit.xsh` and initialize a
|
|
private disposable root with only the required provider config
|
|
- [ ] run repository and environment preflight at commit `0846cbd4`
|
|
- [ ] seed and audit the known-bad baseline, then replay repair and run
|
|
`bfq_compare()` without losing original timestamps
|
|
- [ ] clear only the disposable Parquet and qualify a fresh backfill
|
|
- [ ] restart against fresh storage and compare `fresh` to `restart`
|
|
- [ ] leave one subsequent run active long enough to append, then compare
|
|
`restart` to `append` with `require_newer=True`
|
|
- [ ] restart QQQ 1s on fresh datad SHM and verify the former 653-row
|
|
zero-time reservation does not recur
|
|
- [ ] preserve chart logs, audit JSON, Parquet snapshots, and exact UTC
|
|
gap endpoints for review
|
|
**** TODO review ^qualify^ evidence and close follow-ups
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-29]
|
|
:CARRIED: 17
|
|
:REPO: /piker
|
|
:END:
|
|
- [ ] verify every qualification process imports commit `0846cbd4`
|
|
- [ ] review baseline, repair, fresh, restart, and append reports for
|
|
structural, timestamp, endpoint, and gap regressions
|
|
- [ ] distinguish durable Parquet gaps from SHM hydration or chart-only
|
|
gaps using the runbook triage table
|
|
- [ ] convert each reproduced failure into a deterministic regression
|
|
before changing production code
|
|
- [ ] prepare the final qualification summary and any required patch,
|
|
PR, or worktree-lifecycle follow-ups
|
|
*** TODO cross-harness AI skill integration
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-21]
|
|
:CARRIED: 24
|
|
:REPO: /home/goodboy/repos/piker
|
|
:ISSUE: https://www.pikers.dev/pikers/piker/issues/79
|
|
:END:
|
|
- [ ] review and land the portable piker skill and OpenCode docs patch
|
|
- [ ] reconcile the active global `commit-msg` override with the
|
|
repo-local shared skill and style guide
|
|
- [ ] verify skill and command discovery after restarting Claude Code
|
|
and OpenCode
|
|
- [ ] fold remaining skill-content review into the canonical trackers:
|
|
* [ ] https://www.pikers.dev/pikers/piker/issues/69
|
|
* [ ] https://www.pikers.dev/pikers/piker/issues/79
|
|
*** TODO vectorize `gap_annotator` client spec building
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-21]
|
|
:CARRIED: 24
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
- [ ] replace per-row Polars slicing and filtering in
|
|
`piker/tsp/_annotate.py:139` with extracted columns and batched
|
|
lookups
|
|
- [ ] preserve missing-prior-row, epoch-skip, direction, label, and
|
|
batch-payload behavior
|
|
- [ ] benchmark the 1285-gap case against the handoff in
|
|
`notes_to_self/claudy/gapsannotator_sesh.md`
|
|
- [ ] add focused correctness coverage for generated rectangle, arrow,
|
|
and text specs
|
|
*** TODO integrate the piker `ruff` lint skill
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-21]
|
|
:CARRIED: 24
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
- [ ] review the clean but unmerged `claudy_writes_ruff_conf` branch
|
|
- [ ] validate its `ruff.toml` policy and staged-file checker against
|
|
the current tree
|
|
- [ ] port the `/lint` skill to shared Agent Skills frontmatter with
|
|
thin harness-specific commands
|
|
- [ ] rebase and prepare the accepted lint/config changes for landing
|
|
*** TODO reconcile stale Claude plans and worktrees
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-21]
|
|
:CARRIED: 24
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
- [ ] reconcile `ai/claude-code/plans/shm_port.md` with the implemented
|
|
`tractor.ipc._shm` shim
|
|
- [ ] classify `datad_service.md` as an architecture record rather than
|
|
an active implementation plan
|
|
- [ ] inspect generated state before retiring the merged
|
|
`wkt/flake_update` and `worktree-ngi0_submission` worktrees
|
|
- [ ] preserve the unmerged lint worktree until its branch is reviewed
|
|
** TODO chart-local gap overlay follow-ups
|
|
:PROPERTIES:
|
|
:CREATED: [2026-08-14]
|
|
:CARRIED: 7
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
- [ ] trigger `GapOverlayMngr.refresh()` from an explicit history
|
|
revision/publication event after repair or prepend
|
|
- [ ] expose gap-overlay UX through UI config
|
|
* [ ] startup visibility and enabled timeframes
|
|
* [ ] default `Ctrl+G` key binding
|
|
- [ ] live-qualify chart-local overlay behavior
|
|
* [ ] actor startup and focused 1s/60s toggling
|
|
* [ ] multi-symbol and duplicate-FQME cached charts
|
|
* [ ] secondary-`Viz` placement and backfill repositioning
|
|
* [ ] remote disconnect and owner-scoped graphics cleanup
|
|
- [ ] add focused Qt/actor regressions for the qualified lifecycle
|
|
|
|
** TODO factor typed chart annotation IPC dialogs
|
|
:PROPERTIES:
|
|
:CREATED: [2026-08-14]
|
|
:CARRIED: 7
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
- [ ] exercise the strict `SetGapOverlay`/`GapOverlay`
|
|
dialog under a live Tractor context
|
|
* [ ] wrong-direction and unrelated payload rejection
|
|
* [ ] timeout, cancellation, stale reply, and disconnect recovery
|
|
- [ ] factor keyed send/receive locking, fresh request IDs, and stale
|
|
response correlation into a generic IPC dialog helper after a
|
|
second typed consumer establishes the interface
|
|
- [ ] migrate legacy `remote_annotate()` dict commands to tagged
|
|
request/response message types
|
|
- [ ] decide whether to fold `remote_gap_overlays()` into the general
|
|
annotation endpoint after the legacy protocol is typed
|
|
** proj_mgmt
|
|
:PROPERTIES:
|
|
:CATEGORY: project
|
|
:END:
|
|
*** TODO ngi0 aug01 funding submit!
|
|
DEADLINE: <2026-08-01 Sat>
|
|
:PROPERTIES:
|
|
:CREATED: [2026-06-01]
|
|
:CARRIED: 33
|
|
:END:
|
|
- [ ] wip pr: https://github.com/goodboy/tractor/pull/431
|
|
https://nlnet.nl/propose/
|
|
https://nlnet.nl/foundation/policies/generativeAI/
|
|
https://nlnet.nl/commonsfund/
|
|
*** TODO MEETING(s)
|
|
:PROPERTIES:
|
|
:CREATED: [2026-05-21]
|
|
:CARRIED: 33
|
|
:END:
|
|
** ui
|
|
:PROPERTIES:
|
|
:CATEGORY: piker.ui
|
|
:END:
|
|
*** TODO dpi_auto_calc
|
|
:PROPERTIES:
|
|
:CREATED: [2026-07-15]
|
|
:CARRIED: 29
|
|
:END:
|
|
- [ ] PUT PRs here
|
|
|
|
*** TODO Reject invalid order-pane settings without crashing the chart
|
|
:PROPERTIES:
|
|
:ID: piker-order-pane-allocation-validation
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_DIALOG_ID: 01a1691b-455c-7b32-9f90-72331a112e46
|
|
:END:
|
|
|
|
Objective: keep the chart and order controls running after an invalid
|
|
allocation edit; report the reason in the chart console and status bar,
|
|
and restore the previous accepted setting. Suggested priority: high,
|
|
since a routine edit terminates chart monitoring with a position open.
|
|
Next action: implement recoverable validation at the settings boundary,
|
|
with atomic application of valid settings and consistent field feedback.
|
|
|
|
Original report, 2026-10-23:
|
|
#+begin_quote
|
|
ok well i just noticed that in the order control pane if you set the
|
|
slots to <= limit when limit is set to "units" value we crash the chart
|
|
purposely. that's not ideal, instead we should emit an error log to both
|
|
the chart's console and the status bar in the chart and revert the
|
|
setting i'm thinking. eval the current code and make any alt suggestions
|
|
you might have.
|
|
#+end_quote
|
|
|
|
User-supplied chart traceback and debugger values confirm a direct
|
|
units-limit edit, rather than establishing the reported slots <= limit
|
|
rule. At Oct 23 11:58:10, chart PID 2765259, Ctrl-A then 1 then Enter:
|
|
#+begin_example
|
|
limit must > then current pp: 8.0
|
|
_forms.py:524 handle_field_input -> on_value_change(key, value)
|
|
_position.py:235 on_ui_settings_change -> self.apply_setting(key, value)
|
|
_position.py:329 apply_setting -> raise ValueError
|
|
(Pdb+) size, value
|
|
(8.0, 1.0)
|
|
#+end_example
|
|
The exception escapes the input nursery, cancels order relay, trade/PnL
|
|
updates and other chart handlers, and opens the actor post-mortem REPL.
|
|
The repeated cancellation/ExceptionGroup output follows this ValueError.
|
|
Full supplied traceback remains in the originating conversation above.
|
|
Market and previously accepted setting were not supplied.
|
|
|
|
Inspected reported checkout: =wkt/ib_downstream_pin_eval= at
|
|
=e929fdc2d5c105453fd45c68e60045b68d428301=, clean tracked worktree.
|
|
The same units guard exists in the root checkout at
|
|
=3ec447a45acaa0dac9d8babbe49af94b2bfa14f0=.
|
|
Relevant code in the reported checkout:
|
|
- [[file:/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval/piker/ui/_position.py::325][Units-limit guard]] compares signed =cumsize > value=, logs, then
|
|
raises before writing the limit. Equality is allowed; short exposure
|
|
is not protected by this signed comparison.
|
|
- [[file:/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval/piker/ui/_position.py::223][Settings callback]] ignores the returned success flag. Currency
|
|
rejection changes the limit to current exposure instead of retaining
|
|
the accepted value; recovery behavior needs to be made consistent.
|
|
- [[file:/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval/piker/ui/_position.py::906][Position refresh]] assigns derivatives' units limit from slots.
|
|
A slot edit can therefore change the limit implicitly. With live size
|
|
8 and startup size 0, slots 8 -> 1 leaves limit 1; the next status
|
|
refresh raises. A startup size of 8 instead clamps both back to 8.
|
|
This is a separate, conditional path from the supplied traceback.
|
|
- =slots= accepts positive fractions then truncates to int; 0.5 becomes
|
|
zero and later divides by zero. Empty input, NaN and infinity also
|
|
escape the current numeric parsing/conversion checks.
|
|
|
|
Recommended behavior and implementation boundaries:
|
|
- Validate the whole proposed allocation before mutation. Slots must
|
|
be finite positive integers; limits must be finite and positive.
|
|
Apply the position floor consistently using absolute exposure.
|
|
- Return an explicit rejection reason, log it once per submitted edit,
|
|
and use the existing =OrderMode.multistatus.open_status()= interface.
|
|
Restore the accepted field value and retain focus for correction.
|
|
Replace/clear the validation message without clearing order statuses.
|
|
A field highlight or tooltip can supplement the status-bar message.
|
|
- Make display refreshes read allocation state without silently changing
|
|
limits or re-entering edit validation. Move asset defaults and coupled
|
|
slot/limit normalization into initialization or explicit validation.
|
|
Merely changing the one raise to return False is an incomplete fix.
|
|
- Validate per-slot quantity against the market's size increment; do not
|
|
introduce a blanket slots <= limit rejection. Treat genuine position
|
|
updates beyond a ceiling as an over-limit state, not invalid input.
|
|
- Alternative policy for a later decision: permit a ceiling below current
|
|
exposure, show over-limit, block exposure-increasing entries and retain
|
|
reductions/exits. The allocator already clamps remaining entry capacity
|
|
at zero, but the UI and order paths need verification for this policy.
|
|
|
|
Verification so far: isolated execution of unchanged source methods with
|
|
inert display dependencies reproduced the supplied 8 -> 1 ValueError,
|
|
accepted equality at 8, and distinguished both slot/startup cases above.
|
|
Additional root-checkout probes reproduced fractional/empty/nonfinite
|
|
slot failures. These were not end-to-end GUI or broker/order tests.
|
|
|
|
- [ ] cover invalid edits without chart/input-task cancellation
|
|
- [ ] verify console + status-bar feedback and restoration of model/UI
|
|
- [ ] cover long/short positions, equality, empty/nonfinite values,
|
|
fractional/zero slots, currency mode and market quantity increments
|
|
- [ ] cover Enter, numeric slot shortcuts, unit changes and subsequent
|
|
position/status refreshes; preserve reductions/exits while over limit
|
|
|
|
Expected handback: focused code diff, validation results, remaining policy
|
|
choices, and any manual GUI reproduction needed for human acceptance.
|
|
Leave this task and its checklist states under human ownership.
|
|
|
|
** brokers
|
|
:PROPERTIES:
|
|
:CATEGORY: piker.brokers
|
|
:END:
|
|
*** TODO IB: follow-up for search results bs!
|
|
:PROPERTIES:
|
|
:CREATED: [2026-05-21]
|
|
:CARRIED: 33
|
|
:END:
|
|
* https://www.pikers.dev/pikers/piker/issues/85
|
|
- [X] fix the `si.expiry..ib` search result?
|
|
- [ ] introspect why `Client.search_symbols()` is returning the
|
|
empty `.<venue>` case!
|
|
- presumably by something weird in the server-side endpoint?
|
|
- [ ] figure out better tuning of client side fuzzy-filter versus
|
|
server-side versus UI final display pass!
|
|
- [ ] Distinguish retryable provider timeouts from valid empty search
|
|
results; re-query the same text after provider recovery without
|
|
discarding previously valid results. Reproduce before changing
|
|
cache policy: the source flags this risk, while the UI caches
|
|
returned empty results as completed provider searches.
|
|
[[file:/home/goodboy/repos/piker/piker/brokers/ib/symbols.py::252][IB empty-result/timeout concern]]
|
|
[[file:/home/goodboy/repos/piker/piker/ui/_search.py::831][UI search-result cache publication]]
|
|
|
|
*** TODO ish for port to `uv`,
|
|
:PROPERTIES:
|
|
:CREATED: [2026-05-21]
|
|
:CARRIED: 33
|
|
:END:
|
|
* https://github.com/ib-api-reloaded/ib_async/issues/204
|
|
- [ ] mention to track in #68
|
|
*** TODO profiling: try newer libs,
|
|
:PROPERTIES:
|
|
:CREATED: [2026-05-21]
|
|
:CARRIED: 33
|
|
:END:
|
|
- [ ] https://github.com/pikers/piker/issues/337
|
|
** perf/tooling
|
|
:PROPERTIES:
|
|
:CATEGORY: piker.profile
|
|
:END:
|
|
- [ ] link existing GH issues for trying new
|
|
libs!
|
|
|
|
** FSP backfill: branch work
|
|
*** TODO review and commit FSP backfill synchronization
|
|
:PROPERTIES:
|
|
:ID: piker-fsp-backfill-sync-review-and-commit
|
|
:CREATED: [2026-09-03]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker/wkts/fsp_backfill_sync
|
|
:END:
|
|
- [ ] review committed token-targeted history graphics change
|
|
(`fadab3d2`)
|
|
- [ ] review and commit the FSP stream-contract boundary
|
|
* yo yo yo
|
|
* `piker/data/__init__.py`
|
|
* `piker/data/ticktools.py`
|
|
* `piker/fsp/_api.py`
|
|
* `piker/fsp/_momo.py`
|
|
* staged portion of `piker/fsp/_volume.py`
|
|
- [ ] review and commit the synchronization and live-volume boundary
|
|
* explicit `Flume` RT/history cadence
|
|
* immutable history snapshots and absolute SHM-bound synchronization
|
|
* relevant backfill filtering and non-duplicating destination steps
|
|
* nonnegative sampled and derived volume
|
|
* M4 graphics-cache invalidation and unchanged-update suppression
|
|
* FSP synchronization regressions and Prompt-IO provenance
|
|
- [ ] review and commit the `piker-fsp-expert` skill boundary
|
|
- [ ] run boundary checks and the final test suite
|
|
- [ ] inspect each staged diff and commit message before committing
|
|
*** TODO add cumulative M4 downsampling for volume curves
|
|
:PROPERTIES:
|
|
:ID: piker-cumulative-m4-volume-downsampling
|
|
:CREATED: [2026-09-03]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker/wkts/fsp_backfill_sync
|
|
:END:
|
|
- [ ] define cumulative bucket semantics for step-style data
|
|
* sum all source values represented by each pixel bucket
|
|
* preserve bucket time/index placement and zero-volume gaps
|
|
- [ ] add a sum-reducer variant alongside price min/max M4
|
|
- [ ] route unit and dollar-volume curves through cumulative downsampling
|
|
- [ ] keep price, OHLC, and non-cumulative signal curves on min/max M4
|
|
- [ ] preserve incremental appends, view changes, and cache invalidation
|
|
- [ ] test sum conservation across zoom levels and partial edge buckets
|
|
- [ ] profile the cumulative path against the existing M4 implementation
|
|
|
|
** TODO review and save the Trend Calculus prototype
|
|
:PROPERTIES:
|
|
:ID: piker-trend-calculus-prototype-review
|
|
:CREATED: [2026-10-05]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:ISSUE: https://github.com/pikers/piker/issues/187
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/docs/trend_calculus.rst][Research and prototype guide]]
|
|
- [ ] Regenerate and review six Trend Calculus behavior boundaries
|
|
on trend_calc_on_jev after workflow commit f148fbcc on
|
|
moar_ai_skillz lands; retain source/test pairs and inspect every
|
|
message before saving.
|
|
- [ ] Run each boundary check from the pinned package and the final
|
|
safe regression sequence; the working-tree offline suite passed 253
|
|
tests.
|
|
- [ ] Qualify one selected live source through startup, quiet bars,
|
|
skipped wakeups, history repair, replay and owner cancellation.
|
|
- [ ] Coordinate inherited stream/backfill work with
|
|
[[id:piker-fsp-backfill-sync-review-and-commit][the existing FSP synchronization task]].
|
|
|
|
*** TODO split draft TC commit after upstream history is settled
|
|
:PROPERTIES:
|
|
:ID: piker-trend-calculus-draft-commit-split
|
|
:CREATED: [2026-10-06]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:TAKEN_APPEND_OP: 85c6bdbe-7655-4323-b366-2732ac86e16c
|
|
:TAKEN_APPEND_REQUEST: 10de3a5f301761e43ba80988385d9eb180d41fc3025ed1cd66255f80e3c9fa98
|
|
:AI_DLOG: 01a109d6-d0ec-70d3-b2cf-2112a6780aa3
|
|
:AI_WKT: /home/goodboy/repos/piker
|
|
:END:
|
|
Draft snapshot: =e815fd77cfbf89b241bfabf19bda7b1c5f25c784=.
|
|
- [ ] Wait until upstream branches and their landing order are
|
|
settled; preserve a reference to the draft snapshot.
|
|
- [ ] Reset/unpack draft commit e815fd77 while retaining the full TC
|
|
changeset and preserving unrelated working-tree and staged work.
|
|
- [ ] Prepare a proper commit plan for that changeset with coherent
|
|
behavior boundaries, matching tests, docs and provenance.
|
|
- [ ] Run each boundary's checks and review its diff and message
|
|
before recommitting.
|
|
|
|
** TODO qualify Jev regime judgments against real responses
|
|
:PROPERTIES:
|
|
:ID: piker-jev-live-regime-qualification
|
|
:CREATED: [2026-10-05]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/docs/trend_calculus.rst][Research and prototype guide]]
|
|
- [ ] Once TYPESAFE_API_KEY is available and a live request is
|
|
authorized, send one small synthetic multi-timeframe request
|
|
through the HTTPX/Trio client.
|
|
- [ ] Verify the documented request/response schema, model identity,
|
|
distributions, usage, errors and measured end-to-end latency.
|
|
- [ ] Evaluate useful regime labels and confidence on held-out trend
|
|
snapshots, including flat, reversing, aligned and conflicting
|
|
timeframes.
|
|
- [ ] Measure sustained pacing, coalescing, source freshness and cost
|
|
before enabling realtime judgments.
|
|
- [ ] Consider an SDK AnyIO port or Trio backend only after the
|
|
direct HTTP prototype demonstrates useful classifications.
|
|
|
|
** TODO connect finalized trends to the Jev provider-service
|
|
:PROPERTIES:
|
|
:ID: piker-jev-provider-service-integration
|
|
:CREATED: [2026-10-05]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/docs/trend_calculus.rst][Research and prototype guide]]
|
|
- [ ] Obtain the separate system-1 provider-service repository or
|
|
interface and identify its input, output, lifecycle and ownership
|
|
contracts.
|
|
- [ ] Adapt serve_regimes and RegimeClassifier to the service nursery
|
|
and typed publication interface without mixing model labels into
|
|
deterministic trend state.
|
|
- [ ] Configure market, periods, model, credentials, request pacing,
|
|
evidence retention and freshness limits explicitly.
|
|
- [ ] Verify reconnect, revision/gap invalidation, backpressure,
|
|
stale-response rejection and shutdown with the actual service.
|
|
|
|
** TODO recover Pine source and check Trend Calculus parity
|
|
:PROPERTIES:
|
|
:ID: piker-trend-calculus-pine-parity
|
|
:CREATED: [2026-10-05]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:ISSUE: https://github.com/pikers/piker/issues/103
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/docs/trend_calculus.rst][Research and prototype guide]]
|
|
- [ ] Recover the human's Pine implementation and record its
|
|
provenance/version alongside the pinned Lua and Scala research.
|
|
- [ ] Compare startup seeding, extrema ties, FHLS splitting, opposing
|
|
pivots and recursive reversal orders.
|
|
- [ ] Add independent fixtures for meaningful semantic differences;
|
|
distinguish extremum time from confirmation time and mutable-bar
|
|
previews.
|
|
|
|
** TODO qualify multitimeframe pivots and regime annotations
|
|
:PROPERTIES:
|
|
:ID: piker-trend-regime-chart-qualification
|
|
:CREATED: [2026-10-05]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/docs/trend_calculus.rst][Research and prototype guide]]
|
|
- [ ] Inspect actual 1/5/15-second layers and hover information on a
|
|
selected live market; compare confirmed pivots and regime
|
|
boundaries to finalized source evidence.
|
|
- [ ] Verify chart-axis placement, gaps, revisions, hidden charts,
|
|
duplicate cached feeds and owner-scoped cleanup.
|
|
- [ ] Qualify model rectangles at response receipt and expiry,
|
|
including stale classifications and source-segment changes.
|
|
- [ ] Measure quiet-bar display delay before deciding whether
|
|
publication needs an explicit output notification.
|
|
- [ ] Coordinate shared history-overlay lifecycle with the existing
|
|
chart-local gap overlay follow-ups; route any annotation IPC
|
|
factoring to the existing typed-dialog task.
|
|
|
|
** TODO qualify a native subsecond source for trend regimes
|
|
:PROPERTIES:
|
|
:ID: piker-trend-native-subsecond-sampling
|
|
:CREATED: [2026-10-05]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker
|
|
:AI_BRANCH: trend_calc_on_jev
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/docs/trend_calculus.rst][Research and prototype guide]]
|
|
- [ ] Define the required high-frequency periods and producer
|
|
contract; the numeric/MTF APIs accept fractional periods but the
|
|
current native clock uses whole seconds.
|
|
- [ ] Extend or select the source/sampler time grid before enabling
|
|
subsecond chart/service periods; retain strictly increasing
|
|
coordinates and complete aligned buckets.
|
|
- [ ] Measure compute, SHM publication, service latency and chart
|
|
refresh under the selected cadence, including gaps, replay and
|
|
cancellation.
|
|
|
|
** TODO migrate clearing to strict typed messaging
|
|
:PROPERTIES:
|
|
:ID: piker-typed-clearing-migration
|
|
:CREATED: [2026-10-06]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:AI_HARNESS: codex
|
|
:AI_WORKTREE: /home/goodboy/repos/piker/wkts/typed_clearing_protocol
|
|
:AI_BRANCH: wkt/typed_clearing_protocol
|
|
:END:
|
|
[[file:/home/goodboy/repos/piker/wkts/typed_clearing_protocol/plans/opencode/typed-ems-messaging.md::823][Migration plan and commit boundaries]]
|
|
|
|
Foundation evidence: plan commit 1793b47c and implementation commit
|
|
7fee9b86; human reports both pushed. Strict schemas, validation,
|
|
directional stream helpers and the pure OrderState reducer are
|
|
implemented. Prior qualification: 65 offline tests and eight IPC
|
|
tests passed. Production endpoints still use the legacy protocol.
|
|
|
|
The cached #59 account records an IB fix which stopped forwarding
|
|
benign warnings as terminal errors. Preserve that contract during the
|
|
migration: the current UI still removes an order dialog for every
|
|
=Status(resp='error')=. This is a regression obligation, not a newly
|
|
reproduced warning bug.
|
|
[[file:/home/goodboy/repos/piker/gitea/59.md][Original IB warning-severity fix account]]
|
|
[[file:/home/goodboy/repos/piker/piker/ui/order_mode.py::1194][Terminal error handler and dialog cancellation]]
|
|
- [ ] Qualify nonterminal warnings followed by fills or cancellation;
|
|
preserve the working order/dialog until a terminal event occurs.
|
|
|
|
- [ ] Port paper and its paired EMS consumer together.
|
|
* [ ] Typed startup, requests, events and open-order completion.
|
|
* [ ] Deterministic synthetic ticks and distinct execution IDs.
|
|
- [ ] Port Binance, Kraken and IB individually with paired EMS handling.
|
|
* [ ] Shared offline conformance and provider translation fixtures.
|
|
* [ ] Preserve execution identity, signed positions and account mapping.
|
|
- [ ] Integrate OrderState into EMS routing and broker-event handling.
|
|
* [ ] Bound pre-ack buffering by age in its asynchronous owner.
|
|
* [ ] Preserve cancel intent, fill deduplication and late-event handling.
|
|
- [ ] Migrate client/EMS startup, local queues and UI consumers together.
|
|
* [ ] Replace wire snapshot mutation and dictionary reconstruction.
|
|
- [ ] Enforce each migrated endpoint pair with Tractor payload specs.
|
|
* [ ] Narrow receive sets; validate startup, RPC arguments and results.
|
|
* [ ] Reject malformed, wrong-direction and wrong-phase messages.
|
|
- [ ] Qualify real adapter and actor behavior offline.
|
|
* [ ] Cancel-before-ack; early, duplicate and late fills.
|
|
* [ ] Empty/populated startup snapshots and two-client order isolation.
|
|
* [ ] Abrupt transport EOF, cancellation and bounded failure teardown.
|
|
* [ ] Repeated lifecycle tests under supported spawn methods.
|
|
- [ ] Resolve the duplicate pytest --ll option before a Tractor pin upgrade.
|
|
- [ ] Document the position-broadcast isolation limitation and policy.
|
|
- [ ] Remove legacy IPC paths after all paired migrations qualify.
|
|
- [ ] Propose a reviewable commit plan for each qualified implementation.
|
|
|
|
|
|
** Project work inventory, 2026-10-23
|
|
:PROPERTIES:
|
|
:ID: piker-project-work-inventory
|
|
:CATEGORY: piker.project
|
|
:END:
|
|
Maintain one navigable account of Piker work across humans, agents,
|
|
branches and local notes. This is the product-management entry point.
|
|
The user retains every acceptance marker and priority decision.
|
|
|
|
Next action: review the bounded runtime/IB landing and its downstream
|
|
replay obligations, then choose the next assignment from the ranked
|
|
workstreams below. This inventory does not authorize executing any
|
|
linked historical command or changing another worker's checkout.
|
|
|
|
*** Scope, provenance and preservation
|
|
|
|
Source =piker= resolves through this worktree's =.taken/sources.toml=.
|
|
This checkout was opened from =wkt/federated_project_stores= at
|
|
=91769016513342d0960436fc79690f31b5e3cb17=.
|
|
The complete newer working store was carried forward, including its
|
|
uncommitted Qt, second-chart order and Polars follow-ups. Its previous
|
|
prose, ordering, properties, headline states and checkboxes are intact.
|
|
|
|
The scan covers 128 pre-existing local branches, 415 cached remote
|
|
refs and all 32 pre-existing registered worktrees. The inventory
|
|
branch/worktree is also recorded, bringing the observed totals to
|
|
544 refs and 33 worktrees. Ten stash identities are recorded without
|
|
restoring their bodies. No network fetch or forge-state query ran.
|
|
|
|
The workstreams below retain the actionable requirements and link
|
|
their complete original notes and plans. Original source files remain
|
|
in place without edits. Same-checkout documents use relative links;
|
|
active worktree documents use explicit local paths; branch-only
|
|
documents use commit-pinned references to their existing Git history.
|
|
Retarget worktree links before retiring their source checkout.
|
|
|
|
Generated commit packages, recovered transcripts, source snapshots
|
|
and scan manifests remain private local workflow state. They are not
|
|
part of this store's commit. Durable plans and prompt provenance keep
|
|
their established locations; they are not duplicated into an archive.
|
|
|
|
The initial sweep excluded external symlink targets, raw harness
|
|
databases and JSONL/tool caches, credentials, generated environment or
|
|
binary files, code TODO comments outside tracking documents, and
|
|
historical versions absent from the inspected branch tips. Source issue links
|
|
and cached PR descriptions do not establish their current remote state.
|
|
Branch observations below describe the initial sweep; recheck the
|
|
relevant checkout before assigning follow-up work.
|
|
|
|
**** Deeper follow-up scan, 2026-10-23
|
|
|
|
Rechecked all 33 worktrees and 129 local branch tips, plus tracking
|
|
documents at 415 cached remote refs. Deduplication found 313 distinct
|
|
local/worktree document contents and 28 additional remote-only
|
|
variants. Code-marker searches covered the 124 distinct local or
|
|
detached tips; comments are investigation leads, not confirmed bugs.
|
|
Dirty tracking documents and the growing TIPC implementation were
|
|
also inspected. Remote-only code and raw harness logs were not audited;
|
|
no network refresh or product test ran. Original documents stay intact.
|
|
|
|
Recovered assignments below cover public feed control, SHM/platform
|
|
qualification, rendering fidelity, and installed CLI/public APIs.
|
|
Existing search, clearing, TIPC and documentation tasks absorb related
|
|
follow-ups. Old PR94 review findings have corresponding fix history
|
|
in =1fa45dfa=, an ancestor of the present landing candidate; do not
|
|
reopen those findings solely because their review files still exist.
|
|
Detailed scan catalogs stay in local temporary storage.
|
|
|
|
*** Approximate priority and main baseline
|
|
|
|
This is an advisory order, not a change to Org priority or task state.
|
|
Use dependency impact, current failures, integration readiness and
|
|
observed active edits ahead of branch age or raw commit count.
|
|
|
|
1. Finish review of the bounded runtime/IB recovery candidate for #94.
|
|
It is the active integration path and blocks much downstream work.
|
|
Keep the accepted daemon-teardown deferral explicit.
|
|
2. Fix the confirmed order-pane validation crash and reproduce/fix
|
|
chart/daemon teardown failures; implement independent-service chart
|
|
detach/reattach and order-bootstrap tests.
|
|
Native crashes and misleading stale order displays need separate
|
|
evidence from successful surviving-chart smoke tests.
|
|
3. Qualify history/storage correctness and the dirty segment refiller,
|
|
together with FSP synchronization and stale-tick protection.
|
|
Data publication, durable repair and derived outputs share this base.
|
|
4. Continue strict typed clearing from its implemented foundation,
|
|
starting with the paired paper/EMS boundary and real-actor tests.
|
|
5. Review small provider/search correctness and chart-gap/DPI changes
|
|
as bounded candidates where they can proceed independently. Qualify
|
|
rendering leads before treating comments as demonstrated failures.
|
|
6. Review the actively edited TIPC/remote-feed bridge against the
|
|
selected runtime and ownership contracts before expanding it.
|
|
Public feed-control and installed CLI/API coverage are supporting
|
|
work; their basic isolated CLI checks can proceed independently.
|
|
7. Qualify the Trend Calculus prototype, Pine parity and live chart
|
|
behavior; keep external Jev/service work behind its explicit gates.
|
|
8. Pursue cumulative-volume rendering, revisioned FSP graphs and the
|
|
preserved chart UX/research backlog once correctness is stable.
|
|
9. Reconcile remaining portability, lint/tooling, funding and older
|
|
branch candidates with actual owners and current external state.
|
|
|
|
Store maintenance accompanies each assigned workstream rather than
|
|
waiting for the lower-ranked feature backlog. A new human deadline or
|
|
an actively affected provider can change this order.
|
|
|
|
Local =main= and cached =gitea/main= are both =7c8c1c4c=, the October 7
|
|
merge of #93 (portable AI skills). The main checkout is actually on
|
|
=wkt/land_ib_recovery=, not main. Cached =dev/main= and =srht/main= stop
|
|
at =a00e9c0e= and are not the integration baseline.
|
|
|
|
The landing path is 23 commits ahead of main at =4133f073=, 25 at
|
|
=7bef50b0=, and 28 at =dc618229=; each contains local main. The aggregate
|
|
development tips generally omit eight main commits while carrying
|
|
large shared stacks. These are ancestry counts, not independent
|
|
features or proof of patch equivalence. The follow-up scan found the
|
|
six recovery boundaries committed through =3ec447a4=, now 34 commits
|
|
ahead of main, with a clean tracked tree and unrelated untracked
|
|
recovery material. Main remains =7c8c1c4c=. No product tests were run
|
|
by this inventory; test counts below are attributed source evidence.
|
|
|
|
The August repository landing plan remains preserved as design and
|
|
history evidence. Its baseline, ordering and external-status claims
|
|
must be compared with this October snapshot before reuse.
|
|
[[file:../plans/opencode/repo-land-plan.md][plans/opencode/repo-land-plan.md (original source)]]
|
|
|
|
*** TODO review the bounded runtime and IB recovery landing
|
|
:PROPERTIES:
|
|
:ID: piker-bounded-ib-recovery-landing
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: review the current #94 candidate with accurate attribution,
|
|
explicit omissions and a viable downstream continuation.
|
|
Next action: review the six committed recovery boundaries through
|
|
=wkt/land_ib_recovery@3ec447a4= with its owner, then review downstream
|
|
replay evidence against that exact candidate. This supersedes the
|
|
earlier dirty-tree observation at =dc618229=.
|
|
|
|
**** Context and source
|
|
|
|
The candidate retains the runtime/Nix/pin foundation, correlated IB
|
|
MethodProxy responses, daemon error propagation and isolated feed
|
|
consumers. The committed recovery series backs out cached IB quote ownership,
|
|
partially backports reset/no-data adapter behavior, adds owned EMS
|
|
subscriptions, removes one null-sample debugger stop, and records
|
|
real-runtime regression and manual evidence.
|
|
[[file:/home/goodboy/repos/piker/ai/ib-recovery-candidate.md][ai/ib-recovery-candidate.md (original source)]]
|
|
|
|
|
|
The source reports 38 passes and one intentionally visible callback
|
|
failure. Human QQQ/backfill and overlapping chart trials on October 23
|
|
support recovery/service continuity; they do not establish clean exit.
|
|
The human explicitly accepted deferring daemon teardown from #94.
|
|
|
|
**** Concerns and execution
|
|
|
|
- [ ] Review each of the six original commit boundaries and preserve
|
|
original author attribution, full source SHAs and imported paths.
|
|
- [ ] Keep adapter-only imports of =0846cbd4= and =1da9b760= distinct
|
|
from their unimported history/SHM/storage changes and tests.
|
|
- [ ] Preserve the extra real-broadcaster and real-bridge regressions.
|
|
- [ ] Retain =976db6c3='s full downstream null-handling algorithm;
|
|
the small debugger removal is not an equivalent replacement.
|
|
- [ ] Review the requested downstream replay rehearsal evidence
|
|
before landing; this task grants no authority to rewrite branches.
|
|
- [ ] Keep the original cached-quote implementation gated on matching
|
|
Tractor ownership/teardown qualification before reintroduction.
|
|
|
|
**** Verification and handback
|
|
|
|
Review selected runtime imports, exact-boundary test results, known
|
|
failure output and the source's human-run smoke evidence. Report
|
|
remaining omissions and downstream conflicts against this task.
|
|
Commits, publication, history changes and live operations require the
|
|
human's own authorization; this sweep performed none of them.
|
|
|
|
*** TODO resolve deferred IB bridge and daemon teardown errors
|
|
:PROPERTIES:
|
|
:ID: piker-ib-bridge-daemon-teardown
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: make quote completion and daemon shutdown terminate cleanly
|
|
without masking the original failure or disrupting other consumers.
|
|
Next action: reproduce the strict real-bridge callback failure using
|
|
the bounded candidate's exact runtime, separately from #94 landing.
|
|
|
|
**** Context and concerns
|
|
|
|
The candidate's quote restart recovers, but Tractor's
|
|
=signal_trio_when_done()= still reports =TrioTaskExited= through the
|
|
asyncio exception handler. Human daemon SIGINT reproduced
|
|
=load_clients_for_trio()= / =_Cache.run_ctx= promotion through
|
|
=open_trade_dialog()= and debugger entry. Later status-0 child exits
|
|
are not proof that the shutdown path was clean.
|
|
|
|
The earlier IB handoff also preserves FIN/RST/blackhole/Gateway-reset,
|
|
idle peer EOF, debugger, multi-consumer and SHM-owner cleanup concerns.
|
|
[[file:/home/goodboy/repos/piker/wkts/fsp_backfill_sync/.ai/ib_connectivity_handoff_20260916.md][.ai/ib_connectivity_handoff_20260916.md (original source)]]
|
|
|
|
**** Execution and verification
|
|
|
|
- [ ] Retain the failing callback-cleanliness regression and original
|
|
errors while separating producer completion from Trio owner exit.
|
|
- [ ] Qualify interrupted startup, idle disconnect, cached-owner
|
|
closure and daemon SIGINT under ordinary/infected asyncio actors.
|
|
- [ ] Verify bounded teardown, creator-owned resource cleanup and
|
|
sibling-consumer continuity without blanket exception suppression.
|
|
- [ ] Specify reconnect subscription and order/fill/position resync
|
|
before any automatic retry; never blindly replay submitted orders.
|
|
|
|
Return a scoped cause/fix/regression report here and coordinate the
|
|
independent native crash with =piker-qt6-chart-teardown-sigsegv=.
|
|
|
|
*** Chart lifecycle, E2E and order-bootstrap ownership
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-chart-lifecycle
|
|
:END:
|
|
Canonical assignments already exist; extend those tasks rather than
|
|
creating another competing checklist:
|
|
[[id:piker-qt6-chart-teardown-sigsegv][Native Qt/PyQt teardown crash]]
|
|
[[id:piker-chart-disconnect-reattach-e2e][Independent-daemon chart journeys]]
|
|
[[id:piker-chart-bootstrap-zombie-order][Cancelled order resurrection during second-chart bootstrap]]
|
|
|
|
Next action: reconcile the committed Qtractor lifecycle candidate
|
|
=4ab49082=, clean headless foundation =aadfd1cf=, and evaluation tip
|
|
=e929fdc2= with the bounded landing before implementing the journeys.
|
|
The older store note describing the evaluation checkout as dirty at
|
|
=eed58566= is historical: this scan found =e929fdc2= clean.
|
|
|
|
The original E2E roadmap spans widget primitives, chart interactions,
|
|
composed SHM charts, production application/actor/process journeys,
|
|
search, paper orders and cleanup. The later live-backend-first review
|
|
changes sequencing; it does not erase the original coverage inventory.
|
|
Replay =06fee700= supplies controlled acknowledged inputs when a
|
|
specific observed race requires them, not a mandatory replay rewrite.
|
|
[[file:../plans/opencode/pytest-qt-chart-ui-e2e.md][plans/opencode/pytest-qt-chart-ui-e2e.md (original source)]]
|
|
[[file:/home/goodboy/repos/piker/wkts/human_iface_e2e/plans/opencode/human-facing-e2e-coverage.md][plans/opencode/human-facing-e2e-coverage.md (original source)]]
|
|
[[file:/home/goodboy/repos/piker/wkts/replay_provider_e2e/plans/opencode/live-backend-chart-e2e-review.md][plans/opencode/live-backend-chart-e2e-review.md (original source)]]
|
|
[[file:/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval/ai/plans/20261019-chart-disconnect-e2e-handoff.md][ai/plans/20261019-chart-disconnect-e2e-handoff.md (original source)]]
|
|
|
|
Verification must distinguish service/survivor continuity from clean
|
|
chart exit, preserve native crash evidence, and test snapshot/replay
|
|
against terminal cancellation during C's bootstrap. Order execution
|
|
and human-daemon access remain separately authorized operations.
|
|
|
|
*** TODO review segment repair and durable history publication
|
|
:PROPERTIES:
|
|
:ID: piker-history-segment-refill-review
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: qualify durable history repair without shifting published
|
|
rows, persisting synthetic observations or publishing stale FSP data.
|
|
Next action: review the staged and unstaged segment-refill work in
|
|
=wkt/ib_history_request_bounds@eed58566= before treating it as landed.
|
|
|
|
**** Context and prerequisites
|
|
|
|
This checkout has staged segment-refill/storage/CLI/history changes,
|
|
additional unstaged IB feed changes, and boot-trace/sampler tests.
|
|
Its history plan explicitly distinguishes implemented paths from
|
|
proposed contexts and deferred consumer behavior.
|
|
[[file:/home/goodboy/repos/piker/wkts/ib_history_request_bounds/docs/history_segment_backfill.rst][docs/history_segment_backfill.rst (original source)]]
|
|
[[file:/home/goodboy/repos/piker/wkts/ib_history_request_bounds/docs/ib_boot_trace.rst][docs/ib_boot_trace.rst (original source)]]
|
|
[[file:../plans/opencode/gap-checker-backfiller-repair.md][plans/opencode/gap-checker-backfiller-repair.md (original source)]]
|
|
[[file:../plans/opencode/known-fqme-backfill-qualification.md][plans/opencode/known-fqme-backfill-qualification.md (original source)]]
|
|
[[file:/home/goodboy/repos/piker/todo/backtester_deep_fixes.md][todo/backtester_deep_fixes.md (original source)]]
|
|
[[file:../docs/manual_backfill_qualification.rst][docs/manual_backfill_qualification.rst (original source)]]
|
|
|
|
Continue the existing =piker/prs/qualify known-FQME history backfill=
|
|
subtree for baseline/repair/fresh/restart/append qualification. The
|
|
MNQ 60-second sentinel note retains its exact disposable-root runbook
|
|
and its warning that the existing comparator misclassifies removal of
|
|
the intentional timestamp-60 sentinel. Revalidate the old contract,
|
|
case and runtime; do not silently use the human's production storage.
|
|
|
|
**** Execution, concerns and verification
|
|
|
|
- [ ] Review schedule coverage, unknown/no-data classification, bounded
|
|
queries, cancellation and real MNQ coverage separately.
|
|
- [ ] Qualify journal restart/idempotence, partial repair and CLI-owner
|
|
independence; distinguish data durability from SHM notification.
|
|
- [ ] Resolve cross-process writer coordination, journal retention,
|
|
synchronous disk stalls and partial cross-process SHM visibility.
|
|
- [ ] Preserve real observations and indexes; exclude synthetic rows
|
|
from exports and identify them explicitly to chart/FSP consumers.
|
|
- [ ] Qualify backend interruption, process death, storage locking,
|
|
restart, append and targeted graphics refresh with retained evidence.
|
|
- [ ] Reconcile stale plan TODO prose with implemented code by adding
|
|
evidence, preserving the original acceptance markers.
|
|
|
|
Return results to this task and the original known-FQME subtree.
|
|
Do not equate an IB adapter-only #94 backport with the storage repair.
|
|
|
|
*** FSP synchronization, sampling and cumulative volume
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-fsp
|
|
:END:
|
|
Existing canonical tasks:
|
|
[[id:piker-fsp-backfill-sync-review-and-commit][FSP synchronization review and commit]]
|
|
[[id:piker-cumulative-m4-volume-downsampling][Cumulative M4 volume reduction]]
|
|
|
|
The six post-=fadab3d2= boundaries are now committed through
|
|
=749ca1f0=: stream contracts, synchronization, negative-volume clamps,
|
|
redraw suppression, M4 invalidation and the expert skill. That worktree
|
|
has only tooling/handoff dirt, not the old uncommitted FSP patch.
|
|
Recovered September compaction/commit plans are preserved as history;
|
|
their old instruction to rebuild those commits is not current work.
|
|
|
|
Next action: review integration and qualification against the selected
|
|
runtime/history tree, retaining the existing human-confirmed MNQ
|
|
synchronization/zoom evidence. Keep cumulative sum-downsampling separate
|
|
from the implemented price-style M4 invalidation fix.
|
|
=wkt/sampler_tick_time_guard@a26e060c= adds stale-trade protection;
|
|
its dirty ideas.rst adds the explicit FeedDelayed proposal below.
|
|
The history checkout also contains a sampler timing variant. Compare
|
|
those implementations before choosing the landing boundary.
|
|
[[file:/home/goodboy/repos/piker/wkts/fsp_backfill_sync/.agents/skills/piker-fsp-expert/roadmap-and-research.md][.agents/skills/piker-fsp-expert/roadmap-and-research.md (original source)]]
|
|
|
|
*** TODO publish and consume explicit feed-delay events
|
|
:PROPERTIES:
|
|
:ID: piker-feed-delayed-event
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: make delayed timestamped trades observable to chart/feed
|
|
consumers after the stale-tick guard is qualified.
|
|
Next action: define the event and consumer contract from the preserved
|
|
uncommitted note in =wkt/sampler_tick_time_guard=.
|
|
|
|
- [ ] Add a =FeedDelayed= event when a timestamped trade must wait for
|
|
the next OHLC slot.
|
|
- [ ] Surface the delay to chart and feed consumers, especially when
|
|
it occurs beyond startup.
|
|
- [ ] Retain the loud warning until consumers can handle the event.
|
|
|
|
Verification should distinguish startup delay from sustained delay and
|
|
preserve event-time ordering and consumer continuity. Return findings
|
|
here; the complete original note remains in its source checkout.
|
|
[[file:/home/goodboy/repos/piker/wkts/sampler_tick_time_guard/notes_to_self/ideas.rst][notes_to_self/ideas.rst (original source)]]
|
|
|
|
*** Strict typed clearing and order correctness
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-clearing
|
|
:END:
|
|
[[id:piker-typed-clearing-migration][Canonical typed clearing migration]]
|
|
|
|
Next action: port paper and its paired EMS consumer, then the remaining
|
|
backend pairs and client/UI boundary using the canonical task.
|
|
=7fee9b86= implements schemas, validation, directional helpers and the
|
|
pure OrderState reducer. It does not migrate production endpoints.
|
|
The source records 65 offline tests and eight IPC tests for that
|
|
foundation, not full backend conformance or live-order qualification.
|
|
[[file:/home/goodboy/repos/piker/wkts/typed_clearing_protocol/plans/opencode/typed-ems-messaging.md][plans/opencode/typed-ems-messaging.md (original source)]]
|
|
|
|
Retain cancel-before-ack, early/duplicate/late fills, execution identity,
|
|
position/account mapping, bounded buffering, startup completion,
|
|
transport EOF and direction/phase validation. Resolve duplicate pytest
|
|
=--ll= registration before using a newer Tractor test plugin. Link the
|
|
second-chart resurrection reproducer to the canonical E2E task; do not
|
|
claim a schema foundation fixes that observed race by itself.
|
|
|
|
*** Provider correctness, symbols and bounded older candidates
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-providers
|
|
:END:
|
|
Next action: compare the bounded Binance landing, current symbol-cache
|
|
search work and IB socket/venue fixes with main and the runtime landing.
|
|
Candidates include =wkt/land_binance_usdm_feed@8006f2ff=,
|
|
=fix_symcache_search@9115d24d=, =wkt/ib_disconnect_integration@c0dae89a=,
|
|
and the Kraken token/account-alias and Deribit subscription branches.
|
|
The original Deribit =ddac3553= work is explicitly omitted from #94.
|
|
|
|
The historical landing plan preserves the independent symcache,
|
|
accounting synopsis, venue/calendar/ledger, provider refactor and
|
|
transport candidates. Cached remote refs also retain remote-only
|
|
Deribit/max-pain and older transport experiments. Unmerged ancestry
|
|
alone neither makes them separate current assignments nor proves they
|
|
are abandoned. Establish current intent and patch equivalence before
|
|
opening new implementations.
|
|
|
|
The local Gitea descriptions remain in the main checkout's =gitea/=
|
|
cache, and the GitHub #270 research note remains at =gh/270.md=.
|
|
Their URLs, unresolved checklists, rationale and original checked
|
|
markers remain intact. Existing store IB search, profiling, lint and
|
|
portable-skill tasks remain canonical.
|
|
|
|
*** Gap overlays, rendering and display portability
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-gap-display
|
|
:END:
|
|
Next action: qualify the =335190a4= chart-local overlay candidate and
|
|
its history-refresh dependency with the canonical existing tasks:
|
|
=piker/chart-local gap overlay follow-ups=,
|
|
=piker/factor typed chart annotation IPC dialogs=,
|
|
=piker/prs/vectorize gap_annotator client spec building=, and
|
|
=piker/ui/dpi_auto_calc=.
|
|
[[file:../plans/opencode/chart-local-gap-overlays.md][plans/opencode/chart-local-gap-overlays.md (original source)]]
|
|
[[file:../plans/opencode/chart-local-gap-overlays.summary.md][plans/opencode/chart-local-gap-overlays.summary.md (original source)]]
|
|
[[file:../notes_to_self/claudy/gapsannotator_sesh.md][notes_to_self/claudy/gapsannotator_sesh.md (original source)]]
|
|
|
|
Preserve the original benchmark: 1,285 gaps, server 7.6 ms, client
|
|
444.9 ms, spec construction 324.2 ms and IPC 120.4 ms. The projected
|
|
sub-10 ms spec construction is a hypothesis, not a measured result.
|
|
Retain the alternatives: array IPC, server-side specs, per-timeframe
|
|
cache invalidation and Polars-native calculations. Keep the original
|
|
session's checked and unchecked follow-ups intact in its source.
|
|
|
|
The DPI branches, macOS alternatives and PyQtGraph pin choices remain
|
|
separate candidates. Compare repeated Qt6 zoom/axis behavior and actual
|
|
macOS qualification with main before assuming an old branch is needed.
|
|
Polars 2.x remains the existing =piker-polars-2-upgrade= follow-up;
|
|
#94 currently pins below 2.0.
|
|
|
|
*** TODO scope the preserved chart UX ideas
|
|
:PROPERTIES:
|
|
:ID: piker-chart-ux-ideas
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: retain every original chart feature idea as selectable work.
|
|
Next action: choose one bounded user journey after the lifecycle and
|
|
history foundations are reliable.
|
|
|
|
- [ ] Right-click to spawn a shell with current in-view data passed
|
|
to the new process through =msgpack-numpy=.
|
|
- [ ] Expand an OHLC datum to a lower timeframe.
|
|
- [ ] Auto-highlight the current time range on the tick feed.
|
|
- [ ] Diff tick volume against the historical bar when it arrives to
|
|
help identify dark volume/trades.
|
|
- [ ] Add a hotkey to zoom to the order-line intersection with earlier
|
|
price levels, with a margin.
|
|
- [ ] Normalize L1 queue-size lines to a fixed x width so newly larger
|
|
levels scale smaller levels down and reveal relative liquidity.
|
|
|
|
The original =notes_to_self/ideas.rst= remains unchanged, including
|
|
the author's introduction. The later feed-delay addition remains in
|
|
the sampler worktree linked above. Hand back a selected interaction,
|
|
its source data contract and a verification plan before broadening
|
|
it into multiple features.
|
|
[[file:../notes_to_self/ideas.rst][Original chart UX notes]]
|
|
|
|
*** TODO prototype revisioned FSP graph and repair contracts
|
|
:PROPERTIES:
|
|
:ID: piker-revisioned-fsp-graph-research
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:ISSUE: https://github.com/pikers/piker/issues/270
|
|
:END:
|
|
Objective: develop typed composable signal processing from explicit
|
|
source revisions and operator repair semantics.
|
|
Next action: bound a two-FSP/two-overlaid-feed revision prototype;
|
|
keep this research distinct from current synchronization repairs.
|
|
[[file:/home/goodboy/repos/piker/gh/270.md][gh/270.md (original source)]]
|
|
[[file:/home/goodboy/repos/piker/wkts/fsp_backfill_sync/.agents/skills/piker-fsp-expert/roadmap-and-research.md][.agents/skills/piker-fsp-expert/roadmap-and-research.md (original source)]]
|
|
|
|
- [ ] Prove source-specific wakeups, prepend coalescing, stale-result
|
|
rejection and targeted range updates independent of transport.
|
|
- [ ] Compare full replay, pointwise prefix repair, checkpoint replay
|
|
and finite-window overlap, including warm-up/locality declarations.
|
|
- [ ] Separate orchestration from chart ownership and expose outputs
|
|
through feed-like subscriptions before graph placement or fusion.
|
|
- [ ] Benchmark decode, SHM publication, kernels, fan-out, destination
|
|
publication and paint separately under bursts and slow consumers.
|
|
- [ ] Preserve the original compiled composition/DSL proposal and its
|
|
complete research bibliography; qualify candidate libraries only
|
|
through a specific measured need.
|
|
|
|
The source retains #107, #216, #325, #536, older #98, Tractor #339,
|
|
transport experiments, bounded library prototypes and the watchlist.
|
|
Return prototype evidence and unresolved semantics here; no dependency
|
|
adoption or implementation was performed during this sweep.
|
|
|
|
*** TODO review the active TIPC and remote-feed bridge
|
|
:PROPERTIES:
|
|
:ID: piker-tipc-remote-feed-bridge
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: preserve and review the cross-host feed work currently
|
|
being edited outside the existing task store.
|
|
Next action: read the dirty implementation and tests in
|
|
=wkt/tipc_feed_bridge@e929fdc2= with its owning worker.
|
|
|
|
**** Observed implementation
|
|
|
|
The dirty work now spans discovery/runtime, services, feed/flows,
|
|
sampling, FSP and chart startup, with new remote-feed, datad-placement
|
|
and multi-host examples/tests. Staging is changing during this scan;
|
|
re-read the owner's index and worktree before assigning a boundary.
|
|
The branch's shared HEAD with the downstream evaluation does not
|
|
mean their working trees match.
|
|
|
|
The new module contains BufferPublisher/BufferReceiver, remote feed
|
|
streaming, mirrored samples and feed bridge/portal lifecycle helpers.
|
|
Tests describe buffer replication, revision-gap/extent rejection,
|
|
mirror actor lifetime, discovery backend selection and independent
|
|
CLI listener/discovery settings. Their presence is implementation
|
|
evidence; this inventory did not execute or qualify them.
|
|
|
|
The new multi-host guide specifies independently owned provider and
|
|
client trees, local mirrored SHM reused by FSP, and separate discovery
|
|
and actor IPC choices. It names Tractor =wkt/tipc_discovery@bd6e6211=;
|
|
the installed Piker pin is unchanged. Its October 23 test table reports
|
|
TCP/UDS contracts, native TIPC lifecycle, two-node deployment and
|
|
concurrent datad placement, plus existing FSP/history regressions.
|
|
Those are the owner's recorded results, not reruns by this inventory.
|
|
[[file:/home/goodboy/repos/piker/wkts/tipc_feed_bridge/examples/multihost_feed.md][Complete multi-host setup, results and protocol limitations]]
|
|
|
|
The guide distinguishes local namespace failover from physical dual-link
|
|
and live GUI qualification. Published snapshots are not atomic across
|
|
buffers or concurrent source writes; chunk scans on quotes/idle polls
|
|
still need production-scale CPU, memory and network measurement.
|
|
Provider UID loss fails the subscription; reattachment creates a fresh
|
|
mirror. Seamless recovery through a total partition is not implemented.
|
|
|
|
**** Review and handback
|
|
|
|
- [ ] Qualify snapshot consistency during concurrent repair/prepend and
|
|
measure copying/scan costs with large history and high quote rates.
|
|
- [ ] Keep physical dual-link and actual provider/chart qualification
|
|
separate from synthetic namespace results; verify client progress,
|
|
new discovery, provider survival and mirror PID/SHM cleanup.
|
|
|
|
- [ ] Establish the intended local/remote ownership, host discovery
|
|
and buffer publication contracts from the actual working diff.
|
|
- [ ] Review cancellation, revision loss, extent validation, shared
|
|
consumer lifetime, independent listeners and failure propagation.
|
|
- [ ] Run the owning branch's focused tests in its selected runtime
|
|
and record imports, results and remaining cross-host qualification.
|
|
- [ ] Return the reviewed scope and next integration decision here
|
|
without overwriting concurrent edits or inferring acceptance.
|
|
|
|
*** TODO replace private feed-control context grafting
|
|
:PROPERTIES:
|
|
:ID: piker-public-feed-control-context
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: expose supported control access for subscribed feed streams.
|
|
Next action: agree a public duplex child-stream/context contract with
|
|
Tractor, checking the selected runtime before changing Piker callers.
|
|
|
|
**** Context and concerns
|
|
|
|
The #92 follow-up explicitly requests this interface. Current
|
|
=maybe_open_feed()= attaches the root stream's context to private
|
|
=BroadcastReceiver._ctx= for pause/resume compatibility. The isolated
|
|
consumer fix does not remove this compatibility dependency.
|
|
[[file:/home/goodboy/repos/piker/wkts/fix_broadcast_consumers/gitea/92.md][Original broadcast-consumer follow-ups]]
|
|
[[file:/home/goodboy/repos/piker/piker/data/feed.py::956][Private child-stream context graft]]
|
|
|
|
**** Execution, verification and handback
|
|
|
|
- [ ] Replace the private graft with the agreed public interface and
|
|
update pause/resume callers without mutating cache-owned streams.
|
|
- [ ] Qualify multiple chart/API subscribers, pause/resume behavior,
|
|
lag policy, cancellation, producer EOF and cached-feed reuse.
|
|
- [ ] Return the paired Tractor/Piker revisions, focused regression
|
|
evidence and remaining integration dependencies to this task.
|
|
|
|
*** TODO qualify shared-memory portability and remaining shims
|
|
:PROPERTIES:
|
|
:ID: piker-shm-portability-qualification
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: finish platform qualification after the Tractor SHM port.
|
|
Next action: audit callers of the remaining Piker shim against the
|
|
selected Tractor revision before deciding whether to remove it.
|
|
|
|
**** Context and concerns
|
|
|
|
The original #83 follow-up names =maybe_open_shm_array()= and
|
|
=_make_token()= as possible removals, explicitly retaining =try_read()=.
|
|
Its empty-read guard documents a prepend/index-publication race.
|
|
The macOS branch document preserves compatibility proposals and an
|
|
unqualified test checklist; its old implementation sketches are not
|
|
current API guidance. #64 also requests macOS CI for both projects;
|
|
Windows remains separate. Recheck upstream state before assigning it.
|
|
[[file:/home/goodboy/repos/piker/gitea/83.md][SHM port and original remaining work]]
|
|
[[file:/home/goodboy/repos/piker/gitea/64.md][Platform and CI follow-ups]]
|
|
[[file:/home/goodboy/repos/piker/piker/data/_sharedmem.py::159][Empty-read guard and publication concern]]
|
|
[[https://pikers.dev/pikers/piker/src/commit/18b66e5506f4f63e24ddb9b38f6c2a37c189603f/docs/macos/compatibility-fixes.md][Complete original macOS compatibility notes]]
|
|
|
|
**** Execution, verification and handback
|
|
|
|
- [ ] Decide each shim's ownership after checking callers and tests;
|
|
preserve =try_read()= until its publication race has a proven answer.
|
|
- [ ] Qualify Darwin/Linux imports and transport credentials, long SHM
|
|
names, token identity, multi-process cleanup, graceful/abnormal exit
|
|
and absence of leaked owned resources using exact paired revisions.
|
|
- [ ] Add a bounded reliable-provider regression and reconcile macOS
|
|
CI provisioning. Return results, unavailable-platform gaps and the
|
|
shim decision here; coordinate teardown with its canonical tasks.
|
|
|
|
*** TODO qualify incomplete chart rendering and region interaction
|
|
:PROPERTIES:
|
|
:ID: piker-chart-rendering-fidelity
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: establish correct incremental geometry and chart navigation.
|
|
Next action: reproduce the current rendering leads with small known
|
|
series before deciding which implementation changes are necessary.
|
|
|
|
**** Context and concerns
|
|
|
|
Current code flags incomplete last-pixel source data for FlattenedOHLC.
|
|
M4 guards a negative x range by logging and returning None. Reverse
|
|
history-region callbacks remain disabled following recursion/performance
|
|
problems. These are distinct from cumulative-volume sum downsampling;
|
|
this scan did not reproduce a GUI failure or enable disabled code.
|
|
[[file:/home/goodboy/repos/piker/piker/ui/_display.py::942][FlattenedOHLC last-pixel source-data concern]]
|
|
[[file:/home/goodboy/repos/piker/piker/data/_m4.py::91][Guarded negative M4 x range]]
|
|
[[file:/home/goodboy/repos/piker/piker/ui/_display.py::1241][Disabled history-region interaction]]
|
|
[[id:piker-cumulative-m4-volume-downsampling][Separate cumulative-volume task]]
|
|
|
|
**** Execution, verification and handback
|
|
|
|
- [ ] Compare full and incremental rendering across zoom, append and
|
|
prepend in time/index modes; isolate malformed M4 endpoint input.
|
|
- [ ] Before restoring reverse region control, bound callback recursion
|
|
and measure redraw/label costs with linked realtime/history charts.
|
|
- [ ] Return a reproduced case or evidence that a comment is stale,
|
|
plus focused geometry checks and performance results, to this task.
|
|
|
|
*** TODO qualify installed commands and public Python APIs
|
|
:PROPERTIES:
|
|
:ID: piker-public-cli-api-qualification
|
|
:CREATED: [2026-10-23]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:END:
|
|
Objective: exercise the supported process/API entry points end to end.
|
|
Next action: implement isolated installed-script discovery/watchlist
|
|
checks, then qualify feed/runtime lifetimes against the chosen baseline.
|
|
|
|
**** Context and concerns
|
|
|
|
The human-facing coverage plan contains CLI/API work beyond its chart
|
|
journeys. Legacy =test_cli.py= is still blanket-skipped; direct storage
|
|
CliRunner tests do not exercise installed executables. The later
|
|
live-backend-first roadmap governs provider selection: use existing
|
|
bounded fixtures and introduce controlled replay only for specific races.
|
|
[[file:/home/goodboy/repos/piker/wkts/human_iface_e2e/plans/opencode/human-facing-e2e-coverage.md::651][Original installed-script/API phase and complete coverage plan]]
|
|
[[file:/home/goodboy/repos/piker/wkts/replay_provider_e2e/plans/opencode/live-backend-chart-e2e-review.md][Later provider-first qualification decisions]]
|
|
[[file:/home/goodboy/repos/piker/tests/test_cli.py::13][Legacy blanket skip]]
|
|
|
|
**** Execution, verification and handback
|
|
|
|
- [ ] Run installed =piker=, =pikerd= and =ledger= help/invalid-argument
|
|
contracts, watchlist round trips, and read-only store diagnostics
|
|
with isolated config and explicit executable/import provenance.
|
|
- [ ] In fresh interpreters qualify public runtime/feed startup,
|
|
history/quotes, multiple consumers, pause/resume and bounded exit;
|
|
assert actual process/actor/SHM ownership and no leaked resources.
|
|
- [ ] Exercise public accounting close/reopen under temporary roots;
|
|
coordinate paper EMS/API coverage with the typed-clearing task and
|
|
chart/service lifetimes with the existing E2E task, avoiding duplicates.
|
|
- [ ] Return stdout/stderr/exit and persistence evidence, selected
|
|
fixture/backend requirements and remaining gaps to this task.
|
|
|
|
*** Trend Calculus and Jev
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-trends
|
|
:END:
|
|
The draft =trend_calc_on_jev@e815fd77= is preserved. Its existing task
|
|
family already covers draft splitting, prototype review, Pine parity,
|
|
live multitimeframe chart qualification, native subsecond sampling,
|
|
real Jev responses and integration with the separate provider service.
|
|
[[id:piker-trend-calculus-prototype-review][Prototype review and qualification]]
|
|
[[id:piker-trend-calculus-draft-commit-split][Human-owned draft split decision]]
|
|
[[id:piker-trend-calculus-pine-parity][Pine-source recovery and parity]]
|
|
[[id:piker-trend-regime-chart-qualification][Chart behavior qualification]]
|
|
[[id:piker-trend-native-subsecond-sampling][Native subsecond source]]
|
|
[[id:piker-jev-live-regime-qualification][Real Jev response qualification]]
|
|
[[id:piker-jev-provider-service-integration][Separate service integration]]
|
|
[[https://pikers.dev/pikers/piker/src/commit/e815fd77cfbf89b241bfabf19bda7b1c5f25c784/docs/trend_calculus.rst][docs/trend_calculus.rst (original at e815fd77)]]
|
|
|
|
Next action: settle the runtime/history integration baseline and use
|
|
these canonical tasks. The old dependency on portable workflow commit
|
|
=f148fbcc= is now satisfied by main's #93 merge; the broader downstream
|
|
landing order remains unresolved. The source's 253-test report is
|
|
historical evidence, not a current rerun. Credentials, live requests,
|
|
model quality/latency/cost and the external service interface remain
|
|
explicit dependencies rather than presumed completed work.
|
|
|
|
*** Tooling, federation, funding and continuing maintenance
|
|
:PROPERTIES:
|
|
:ID: piker-workstream-project-maintenance
|
|
:END:
|
|
The user assigns this agent product-management responsibility for this
|
|
repository's federated store. For follow-up work, start from the named
|
|
federated-store line through open-wkt, carry forward current source
|
|
edits, inspect relevant workers and use guarded Taken writes. Keep
|
|
stable task IDs and return findings to their originating tasks.
|
|
|
|
Next action: review this inventory in its isolated worktree. The global
|
|
storespace still selects the original federated-store checkout; this
|
|
sweep does not silently retarget it. When the human chooses integration,
|
|
reconcile any newer source-store edits and preserve the original
|
|
document references. Keep generated audit and commit execution data
|
|
in ignored local workflow state. No commit or publication was made.
|
|
|
|
The existing cross-harness skill, lint, stale-plan/worktree, funding,
|
|
meeting and profiling tasks remain the acceptance owners. Main includes
|
|
portable skill integration via #93, but that does not settle every
|
|
old issue or remaining lint/tooling action. The datad-service document
|
|
is preserved as architecture evidence alongside its branch history.
|
|
|
|
**** Documentation follow-ups recovered from cached descriptions
|
|
|
|
- [ ] Document the retained smart-dedupe helper, remote annotation API
|
|
and exposed shape options against the chosen implementation.
|
|
- [ ] Document the offline REPL helper and actual installed store CLI;
|
|
reconcile old =ls/delete/ldshm= names with current commands first.
|
|
- [ ] Refresh provider API/history/quote schema documentation against
|
|
current FeedInit/MktPair and stream contracts. The remote-only
|
|
backend-spec branch is source material, not a current specification.
|
|
|
|
The original #75 source retains its full reasoning and unchecked work;
|
|
manual gap repair and chart annotations keep their existing task owners.
|
|
[[file:/home/goodboy/repos/piker/gitea/75.md][Complete annotation, storage and documentation follow-ups]]
|
|
[[https://pikers.dev/pikers/piker/src/commit/96c70ee542e6f0569ff411062618814662906ae1/piker/brokers/README.rst][Original backend specification from cached backend_spec branch]]
|
|
|
|
**** Funding and continuing synchronization
|
|
|
|
The NGI0 proposal and summary retain the original mission, scope,
|
|
milestones, budget/research narrative and URLs. Its August 1 deadline
|
|
is historical; current submission/funding state was not verified.
|
|
[[https://pikers.dev/pikers/piker/src/commit/b05292b0bb02e0713f391e8a56ef83627c7c856c/ai/claude-code/plans/nlnet_commons_fund_proposal.md][ai/claude-code/plans/nlnet_commons_fund_proposal.md (original at b05292b0)]]
|
|
[[https://pikers.dev/pikers/piker/src/commit/b05292b0bb02e0713f391e8a56ef83627c7c856c/ai/claude-code/plans/nlnet_commons_fund_proposal.summary.md][ai/claude-code/plans/nlnet_commons_fund_proposal.summary.md (original at b05292b0)]]
|
|
|
|
For each newly assigned scope, reconcile new notes and source changes,
|
|
update objective/next action/evidence in the canonical subtree, and
|
|
retain unresolved concerns. No watcher, scheduled job or background
|
|
agent was started; synchronization occurs during authorized work.
|
|
|
|
**** Marker review proposals, not applied
|
|
|
|
- Source =piker=, =piker-fsp-backfill-sync-review-and-commit=:
|
|
current TODO; proposed WIP while integration/review obligations are
|
|
reconciled. Its six implementation commits are present, so the old
|
|
unchecked commit bullets no longer describe the checkout. The
|
|
broader review/boundary-check acceptance is not established here.
|
|
- Source =piker=, =piker-typed-clearing-migration=:
|
|
current TODO; proposed WIP because the strict foundation is committed
|
|
and the paired production migrations remain outstanding.
|
|
- Source =piker=, =piker-trend-calculus-prototype-review=:
|
|
current TODO; proposed WIP because the draft exists and qualification
|
|
remains. Keep the separate split and live-provider tasks unchanged.
|
|
|
|
These are proposals for the human. Every existing headline state and
|
|
checkbox marker remains exactly as found. No parent acceptance or
|
|
checkbox completion is inferred from a commit or this inventory.
|
|
|
|
* TODO Diagnose Qt6 chart teardown SIGSEGV with native backtraces
|
|
:PROPERTIES:
|
|
:ID: piker-qt6-chart-teardown-sigsegv
|
|
:CREATED: [2026-10-19]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:CATEGORY: piker.ui
|
|
:AI_HARNESS: opencode
|
|
:TAKEN_APPEND_OP: piker-qt6-chart-253598-20261019-v2
|
|
:TAKEN_APPEND_REQUEST: 63f1f80088fcf82fd10a8c9a21fc0d0b7c1f0dcc58610afb4801af0ca29ccbb9
|
|
:END:
|
|
Find and correct the invalid Qt/PyQt object lifetime during chart exit.
|
|
Next action: inspect the saved PID 253598 core with matching PyQt/SIP
|
|
debug symbols, then identify the wrapper passed to cleanup_qobject.
|
|
|
|
[[file:../ai/diagnostics/20261019-chart-253598/README.md][Core identity, native fault stack and capture limitations]]
|
|
[[file:../ai/diagnostics/20261019-chart-253598/gdb.txt::886][All-thread GDB capture; fault-thread stack]]
|
|
|
|
Context:
|
|
Human-selected chart core: PID 253598, actor b1326a, SIGSEGV/MAPERR at
|
|
2026-10-19 15:29:39 EDT. Command opened MNQ December 2026 and March 2027
|
|
contracts on the IB downstream evaluation worktree. Python 3.13.14,
|
|
Qtbase 6.11.1, PyQt6 6.11.0, pyqt6-sip 13.10.2; Wayland/qt6ct loaded.
|
|
GDB captured 82 threads and shared-library paths. Native fault chain:
|
|
Python finalization/atexit -> cleanup_on_exit -> sip_api_visit_wrappers
|
|
-> cleanup_qobject -> sip_api_get_address.
|
|
|
|
Concerns:
|
|
The human reports this class of crash since the Qt6 migration. Guest
|
|
mode/Qt-loop teardown ordering is a hypothesis, not a proven root cause.
|
|
The saved stack places this fault in PyQt/SIP finalization, not directly
|
|
inside a running Trio guest tick. Most native libraries lack debug info;
|
|
arguments, locals and source lines remain unavailable. The systemd core
|
|
can expire; its exact storage path and boot ID are in the report.
|
|
Preceding Python output includes MainWindow self-SIGINT/KBI and FSP
|
|
cancellation groups. Preserve these as separate observations; daemon
|
|
survival and unaffected sibling charts do not prove clean chart exit.
|
|
|
|
Execution:
|
|
- [ ] Preserve the selected core outside systemd expiry and resolve
|
|
matching PyQt/SIP/Qt/Python debug symbols without changing live services.
|
|
- [ ] Inspect the faulting SIP wrapper and QObject ownership/deletion
|
|
state; distinguish use-after-free, repeated cleanup and ABI mismatch.
|
|
- [ ] Compare terminal process-group SIGINT, root-only SIGINT, actual
|
|
window close and structured QtractorSession shutdown in owned processes.
|
|
- [ ] Compare the evaluation lifecycle against wkt/live_chart_qtractor;
|
|
account for its dirty test/startup work separately from committed HEAD.
|
|
- [ ] Capture ordering of guest completion, Qt deferred deletes,
|
|
QApplication lifetime and Python finalization; derive a minimal repro.
|
|
|
|
Verification:
|
|
- [ ] Add a subprocess regression that observes the exit status and
|
|
fails on SIGSEGV/native abort; use deterministic lifecycle gates where
|
|
needed rather than sleeps or blanket cancellation suppression.
|
|
- [ ] Repeat the repro with the focused fix, then qualify real-provider
|
|
chart exit and independent daemon/remaining-consumer survival.
|
|
- [ ] Retain both baseline and fixed diagnostics; distinguish native
|
|
crash repair from cancellation-group/debugger-lock follow-ups.
|
|
|
|
Handback:
|
|
Return the identified failing ownership path, symbolized evidence,
|
|
focused patch/regression, exact commands/results and unresolved concerns
|
|
to this task. Keep acceptance markers human-owned.
|
|
* TODO Qualify chart disconnect and reattach with independent service ownership
|
|
:PROPERTIES:
|
|
:ID: piker-chart-disconnect-reattach-e2e
|
|
:CREATED: [2026-10-20]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:CATEGORY: piker.testing
|
|
:AI_HARNESS: opencode
|
|
:TAKEN_APPEND_OP: piker-chart-disconnect-reattach-e2e-20261020-v2
|
|
:TAKEN_APPEND_REQUEST: 5963b29d2e6372c8864831fdee8945a3e064f5084d9abf0331f92c0b5171647c
|
|
:END:
|
|
Build process-isolated chart journeys that distinguish surviving shared
|
|
services and consumers from clean chart exit. Preserve original errors
|
|
and deterministic phase evidence; do not declare a journey green merely
|
|
because another chart remains usable.
|
|
|
|
Next action: reconcile the current testing and evaluation branches and
|
|
their actual Piker/Tractor imports, then implement a suite-owned pikerd
|
|
with independent chart processes. No implementation has started for this
|
|
handoff as of this entry; source/state inspection is recorded below.
|
|
|
|
Context:
|
|
Human-directed assignment to e2e_qa_mngr from proj_super. The source
|
|
handoff describes proposed tests, not existing runnable nodes:
|
|
[[file:/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval/ai/plans/20261019-chart-disconnect-e2e-handoff.md][Chart disconnect and reattach specification and manual evidence]]
|
|
|
|
Existing foundations, inspected 2026-10-20:
|
|
- wkt/live_chart_qtractor at 4ab49082: structured lifecycle 1a2d4893,
|
|
prerequisite fixes 5c17419c, opt-in Kraken reproducer 4ab49082.
|
|
Application/test work is committed; only local workflow configuration
|
|
remains dirty. Use this as the initial working candidate, not proof
|
|
that the evaluation fixes are integrated.
|
|
- wkt/human_iface_e2e at aadfd1cf is clean and supplies the headless
|
|
QApplication isolation foundation.
|
|
- wkt/replay_provider_e2e at 06fee700 is clean. Its real feed/control
|
|
fixture has acknowledged sequence barriers. The observed disconnect
|
|
races justify narrow controlled input, not a replay-first rewrite.
|
|
- wkt/ib_downstream_pin_eval remains at eed58566 with dirty dependency,
|
|
logger, daemon and EMS compatibility changes.
|
|
- wkt/ib_disconnect_integration at c0dae89a contains committed IB
|
|
disconnect work; its provenance/tooling state remains dirty.
|
|
- Tractor wkt/ctx_final_return_disconnect in address_logging_levels is
|
|
at 0553fcf8 with dirty final-Return guard and regression changes.
|
|
Read them as candidate evidence, not an already-landed fix.
|
|
|
|
Reuse tests/ui/conftest.py, the Qtractor lifecycle regression,
|
|
tests/conftest.py open_test_pikerd and owned config propagation, and
|
|
the replay branch's acknowledged feed controls where applicable.
|
|
[[file:/home/goodboy/repos/piker/wkts/live_chart_qtractor/tests/ui/test_live_chart.py][Committed live-chart reproducer]]
|
|
[[file:/home/goodboy/repos/piker/wkts/replay_provider_e2e/plans/opencode/live-backend-chart-e2e-review.md][Live-provider-first roadmap]]
|
|
|
|
The current sanitized live_chart_qtractor interpreter resolves Piker
|
|
from that worktree but Tractor from its py313 site-packages; installed
|
|
Trio is 0.32.0 and PyQt6 is 6.10.1. This is not the manual evaluation's
|
|
Tractor checkout or PyQt6 6.11.0 environment. Resolve exact versions and
|
|
module paths again before any comparison. Inspect the duplicate pytest
|
|
--ll registration blocker before selecting the evaluation environment.
|
|
|
|
Concerns and authority:
|
|
This assignment does not authorize commits, history changes, live IB
|
|
connections, any orders, or attachment to the human's running daemon.
|
|
Order journeys may be designed and implemented as gated tests; do not
|
|
execute them without explicit authorization. Live-provider qualification
|
|
requires explicit selection and applicable human permission.
|
|
|
|
The existing Kraken run reached history and paper EMS but readiness
|
|
preceded rt_linked.mode, Qt reported abstract paint calls, and teardown
|
|
left a paperboi child. That exact orphan was subsequently stopped by
|
|
human-authorized SIGINT. Guest completion did not prove descendant exit.
|
|
|
|
Manual IB trials demonstrate daemon/survivor continuity, not clean exit.
|
|
Cancellation-only groups, DebugRequestError, hard-reaping and SIGSEGV
|
|
remain unresolved. Do not suppress any of these to make E2E green.
|
|
|
|
Canonical native-crash investigation, separate from this test assignment:
|
|
[[id:piker-qt6-chart-teardown-sigsegv][Diagnose Qt6 chart teardown SIGSEGV with native backtraces]]
|
|
[[file:../ai/diagnostics/20261019-chart-253598/README.md][SIP wrapper access during PyQt atexit: diagnostics and limits]]
|
|
The core locates the native fault; it does not establish the underlying
|
|
ownership cause. This task records exit evidence without claiming repair.
|
|
Coordinate order replay/cancellation assertions with
|
|
[[id:piker-typed-clearing-migration][Strict typed clearing migration]];
|
|
do not duplicate its protocol migration or infer it has landed.
|
|
|
|
Execution:
|
|
- [ ] Reconcile source revisions and dirty work before integrating; record
|
|
the selected branch, reused fixtures, and exact runtime imports.
|
|
- [ ] Own registrar/pikerd A independently of chart processes B and C;
|
|
give each chart its own QApplication and Tractor root. Separate discovery
|
|
from listener addresses, use a test-unique registry and loopback port
|
|
zero, and assert actual chart listeners are nonzero and distinct.
|
|
- [ ] Isolate config, storage, settings and account state before imports
|
|
in every child; never reuse human ports 6116/3333 or human accounts.
|
|
- [ ] Provide an external observation/control channel and owned process
|
|
handles that outlive charts. Capture actor UUID/name/PID/listeners,
|
|
child relations and exact SHM ownership including unpublished child SHM.
|
|
- [ ] Establish readiness after feed/history attachment, bound views,
|
|
FSP streams, search handlers and EMS entry. Race waits against original
|
|
process/session failure, not only timeouts.
|
|
- [ ] Implement same-market alternating departures: ready B/C, close B,
|
|
prove the SAME C consumes a post-close quote/FSP update, reopen B,
|
|
close C, prove replacement B survives, then close/reopen the last chart.
|
|
Add the distinct-market variant to prove sibling-feed independence.
|
|
- [ ] Implement last-consumer repeated reattachment to the SAME A and
|
|
service/client generations. Compare actual window close, structured
|
|
shutdown, root-only SIGINT and terminal-equivalent process-group SIGINT
|
|
as separate variants, with PID/PGID ownership recorded before signaling.
|
|
- [ ] Drive actual search results with QtBot in the chart worker; compare
|
|
visible versus normally dismissed results before detach and reattach.
|
|
- [ ] Gate startup cancellation with entered/release acknowledgements at
|
|
early acquisition, FSP child bootstrap before imports/registration,
|
|
history publication and FSP stream establishment. Hold only C's work,
|
|
retain B's progress, permit unwind, and prove a new C can start afterward.
|
|
- [ ] Repeat gated startup aborts with no other consumer. Include debug
|
|
mode during FSP imports; retain the original interruption independently
|
|
from a secondary local-actor IPC stdio-lock DebugRequestError.
|
|
- [ ] Implement separately selected order continuity journeys for Piker
|
|
paper EMS, IB paper-account broker-routed limits, and EMS-held dark
|
|
orders. Execution remains blocked pending explicit order authorization.
|
|
Include multi-expiry market-specific dialogs and cancellation of both
|
|
order types after reattach.
|
|
|
|
Verification:
|
|
- [ ] Report service survival and chart exit as separate outcomes even
|
|
when either fails. Collect survivor evidence after departure errors,
|
|
then aggregate originals rather than hiding them behind cleanup.
|
|
- [ ] Prove fresh service RPCs and post-action provider data in the same
|
|
survivor, including FSP consumption. Deterministic inputs need a matched
|
|
sequence; live quotes need not change price. Sampler ticks alone fail.
|
|
- [ ] Assert stable service/provider generations, owned child exit and
|
|
SHM lifetime according to its actual owner. Shared cached feed SHM may
|
|
remain with A; endpoint closure alone does not prove PID exit.
|
|
- [ ] Fail clean-exit checks for SIGSEGV/abort, stuck children, hard reap,
|
|
unexpected debugger entry and cancellation-only application errors.
|
|
Do not blanket-suppress TransportClosed or mixed exception groups.
|
|
- [ ] Preserve baseline/fixed results, stdout/stderr, return codes,
|
|
source versions, phase acknowledgements, actor/RPC/context identities,
|
|
cancellation provenance, and available fault-handler/core evidence.
|
|
- [ ] For authorized order qualification, verify canonical OID/reqid
|
|
continuity, idempotent replay, market routing, working-order counts,
|
|
position continuity and terminal cancellation. Repeated status messages
|
|
alone do not prove duplicate orders. Cover reqid 5042-style error replies
|
|
with oid=None and the unsubmitted-order-None cancellation symptom.
|
|
- [ ] Run each selected tier headlessly with bounded ownership-scoped
|
|
cleanup. Preserve fresh-process fixture isolation; no broad process
|
|
killing, SHM cleanup, or human-daemon access.
|
|
|
|
Handback:
|
|
Return results to source piker, task piker-chart-disconnect-reattach-e2e:
|
|
- Selected implementation branch, exact source revisions and reused
|
|
fixtures, including any unintegrated prerequisites.
|
|
- Exact implemented runnable test node IDs and synchronization gates;
|
|
distinguish proposed names from implemented nodes.
|
|
- Baseline/fixed results with service survival and chart/process exit
|
|
reported independently, including unresolved failures.
|
|
- Remaining coverage gaps, required public/live-IB qualification and
|
|
order authorization, linked to the separate native-crash concern.
|
|
Use guarded store updates for evidence. Preserve all human-owned task
|
|
and checkbox states; passing tests and commits are not acceptance.
|
|
** TODO Reproduce terminal-order resurrection during second-chart bootstrap
|
|
:PROPERTIES:
|
|
:ID: piker-chart-bootstrap-zombie-order
|
|
:CREATED: [2026-10-21]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:CATEGORY: piker.testing
|
|
:AI_HARNESS: opencode
|
|
:TAKEN_APPEND_OP: piker-chart-bootstrap-zombie-order-20261021
|
|
:TAKEN_APPEND_REQUEST: d247a9738e0b8b1463a84e9bc8c1e9193d83b72bc63d81b1abef0f64c09e1dfc
|
|
:END:
|
|
Qualify canonical order-state and graphical convergence when already-live
|
|
chart B repeatedly submits and immediately cancels orders while chart C
|
|
is bootstrapping against the same independently owned EMS/pikerd.
|
|
|
|
Next action: after upstream baseline reconciliation, identify real C-side
|
|
order snapshot/replay and live-subscription handoff gates. Keep B and EMS
|
|
responsive. Do not replace this scenario with cancellation between two
|
|
fully-ready charts. No test implementation or order execution is recorded.
|
|
|
|
Context:
|
|
Sibling lander agent supplied the corrected human-observed trigger in
|
|
section 7b of the updated QA handoff:
|
|
[[file:/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval/ai/plans/20261019-chart-disconnect-e2e-handoff.md::215][7b: second-chart bootstrap submit/cancel race]]
|
|
The proposed name test_cancel_during_second_chart_order_bootstrap is not
|
|
yet a runnable test node. C was observed to retain an order already
|
|
cancelled in B and EMS. Exact causal ordering and whether stale state is
|
|
graphical or dialog-local remain unproven; initial retries were elusive.
|
|
|
|
Execution:
|
|
- [ ] Reuse the parent task's independent-daemon/process topology and
|
|
record exact Piker/Tractor revisions before reproducing the race.
|
|
- [ ] Gate C at actual snapshot/replay and subscription handoff boundaries
|
|
with entered/release acknowledgements, leaving B and EMS responsive.
|
|
- [ ] Exercise repeated immediate submit/cancel in B with distinct OIDs;
|
|
place terminal cancellation before, during and after bootstrap delivery.
|
|
- [ ] Add a controlled variant that delivers an older open snapshot after
|
|
terminal cancellation. Label this injected ordering as a hypothesis
|
|
test, not the established ordering of the manual failure.
|
|
- [ ] Cover broker-routed IB paper-account orders and EMS-held dark
|
|
orders separately, preserving market-specific dialog routing.
|
|
|
|
Verification:
|
|
- [ ] Compare C's canonical dialog/order state AND graphical items with
|
|
the terminal state in EMS; require absent/cancelled state after startup.
|
|
- [ ] Deliver deferred replay, duplicate open snapshots and later live
|
|
events; prove terminal orders cannot resurrect in state or graphics.
|
|
- [ ] Retain OID, broker reqid, market, bootstrap phase and event ordering
|
|
in diagnostics. Count canonical records separately from status messages.
|
|
- [ ] Preserve separate service-survival and chart-exit outcomes inherited
|
|
from the parent task; do not hide teardown errors behind state checks.
|
|
|
|
Concerns and authority:
|
|
Wait for the agreed upstream baseline before implementation. This logging
|
|
request authorizes no live IB connection, order submission/cancellation,
|
|
history change, commit or human-daemon attachment. Order execution needs
|
|
separate explicit authorization even for paper accounts.
|
|
[[id:piker-typed-clearing-migration][Coordinate with typed clearing and order-state migration]]
|
|
|
|
Handback:
|
|
Return exact implemented node IDs and gates, observed versus injected
|
|
event sequences, baseline/fixed state AND graphics results, remaining
|
|
coverage gaps and required backend/order authorization to this task and
|
|
[[id:piker-chart-disconnect-reattach-e2e][the parent E2E assignment]].
|
|
Preserve all human-owned task and checkbox states.
|
|
* TODO Qualify the Polars 2.x upgrade after PR94
|
|
:PROPERTIES:
|
|
:ID: piker-polars-2-upgrade
|
|
:CREATED: [2026-10-21]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:CATEGORY: piker.tsp
|
|
:AI_HARNESS: opencode
|
|
:TAKEN_APPEND_OP: piker-polars-2-upgrade-20261021
|
|
:TAKEN_APPEND_REQUEST: 138f0697b83aafef4d1103ad1dd9564949463d52cd383be97e90021d3fcca382
|
|
:END:
|
|
Upgrade Polars deliberately after the packaging/runtime landing.
|
|
Next action: compare the Polars 2.x migration notes against Piker's
|
|
actual DataFrame, expression, dtype and NumPy/Arrow boundary usage.
|
|
|
|
Context:
|
|
PR94's Tractor relock initially selected Polars/runtime 2.0.0.
|
|
The human requested avoiding that major upgrade during the landing.
|
|
The landing worktree now requires polars >=0.20.6,<2.0.0 and locks
|
|
polars plus polars-runtime-32 to 1.44.2. The installed test environment
|
|
was still on 1.36.0 when 14 logger/startup cases passed; those results
|
|
qualify neither 1.44.2 data paths nor 2.x. Keeping exactly 1.36.0 was
|
|
rejected by the universal resolver for a Windows target; 1.44.2 resolved.
|
|
[[https://pikers.dev/pikers/piker/pulls/94][PR94 packaging/runtime landing]]
|
|
[[file:../../land_flake_update/pyproject.toml::55][Current pre-2.0 bound]]
|
|
|
|
Execution:
|
|
- [ ] Inventory affected Polars calls and migration requirements;
|
|
distinguish API removal from dtype, schema and null-value changes.
|
|
- [ ] Prepare an isolated 2.x environment and intentional lock update,
|
|
preserving the working pre-2.0 environment for comparison.
|
|
- [ ] Check timestamp units/time zones, OHLCV schemas, empty frames,
|
|
joins/grouping and NumPy/Arrow conversions with representative data.
|
|
- [ ] Exercise offline storage/history/accounting data paths and add
|
|
regressions only for demonstrated changed behavior.
|
|
- [ ] Review supported-platform wheel/runtime resolution; do not hide
|
|
resolver failures by narrowing platforms without a human decision.
|
|
- [ ] Remove or raise the <2 bound only with the qualified migration.
|
|
|
|
Verification and handback:
|
|
Report exact old/new versions, targeted results, compatibility changes,
|
|
remaining gaps and any material performance changes. Request separate
|
|
authorization for live feeds, account-state mutation or GUI tests.
|
|
The PR94 1.44.2 qualification is a separate near-term gate, not acceptance
|
|
of this later major upgrade. Keep task/checklist acceptance human-owned.
|
|
* TODO Repair Binance invalid-FQME startup and corrected-feed backpressure
|
|
:PROPERTIES:
|
|
:ID: piker-binance-invalid-fqme-backpressure
|
|
:CREATED: [2026-10-28]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:CATEGORY: piker.data
|
|
:TAKEN_APPEND_OP: piker-binance-invalid-fqme-20261028
|
|
:TAKEN_APPEND_REQUEST: 819279545db3aa512eb3238c2450b2b86d6e0cef1e9bc3d09c7d22825470bf8e
|
|
:END:
|
|
Diagnose and fix the invalid .usdm. -> corrected .usdtm. chart startup
|
|
sequence before landing the Binance fix series after PR94.
|
|
Next action: reproduce that exact sequence on one persistent daemon
|
|
and identify the consumer which stops draining websocket relays.
|
|
|
|
Context:
|
|
The human treats this as lower urgency than the restored valid-symbol
|
|
path, but explicitly wants it diagnosed and solved before landing.
|
|
Current source: wkt/land_binance_usdm_feed at 7952eb06.
|
|
Input: zecusdt.usdm.perp.binance, followed by
|
|
zecusdt.usdtm.perp.binance on the same daemon.
|
|
|
|
The Pong-in-LOCAL_CLOSING reader error is now contained by b95e7c79;
|
|
032580bf exposes handshake, ready and first-relay reporting.
|
|
7952eb06 distinguishes receive starvation from local forwarding stalls.
|
|
Live evidence: brokerd.binance@2029589 reports timeout waiting on
|
|
local relay send for the ZEC bookTicker socket, 16s deadline,
|
|
count 4, reset after 3. Messages reached the websocket reader; the
|
|
local relay did not finish forwarding them. Reconnecting does not
|
|
establish resumed data delivery when the consumer remains stalled.
|
|
|
|
[[file:../../land_binance_usdm_feed/piker/data/_web_bs.py][Websocket relay and reconnect ownership]]
|
|
[[file:../../land_binance_usdm_feed/piker/brokers/binance/feed.py][Binance startup and market metadata]]
|
|
[[file:../../land_binance_usdm_feed/piker/data/feed.py][Persistent feed allocation and sampling]]
|
|
[[https://pikers.dev/pikers/piker/pulls/94][PR94 prerequisite landing]]
|
|
|
|
Concerns:
|
|
get_mkt_info() accepts USDM through its broad usd substring check,
|
|
but retains USDM in MktPair; Client.bars() indexes canonical USDTM
|
|
pair keys. Quote streaming starts before history/sampler startup.
|
|
This is a plausible late-failure path, not proof of orphaned tasks
|
|
or the precise cause of the corrected-feed stall.
|
|
|
|
Execution:
|
|
- [ ] Preserve the first invalid-input traceback and actor/task IDs.
|
|
- [ ] Reproduce invalid then valid startup in the same daemon; compare
|
|
with valid-only cold startup and repeated detach/reattach.
|
|
- [ ] Trace ownership of websocket producers, merged relays, backend
|
|
quote channels, history tasks and sampler consumers after failure.
|
|
- [ ] Add a failing regression at the real lifetime boundary before
|
|
changing FQME validation/canonicalization or failed-startup cleanup.
|
|
- [ ] Fix the demonstrated cause; do not mask it by increasing buffers,
|
|
retrying healthy sockets or suppressing unrelated failures.
|
|
|
|
Verification:
|
|
- [ ] Require fresh parsed quotes and sampler/chart progress after the
|
|
corrected request; handshake/ready messages alone are insufficient.
|
|
- [ ] Check sibling-feed survival, last-consumer cleanup, repeated
|
|
invalid/valid attempts and cancellation during startup/recovery.
|
|
- [ ] Run tests/test_websocket.py and tests/test_binance.py, then the
|
|
human-operated live invalid/valid chart journey on the saved tip.
|
|
|
|
Handback:
|
|
Return the root failure, exact reproduction, source commits, baseline
|
|
and fixed regression results, live recovery evidence and remaining
|
|
limitations to this task. Live feeds, broker operations, commits and
|
|
task acceptance need their own authorization. Preserve existing states.
|
|
|
|
* TODO Trace closed-order retention and dark-order persistence
|
|
:PROPERTIES:
|
|
:ID: piker-ems-closed-dialog-retention
|
|
:CREATED: [2026-10-30]
|
|
:CARRIED: 0
|
|
:REPO: /home/goodboy/repos/piker
|
|
:CATEGORY: piker.clearing
|
|
:AI_HARNESS: opencode
|
|
:AI_WKT: /home/goodboy/repos/piker/wkts/ib_downstream_pin_eval
|
|
:AI_BRANCH: wkt/ib_quote_cache_eval
|
|
:TAKEN_APPEND_OP: piker-closed-dialog-retention-20261030-v2
|
|
:TAKEN_APPEND_REQUEST: 8e168fad2fe9559229f2c66d626342de147febb789e057e0003af81b585ab457
|
|
:END:
|
|
Qualify `DarkBook`-lifetime retention of closed dialogs as useful
|
|
session history, measure its cost, and relate it to future offline
|
|
dark-order storage and accounting-ledger reconciliation.
|
|
|
|
Next action: run repeated broker-free order lifecycles and trace
|
|
distinct retained OIDs, memory growth, late callbacks and release
|
|
when the owning `DarkBook` is discarded.
|
|
|
|
Context and policy:
|
|
Commit dae575e1, "Preserve IB order state through notices and late
|
|
fills", retains canceled/closed broker dialogs in `DarkBook._closed`.
|
|
This includes normally filled live orders and triggered dark orders;
|
|
untriggered dark cancellation removes local state without retaining
|
|
it in this table. Repeated callbacks update the same OID entry.
|
|
|
|
The human considers retaining these entries until `DarkBook`
|
|
destruction potentially useful for tracing closed orders against
|
|
accounting ledgers and future offline dark-order history. Treat this
|
|
as intentional reachable retention, not an established leak or an
|
|
instruction to introduce TTL eviction now.
|
|
|
|
`Status` and `brokerd_msg` are mutable latest-state records, not an
|
|
append-only event journal. Determine what additional identity and
|
|
event history reconciliation or durable dark-order storage needs.
|
|
|
|
[[file:../../ib_downstream_pin_eval/piker/clearing/_ems.py::152][Closed-dialog retention implementation]]
|
|
[[file:../../ib_downstream_pin_eval/piker/clearing/_ems.py::1163][Existing message-flow history/replay TODO]]
|
|
|
|
Related work and storage references:
|
|
[[id:piker-typed-clearing-migration][Coordinate with typed clearing and order-state migration]]
|
|
[[file:../../typed_clearing_protocol/plans/opencode/typed-ems-messaging.md::217][Original Order retention and immutable published snapshots]]
|
|
[[file:../../typed_clearing_protocol/plans/opencode/typed-ems-messaging.md::849][Accounting/ledger storage is outside that IPC migration]]
|
|
[[file:../../ib_downstream_pin_eval/.agents/skills/piker-clearing-expert/SKILL.md::108][Existing trade-ledger persistence contracts]]
|
|
[[file:../../ib_downstream_pin_eval/.agents/skills/piker-clearing-expert/architecture.md::27][Current mutable Status is not a history envelope]]
|
|
|
|
No dedicated offline dark-order storage task was found in the
|
|
selected project store or inspected design references. The links
|
|
above are related prerequisites, not evidence that dark intent and
|
|
cancellation persistence already exists. Link any canonical storage
|
|
assignment found during follow-up rather than duplicating its scope.
|
|
|
|
Execution:
|
|
- [ ] Trace writes, reopening and release of `DarkBook._active`,
|
|
`DarkBook._closed` and `DarkBook._ems2brokerd_ids`.
|
|
- [ ] Compare untriggered cancellation, triggered cancellation,
|
|
ordinary completion, late errors/fills and reopened dialogs.
|
|
- [ ] Measure per-order retained entries/bytes over long sessions and
|
|
verify that discarded books do not remain referenced elsewhere.
|
|
- [ ] Map original OID, broker request ID, execution/transaction ID,
|
|
account and market identity across retained dialogs and ledgers.
|
|
- [ ] Distinguish zero-fill canceled orders from partial/multiple
|
|
fills; do not require one ledger transaction per closed order.
|
|
- [ ] Propose the session-history/offline-history contract and only
|
|
recommend bounds or eviction if evidence shows they are needed.
|
|
|
|
Verification and concerns:
|
|
- [ ] Add deterministic broker-free lifecycle and teardown coverage.
|
|
- [ ] Preserve late-fill/error routing and original request identity.
|
|
- [ ] Demonstrate intentional growth while a book lives and release
|
|
after destruction; report unexpected retention separately.
|
|
- [ ] Keep durable execution ledgers distinct from mutable EMS
|
|
projections and from a future dark-order intent/event journal.
|
|
|
|
A canceled/closed status is not a callback-drain acknowledgement.
|
|
Any future eviction must define routing/recovery after removal and
|
|
must not silently drop fills or recreate `Error(req=None)`.
|
|
Live order execution requires separate human authorization.
|
|
|
|
Handback:
|
|
Return retention traces, ledger-correlation findings, links to any
|
|
offline dark-order storage assignment, lifecycle tests and proposed
|
|
policy to this task. Preserve human-owned task and checkbox states.
|
|
|