Cross-Branch Project Discovery
Cross-Branch Project Discovery
OpenL Studio must discover and manage design-repository projects across every readable Git branch. A project must remain one logical workspace item while its content, path and permissions may differ by branch.
Goals
- Discover a project when at least one Git branch contains it.
- Derive project membership exclusively from Git trees.
- Give each branch membership its own repository view, mapped path and file metadata.
- Select a deterministic home branch and a user-specific effective branch.
- Keep project-list and project-read requests independent of repository-wide branch scans.
- Make creation, copy, merge and deletion operate on an explicit branch-scoped repository.
- Publish branch changes before a successful write response is treated as readable.
- Apply authorization separately to every branch membership.
- Preserve the stable branchless project identity used by REST clients and workspaces.
Architecture
Cross-branch discovery belongs to the workspace layer. Git repositories expose project-agnostic branch and revision operations, mapped repositories resolve project paths within each branch, and a dedicated service publishes immutable project snapshots.
flowchart LR
G["GitRepository: refs and revisions"] --> M["Branch-scoped MappedRepository"]
M --> I["BranchedProjectIndexService"]
E["Repository change events"] --> I
I --> D["DesignTimeRepositoryImpl"]
I --> W["UserWorkspaceImpl"]
I --> R["REST and React"]
I --> C["History, compare and version cache"]
P["User branch preferences"] --> W
The components must have these responsibilities:
GitRepositorymust enumerate Git branches, resolve branch tips and tree revisions, and create or delete whole refs. It must not contain project-membership rules.MappedRepositorymust build the external-to-internal project mapping from the selected branch tree.BranchedProjectIndexServicemust scan branch views, retain branch snapshots, build the logical-project union and publish immutable repository snapshots.DesignTimeRepositoryImplmust project the published snapshot into logical design projects.UserWorkspaceImplmust select a readable effective branch and resolve the corresponding branch entry.- The secure design-repository layer must filter every branch entry before a project or membership set reaches a caller.
- REST controllers and UI clients must consume design-repository and workspace contracts instead of accessing the shared index directly.
Project Model
Logical identity and membership
A logical project is identified by (repositoryId, internal folder path). Every branch agrees on the folder; the
name does not, because the descriptor may name the same folder differently on another branch. ProjectKey and the
projectId, a hash of that pair (Stable Project Ids), must remain branchless.
The name is what a branch shows, not what identifies. A project is displayed under the name of its home branch, and a lookup by name must find it whichever branch the caller took the name from: a mapped name carries the folder next to the branch’s name for it, so it is matched on the folder.
Each logical project must contain one entry for every readable branch whose Git tree contains the project:
logical project
→ home branch
→ branch name → branch project entry
branch project entry
= external name + internal path + branch-scoped Repository + FileData
The entry must retain the external name, internal path, branch-scoped repository and FileData discovered at the
recorded branch tip. A path, mapping or revision from one branch must never stand in for another branch.
Two folders may end up with the same displayed name — a branch that renames one of them, or a descriptor that names them alike — and they remain separate logical projects, because the folder tells them apart. Project creation still enforces repository-wide name uniqueness, so a name collision is something branches produce rather than something a user can create.
A mapped repository must show each folder under the name its descriptor declares, and must never invent a suffix to make two of them differ. The folder hash the external name already carries keeps the mapping unambiguous, while an invented name shows a project the repository does not contain and hides which folder it stands for.
Home branch
The home branch must be deterministic, and must depend on how authoritative a branch is rather than on how recently someone pushed to it:
- The repository base branch wins when it contains the project. Matching is case-insensitive, and the actual ref spelling must be retained.
- Otherwise, a branch the repository declares protected wins over one it does not. Protection comes from the repository configuration, so a project that survives only outside the base branch stays on the same release line across restarts, instead of moving onto whichever ticket branch was pushed to last.
- Otherwise, the branch with the newest tip commit wins.
- Equal ranks are ordered by case-insensitive branch name and then by exact branch name.
Ranking only decides which branch represents the project: a repository that protects no branch keeps the plain recency rule, and membership never changes with the rank.
When authorization removes the global home entry, the same rule must select a home from the caller’s readable entries.
Effective branch
The effective branch is user-specific and must be selected from readable memberships in this order:
- the branch of an opened local copy;
- a durable closed-project preference;
- the readable home branch.
The preference key must be (user, repositoryId, external project name). A preference is workspace state, not
repository membership. It must be removed when the selected branch no longer contains the project or is not readable
by the user.
Only a branch switch writes the preference. A workspace refresh reads it and must never write back the branch a replaced project holds: another request may be switching that project at the same moment, and writing its old branch back would undo the switch.
An opened local copy must be associated by (repositoryId, external project name) before branch selection. Internal
paths cannot be used for this association because mapped paths may differ by branch.
Each dependency must keep its own effective branch. Resolving a dependency must not switch it to the declaring project’s branch: only the explicit move described below does.
A dependency must be resolved inside the branch of the declaring project. A project of the same repository counts only when that branch contains it — membership comes from the index, not from the branch the workspace happens to show the project on. A name the branch does not contain stays unresolved and is reported as missing, because the copy another branch keeps is a different version of the same content rather than another project.
The declaring project’s branch scopes the lookup and nothing else. It decides membership; it never becomes the resolved dependency’s branch. The dependency keeps its own effective branch, and that branch is what selects the version compiled and opened — which is why a dependency the workspace shows on another branch is reported as such rather than silently re-pointed.
Moving the dependencies onto the branch of a project is a separate step that opening or switching the project asks
for (switchDependencies of the project status update):
- A dependency of the project’s own repository moves when the project, or a dependency already on that branch, declares it there. What moves is read from the branch it moves to, because what a dependency declares can differ between branches.
- A dependency with unsaved changes keeps its branch, so no edit is lost, and opening the project does not open it again. So do a dependency the branch of the project does not hold for the user, and one the client is merging, which stays read-only while its merge runs.
- What only a dependency that stays declares stays where it is too.
- A dependency of another repository is never moved, by the same exception as the lookup, and neither is one reached only through it.
OpenL Studio asks for the move by default: the window that opens a project lets the user keep the branches, and a branch switch of an open project — the one after creating a branch too — always takes the dependencies along. A closed project is not compiled, so switching it leaves its dependencies where they are until it is opened. The MCP server takes them along whenever it opens a project with its dependencies or puts it on a branch.
Another repository is the exception to the scope: nothing keeps the branches of two repositories in step, so a match there counts whatever branch it is on. The same rule decides which projects a project reports as its dependents.
The declared dependencies and everything they pull in are both reported, and each says which of the two it is, so
the list can be read against the rules.xml that declares only the direct ones.
Repository and Mapping Contracts
Branch operations
BranchRepository must expose explicit project-agnostic operations:
listBranches()returns local and remote-tracking branch refs.getBranchStatuses(branches)resolves branch tips in one batched read, and reports for each branch whether the repository configuration protects it. Protection is what the home branch rule ranks by, so it must come from the same read rather than from a separate query per branch.getBranchTreeRevisions(branches, path)resolves branch and tree state in one batched read.createRepositoryBranch(branch, startPoint)creates a whole Git ref.deleteRepositoryBranch(branch)deletes a whole Git ref.forBranch(branch)returns a repository view scoped to that branch.
Tags must not satisfy branch selection, even when a tag and branch have the same short name. A tag must not prevent creation of a real branch with that name.
A tree-revision result must distinguish:
- a resolved branch with a tree at the requested path;
- a resolved branch without a tree at the requested path;
- an unresolved branch.
It must also indicate whether a changed tip affects the requested path relative to at least one parent. This distinction is required for merge commits whose final tree object matches an earlier tree while project revision metadata must advance.
Whole-ref creation and deletion must remain separate from project content operations. Creating a branch copies the complete start-point tree. Deleting a branch deletes the whole ref. Project creation and deletion must use ordinary writes through a branch-scoped repository view.
Branch-specific mappings
Every branch-scoped MappedRepository must build its own ProjectIndexCache from that branch tree. A project that is
added, moved, renamed or remapped in one branch must be discovered without using another branch’s mapping.
generateExternalToInternalMap() must scan the physical repository root. The configured rules location is a virtual
external prefix and must not limit the physical discovery tree.
Immutable mapping data may be reused only when the complete physical discovery-root tree revision is identical.
Parsed project names may be reused only when the rules.xml blob revision is identical.
Project creation and copy must apply FileMappingData within the selected target branch. A custom target path must
therefore resolve through the target branch mapping.
The mapping scan must follow these rules:
- Git entries with mode
160000are submodules, not folders, and must not be traversed. - A folder returned from a branch tree is present in that branch and must not be compared with another branch.
- A folder with
rules.xmlis always a project. A folder without it is a project when an Excel file is present in the folder root and the globalproject.detect-by-excel-filessetting is enabled. The setting defaults tofalse, applies to every design repository with folders, and must be retained by every branch-scoped mapped view. - Discovery must not call lazy audit accessors such as author, date, comment or version.
- Descriptor and Excel discovery must use Git tree and blob revisions for reuse and invalidation.
The mapping lock is the innermost lock of a mapped view, and the view never holds it while it calls the Git repository:
- A save holds the repository lock while the access check of its files reads the mapping. A thread that held the mapping lock while it waited for the repository would deadlock with it, and every request of that repository with them.
- A rebuild scans the repository without the mapping lock and takes it only to put the new mapping in use. Rebuilds run one at a time, and a mapping that a save, a deletion or an added project changes during the scan makes the rebuild scan again. So an older scan never replaces a newer mapping.
- A save to a new folder maps the folder before it writes it, since the save translates its paths by that mapping. A rebuild keeps the mapping until the save ends, because its scan cannot find the folder earlier. The end of the save makes a rebuild that is still scanning scan again.
- Only the first mapping of a view is waited for. An expired mapping keeps being served while another thread rebuilds it, because the reader may hold the repository lock that the rebuild waits for.
Index Contract
Snapshot data
BranchedProjectIndexService must own one published snapshot per branch-capable design repository:
repository snapshot
→ branch name → (tip revision, discovery-root tree revision, projects by internal folder path)
→ internal folder path → (display name, home branch, entries by branch)
Published records and collections must be immutable. A new generation must be assembled separately and replace the published snapshot atomically so readers never observe a partial scan.
Membership fields must not mutate after publication. FileData may lazily memoize audit fields, and a
branch-scoped Repository may remain a live view, but neither may change the membership represented by the snapshot.
The index must be reconstructible from Git and held in memory. Project membership must not depend on a shared registry or persistent index file.
Health
Repository index health must use these states:
INDEXING— the complete snapshot has not been published. An early snapshot that maps the default branch’s projects across their branches may already be served.READY— every enumerated branch has a successful snapshot.DEGRADED— at least one branch uses last-known-good data or has no successful snapshot.
REST values must be the lowercase strings indexing, ready and degraded. Diagnostics may include failed branch
names and a sanitized error, but must never expose credentials, repository URIs or provider exception details.
Index diagnostics must require repository-level READ. Project-level access alone must not reveal failed branch
names or repository diagnostics.
Refresh lifecycle
Refreshes must run outside request threads and follow these rules:
- Initialization must materialize the configured-branch listing and start the first branch-wide build.
- Until a snapshot exists, a build must publish a usable one before scanning every branch: it must index the default (base) branch first and list its projects across the branches that still hold them, so those projects are not confined to the default branch while the rest of the scan runs. Projects that live only on non-default branches appear when that scan completes. A build that already has a published snapshot to serve must not repeat this early pass.
- The configured-branch listing must remain available only until the first snapshot is published; afterwards the
published snapshot is served even while its health is still
INDEXING. - Repository change events must mark the repository dirty and schedule a batched status check.
- A successful Studio write must invalidate the affected branch directly. A save, a file write committed
directly to a closed project and a write through the repository files API (
/repos/{repo-name}/files) must also wait for that branch’s publication before answering, so the next read or listing of the project sees the written revision. - One coordinator per repository may run at a time.
- Different repositories may scan concurrently.
- Branches within one repository must scan sequentially because branch-view creation shares the Git lock.
- Events received during a build must be coalesced and trigger another pass.
- Each branch scan must capture the tip before scanning and verify it again before publication.
- A result for a branch whose tip changed during the scan must be discarded and retried.
- Requests must continue to use the last published immutable snapshot during a rebuild.
- Shutdown must cancel queued work and prevent an obsolete generation from publishing.
A refresh must reuse a branch snapshot when its tip is unchanged. When the tip changes, it must resolve the discovery tree revision and reuse the mapping only when the tree revision and path-affecting status permit it. Changed branch metadata must still advance for a merge tip that affects the discovery root.
A branch absent from listBranches() must be removed. If an enumerated branch has no status result, the service must
retain last-known-good data and skip an unindexed branch. A failed scan must likewise retain last-known-good data and
mark health DEGRADED; it must not replace known membership with an empty listing.
Publishing a snapshot — both the early default-branch snapshot and the complete one — must refresh the logical-project projection and send the project-change notification. Each OpenL Studio node must own its index and converge independently through repository change monitoring.
The notification only puts the project listing of a user workspace out of date (UserWorkspaceImpl): it never waits
for a listing being built. A listing reads the design projects and their audit versions before it locks itself, the
version of the branch the user works on a project in among them, so the first read of a version, a walk over the
history, keeps no other project request waiting. A change counted while
a listing is built leaves that listing out of date, and a listing built for earlier changes than the one in place is
dropped; so is a listing for the same changes that no request forced. A refresh of the design repository is counted as
it starts and again as it ends, even when it fails. The workspace folder of an opened copy in a repository with mapped
folders follows the name its rules.xml gives the project: a listing renames such a folder, and lists the projects
again, while it holds its lock, so no request takes a copy whose folder is renamed afterwards.
Project-list and project-read requests must never enumerate branches, create branch views or scan Git trees. A steady refresh must use one batched status lookup and scan only branches whose relevant state changed.
Design repository projection
For a branch-capable repository, DesignTimeRepositoryImpl must create one branch AProject per membership and one
logical project bound to the home entry.
The design repository must expose branch-aware accessors for:
- the branch entries of
(repositoryId, external project name); - the branch project for
(repositoryId, external project name, branch); - repository index health.
Snapshot projection must not resolve Git audit versions for every membership. Audit metadata must remain lazy, and a completed lazy lookup must release retained commit references. Version-cache history reads must use disposable project views.
The folders read from one commit of a GitRepository find their audit versions together (FirstCommits). The first
lookup walks the history once for every folder read from that commit so far, rather than once per folder: a folder left
unchanged for thousands of commits would otherwise walk them again for each project. A folder read after that walk
joins a walk of its own. When the walk fails, each of its folders walks the history alone, so a failure is told for the
folder it belongs to and the walk is not repeated for every folder. A found revision keeps the commit id, the
committer and the message, not the commit, whose parents would retain the history walked.
Authorization
Authorization must be evaluated per branch entry because ACL identities use (repositoryId, internalPath) and mapped
paths may differ by branch. Entries that address the same identity must be answered once rather than once per
branch: the index keeps one logical project in one folder, so a project normally reaches its whole branch set on a
single decision. A caller that needs both a project and the branches that hold it must read them in one pass, so
that the permissions of a project are asked once rather than once per read.
- A branch entry must require
READpermission on its internal path. - A logical project must be visible when at least one entry is readable.
- Home and effective branch selection must use readable entries only.
- Membership responses must expose readable entries only.
- Branch-aware accessors must return secured repository and project views.
- Shared raw repository views from the index must not reach controllers or workspace callers.
- Permission checks on a repository path must resolve the internal path. The external name of a mapped repository pairs the declared name with the folder hash and is not an ACL identity, so reading, writing or deleting content under it would answer only to a repository-level grant.
Project creation must require repository CREATE. Ref creation must pass through the secured repository decorator and
require repository-level WRITE. Protected-branch authorization must run against the resolved target branch and its
canonical ref spelling.
Conflict-resolution merges must require WRITE permission for every resolved file. A merge without explicit conflict
resolutions may follow the normal merge authorization path.
Authorization failures must be returned as forbidden. A caller who cannot read a conflicting project may receive a generic name-conflict response, but the response must not reveal the hidden branch or path.
REST and UI Contract
Project branch data
ProjectViewModel.branch must carry only the effective branch. Project-list and project-detail responses must not
repeat the complete membership set.
ProjectViewModel.inDefaultBranch must tell whether the base branch holds the project, whichever branch is effective:
- It must be read from the published snapshot that the workspace listing already resolved. The request must not enumerate branches, scan Git trees or ask for permissions a second time.
- Like every membership, it must count readable entries only: a caller who cannot read the base-branch entry is told that the base branch does not hold the project.
- A project served from the configured branch before the first snapshot is published is held by the base branch, since the configured branch is the base one.
- A project of a repository without branches, and a local project, must not carry it.
GET /projects/{projectId}/branches must read the project’s published snapshot and return only readable
memberships. Each ProjectBranchInfo must carry the branch name and true-valued base or protected marks; false marks
must be omitted. The endpoint must not enumerate repository-wide refs or resolve lazy audit metadata.
GET /repos/{repo-name}/branches must return a sorted list of actual repository refs for branch selection and
whole-ref workflows.
The Projects table, breadcrumb and Overview branch switchers must render the effective branch and load membership from the project branch endpoint only when opened.
Manage Branches must display actual project membership as read-only data. Project copy, project deletion, branch creation and branch deletion must remain explicit operations with separate permission checks.
Default view of the Projects tab
GET /projects must keep returning every readable project. The Projects tab applies its default view in the
browser, so the projects of other branches stay one filter pick away without another request.
While no branch is picked in the Branch filter, the project list and the project tree must show only:
- projects that the base branch holds (
inDefaultBranch), on whichever branch is effective; - projects open in the user’s workspace — opened, edited or viewed at a revision — even when they exist only outside the base branch;
- projects of repositories without branches, and local projects.
Picking one or more branches must replace the rule: the list shows the projects whose effective branch is picked. The Branch filter must count every searched project, so a branch that holds only hidden projects can still be picked. While no branch is picked, the other filter counts must cover the projects the rule keeps.
The Tree view must show the projects the Filters view selects, without the list’s search and paging. On a project page, the tree must apply the filters the list was last left with and must always show the viewed project.
Filtering, merge and deployment
GET /projects?branch=X must perform a case-insensitive substring match against every readable branch that contains
the project. Filtering must not be limited to the effective branch.
A clean project must be eligible to synchronize when its repository contains another branch. The merge target need not contain the project; a merge may introduce the project into that branch.
Deployment must retain its backend base-branch validation. UI visibility or enablement must not be the only deployment restriction.
History, comparison, archive/export and version-cache consumers must resolve projects through branch-aware workspace and index APIs. A historical lookup must retain its requested branch even when that branch has no project membership at its tip.
GET /projects/{projectId}/history must read the history of the folder the project occupies, in the branch the
project is on or in the branch its branch parameter names. A project’s history must be read through it, never by
the name the project is displayed under: that name follows a rename in rules.xml before the project is saved, while
the repository still holds the project under the name it was published with.
No endpoint reads a project’s history by name. GET /repos/{repo-name}/projects/{project-name}/history and its
/branches/{branch-name}/ form, which named the project by the name its repository published it under, were removed
in favour of the project-scoped endpoint above.
Project Creation and Copy
Request model
Every project creation mode must accept the same optional branch value:
- archive upload;
- Excel file creation;
- OpenAPI creation;
- template creation;
- project copy.
Multipart creation must use a request parameter. The JSON model of a copy must carry the equivalent component.
For a branch-capable repository, every New Project mode must show one Branch SuggestInput. It must suggest actual
repository refs, accept a free-form valid name and preselect the configured branch. A repository without branch
support must not show or submit the field.
The server must determine whether the submitted name exists. The request must not carry a separate create-branch flag.
Target resolution
The target resolver must:
- trim and validate the submitted value;
- match an existing branch case-insensitively and retain its actual ref spelling;
- use the matching branch-scoped repository view;
- create a valid absent branch from the repository base branch;
- prepare an unborn branch view when the repository has no refs;
- use the configured repository view when the value is omitted.
Selecting the configured base branch in an empty repository must prepare that view for the first write. Selecting another valid name in an empty repository must prepare an unborn view whose first project write establishes the selected ref.
Branch validation must apply Git structural rules and repository configuration before any absent ref is created. UI
validation must mirror the backend rules, while the backend remains authoritative and returns branch field errors.
Project and request validation must finish before ref creation. The branch-scoped repository must be resolved before the project write.
Write flow
The resolved Repository, not only its id, must flow through archive, builder, copy and publish services.
The write flow must:
- validate repository create capability, target-branch protection and global logical-name uniqueness;
- resolve or create the target branch through secured repository APIs;
- write through the branch-scoped mapped and path-checked repository;
- enforce per-file
CREATE,WRITEandDELETEpermissions for archive replacement; - finalize the project ACL and extensible tags from the branch-scoped project returned by the writer, as Access of a Removed Project describes;
- request a targeted index refresh and wait for publication;
- resolve workspace status from the exact target branch and indexed external name;
- return the creation result.
The archive lock identity must include the target branch.
Normal creation must reject an external name that identifies any logical project in the repository, including a membership hidden from the caller. Archive replacement is valid only when that project belongs to the selected branch. A membership in another branch is a name conflict.
Project copy must resolve the readable source by business name within the selected source repository. The name must identify exactly one readable source. An ambiguous same-named source must be rejected.
Branch-aware lookup must apply the same case-insensitive business-name fallback to mapped projects. A path-derived external suffix must not prevent duplicate detection, overwrite validation, branch switching or status resolution.
Excel, OpenAPI and template creation must open the project by default. Archive creation must leave it closed by default. An explicit requested status must override the applicable default.
Workspace open and refresh after publication are best effort. Their failure must not convert a committed, indexed creation or copy into a generic failure response.
If targeted publication fails or times out, the Git write and finalized metadata must remain durable. The response must report incomplete indexing instead of normal success, and a later refresh must make the project visible.
Creating a branch from a base branch copies the complete tree. Every base-branch project must therefore gain membership in the new branch after indexing. A newly written project that exists only in the target branch must use that branch as its home.
Project Deletion
Project deletion must act on the effective branch only. It must remain separate from whole-ref deletion.
The validator must allow deletion from any unprotected branch that contains the project while preserving lock,
version and permission checks. The delete service must require project-level DELETE, retain the selected
branch-scoped view and avoid replacing authorized project deletion with a parent-repository delete requirement.
Other users’ local copies must close only when (repositoryId, branch) matches the deleted membership.
The deletion flow must:
- capture the deleted entry’s external identity and ACL path;
- delete through the effective branch repository;
- invalidate the affected branch and wait for its snapshot publication;
- keep the logical project when another readable or hidden membership survives;
- remove the captured ACL only when no surviving membership uses that path or a covered descendant.
Mapped repositories must use the external design-project identity, which pairs the declared name with the folder hash, for the post-delete lookup. A display name is not a sufficient index key.
ACL cleanup must use a successfully refreshed snapshot of the whole repository. A scan failure, a branch the index failed to read, a concurrent branch change or a timeout must retain the ACL. No later refresh removes it: the creation of the next project in the folder decides it.
ACL identity does not include a branch. Entries at the same internal path share ACL behavior across branches. Entries at disjoint mapped paths retain distinct ACL identities.
A surviving membership is counted from the unfiltered index (DesignTimeRepository.getProjectsInAllBranches):
memberships the caller cannot read hold the folder too. The listing tells whether the repository is listed whole; a
partial one proves a folder held, never a folder free.
Access of a Removed Project
An ACL outlives every project removed without OpenL Studio removing it: a branch deleted on the Git server, a branch deleted while OpenL Studio was stopped, a folder deleted on disk. It must not pass to the next project created in the folder, whatever its name.
- Branch deletion removes the ACL of each project the deleted branch held alone, with the rule of project deletion:
once the index publishes the deletion, only when no remaining membership uses the path or a covered descendant, and
only from a snapshot of the whole repository. Each removed role is a
roleRevokedevent. The branch is gone by then, so a failure to remove an ACL is logged and fails nothing: the next creation in the folder replaces it. - Creation, from a template, from files, from an archive or by copy, decides before the write
(
ProjectCreationService.folderAcl), since the write publishes the new membership.ProjectFoldersreads the folders of the projects of every branch once and tells whether one of them is the folder or a folder below it:- held: the ACL stays, and the creator gets the CONTRIBUTOR role only when the folder has no ACL — an archive uploaded over a project keeps the access of that project, even while a branch fails to be read;
- free: the ACL found there is what a removed project left; the creator’s CONTRIBUTOR ACL replaces it, and each
role it held is a
roleRevokedevent; - unknown, while the repository is still indexed or a branch failed to be read and no known project holds the
folder: a folder with access entries is refused with
409project.create.indexing.message, since a branch not read yet may hold it.
- No refresh removes ACLs on its own. An early snapshot holds the default branch only, a degraded one misses the branches it failed to read, and a changed repository setting makes every project look gone at once: the cleanup would erase ACLs that cannot be restored.
Required Outcomes
- A project that exists in one non-base branch must appear as one logical project to every authorized user. The Projects tab lists it once its branch is picked, or while it is open in the user’s workspace.
- A project that exists in several branches must expose only readable memberships.
- The base branch must be home when it contains the project.
- A project without base-branch membership must use the deterministic home selection.
- An opened local branch must override a durable preference, and a valid preference must override the home branch.
- Removing or hiding the effective membership must fall back to the readable home branch.
- Branch switching must use the selected branch’s mapped path and repository view.
- Creation in an existing branch must not create or modify another ref.
- Creation in a valid absent branch must create that ref from the base branch and write only through its view.
- Creation in an empty repository must establish the selected branch on the first write.
- Invalid branch names must fail validation before ref creation.
- Every creation mode must use the same branch resolution, permission and protection rules.
- A normal successful write response must guarantee that the published index contains the new membership.
- A successful save or file write must guarantee that the next project read sees the written revision.
- Deleting one membership must leave the logical project visible while any membership survives.
- Deleting a project must not delete its branch.
- Deleting a branch must remain a whole-repository operation.
- A project created in a folder no branch holds must start with the access of its creator only.
- Project reads must use published snapshots and must not scan repository branches.
- Git trees must remain the sole source of project membership.