sysgraph Docs
Decisions & projects

Projects

A project is the scope of a change on the architecture: which applications and endpoints it touches, which decisions it rests on, which flows it affects. Projects are highlighted in the architecture view, and a catalog item's page shows the open projects affecting it.

Note

sysgraph is not an issue tracker: tasks, people and dates are deliberately left out. A project links to the issues in your tracker.

The project page: status, issues, description and scope
The project page: status, issues, description and scope

Statuses

Draft → Approved → In development → Done, or Canceled. Flow baselines do not depend on the status (see below). In the cloud, who changes the status and whether leaving draft needs approval are set in the Project rules.

Scope

The scope is organized by application: add the application first, then the endpoints that change under it.

Affected applications

An application added to the scope as New shows in the catalog with a Planned badge (with the project number on its page) until the project is done.

Add catalog items with the picker. Each application row has:

  • Kind of change: changes, new, removed.
  • Note: e.g. "Refund limit check (internal function)". Notes are Markdown (lists, links, code) and are edited visually. Catalog items show the note under the project.
  • Task: the task the row belongs to, if the project is split into tasks.

Suggestions from the linked flows and decisions are added with one click. Removing an application from the scope also removes its endpoint rows.

Endpoints

Under each application there is a picker that searches only that application's endpoints, so you never search through all of them. Rows again have a kind of change, a note and a task; suggestions for that application appear here too. An endpoint that doesn't exist yet can be added to that application's catalog with Plan new endpoint (choosing type, method and name) and taken into scope as "new".

If an older record has an endpoint row whose application isn't in scope, it appears in its application's group with an "application not in scope" note; Add the application to the scope fixes it.

Affected flows

Affected flows are listed automatically. A flow is affected only by what actually changes, not just because an application in scope appears in it:

  • Direct: the flow uses an endpoint in scope that changes or goes away (a message linked to the endpoint), or contains an application that goes away.
  • By reference: the flow references a changing flow (a reference note): one of the project's design flows or another affected flow, along the chain.
  • Possible (collapsed, not counted): the flow contains an application in scope as changed, but the project lists none of its endpoints, so what changes is not known. Add the changing endpoints to the scope and only the flows using them stay.

New applications and new endpoints don't affect existing flows. Add to design adds a flow to the project's design flows.

Decisions and design flows

  • Link decisions to the project, or open one linked to the applications in scope with New decision.
  • Link design flows, or open a flow with New flow for this project, where the applications in scope are ready as participants.

Issues

A project can link to several issues: a link (Jira, Azure DevOps, GitHub…) or a key (PAY-123). If the list contains a Jira link, keys turn into clickable links as well.

Status from your tracker

In cloud workspaces the issue's current status in GitHub, Jira or Linear shows next to it (for example In Review, colored as to do / in progress / done; hover for the title). The workspace owner connects the trackers once in Workspace › Integrations › Issue trackers:

  • GitHub: a fine-grained read-only token (Issues and Pull requests: read). Links (…/issues/42, …/pull/7) and the short form owner/repo#42 are recognized. For GitHub Enterprise use https://<server>/api/v3 as the API address.
  • Jira: the site address (https://acme.atlassian.net) and email:API token (Jira Cloud) or a personal access token (Data Center). …/browse/PAY-123 links and bare keys are recognized.
  • Linear: a personal API key. linear.app/…/issue/ENG-12 links and bare keys are recognized.

Several trackers can be connected at once. Jira and Linear keys look alike, so give each connection its project keys (PAY, OPS): a bare key like PAY-123 goes to the tracker that lists PAY. It is one-way — sysgraph only reads the status and never writes to the tracker. Credentials are kept in a secure vault and never shown again; the status is refreshed every few minutes.

Tasks

A large project can optionally be split into tasks: PRJ-001-TASK-1, PRJ-001-TASK-2… Each task has its own name, status, description and issues. Application and endpoint rows can belong to a task. When a task is removed its rows are left without a task. Tasks can be given to agent teams. (Tasks used to be called parts, PRJ-001-PART-1; the old keys are still recognized in branch names.)

Baseline and changed flows

Each flow has its own baseline: its state when it is linked to the project, so changes made during technical design are tracked too. A flow created with New flow for this project has an empty baseline ("New flow"). Flows that change afterwards are marked "Changed since baseline"; Show diff compares with the baseline in the preview.

To pick a baseline by hand:

  • On the project page, Baseline next to the flow: the current state, empty, or a version from the history (for example the version from before the design work started).
  • In the editor, pick a version in Version history and choose Make PRJ-001 baseline. The baseline version is marked in the list.

Take all now retakes the baseline of every linked flow from its current state. A version picked as baseline is not removed by the version limit. Flows linked in earlier releases without a baseline show "No baseline"; it is taken by hand or when the project moves to "In development".

In the architecture and on the map

  • Show in architecture: the items in scope and the relationships between them are highlighted in the architecture view.
  • In an organization, Show on map highlights the calls between workspaces in scope on the organization map.

Flow lifecycle

Flows have no status field of their own; their state is derived from projects and shown as a badge in the flow list:

  • Current (no badge): a flow with no project, or whose project is done; a permanent part of the architecture.
  • Changing · PRJ-001: a current flow linked to an open project.
  • Planned · PRJ-001: a flow created for the project with New flow for this project on the project page. Until the project is done it doesn't count in the architecture, catalog relationships or the organization map.
  • Canceled: a flow whose project was canceled; it counts nowhere.

When the project is Done, its planned flows become current. To see planned flows in the architecture, use Include planned or select the project (Architecture view).

Editing in a project (proposal)

When you design a change to a current flow in a project, you don't have to change the flow itself. Edit in project on the linked flow's row opens a copy of the flow for this project (a proposal):

  • The proposal is named like Payment flow · PRJ-001. It doesn't appear in the flow list; open it from the project page (Open proposal) or from the bar above the current flow.
  • The current flow stays unchanged until the project is done, and the architecture shows it unchanged. When you select the project in the architecture, the proposal takes the current flow's place.
  • Compare with current in the editor bar shows the proposal's differences in the preview. The project page shows the added / removed lines of each proposal.
  • A flow can have proposals in several projects. If the current flow changes after the proposal was opened, a Current changed warning appears.
  • Take changes from current on the proposal's bar brings those changes into the proposal now, without waiting for completion: clean changes are merged directly, and where both touch the same place you pick Current, Project or Both. The branch point then moves to the current state and the warning goes away.

When the project moves to Done, its proposals are merged into the current flows:

  • If the current flow didn't change, the proposal is taken as is.
  • If both sides changed, the changes are merged automatically.
  • Where both touch the same place, pick Current, Project or Both; the project can't be completed until you do.

The merged version enters the flow's version history with the kind Project (“Became current with PRJ-001”), and the previous state stays in the history. Proposals of a canceled project count nowhere.

Owner approval

You can assign Owners to an application in the catalog (on the catalog item page; to zones on the Zones screen). An item without owners takes those of its parent item or zone. Only the workspace owner assigns owners.

A project with an owned application in scope shows an Owner approvals section:

  • One of the owners of each application must click Approve as owner. Owners don't have to be on the project board.
  • The project can't leave draft or become Done until owner approvals are complete. The project board rule applies as well.
  • An approval drops only when the row of its owner's application changes. If the scope changes during development, only that application's owner approves again.
  • An approval also drops when a design flow of the project (a proposal, or a flow created in the project) is saved with changed steps that involve that application. Steps of other applications don't affect it.

Teams as owners

An owner can be a team instead of a person. Teams are set up under Workspace › Teams: a name and its members. When a team owns an application, any member of the team can approve as owner, and the Owner approvals section shows the team's name. When someone leaves, remove them from the team and add whoever takes over. The application's owners don't change, and approvals still waiting go to the new member. A team with no members, or a deleted team, counts as no owner: the item then takes the owners of its parent item or zone. Only the workspace owner changes teams.

Project notes

Project notes record design changes made during development and why. Notes are written in Markdown (headings, lists, task lists, links). A note can optionally link a decision (ADR) and carry an optional kind — Design, Development or Review; picking a kind on an empty note adds a short starter template you can change or delete. When notes of more than one kind exist, the list can be filtered by kind. You can edit your own notes later (marked "edited"). Notes don't drop approvals.

Changes in code

A pull request's changes can be linked to the project. Scan the branch with sysgraph-scan --base origin/main and import it under Endpoints › Import from code with Link this change to a project (Change impact). If the same branch is imported and linked again, the newer scan replaces the old one. A project can have several linked changes, for example one per repository. With Radar this happens by itself: pull request scans uploaded from CI are linked by branch name, and the change is marked as merged when the pull request is merged.

The Changes in code section on the project page compares the changes with the scope:

  • Changed in scope: an application in scope (or one of its sub-items) or an endpoint in scope changed. An endpoint to be removed counts as changed once it is gone from the code.
  • In scope but untouched: the application was scanned, but nothing in scope changed. The work may be missing, or the row may not belong in the scope.
  • Changed outside scope: entry points that changed although neither they nor their applications are in scope. They may need to be added to the scope or moved to a separate project.
  • Not scanned: the application is not in any of the linked changes.

The section is for information only: it doesn't affect approvals or the status. A linked change can be removed with the × next to it.

Compared with code

When a project becomes Done, its scope and the calls in its flows are compared with the code last imported into the workspace (Endpoints › Import from code, or Radar). The comparison checks:

  • Whether new or changed endpoints are in code, and whether endpoints to be removed are gone. In the cloud, an endpoint whose application hasn't been imported yet is looked up in Radar's last main-branch analysis, without an import; such rows say from Radar's last analysis.
  • Whether the project's design matches the code. The design is the project's copy of a flow (Edit in project), or the flow itself if there is no copy. A flow that came from code is compared step by step: every step that is in the design but not in code, or removed from the design but still in code, is listed. For hand-drawn flows, calls between applications are checked.

The result shows on the project page and in the project list: Confirmed in code, Drift from design, or Not verifiable (when the applications haven't been scanned yet). While the project is in progress, the same section shows a preview, with missing items shown as Not in code yet (work still to do).

Sometimes a project can't be confirmed in code; for example, the code lives in another repository. For such rare cases, people assigned under Workspace › Permissions › Manual close against code can Close manually with a reason. The person, time and reason are recorded, and the close can be undone. Nobody has this permission by default; the workspace owner assigns people.

Project focus

Focus on the project page lets you use the app from that project's point of view. A bar below the menu shows the project in focus and its scope. Exit focus on the bar makes everything visible again.

While in focus:

  • Flows shows only the project's flows; a flow with a proposal shows its proposal instead. New flow creates the flow in the project.
  • Catalog, Endpoints and Decisions show only what is in scope. Show all lists the rest as well.
  • Architecture opens with the project lens; the organization map highlights the project's calls.
  • Radar (cloud) shows only the findings and entry points of the applications in scope (matched by code name); Show all lists the rest.
  • Search (⌘K) lists the project's results first in every section, marked with the project number.
  • Every change you make belongs to the project. Changing a current flow sends the change to the project's copy (a proposal); the current flow stays unchanged. Opening a flow that has a proposal opens the proposal.
  • The logo goes to the project page instead of Home.
  • You can focus on a done or canceled project, but you can't make changes.

Focus is personal and per workspace, and it survives a reload. Adding ?focus=<project> to an address focuses whoever opens the link on the same project.

Technical design document

The Design document button produces a shareable document from the project:

  • HTML: a single file with embedded images.
  • Markdown + SVG (zip): to put into a repository or wiki.

Contents: status, issues, description, tasks, the scope by application (each application with its endpoint table), the architecture before / after (top-level view, current and with the project), affected workspaces (other workspaces whose systems the design flows use), decisions (optionally with their full text), flow diagrams and their comparison (with the current flow when there is a proposal, otherwise with the baseline). Copy summary puts a short Markdown summary on the clipboard.

Review report shows the same content on one page in the app, to review a project before approving it.

Activity

The Activity section at the bottom of a project page (in the cloud and locally) shows creation, edits, approvals and status changes with who and when.