Repository navigation
Merge feat/m1-core-foundation into main (the rdm store foundation, with a known read-path limit) - #7
Merged
Merged
Conversation
Both root leaves of the rdm meta-roadmap move to inprogress. Their campaigns are planned in this session and run in parallel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rdm-core is taken on crates.io by an unrelated download engine; Eliott chose rdm-engine on 2026-11-16. R01 and the meta-roadmap leaves follow. The M0 leaf also drops a stale premise: writing-release-rework is closed, and the meta-roadmap itself is now the largest and deepest campaign, so its frozen copy is the spike fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Four levels: - the workspace skeleton, run on the shared base - the stub server with its frozen fixture, and the Svelte graph view, in parallel - the host trials with Eliott - the spike report The plan records the decisions of 2026-11-16: rdm-engine, Desktop as the primary host with VS Code best effort, 2026-07-28 only, and rmcp =3.10.0. It also fixes the fixture shape that the server and the view share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three levels: - the status semantics and the stored schema with its traceability table - the read model - the rdm-schema crate and the R01 sync The plan records the decisions Eliott took on 2026-11-16: - the statuses are planned, ongoing, paused, cancelled and done - done nodes are sealed, and only a comment may be appended - any content edit carries the amendment note - depth stays the only ordering rule The scope of paused on deeper levels is left open for him. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The root manifest holds crates/* and excludes both copies of the legacy dirtree-rdm crate, so they keep building on their own. A Rust CI job runs cargo test --workspace --locked on changes under crates/ or to the manifests, and never touches skills/. Crate names checked on crates.io on 2026-11-16: rdm-schema, rdm-engine, rdm-mcp and rdm-cli are free; rdm-core is taken. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…h view) The page is built into one inlined HTML file of 278,800 bytes, on ext-apps 2.0.4 and Svelte 5. The offline check passes, and a mock host drew the sample roadmap, opened a leaf and the full view, and received both probes. It has not yet been checked against the real fixture or server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The graph view reports unknown when it cannot tell a cold run from a warm one. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The stub is on rmcp =3.10.0 and speaks only 2026-07-28 over stdio. It serves roadmap_view with structured output and ui://rdm/graph, and two app-only tools, leaf_get and probe_record. The fixture is the meta-roadmap frozen at af8ad04. A stdio integration test covers the tool _meta, the Apps extension, the MIME type and the refusal of older protocols. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The host loads the ui:// page without the ?run= flag, so run_kind arrives as unknown. With server_pid and server_started_ms on every line, a cold run is the first first-paint probe of each server process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s and stored schema) statuses.md gives the transition table for planned, ongoing, paused, cancelled and done, with the sealing rule and the legacy mapping. The scope of an unfinished leaf on deeper levels is left open for Eliott. stored-schema.md gives the field inventory, and traceability.md maps all 22 + 57 legacy productions, checked by tools/check_rdm_traceability.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nostics) The first Desktop trial showed that every call from the view to the server fails with "IPC not available for MCP tool call". The view now shows the display time and the host data on screen, tests a model-visible tool call from the view, and sends each probe through ui/update-model-context as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
read-model.md specifies four projections, each with a worked example cut from the meta-roadmap: the campaign outline, node detail, the ready set and the amendment log. Level is reported with its source, and the format and read-model version policies are written. statuses.md now restores the pre-cancel status when a cancel is undone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…names sha16_of_jq keeps jq as the independent canonicaliser but hashes with the sha2 crate, which a stock Windows runner does not need a shasum for. published() renders effect paths with `/` whatever the platform separator is, so the write-order guard compares logical names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…of real actors The aged rename-over, the size-grow edit and the racy same-tick edit are three rows of one table, "an aged file changes and the directory does not", with one age() and one rewrite_in_place; the separate size-only row, the same-size touch -r row and the ctime-blanking Hooked row (which the Windows CI runner executes natively) are gone. a_write_judges_the_files_it_touches_against_the_disk is folded into stale_replace_changes_nothing as a second actor (an editor the signature hides), run through a warm cache that holds the old entry. Hooked, frozen_stat() and vanish_at() move to common/hooked.rs, shared by the rows that still need them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test half of the M1 sustainability fix round: one set of campaign helpers and one forward-slash directory walker in tests/common, one child runner and one soak-knob prefix, proptest cases that follow PROPTEST_CASES, the M0 probes deleted with their numbers recorded, and facts() refusing a row it has no oracle for. The cache rows written per surviving mutant are culled into classes of real actors; each folded row was seen red by script under the bug that motivated it, and a fresh verifier found no class lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the Windows runner the store's rev matched the other platforms but the jq oracle did not: a native jq.exe writes text output with CRLF line ends. The canonical encoding contains no carriage return (one inside a string is escaped), so removing them recovers jq's bytes and keeps the oracle independent of the store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Windows job stopped at the first failing binary twice, so the binaries after it never ran and their state on Windows stayed unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the Windows runner the schema drift guard reported every schema as differing only after its last line: the checkout had rewritten the committed files with CRLF while the generator writes LF. The schemas are generated output compared byte for byte, so they get the same rule as the fixtures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two independent read-only reviewers of rdm-schema and rdm-engine at d9331cd. Harmony (H1-H15): one way to do one thing, idiomatic Rust; H1-H5 and H7-H10 are to land before M1 merges to main. Safety (S1-S9): false safety, silent loss, drift from the design docs, scale; S1 (step references unchecked) and S2 (no hard-link fallback promised by store.md) are to land before main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e .json suffix RecordKind (node, comment, amendment) in layout owns the directory of each kind and the suffix of its files; write, cache and store build every logical record name through it and layout::record_path stays the one place a logical name becomes a path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codec::json_value, json_text and json_bytes each carry the one expect that states the invariant, as encode already did. rev, links and write call them, so no unwrap_or(Null) or unwrap_or_default is left on that path: a serialisation failure can no longer give every node the same rev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s intent record rdm-schema owns StoreError::invalid and invalid_request and the REQUEST_FILE sentinel, and both crates build every Invalid through them in place of the twelve inline literals and the three private helpers. A recovery that is refused now names .rdm/intent/<ulid>.json in its detail, the file a person has to resolve, and not only the node file it could not write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wins point at it The public handle is the one a consumer reads, so its docs are the only copy. The pub(crate) Store methods get one-line pointers, and Store::last_recovered is pub(crate) like its siblings, since CachedCampaign already exposes the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nts Debug
KeyError and NotInVersion gain both impls, RecordRef gains a readable Display so
StoreError::NotFound no longer prints {target:?}, and MintError names MAX_COLLISIONS
instead of a literal 32. lock.rs and ids.rs import std::fmt like the rest of the crates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tants the crates own Store::file_of was node_file under another name and had no caller. tests/common now calls node_file, ID_ALPHABET and version_string(FORMAT_VERSION) instead of restating them, so a change to a constant reaches the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c enum contracts.md now says which public enums a consumer outside the crate must survive growing (errors, diagnostics, result and effect kinds) and which stay exhaustive because their closed set is the stored or wire contract. Current, IdError, NameError, KeyError, MintError, LockError, OpResult, Pending and Durability gain the attribute; the rest are closed by format and keep their exhaustive matches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…without hard links On Unsupported or PermissionDenied from hard_link, create checks the target is absent and renames, as store.md promises under the writer lock; a taken name is still refused with AlreadyExists. One guard through the hooked Fs covers both: a create succeeds on a volume without hard links, and a name an external writer took is refused with the same error as on a normal volume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g is created Store::open lists the root first and returns Io (file ".") when it cannot, and the writer lock makes .rdm with create_dir, so a typo in the root no longer leaves a stray directory tree on the first write. contracts.md gains the row; store.md said nothing to the contrary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sing node are refused Two rows of requests_breaking_a_rule_are_refused, each expecting dangling_id: a replace that adds steps/0/references with an unknown node id, and the same on a directory. The loop over steps[*].references in introduced_references_exist was not exercised before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rev_of, delete_op, diagnostic_keys, at_prefix and leaf_of (with leaf_in for a store that is already read) move to tests/common/campaign.rs. The two local base() fixtures are named for what they model (spare_and_deep, hot_dirs) so neither shadows the shared base(), and they build from dir_n and leaf_n. The two holder_child functions, which differ, get distinct names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cargo fmt -p rdm-schema -p rdm-engine and nothing else, in its own commit so blame can skip it. rdm-schema was not rustfmt-clean (53 diffs); rdm-engine had a few. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A lint job on ubuntu only runs cargo fmt --check and cargo clippy -D warnings over the two crates, with their tests and fixtures. rdm-mcp is left out of both commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The before-main findings of the M1 full review (03-full_review_harmony_v0, 03-full_review_safety_v0): one owner for record names (RecordKind), one record-to-JSON policy that fails loudly, one StoreError::Invalid family, docs held once on CachedCampaign, complete error types, a stated non_exhaustive policy, shared test helpers, rustfmt plus a lint CI job. Safety: step and directory references to missing nodes are refused, the hard-link fallback store.md promises exists, and opening a missing root creates nothing. Each new guard was seen red; a fresh verifier found no must-fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M0 MCP Apps feasibility stub depended on neither rdm crate, yet every CI job built rmcp, tokio and jsonschema for it; 131 packages leave the lockfile. Its findings live in __reports__/m0-feasibility-spike/, and the M4 and M6 leaves now point at 58a4a30, its last commit, for the rmcp stdio wiring and the Svelte Apps bridge. M4 rebuilds crates/rdm-mcp from scratch over CachedCampaign. With one crate family left, the lint job covers the whole workspace instead of naming the two crates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…per step The step helper classified each candidate node with its own `read()`, and every read revalidates every file of the campaign, so each step was quadratic in the campaign's size. One read per step takes the case from 73 ms to 45 ms (macOS, debug). The guard still goes red when a delete leaves the reverse index alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M1 soak could not finish on Windows: every read stats every file of the campaign, history included, and a cold open processes 12.4 MB/s. The findings read the soak, a profile and the M1 cache probe as throughput; the open question sets the constraints, four options and the measurement that must come before any redesign. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wn limit The adversarial review records the soak run and names the Windows soak as a gate not met; Eliott ruled that M1 merges with it recorded. The knowledge transfer carries S2 to the read-path redesign and records how the cost of reading JSON was dismissed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every level's gates are checked, the Windows soak with its recorded limit. The meta-roadmap's M2 and M4 leaves link the M1 knowledge transfer, and its ownership line names where the deleted spike's rmcp pin went. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M1 leaf of the meta-roadmap is done: its gates hold, with the Windows soak recorded as a known limit (Eliott, 2026-11-26). The adversarial review records the soak at 825ea5d, green on ubuntu, macOS and MSRV; the Windows job was still running at merge time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The soak run at 825ea5d finished green on every job, Windows in 33 min 6 s against its 45-minute cap, so the soak gate holds after the test-helper fix (a73b07b). The reports and gates that called it unmet now say so, and name the thin Windows margin as the read-path cost the redesign PR addresses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The roadmap MCP rework needs a store that agents in parallel worktrees can share without losing a write. This lands M0 (feasibility spike), M0b (domain model spec) and M1 (core foundation): the frozen contracts in
rdm-schemaand the store inrdm-engine. Every gate holds, but the store's read path is the limit: the Windows soak first hit the CI cap, and passes only after a test-helper fix, in 33 of its 45 minutes. Eliott ruled on 2026-11-26 that M1 merges with that recorded as a limit, and that the read path is redesigned in its own PR, measured first.What lands:
rdm-schema: stored types as the contract, id newtypes,MOVESas data,Links, store operations and errors, regenerated JSON Schemas.rdm-engine: flatnodes/<id>.jsonlayout, canonical codec, a version chain that refuses newer files (NewerFormat), ordered writes with a redo-only intent record and recovery under the lock, a reverse index, and a revalidated hot cache behindCachedCampaign.__design__/rdm/(store.md,contracts.md,stored-schema.md), CI on ubuntu, macOS and Windows plus MSRV 1.88 and aworkflow_dispatchsoak,.gitattributespinning LF on byte-compared JSON.__reports__/m1-core-foundation/(gap analysis, reviews, adversarial review, knowledge transfer) and__reports__/rdm_read_path_efficiency/(findings and the open question).Verification:
RDM_SOAK_ITERS=1000,PROPTEST_CASES=10000): green on ubuntu, macOS, MSRV and lint; Windows cancelled at the 45-minute cap insidereverse_index_equals_brute_force_scan. The kill harness passed on Windows at full count. https://github.com/CrackingShells/cracking-shells-playbook/actions/runs/45621003595__reports__/m1-core-foundation/02-adversarial_review_v0.md); I7 and I12 have no recorded mutation, under Eliott's ruling of 2026-11-25.Known limit:
Follow-ups:
__reports__/rdm_read_path_efficiency/00-open_question_read_path_v0.md).__reports__/m1-core-foundation/04-knowledge_transfer_v0.md.🤖 Generated with Claude Code