Repository navigation
Read and edit devbook sync directions in the Devbook panes - #939
Merged
Merged
Conversation
Devbook 1.16.0 (contract 25) adds a `sync` field saying which way changes flow between a unit and its code: push, pull, sync, report or off, stated on a folder overview, a context.md, a context page or a unit's root chapter and resolved nearest-wins. - Vendor devbook 1.16.0: devbook-meta tools (units.mjs, naming.mjs), four rules, and the components.devbook stamp at contract 25. - Carry `sync` in the devbook database (node.sync, chapter.sync, schema v4) from both the Node writer and the C# builder, in parity. - Know the field in the metadata reader, the schema and the findings, which report a bad value or a block that cannot take one. - DevbookSync places a block and resolves a unit's direction with the level it came from; DevbookSyncSelector shows it beside the status, a picker where the folder is writable and a badge where it is not. - DevbookMarkdownSyncWriter writes it beside the status writer under the write guard; the domain, arc42 and design panes cascade a scope built from DevbookSyncReading so each record asks for its own block. Backlog plan item backlog-sync-field (devbook-sync-sweeps). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JSdotNet
added a commit
that referenced
this pull request
Oct 3, 2026
Main registered IDevbookReferenceResolver inline in both desktop heads (#938) while this branch moved those blocks into the shared composition; the registration now sits in AddDevbookAdapters beside the search tiers, and DevbookModuleServices lists it so both heads are checked to resolve it. DevbookMarkdownSyncWriter.cs, added on main (#939), joins the file-IO ratchet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 3, 2026
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.
Summary
Devbook 1.16.0 (contract 25) adds a
syncfield: which way changes flow between a unit and its code —push,pull,sync,reportoroff— stated on a folder overview, acontext.md, a context page or a unit's root chapter, and resolved nearest-wins (unit → page → context → folder →report). This PR lets Backlog read it, store it, show it beside each block's status in the Devbook panes, and edit it.Changes
node.syncandchapter.sync(schema v4), written identically bytools/devbook/build-database.mjsandDevbookDatabaseBuilder; the parity fixture now carriessyncvalues so the new columns are compared.syncis a known field onMetadataRecord;DevbookSchema.SyncValues;DevbookMetadataFindingsreports a value outside the five, and a block that is no sync level (an owned chapter, a requirements/invariants page, tech/ai), mirroring the checker'ssyncIssues.DevbookSync— places a block (level or refusal) and resolves a unit's direction with the level it came from.DevbookSyncSelectorbeside the status inMetadataView: a picker whose empty entry inherits and names its source ("sync push · from context"), a badge on a read-only branch, the bare word where nothing places the block. Panes cascade aDevbookSyncScope;MetadataFileViewdraws a file's headline when its block takes a direction even if it states nothing else (the building block view's empty fence).DevbookMarkdownSyncWriterbesideDevbookMarkdownStatusWriter, throughDevbookWriteGuard.WritablePath; refuses a value or a block the rule refuses.DevbookSyncReadingreads a document plus its context and folder overview once per chapter load. Domain, arc42 and design panes wired.devbook/state.Testing
Backlog.WithoutAppHeads.slnf, Release, warnings as errors): clean. Full suite: 10830 passed, 0 failed, 1 skipped (E2E needs a live AppHost). Parity tests pass; re-run after merging main.DevbookSyncTests(placement matrix, nearest-wins, findings, rule-text pin against.agents/rules/devbook-chapter-metadata.md),DevbookSyncSelectorTests,DevbookSyncWriteTests(writer + reading across files), a domain-pane and an arc42-pane test.node .devbook/_tools/devbook-meta/build.mjs --checkpasses;check-metadata.mjs0 blocking.Verification — spec verdicts
Against the plan item and devbook 1.16.0's "Sync direction" rule (
.agents/rules/devbook-chapter-metadata.md).syncknown inDevbookSchema,DevbookMetadataFindings,devbook-schema.sql,build-database.mjs,DevbookDatabaseBuilderDevbookSyncTests,DevbookBuilderParityTests(fixture carriessync)DevbookSyncTestsplacement matrix; rule-text pin of directions, default, unit/owned types, overview files, page basesreportdefault, unknown value skippedDevbookSyncTests,DevbookSyncWriteTests(reading across files)DevbookWriteGuard, only where allowedDevbookSyncWriteTests(refusals leave the file untouched), QA write/clear scenariosflow-specsession (the plan item's last step)Unverified scenarios: none — the item carries no
#### Scenario:cases.Related
Backlog plan item
backlog-sync-fieldof plandevbook-sync-sweeps(afterunits-tool, JSdotNet/devbook#208). No GitHub issue.Not in this PR: the domain pane's context/document action bar has no sync picker (the open file view has it), and Backlog's own devbook chapters for this feature are a follow-up
flow-specsession.Checklist
🤖 Generated with Claude Code