Skip to content

TSK-010-01 Repository ownership audit and directory classification #370

@ClarusIubar

Description

@ClarusIubar

TSK-010-01 Repository ownership audit and directory classification

Branch: web-front-ownership-audit
Scope: ownership audit only for repository boundary classification
In scope: src, test, scripts, docs, backend, deploy/api-worker-shell, infra, root config files, GitHub workflows
Out-of-scope: README/Wiki edits, CI changes, runtime refactors, directory removals, API/DB/OAuth behavior changes
Public behavior: unchanged
Interface or data flow: repository tree -> ownership audit -> classification table -> follow-up docs and CI child issues
Required validation commands: git status --short --branch, rg --files, targeted rg -n lookups, git diff --check
Required evidence: classification table, PR link, merge SHA, validation outcomes, parent issue readback
Fail-closed failure modes: stop if runtime contract changes are required; stop if workspace/branch mismatch appears
Canonical Skill Or Policy Source: AGENTS.md, UNIFIED_AGENT_CONSTITUTION.md, LLM_CODE_GENERATION_PROTOCOL.md, to-issues

1. One-Sentence Summary

Audit this repository and fix the baseline ownership map so later work can separate Web Front service ownership from transitional backend and worker assets without changing runtime behavior.

2. Why This Work Exists

The repository was split with the intent of becoming a Web Front service repository, but the actual tree still contains backend, deploy/api-worker-shell, infrastructure, mixed tests, and mixed operational documentation. If this baseline is not fixed first, later documentation or CI guardrails will be arbitrary and future changes can keep mixing provider-side implementation into the Web Front repository.

3. Current Context

4. Problem Statement

Problem Why it matters
Ownership is not fixed at the directory level Docs and CI cannot enforce the correct boundary without a baseline
Provider-side assets still live beside Web Front code Future agents can accidentally modify backend/worker code in this repo
Current workspace is dirty on another child issue Implementation can mix unrelated work unless isolated

5. Decisions Already Made

Decision Rule
Branch web-front-ownership-audit
API contract unchanged
DB schema unchanged
User-facing copy unchanged unless explicitly scoped
Auth/OAuth path preserve known-working path
GitHub workflow do not mix with dirty typescript-coverage-95 workspace
Behavioral guardrails audit first, then docs, then CI guardrails

6. Scope And Non-Goals

In scope:

  • Inventory src, test, scripts, docs, backend, deploy/api-worker-shell, infra, root config files, and GitHub workflows.
  • Produce a keep / migrate / remove-candidate / reference-only classification table.
  • Write the baseline ownership rules that later child issues must follow.

Out of scope:

  • README or Wiki edits.
  • CI/workflow behavior changes.
  • Removing directories.
  • Runtime code refactors.

Stop and ask before:

  • Changing API contract, DB schema, OAuth flow, or any provider-side runtime behavior.

7. Target Design

repository tree
-> ownership audit
-> classification table
-> Web Front ownership baseline
-> later docs and CI child issues

Architecture Boundary Gate

Durability: durable
Architecture profile: documented sections
Responsibility map: this child issue owns the stable ownership baseline; later child issues own docs, CI, and traceability changes
Dependency direction: audit reads repository structure and feeds later docs/CI work; no runtime dependency changes
External dependency boundary: GitHub issue/checklist and local repository tree only
Validation seam: inventory output, classification table, and git diff/test-free audit evidence
Scope map: audit document and issue evidence only
Architecture risk: misclassification of transitional backend/worker assets
Single-file exception: none

8. Issue Structure

Parent issue:

Sub-issues:

9. Implementation Order

Order Issue Intent Completion evidence
1 #370 capture the ownership baseline classification table and audit output
2 #371 align README and Wiki to the baseline docs diff and validation
3 #372 enforce repository boundary guardrails CI/source-quality checks
4 #373 record final evidence PR/merge/validation links

10. Validation Plan

Validation target: later child issues can consume the ownership baseline without changing runtime behavior.

Test gate: audit-only child issue, no runtime behavior test changes in this slice.

Required local checks:

  • git status --short --branch
  • rg --files
  • targeted rg -n lookups for ownership-related paths
  • git diff --check

Required remote checks:

Required manual checks:

  • verify the classification table matches the actual top-level directories and workflow intent

11. Completion Evidence

The work is complete only when these are recorded:

  • Scope-first report filename
  • Scope-ID and required report metadata
  • PR link
  • Commit SHA
  • Test command outputs
  • CI links if any
  • Security/quality review result if any
  • Main merge commit SHA
  • Release note or documentation link if required

12. Handoff Checklist

Before implementation, the agent must confirm:

  • I am on the correct branch.
  • I have read the relevant repository instructions.
  • I know the parent issue and sub-issue.
  • I know what must not change.
  • I know the simplest acceptable implementation path.
  • I know which files or boundaries I must not touch.
  • I know what evidence is required before completion.
  • I will stop if the task crosses an out-of-scope boundary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsREADME, Wiki, runbook, and release note workarea:frontendReact UI, hooks, coordinator, and client service workpriority:highHigh priority workquality:solidSOLID principle hardeningtopic:architectureResponsibility boundaries, dependency flow, and module shapetype:refactorRefactoring without product behavior changes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions