Consolidate Piker work in the Taken store

Collect branch work, original notes and existing follow-ups into an
identified inventory with an advisory priority order. Link complete
source documents and preserve every existing task state.

Also,
- carry forward the Qt teardown, chart bootstrap and Polars tasks;
- include the native crash report and original GDB transcript
  needed by the Qt task's relative links;
- record prompt provenance and the human's scope corrections;
- keep generated audit and commit execution data in ignored state.

Prompt-IO: ai/prompt-io/20261023T143856Z_91769016_work_inventory.md

(this patch was generated in some part by `codex` (`openai`))
wkt/federated_project_stores
Gud Boi 2026-10-23 11:49:57 -04:00
parent 665da447d3
commit 6f4cb01e95
6 changed files with 1862 additions and 0 deletions

3
.gitattributes vendored
View File

@ -1,2 +1,5 @@
# Taken requires a blank line after every Org subtree, including EOF.
.taken/*.org whitespace=-blank-at-eof
# Keep the original native crash transcript unchanged.
ai/diagnostics/20261019-chart-253598/gdb.txt -text -whitespace

View File

@ -491,6 +491,574 @@ tests passed. Production endpoints still use the legacy protocol.
- [ ] 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.
Coverage excludes external symlink targets, raw harness databases and
JSONL/tool caches, credentials, generated environment/binary files,
code-level 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.
*** 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. Reproduce and fix chart/daemon teardown failures; implement the
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.
6. Review the actively edited TIPC/remote-feed bridge against the
selected runtime and ownership contracts before expanding it.
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. No product tests were run by
this inventory; test counts below are attributed historical 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: inspect the six-boundary candidate and current dirty
checkout at =wkt/land_ib_recovery@dc618229= with its owner.
**** Context and source
The candidate retains the runtime/Nix/pin foundation, correlated IB
MethodProxy responses, daemon error propagation and isolated feed
consumers. The working diff 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
Ten tracked files are modified across discovery/runtime, services,
feed/flows, sampling, FSP and chart startup. Untracked files are
=piker/data/_remote.py=, =tests/test_remote_feed.py= and
=tests/test_discovery_backend.py=. The branch's shared HEAD with the
clean 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.
**** Review and handback
- [ ] 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.
*** 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.
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

View File

@ -0,0 +1,94 @@
# Chart PID 253598 native crash diagnostics
Captured 2026-10-19 from the human-selected systemd core. This is
post-mortem inspection; no chart, provider or order was started.
## Core identity
- PID/TID: 253598 (`python3`), chart actor short UUID `b1326a`.
- Timestamp: 2026-10-19 15:29:39 EDT (19:29:39 UTC).
- Signal: 11 / SIGSEGV, `si_code: SEGV_MAPERR`.
- Boot ID: `b418978aeaef486d8413548e0ecbd79a`.
- Executable:
`/nix/store/pbdy5h9sjs92a37gq9sspg2797q4j4fa-python3-3.13.14/bin/python3.13`
- Command: evaluation `py313/bin/piker -l info --pdb chart mnq.cme.ib mnq.cme.20270319.ib`.
- Original systemd core, present at inspection (58.6 MiB compressed):
`/var/lib/systemd/coredump/core.python3.1000.b418978aeaef486d8413548e0ecbd79a.253598.1792438179000000.zst`
- Source checkout: `/home/goodboy/repos/piker/wkts/ib_downstream_pin_eval`,
baseline `eed58566226d5476b548c6dd3bb6a44fcd6325f9` plus dirty changes.
- Runtime Tractor imported from
`/home/goodboy/repos/tractor/wkts/address_logging_levels`; its state may
have advanced since earlier trial evidence. Do not substitute current
HEAD for a historical crash revision without checking provenance.
## Journal-native fault stack
Extracted from `coredumpctl info 253598`; worker stacks in that output
include OpenBLAS condition waits and Polars Rayon/Tokio parked workers.
```text
Stack trace of thread 253598:
#0 0x00007fffb6574ad0 sip_api_get_address (sip.cpython-313-x86_64-linux-gnu.so + 0x8ad0)
#1 0x00007fffa68629c2 _ZL15cleanup_qobjectP17_sipSimpleWrapperPv (QtCore.abi3.so + 0x2629c2)
#2 0x00007fffb6574ee9 sip_api_visit_wrappers (sip.cpython-313-x86_64-linux-gnu.so + 0x8ee9)
#3 0x00007fffa68620be _ZL15cleanup_on_exitP7_objectS0_ (QtCore.abi3.so + 0x2620be)
#4 0x00007ffff7983ec4 cfunction_vectorcall_NOARGS (libpython3.13.so.1.0 + 0x183ec4)
#5 0x00007ffff7a5288d atexit_callfuncs (libpython3.13.so.1.0 + 0x25288d)
#6 0x00007ffff7bcab6f _Py_Finalize.part.0.constprop.0 (libpython3.13.so.1.0 + 0x3cab6f)
#7 0x00007ffff7bcb603 Py_Exit (libpython3.13.so.1.0 + 0x3cb603)
#8 0x00007ffff7bc9f1d _PyErr_PrintEx (libpython3.13.so.1.0 + 0x3c9f1d)
#9 0x00007ffff7bef832 _PyRun_SimpleFileObject (libpython3.13.so.1.0 + 0x3ef832)
#10 0x00007ffff7bf1891 Py_RunMain (libpython3.13.so.1.0 + 0x3f1891)
#11 0x00007ffff742b285 __libc_start_call_main (libc.so.6 + 0x2b285)
#12 0x00007ffff742b338 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2b338)
#13 0x0000555555555085 _start (python3.13 + 0x1085)
```
This identifies the fault during PyQt QObject/SIP wrapper cleanup at
Python atexit/finalization. It does not prove which wrapper is invalid,
whether earlier cleanup corrupted it, or whether Qt/Trio guest ordering
caused the invalid state. No Trio/Qt event-loop frame appears in this
journal fault stack itself.
The human's preceding Python output shows cancellation groups relayed
from FSPs, followed by MainWindow.closeEvent self-SIGINT and KBI. Treat
that as preceding evidence, not a native root-cause diagnosis.
## Detailed debugger capture
[gdb.txt](gdb.txt) contains the thread inventory (82 threads), all-thread
backtraces, fault-thread `bt full` and shared-library inventory. GDB 17.2
successfully opened the systemd core and resolved the same fault chain.
The fault-thread trace begins at line 886; `bt full` begins at line 903.
PyQt6 6.11.0 and pyqt6-sip 13.10.2 resolve to the Nix store paths recorded
there; Qtbase is 6.11.1. Wayland and qt6ct plugins were loaded.
Most libraries lack debug information. Function symbols resolve, but
`bt full` reports no symbol-table information for the fault frames;
wrapper arguments/locals and source lines are not available. Full debug
builds/symbols are still needed to identify the invalid wrapper state.
GDB auto-load and debuginfod were disabled for this capture. No inferior
code was executed. The first debugger invocation had an argument-quoting
failure; the corrected invocation completed successfully.
Capture through `coredumpctl debug 253598` with the installed debugger:
```xsh
coredumpctl --debugger=/nix/store/mvfz8qyy2nklpdfpjny285j8d3yswf7w-gdb-17.2/bin/gdb --debugger-arguments "-nx -batch -iex 'set auto-load safe-path /nonexistent' -iex 'set debuginfod enabled off' -ex 'set pagination off' -ex 'info threads' -ex 'thread apply all bt' -ex 'thread 1' -ex 'bt full' -ex 'info sharedlibrary'" debug 253598
```
The saved run additionally enabled GDB logging to `gdb.txt` before those
inspection commands. The original core is not copied into Git. Preserve
it separately before systemd expiry if later work needs memory inspection.
Saved `gdb.txt` SHA-256:
`0aa3f74aa68ea8d148c3a45ef47fed3db9b1656493c67d52be33abc22ff8f5b2`.
## Source and handoff
The human authorized diagnostics and a linked task in the repo-local
Taken source on `wkt/federated_project_stores`. Existing task states are
preserved. The task owns the follow-up investigation; this report is
supporting evidence, not a claim of a fix or test acceptance.
Task ID: `piker-qt6-chart-teardown-sigsegv`, source ID: `piker`.
The guarded append succeeded; read-only Taken lint reported no diagnostics.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
---
created_at: 2026-10-23T14:38:56.802088+00:00
generated_by:
harness: codex
provider: openai
git_ref: 91769016
session: 01a1691b-455c-7b32-9f90-72331a112e46
scope: data
substantive: true
---
## Prompt
Consolidate project notes and ongoing human/agent work into Piker's
federated Taken store, preserving original content and ranking work
against main. Work from `wkt/federated_project_stores` and prepare a
commit plan for human review.
## Response summary
Added an identified work inventory, seven TODO assignments, advisory
priorities and references to complete original documents. Carried
forward existing follow-ups and their native crash evidence. Used
guarded writes and preserved existing task states and source notes.
## Diff reference
Inspect the committed store changes from the original base:
```xsh
git diff 91769016513342d0960436fc79690f31b5e3cb17 HEAD -- \
.taken/current.org
```
## Human edits
The human set the scope and rejected both the bulk AI-state archive
and the duplicated raw store draft, directing concise provenance and
the Taken/Tractor/ai.skillz conventions. The agent applied those
corrections. The untouched raw draft and audit archive remain local
under ignored `.ai/state/project-work-inventory/2026-10-23/`.
No task acceptance is inferred.
## Verification
Taken lint, source-link checks and preservation checks passed during
cleanup. No application tests, live services or orders were executed.

View File

@ -0,0 +1,12 @@
# AI Prompt I/O Log
These records preserve prompts, original coding-harness attribution,
and generated output for AI-assisted repository work. Historical
records remain in their original locations. Human review and task
acceptance are separate from generated implementation evidence.
Substantive contributions use a structured record and raw partner.
Follow the [NLNet generative AI policy][nlnet-ai] when preparing work
for publication. No external submission is performed by this log.
[nlnet-ai]: https://nlnet.nl/foundation/policies/generativeAI/