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:
12. Handoff Checklist
Before implementation, the agent must confirm:
TSK-010-01 Repository ownership audit and directory classification
Branch:
web-front-ownership-auditScope: ownership audit only for repository boundary classification
In scope:
src,test,scripts,docs,backend,deploy/api-worker-shell,infra, root config files, GitHub workflowsOut-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 issuesRequired validation commands:
git status --short --branch,rg --files, targetedrg -nlookups,git diff --checkRequired 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-issues1. 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
Cloudflare Pages -> Web Front -> provider APIsrcis the intended Web Front boundary;backendanddeploy/api-worker-shellremain transitional assets inside the same repository.web-front-ownership-audittypescript-coverage-95must not be mixed into this work.4. Problem Statement
5. Decisions Already Made
web-front-ownership-audittypescript-coverage-95workspace6. Scope And Non-Goals
In scope:
src,test,scripts,docs,backend,deploy/api-worker-shell,infra, root config files, and GitHub workflows.keep / migrate / remove-candidate / reference-onlyclassification table.Out of scope:
Stop and ask before:
7. Target Design
Architecture Boundary Gate
8. Issue Structure
Parent issue:
TSK-010-00 Epic: Web Front service ownership hardeningSub-issues:
TSK-010-01 Repository ownership audit and directory classificationTSK-010-02 README/Wiki ownership alignmentTSK-010-03 CI and repository boundary guardrailsTSK-010-04 Traceability and completion evidence9. Implementation Order
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 --branchrg --filesrg -nlookups for ownership-related pathsgit diff --checkRequired remote checks:
Required manual checks:
11. Completion Evidence
The work is complete only when these are recorded:
12. Handoff Checklist
Before implementation, the agent must confirm: