Using Alara Code
Read and export documents
The Markdown reader, diagrams, the contents panel, the Markdown source, and exporting to PDF, Word, Excel, HTML or Markdown.
14 min read7 sections
Every document the pipeline produces opens in the same reader: a page-like sheet with a contents panel, diagrams drawn in place, a switch to the Markdown source, and a Download menu that exports to PDF, Word, Excel, HTML or Markdown. This page covers where to find documents, how to read them, and what each export contains.
Where documents appear
- Beside the conversation. A step's turn in SDLC Pipeline carries a card for the document it produced; Read opens it in a panel next to the chat.
- The Artifacts tab. Every document of the project in one list, with the reader beside it.
- Artifacts in the sidebar. The same list across every project you can open, grouped by project.
The Artifacts tab
On the left, Documents lists everything the project has produced, with a count, in pipeline order: Request for Proposal, Project Scope, Software Requirements Specification, Technical Architecture Document, UI Prototype, Software Design Specification, Threat Model, API Contract, Software Test Specification, the build plan and ticket manifest, the Compliance Report, the Traceability Matrix, the Delivery Plan, the Client Proposal and, last, the Project Brief (the repository's AGENTS.md narrative, made from the Repository tab). Each row shows:
- an icon for the file format;
- the document's name, with a Draft badge while it is under review;
- the format (for example
MD), the version (v2) and the date it last changed; - a download button on hover.
Selecting a row opens it on the right. The address bar keeps the selection (?tab=artifacts&doc=srs), so you can send someone a link to a specific document. With nothing selected, the first readable document opens. A format the browser cannot display is a download link rather than a selection.
Before any step has run, the tab reads No documents yet and points you to SDLC Pipeline.
Documents by version
Once you start a new version, the list is split into one section per pipeline version, newest first, so a revision never hides what an earlier version approved:
- Version 2.0 · In progress (open by default) lists where the new version stands: the documents it has revised so far, and the ones it has not reached yet, marked from 1.0 in place of their date.
- Version 1.0 · Completed date (collapsed; click to open) lists the documents that version ended with, the RFP, Scope, SRS and the rest as they were approved in 1.0.
A completed version marks from 1.0 too, on any document it never re-ran (Traceability, Compliance or Tasks, for example): it is the same file as in the earlier version.
Selecting a row opens that exact version. An older version is read-only, and Download saves it under its own name (for example scope-v1.md). The address bar names it too (?tab=artifacts&doc=scope&v=1), so you can link to version 1.0's scope.
In SDLC Pipeline, the document card on each run opens the version that run produced: a version 1.0 run's card still opens its v1 document after version 2.0 revises it.
alara-code · Artifacts

The reader
The header
The header identifies the document and holds its actions:
| Item | Shows |
|---|---|
| Title and version | The document's name and vN |
| Length | For Markdown: the word count and a reading time at 200 words a minute, plus the number of diagrams, for example "12,480 words · ~62 min read · 7 diagrams" |
| Date | When the document was last written |
| File name | The stored file, for example srs-v2.md (hidden on narrow screens) |
| Status | Draft · under review or Approved |
Then the actions: Edit (on a draft you can edit, see Edit a draft), a lock on an approved document ("Approved documents are read-only. To change it, start a new version once the pipeline is complete."), the Preview | Markdown switch, Show contents / Hide contents, Download, and Close document when the reader is open beside the chat. Esc also closes it there.
The header fits the space the reader has, not the size of your window. Beside the chat, the title, version and close button share the first row with a one-line summary under the title, and the status and actions take a second row; in a wide reader everything sits on one row. When the reader is narrow the buttons show icons only (hover one for its name) and a long title is shortened, with the full title on hover.
Preview and Markdown
Every generated document is Markdown. Preview (the default) renders it: headings, lists, tables and diagrams. Markdown shows the source exactly as stored, for copying into another tool or checking what the agent wrote. The switch resets to Preview when you open another document.
The contents panel
On the left of the sheet, Contents lists the document's headings, indented by level. Click one to scroll to it; the heading you are reading is highlighted as you scroll. The panel hides itself when the reader is too narrow to spare the room (under about 760 pixels wide, as in a narrow side panel), and while you are viewing the Markdown source.
Problems found in a draft
When a check the bridge runs fails, the draft is kept, and a panel above it reads "N problems to fix in this draft". Each problem is written in plain words: what is wrong and what to do about it. Open Technical details for the exact checks. Each one gives the line it points at (Line N, or Contract line N inside the API contract) with a few lines of the document around it, what the check Expected, what it Found, and How to fix. The panel costs nothing: it reads the check result the bridge already has. See Review and approval for what to do next.
Diagrams
Diagrams are written in Mermaid inside the document and drawn in your browser as the document opens. "Drawing diagram…" shows while one renders. Diagrams follow the app's light or dark theme.
Click a diagram to open it full screen. In the viewer, scroll or use the + and − buttons to zoom, double-click to zoom in, drag to move it, and press Fit (or 0) to fit it back in the window.
If a diagram's source is invalid, the reader shows "This diagram could not be drawn:" with the parser's message and the diagram's source, and the rest of the document is unaffected.
High-fidelity diagrams
A project can turn on High-fidelity diagrams (New project, or Project Settings › Diagrams; off by default). After a step writes its document, the agent redraws each Mermaid diagram as a clean, styled SVG with the app's own colours, in light and dark. In the reader, a diagram with a picture shows it first, with a High fidelity / Mermaid switch above it, SVG and PNG downloads, and the same full-screen zoom. The Mermaid stays in the document: it is the source of truth, and the picture is only how it looks.
- A picture belongs to the exact diagram it redraws. If you edit a diagram, its picture no longer matches and the Mermaid is shown until the next step redraws it. A revision reuses the pictures of diagrams you did not change, at no cost.
- A diagram the agent could not redraw faithfully (every label of the Mermaid must appear, nothing added) keeps its Mermaid, and the step still completes. Diagram types without a recipe yet (for example a pie chart) stay as Mermaid too.
- It costs tokens: one extra model call per distinct diagram, plus a retry when a drawing fails its checks. The step list shows Drawing diagrams while it runs, and Usage lists the spend under the step
diagrams.
Tables
Wide tables (requirement catalogues, traceability matrices) scroll sideways inside the page rather than stretching it.
What every document contains
The agent writes the body. Alara Code adds, around it:
- A title block at the top: the document title and a table of Project, Client, Version (for example
2.0) and Date. - Catalogue tables for the items the step owns, such as requirement, component or ticket lists.
- A Version History table at the end, with Version, Date, Author, Changes and Status, one row for each time the document was written, including each round of requested changes.
Edit a draft
A document Awaiting your review can be edited before you approve it. Press Edit in the reader's header, or Edit on the step's turn in SDLC Pipeline beside Approve and Request changes.
This includes the Threat Model, the Compliance Assessment and the Delivery Plan. Three reviewed documents cannot be edited: the Tasks build plan (it is built from the ticket manifest), the Traceability Matrix (it is computed from the SRS and SDS) and the UI Prototype (it is HTML).
- The editor shows what the agent wrote as rich text: headings, lists, checklists, links, tables and code blocks. Mermaid diagrams are code blocks whose diagram is drawn live under the source as you edit it. The toolbar adds tables and diagrams; inside a table it adds and removes rows and columns.
- The toolbar and the save bar under it stay pinned under the reader's header while you scroll, so formatting and Save are always in reach, however long the document.
- The save bar says No changes yet or Unsaved changes, and reminds you that the draft stays under review until you approve it.
- The document's title block and the sections Alara Code maintains, the requirement, design-component and test-case catalogues, the traceability tables and the version history, are shown under the editor, locked, under "Maintained by Alara Code, built from the project data, not editable here." They are kept as they are when you save.
- Save (or Ctrl+S) keeps the draft's version number and leaves it Awaiting your review; a Draft saved notification confirms it. Approve it when it reads right; Approve records exactly what you saved.
- Cancel leaves the editor. With unsaved changes it asks first: "Discard your changes to this document?"
- If the document changed since you opened it (someone else saved, or the step ran again), the save is refused so nothing is overwritten. Reload it and edit again.
Approved documents are read-only. To change one, finish the current version and start a new one; see Start a new version. An uploaded RFP is changed by uploading a new file.
Your edits carry forward
When a later step runs, the agent receives the approved documents it builds on (as you edited them) and treats them as the authority where they differ from the project's structured data. For example, the SDS is written from the Scope, the SRS and the TAD as you approved them, and in a new version each step works from the documents already revised and approved in that version.
| Step | Builds on |
|---|---|
| Scope | RFP |
| SRS | Scope |
| TAD | Scope, SRS |
| UI Prototype | Scope, SRS, TAD |
| SDS | Scope, SRS, TAD |
| Threat Model | TAD, SDS |
| API Contract | SRS, TAD, SDS |
| STS | SRS, SDS, API Contract |
| Delivery Plan | SRS, TAD, SDS, STS |
| Proposal | Scope, SRS, TAD, SDS, Delivery Plan |
Only an approved document is passed on; a draft still under review is not.
Editing needs the same permission as Request changes: Projects › Run › create.
Download and export
For a Markdown document, Download opens an Export as menu. The export happens in your browser, from the document's Markdown, and is saved under the document's own file name with the new extension (for example srs-v2.docx). The button reads Exporting… while it works; if an export fails, a notification says why.
alara-code · Download

| Menu item | File | What it contains |
|---|---|---|
| PDF document | .pdf | An A4 document with the reader's styling (headings, tables with shaded headers, framed code) diagrams drawn as images, and a footer with the title and page number on every page |
| Word document | .docx | An editable Word file with real heading styles, numbered and bulleted lists, bordered tables and the diagrams as images |
| Excel workbook | .xlsx | A Document sheet with the whole text, one row per heading, paragraph or list item (Section and Content columns), plus one sheet per table, named after the section it sits in, with a frozen, filterable header row |
| Web page (HTML) | .html | A single self-contained page styled like the reader, with the diagrams embedded as vector graphics; it prints cleanly |
| Markdown | .md | The source, exactly as stored |
With high-fidelity diagrams, PDF, Word and HTML embed the picture (in the light theme) instead of the drawn Mermaid, and the menu adds Markdown with diagrams (.zip): the Markdown, the SVG files and a manifest.json saying which diagram each one redraws.
In PDF, Word and HTML, a diagram that cannot be drawn is included as its Mermaid source instead of an image. In Excel, diagrams and code blocks appear as text rows on the Document sheet.
Older documents
Projects created before documents became Markdown may still hold Word (.docx) and Excel (.xlsx) files. They still open in the reader:
- Word files are shown as formatted pages, with the contents panel built from their headings. If some embedded diagrams were too large to show, a notice says "Some diagrams were too large to display here." with a Download button.
- Spreadsheets are shown as tables, one per sheet; the header reads, for example, "2 sheets · 340 rows". Very large sheets are cut off in the preview.
- JSON and PDF files open in their own views; plain text files open as text.
These files have a single Download button that saves the original file; the export menu is for Markdown documents only. An uploaded RFP keeps the format you uploaded, so a PDF RFP opens in the browser's PDF viewer.
When a file cannot be shown, the reader says why and offers Download the file:
| Message | Meaning |
|---|---|
| This file opens outside the browser | A format the reader cannot display |
| This file is too large to preview | Larger than the preview limit (5 MB) |
| This file could not be read | The file is damaged or unreadable |
| Document not available | It could not be loaded, try again once the step has finished |
Under the hood
The list comes from GET /api/projects/:id/documents, a document's content from GET /api/projects/:id/documents/:kind, and the original file from GET /api/projects/:id/documents/:kind/file. The list also returns versions, each pipeline version's document set, and both document routes take ?version=N for an older version: its file in the project, else its approved copy in storage. Save in the editor sends PUT /api/projects/:id/documents/:kind/content with the edited body and the hash of the version you opened; the bridge answers 422 for an approved document and 409 when the document changed since you opened it. A draft under review is read from the project's working copy; an approved document from storage. Documents are stored as .sdlc/artifacts/<step>-vN.md. See Document checks and versioning.