From the Mnemo documentation. Synthetic data only.
Roadmap: what is not built
For a buyer, or a developer, who might continue this project. It lists what is missing, why each item matters, how big it looks, what it depends on, and what could go wrong. Sizes are small, medium or large and are rough judgments from reading the code, not estimates of time. Nothing here is a promise that anything will be built, or a claim about how long it would take.
Every item below was checked against the code or the docs. Where something is a decision for the owner and not yet settled, it says so. This file makes no legal, tax or pricing claims.
The groups say when an item matters:
- A. Before any real trader data is loaded or sent anywhere.
- B. Before selling it as a service.
- C. Later.
A. Before any real trader data
A1. Accounts, login and per-firm authorization
- What: every request tied to a signed-in user, and a user able to touch only their own trader's data (and a firm only what policy allows).
- Why it matters: today the API has no login. Every endpoint takes a
trader_idfrom the caller and trusts it, so anyone who can reach it can read or write any trader's data, including the export downloads. It answers only requests addressed to 127.0.0.1 or localhost, which blocks one kind of attack from a web page; it is not a login. The API must stay on the machine it runs on until this exists. The walkthrough has no API endpoints at all today (the API has add-a-trade, stats and the two export downloads). - Size: large.
- Depends on: the hosting and privacy decisions (A2, A4); choosing an authentication approach.
- Risk: this is the security boundary. A mistake in the per-firm checks would expose one firm's traders to another. The storage functions already check that a walkthrough and its trades belong to the trader asked for, which helps, but nothing yet ties a request to a person.
A2. Hosting
- What: where it runs, which database it uses, backups, secrets handling and an encrypted connection.
- Why it matters: there is no deployment. The data is one SQLite file next to the code, and the tools assume a single user on one machine.
- Size: large.
- Depends on: A1 (do not expose the current API), A3 (migrations), and the choice of database.
- Risk: exposing the present API beyond localhost. The behaviour with several users writing at once has been tested for one case only (a second writer saving the same walkthrough step, simulated in a test, which is refused with a one-line message).
A3. Schema versioning and migrations
- What: a recorded schema version and a way to move an existing database from one version to the next.
- Why it matters: the tables are created "if missing" and nothing else. Run against an older database,
init_dbadds the tables that are missing and leaves existing tables as they were (checked: an older, narrowertraderstable stayed narrower), and no version number is stored. The first change to an existing table after real data exists would need a migration that does not exist. - Size: medium.
- Depends on: nothing; it should come before hosting (A2) and before any change to stored prices (B4).
- Risk: data loss or a half-migrated database on the first schema change.
A4. Privacy and legal review
- What: decide and write down what is stored, who can see it, how long it is kept, and what leaves the machine; have a lawyer review it before any real trader data is used.
- Decided by the owner (not yet in the code, since there are no accounts or roles): firms see seat status only, until a lawyer says otherwise; Mnemo staff have no access to trader content by default; a lawyer is consulted before any real trader data is used.
- Why it matters: the walkthrough and the review send trade rows, the traders' free-text notes and (for the walkthrough) their answers to an AI service when run for real. The provider's terms for that data are part of the review. There is also no function that deletes a trader's data (checked: the code has none); the accountant export is the only way data comes back out.
- Size: medium (mostly outside the code, plus a deletion and retention feature).
- Depends on: A1 and A2 for anything that enforces it.
- Risk: legal exposure if real data is used first. The project's standing rule is synthetic data only until then.
A5. More real-model runs, and tuning from what they show
- What: run the walkthrough (and the review) against the real model more often, on the synthetic data, and read the results.
- Why it matters: the walkthrough has been run against the real model once (2026-10-31, one trade, one sample, scripted answers; the output is in
docs/real_run/), and so has its evaluation of five cases. This repository records no real run of the review or memory evaluations, nor of the review. One sample cannot show how often the checks reject a reply (a rejected reply costs a call), how often the questions are open, or how often the neutrality list's known false alarms (tests/test_neutrality_lists.py) reject harmless wording. The owner chooses when to spend credit on more runs. - Size: small to run, medium to act on (tuning the word lists with evidence, possibly a small allowlist for idioms).
- Depends on: an API key and a spend limit (B10).
- Risk: unknown behaviour. The model may be rejected often, or write judging wording the lists do not name. The word lists are a backstop, so the prompt and the structured output must carry the weight; a real run is the first test of that.
A6. What the first real run showed (one of six fixed, one warned about)
- What: decide what to do about six things the run of 2026-10-31 showed, each described in
docs/HOW_IT_WORKS.mdunder "Found in the first real run": (1) questions 4 and 5 state facts inside the question, against the prompt's rule 13, and no code checks that rule (a warning-only check was added in commit ba45d96: it flags figures such as 20223.0, 29.4 and 37.4, and does not catch a fact written in words, such as question 4's "fourth trade of the day"); (2) the warning "not_in_record 1: could not trace 18", because "cannot show" items carry no trade ids (fixed in commit 3110291; the finding stays recorded as it was found on 2026-10-31); (3) a stray quote character at the end of one "cannot show" text (case 4); (4) a sign in a by-size comparison, "smaller than the median of -136.48" (case 2); (5) the advice, psychology and neutrality lists flagged nothing in 35 rows and one walkthrough; (6) the checks cannot judge fairness and the key does not grade the questions. - Why it matters: these are the first things seen from a real model, and they come from one sample. Each is recorded as a fact; (2) was fixed and (1) got a warning-only check, both on the owner's instruction, and the rest are not decisions yet. Whether any is a fault, a change to the prompt, a change to a check, or nothing, is for the owner to say.
- Size: small each; (1) and (6) are the largest, since they ask for a new check or a new kind of grading.
- Depends on: A5, to see whether a second sample shows the same things.
- Risk: changing a check or the prompt moves the fake-client tests and the answer keys, which are pinned by hash. Reading too much into one sample, in either direction, is the other risk; in particular (5) is not a reason to loosen the word lists.
B. Before selling it as a service
B1. A broker connection (Tradovate) and a broker CSV parser
- What: read trades from a broker: first a parser for a broker's CSV export, later possibly a live connection.
- Why it matters: today the only input is Mnemo's own CSV format (the columns of the export's
trades.csv), or a trade at a time through the API. There is no Tradovate or Rithmic parser; the README says that waits for a real sample file. - Size: medium for a parser per broker; large for a live connection.
- Depends on: a real sample export from the broker, root-symbol grouping (B2), and A4.
- Risk: how a broker's fills are paired into trades decides the numbers; mistakes there change every fact. Formats and terms change on the broker's side.
B2. Root-symbol grouping
- What: treat contracts of one product as one instrument (for example MNQZ5 and MNQH6 as MNQ).
- Why it matters: "same instrument" means the exact contract symbol today, so a contract roll splits a trader's history in the instrument patterns and in which older trades are chosen for a walkthrough. This is a recorded design choice (
docs/walkthrough-spec.md) and must change before real brokerage data. - Size: medium.
- Depends on: a rule for reading a root out of a contract symbol, which is a decision; likely B1.
- Risk: a wrong rule merges different products. The change moves card and pattern numbers, so the answer keys, their hashes and many test expectations need re-deriving by hand.
B3. The trading day: by entry time or by close time
- What: decide what "the day" means. Today it is the Eastern calendar day of the trade's entry time (an entry at 11:59 pm belongs to that day; one at 12:00 am starts the next).
- Why it matters: "this was trade 4 of the day" and the previous-trade gap depend on it. Grouping by close time, or by the futures session that starts the evening before, would give different answers for overnight trades.
- Size: small to medium; the rule is in a few places and pinned by tests.
- Depends on: a decision, ideally with traders and firms.
- Risk: it changes card numbers and the planted cases' expected figures.
B4. Prices stored as floating-point numbers (a decision to make)
- What: money is exact (
Decimalin code, integer cents in the database: fees and net results), but entry and exit prices arefloatin the model andREALin the database. - Why it matters: prices are quotes, not money amounts, and the sample prices (multiples of 0.25) are exact in binary, so nothing is visibly wrong today. A price that is not exact in binary would be stored and shown as its nearest float. Whether that is acceptable, or prices should be stored exactly, is a decision.
- Size: medium if changed (a model change, a schema change with a migration, and the tests and exports that print prices).
- Depends on: A3.
- Risk: changing stored values changes the data the answer keys hash.
B5. Long histories
- What: a way to handle a trader with far more trades than fit in a prompt.
- Why it matters: the walkthrough shows the walked trade, the 15 trades entered before it, and up to 15 older trades chosen by code (the "live set" and the "bin"); the trade card always uses the whole history, because code computes it. The review (
coach_cli review) sends the whole history and, above the size limit, refuses and sends nothing; it never trims silently. A trader with years of trades could not be reviewed at all. - Size: medium to large.
- Depends on: more real-model runs (A5), to see what the model needs.
- Risk: leaving trades out changes what the coach can say. The present rule (refuse, never trim silently) is a good one to keep.
B6. Memory across walkthroughs
- What: let a walkthrough see earlier walkthroughs and the trader's earlier answers.
- Why it matters: deliberately not in version 1: each walkthrough is built from the trades and the card only. (The review already has memory: it feeds its most recent notes back in.) Memory could avoid repeated questions and notice change.
- Size: medium.
- Depends on: A5 and A4 (stored answers would be fed back to the model).
- Risk: the trader's earlier words become prompt text, so the "data, never instructions" protections apply again; the prompt grows; and the coach could start to steer.
B7. Screens for traders
- What: a user interface. Today everything is the command line.
- Why it matters: a trader will not use a terminal. The walkthrough also has no API endpoints yet.
- Size: large.
- Depends on: A1, A2, and API endpoints for the walkthrough.
- Risk: the wording rules (no advice, no judgment) must survive the interface; the coach's text is part of the product.
B8. An accountant's review of the export
- What: have an accountant check the export's columns, totals and year boundaries (the year is the Eastern exit date).
- Why it matters: the export lists trades and applies no tax logic of any kind. It should not be described to anyone as suitable for a purpose until a professional has looked at it.
- Size: small (outside the code).
- Risk: wording. Keep "not tax advice".
B9. A trademark check on the name "Mnemo"
- What: find out whether the name can be used.
- Why it matters: nobody has checked; this project has not searched.
- Size: small (outside the code); medium if the name has to change, because it is also the Python package name and appears throughout the code, tests and docs.
- Risk: a forced rename late.
B10. API key rotation and spend limits
- What: an operational habit: rotate keys on a schedule, use separate keys for development and production, and set a spending limit with the provider.
- Why it matters: the code has a per-request size limit that refuses an oversized request, and the walkthrough commands print a size and cost estimate before each call, but there is no running total and no monthly cap. Keys live in a git-ignored
.env; a test guards against committing one. - Size: small.
- Risk: a leaked key, or a loop that spends.
C. Later
C1. An open, multi-turn conversation
- What: let the trader and the coach talk beyond one round of questions and one reply.
- Why it matters: out of version 1 on purpose; the two-step shape (questions, one pause, a reply) is what the checks assume.
- Size: large.
- Depends on: A5, B6.
- Risk: every check has to hold over many turns, and the model has more room to give advice.
C2. Plans, stops, targets and market data
- What: record what the trader planned, and what the market did.
- Why it matters: a claim about a stop or a plan can only land in "not in the record" today, because the record has no such fields. The evaluation's fifth case plants exactly that.
- Size: large.
- Depends on: a schema change (A3), a data source for market data, and a decision on whether to do it at all.
- Risk: it moves the product toward judging whether a trade followed its plan, which is close to advice.
C3. A larger evaluation
- What: more planted cases than the five in
samples/walkthrough_answer_key.json, and a human review process for real replies. - Why it matters: the evaluation tests five claims and says nothing about anything else a model might write.
- Size: medium.
- Depends on: A5.
C4. A continuous-integration pipeline
- What: run the tests automatically on every change.
- Why it matters: the repository has no CI configuration (checked). The suite has variants that matter: the default run, a long
--basetemp, non-UTF-8 settings andpython -W error. The full suite takes about two minutes. - Size: small.
C5. Other platforms and Python versions
- What: verify Windows and macOS, and Python 3.10.
- Why it matters: the steps in
docs/SETUP.mdwere run on Linux with Python 3.11, 3.12 and 3.13 only. The code uses syntax that needs 3.10 or newer, but 3.10 has not been tried. - Size: small.
C6. Keeping the cost table current
- What:
mnemo/pricing.pyholds a dated table used for cost estimates before a real call. - Why it matters: an out-of-date table gives a wrong estimate, and an unknown model gets no estimate at all.
- Size: small, and recurring.
What you inherit
- A test suite of more than 3,000 tests that cannot reach the AI service or any machine but this one, with guards on top: a scanner that fails on assertions that cannot fail, a guard that fails if a key, a database or a data file outside
samples/andtests/would be committed, and a guard that fails if a test tries to reach anything but this machine. The suite is run in four ways: the default, a long--basetemp, non-UTF-8 settings andpython -W error. - Checks in code on everything the model writes: real citations, quotes that are pieces of the trader's own answers, counts and limits, advice, psychology-label and neutrality word lists (a backstop, with known false alarms and misses), a size limit before any paid call, ownership checks, and all-or-nothing saves for a walkthrough step.
- Evaluations with answer keys: the coach review, its memory, and the walkthrough with five planted claims. The keys are data files pinned by hash, every figure in the walkthrough key was worked out by hand, and tests feed deliberately bad replies through the same graders to prove they can fail.
- A mutation tool (
tools/mutation_check.py) and its results: the walkthrough modules were run through it and every survivor was killed with a test or explained (one is an equivalent change intrade_card.py). - Documentation:
docs/SETUP.md,docs/HOW_IT_WORKS.md, a generateddocs/demo_transcript.md(with the output of the one real run), the spec with its design choices (docs/walkthrough-spec.md), sample trade cards and prompts, and the README as the reference. - Synthetic data and the script that generates it, so nothing real is needed to run or test anything.
- Standing rules in
docs/PROJECT_RULES.md(no advice, numbers from code, exact money, no tax logic, synthetic data only), which the tests enforce where they can.
What you do not inherit: more than one sample of how the real model behaves on the walkthrough (the single run of 2026-10-31 is in docs/real_run/), any real run of the review or memory evaluations, a login, a deployment, or a broker connection.