Repository workbench
Browse a story's repository, save shared drafts, and use working copies or Merge my edits when someone else edits the same draft.
Open a story, find Repository workbench, and choose Open workbench. The same panel is available on the board and the full story page. It uses approved GitHub repositories connected to that story's workflow through Bookbag.
Browse an exact revision
Choose a repository and enter a branch or commit, then select Browse source. CodeBook resolves it to an immutable commit. Filter the file list and select a file. Original source appears beside your Proposal; after saving and reviewing, Saved diff shows that file's recorded changes.
Other branches and commits can be browsed. New editable drafts start from the repository's default branch. Binary files, symbolic links and submodules stay at the source host. GitHub Actions workflow files cannot be edited here.
Save and share a text draft
In Shared workspace, choose Take editing control. Then edit Draft text, or enter a New file path and choose Open path. Give the draft PR a title and description, then choose Save shared draft. Saving creates a CodeBook draft version with its author and time; it does not write to GitHub.
People who can read the story and still have repository access can read its drafts. One tab holds editing control for each story and repository. Control renews while the workbench is open and expires after five minutes without renewal. Another writer can enter a reason and choose Take over editing. Ownership changes record who took control, the previous person, the time and reason. The old tab keeps its local text but cannot save or publish under expired control. Publication already in progress must finish before control changes.
Shared drafts lists the drafts, and the version buttons let you inspect earlier saved versions. Concurrent saves are refused if another person has already changed the version you opened. Unsaved text stays in the current browser view. Save it in a shared draft or working copy before refreshing or closing the story.
A draft supports up to 20 UTF-8 text files, 50 KB per file and 300 KB in total, with up to 100 saved versions. File browsing supports a bounded repository tree. A large or incomplete tree is refused rather than presented as a complete source listing.
Working copies
Open an editable shared draft, find Working copies, and choose Make a working copy. Your copy starts at the current saved revision. You can edit and save copy versions while someone else holds shared editing control. Other people who can see the draft see the copy record; only you can open its text.
When your copy is ready, choose Merge into shared draft. The preview compares the base revision, the current shared draft and your copy. Non-overlapping changes combine automatically. Choose the shared text, your text, both, or edited text for each conflict. Enter a reason and apply the merge with shared editing control. A successful merge creates a new shared revision and an audit record.
Resolve a refused save
If another person saved first or took editing control, the refused save keeps your edits and offers Merge my edits. Review the comparison and resolve any conflicts before applying. If the shared draft changes again, open a fresh preview. Use the normal review and publication steps when you are ready to send the revised draft to the repository host.
Checkpoint and restore selected files
Expand Workspace versions and audit, enter a version name and choose Save workspace version. A checkpoint records all saved drafts for this story and repository, including their immutable base commits and revisions. It does not include unsaved text in a browser tab. A workspace supports up to 20 drafts and 100 checkpoints.
Open an editable draft, choose a checkpoint that contains it, then select Preview selected-file restore. Inspect each changed file and explicitly choose Keep current proposal or Use checkpoint. Enter a reason and select Restore selected files as new draft version. Unselected files, the title and description remain current. Later edits require a fresh preview; published proposals remain immutable.
Restoration works on whole files within a proposal. It does not automatically merge lines or change the repository. Removing a file from a proposal does not delete that file at the host. Review and publish the resulting draft separately. Recent ownership and restore events shows the latest 50 audit entries.
Inspect Git history
The workbench's Git history follows the pinned source commit. Inspect commit-parent edges, then open a commit for its author, committer, dates and bounded file patches. Use a path filter to inspect the host's history for that exact path.
History supports ten pages of 30 commits. Parents outside the current page are marked as boundaries. Path history does not promise to follow renames, and large, binary or abbreviated host patches are labeled. The graph describes repository commits; it does not establish which agent authored an unrecorded change. This workbench uses the existing approved GitHub connection.
Review and publish
- Save your changes, then choose Review changes.
- Inspect the server-generated diff for every file and the pinned base commit.
- Choose Publish draft PR. If MadeBook supplies new guidance, read it and confirm publication again.
- Open the resulting draft PR, run the relevant checks and follow your repository's normal review process.
Publication checks current story and repository access, factory write policy, pauses, holds, protected paths and MadeBook governance. A moved default branch requires a new draft and manual reconciliation. Another open PR for the story or an unfinished competing publication can also block a new PR.
If publication is interrupted, reopen the draft, choose Review changes, and retry publication. Failed attempts show Recover draft PR. Recovery uses its original reviewed version and deterministic branch. The person who began publication must recover it so the requesting identity remains accurate. A PR may already exist even when later synchronization or reporting needs attention; inspect the saved receipt before trying again.
Publishing creates a draft PR on a separate branch. Review, merge and deployment each have their own controls and evidence. Use Open proof runs and Open configured runners for checks. Open the full workbench opens the factory workbench, which has an optional proof terminal.
Related history
Use Story changes and reverts to inspect linked code changes, discuss them or prepare a reviewed inverse for a merged PR. Field history restores selected story fields independently of repository files. Use Repository reports and proof runs for execution recipes and recorded checks.