Merge TASK-007 manual testing adapter into codex
This commit is contained in:
@@ -15,7 +15,7 @@ This reconciliation adds Context System 1.0 and Workflow 2.0 documentation only.
|
||||
- TASK-001 is Complete. Captain accepted the snapshot script on 2026-11-04 after running it from the project root. The script writes ZIPs to ignored `docs/snapshots/`; `.worktrees/` is also ignored.
|
||||
- No application tests, lint, build, or runtime checks were run as part of this documentation reconciliation.
|
||||
- Captain approved TASK-001's branch/worktree convention. Future-task, general merge, and release conventions remain pending in `DECISIONS.md`.
|
||||
- No manual-test/testtask adapter was found in tracked repository files.
|
||||
- The initial reconciliation predated the manual-test adapter.
|
||||
|
||||
## Known limitations of this record
|
||||
|
||||
@@ -44,7 +44,7 @@ Captain accepted TASK-002 on 2026-11-07 and authorized its local integration int
|
||||
- Login issues access tokens on first sign-in and after logout, and the login and refresh responses agree on user identity. The Users page now shows loading, empty and request-error states.
|
||||
- The authentication checks require `login_disabled = false`. Rows left `NULL` by the old nullable migration are denied authentication. Existing invalid or host-absolute folder assignments require admin reassignment to virtual paths. TASK-002 includes no data migration, and local account and assignment data were not inspected.
|
||||
- On 2026-11-25, all ten API tests passed with disposable SQLite and media fixtures. Python syntax checks, frontend production build and diff checks passed. Frontend lint could not run because ESLint configuration is missing. Python datetime and Sass deprecation warnings remain.
|
||||
- TASK-003 covers ordinary-user browsing, TASK-004 covers download grants and resume, and TASK-005 covers the rest of the admin workflow. Target-Pi deployment and cookie/TLS configuration remain unverified. TASK-007's manual-test adapter awaits separate Captain validation in its own worktree.
|
||||
- TASK-003 covers ordinary-user browsing, TASK-004 covers download grants and resume, and TASK-005 covers the rest of the admin workflow. Target-Pi deployment and cookie/TLS configuration remain unverified. TASK-007 records the manual-test adapter separately.
|
||||
|
||||
## TASK-003 assigned-folder browsing
|
||||
|
||||
@@ -53,3 +53,7 @@ Captain accepted TASK-002 on 2026-11-07 and authorized its local integration int
|
||||
- The API returns one directory at a time and verifies the current assignment on each call. The server reports a missing media root or storage I/O errors as unavailable. Detecting a disconnected mount that still looks like a readable local directory requires deployment-level mount checks under TASK-006.
|
||||
- All 15 API tests, Python syntax, production build and diff checks passed. Frontend lint is still blocked by the absent ESLint configuration. Chromium exercised the isolated snapshot at 1280 × 800 and 375 × 812. The existing header references a missing `/logo.png` asset in both views.
|
||||
- The TASK-007 adapter produced and verified the snapshot. Its readiness HTTP check timed out on concurrent cold frontend and browser startup, so the successful QA run delayed the adapter's Firefox launch. The candidate passed Chromium browser QA and the disposable session cleaned up. The TASK-003 snapshot was absent at integration preflight.
|
||||
|
||||
## TASK-007 isolated manual testing
|
||||
|
||||
Captain accepted the graphical Firefox test with TASK-002 on 2026-11-25. The adapter verified snapshot hashes and HTTP readiness. Shutdown removed the owned snapshot. All six adapter tests passed. The integrated entry point is `./scripts/testtask.sh NNN`. See `scripts/README.md` for prerequisites and the session lifecycle.
|
||||
|
||||
@@ -94,3 +94,10 @@ The 2026-11-04 snapshot references work on `codex` while the existing proposal s
|
||||
- Success returns `{root, dirs, files}` for the requested folder's direct children. `root` is the requested virtual path. `dirs` contains directory names. `files` contains `{name, size, ref}` entries with byte sizes and slash-delimited virtual references such as `/folder/video.mp4`. The client URL-encodes the query value once. The server resolves the assigned root and requested directory on each call without following symlinks. Success responses specify `Cache-Control: no-store`.
|
||||
- The endpoint returns 401 for invalid authentication, 403 for a missing or unusable assignment, 400 for invalid virtual path structure, 404 for a folder missing within the assignment, and 503 for unavailable media or storage errors. A readable empty folder returns 200 with empty arrays. Sign-in omits the stored assignment from the session payload.
|
||||
- TASK-004 may use `ref` as a file reference in its grant request body. The download-grant endpoint must recheck current ownership, containment and file existence. The opaque download URL follows PRD-003.
|
||||
|
||||
## WF-005: TASK-007 testtask implementation
|
||||
|
||||
- Accepted by Captain on 2026-11-05: codex base at cd6d6b3, task/TASK-007-testtask, .worktrees/TASK-007. Merge and deployment remain Captain authority.
|
||||
- Use the existing standalone roborto-testtask engine with a project adapter. Safe source copies are disposable testing snapshots, not Git checkouts or development sources. The adapter discovers a unique checked-out task/TASK-###-* branch and includes current tracked/permitted untracked source.
|
||||
- Flask/Vite bind only 127.0.0.1:5502/5503, with an isolated Vite proxy. Reuse existing dependency installations without installs or runtime source changes. Mutable Vite cache goes into run state.
|
||||
- SQLite, accounts and sample media are generated per session; no live state is copied. Candidate must support FOLDERSHARE_DATABASE_URI. No application code is patched to make the harness work.
|
||||
|
||||
+4
-4
@@ -6,16 +6,16 @@ The implementation came from `.worktrees/TASK-003` on `task/TASK-003-secure-brow
|
||||
|
||||
## Repeatable browser check
|
||||
|
||||
From the primary repository root, launch the exact candidate with the TASK-007 adapter. Both loopback ports 5502 and 5503 must be free.
|
||||
From the primary repository root, launch the exact candidate with the integrated TASK-007 adapter. Both loopback ports 5502 and 5503 must be free.
|
||||
|
||||
```bash
|
||||
PATH="$HOME/.local/bin:$PATH" ./.worktrees/TASK-007/scripts/testtask.sh 003
|
||||
PATH="$HOME/.local/bin:$PATH" ./scripts/testtask.sh 003
|
||||
```
|
||||
|
||||
Choose Firefox and use the disposable accounts and password printed by the launcher at `http://127.0.0.1:5503/`. The adapter starts with `sample.txt` at the assigned root. To exercise nested and empty-folder navigation, add fixtures in a second terminal from the primary root after the adapter reports readiness.
|
||||
|
||||
```bash
|
||||
task_run=$(cat .worktrees/TASK-007/.test-worktrees/task-003/.testtask-owner) &&
|
||||
task_run=$(cat .test-worktrees/task-003/.testtask-owner) &&
|
||||
mkdir -p -- "$task_run/media/friends/Series/Season 1" "$task_run/media/friends/Empty" &&
|
||||
printf 'Disposable QA fixture\n' > "$task_run/media/friends/Series/Season 1/episode.txt"
|
||||
```
|
||||
@@ -28,4 +28,4 @@ Stop the owned test session using Ctrl-C in its terminal. The adapter removes th
|
||||
|
||||
## Validation
|
||||
|
||||
All 15 API tests, Python syntax, production frontend build and whitespace checks passed again before integration. The build and tests retain existing Sass and datetime deprecation warnings. ESLint configuration is absent. Headless Chromium previously verified the disposable candidate at widths of 1280 and 375 pixels, including keyboard navigation, share outage and retry, a removed folder, unassigned access, and admin folder navigation. The header's existing `/logo.png` asset is missing. The adapter's cold startup can time out while Vite and Firefox start together. Agent QA delayed Firefox startup and verified adapter readiness and cleanup. TASK-007 still awaits separate Captain acceptance.
|
||||
All 15 API tests, Python syntax, production frontend build and whitespace checks passed again before integration. The build and tests retain existing Sass and datetime deprecation warnings. ESLint configuration is absent. Headless Chromium previously verified the disposable candidate at widths of 1280 and 375 pixels, including keyboard navigation, share outage and retry, a removed folder, unassigned access, and admin folder navigation. The header's existing `/logo.png` asset is missing. The adapter's cold startup can time out while Vite and Firefox start together. Agent QA delayed Firefox startup and verified adapter readiness and cleanup. Captain separately accepted TASK-007 after the graphical TASK-002 test on 2026-11-25.
|
||||
|
||||
@@ -18,7 +18,7 @@ The repository contains a folder-sharing web application. `react/` is a React 18
|
||||
- `react/package.json` defines `npm run dev`, `npm run build`, `npm run lint`, and `npm run preview`.
|
||||
- `react/vite.config.js` defines the development API proxy.
|
||||
- `api/config/requirements.txt` lists Python dependencies. Run `python -m unittest discover -s api/tests -v` from the repository root with the API environment to exercise the tracked API regression suite.
|
||||
- No tracked CI, container, deployment, Git workflow, or manual-test/testtask documentation was found during reconciliation.
|
||||
- No tracked CI, container or deployment configuration was found during initial reconciliation. The installed manual-test adapter is described below.
|
||||
- Existing UI styling references are `react/src/styles/` and component `*.module.scss` files; no separate style guide is tracked.
|
||||
|
||||
Local environment files and runtime data under `api/` are ignored by Git. Their contents are not part of this overview.
|
||||
@@ -33,3 +33,7 @@ Local environment files and runtime data under `api/` are ignored by Git. Their
|
||||
## Product direction accepted 2026-11-04 (requirements; not verified implementation)
|
||||
|
||||
FolderShare is intended as a private, read-only, authenticated file browser and downloader for selected friends, hosted on a Raspberry Pi on Captain's LAN. The Pi will access an existing video library through a shared/mounted folder. Captain administers accounts and each account's accessible folder. An intended hostname is `share.roborto.net` (subject to DNS/network-access design). V1 permits browsing and single-file downloads; multi-select file/folder ZIP downloads are deferred. These are product requirements, not claims that the current application implements them safely.
|
||||
|
||||
## Manual testing adapter
|
||||
|
||||
`scripts/testtask.sh`, `.roborto/testtask.conf` and `.roborto/testtask-hook` adapt the installed `roborto-testtask` engine using `scripts/testtask_adapter.py`. The adapter uses disposable source copies, SQLite/accounts/media and loopback Flask/Vite services. See `scripts/README.md`; existing local Python/Node installations are prerequisites, not bundled dependencies.
|
||||
|
||||
@@ -101,3 +101,19 @@ The scopes below translate Captain's explicit product requirements into implemen
|
||||
## Future feature concept (no numbered task yet)
|
||||
|
||||
- Batch file/folder selection and prepared or streamed ZIP download (PRD-004). Scope a task only when Captain schedules it. ZIP entries must reuse V1 path/permission protections; no compression-heavy default for large existing videos.
|
||||
|
||||
## TASK-007: Configure testtask
|
||||
|
||||
- Status: Complete. Captain confirmed the graphical test worked on 2026-11-25 and authorized commit and merge into codex.
|
||||
- Objective: Make the installed roborto-testtask engine usable for isolated FolderShare manual testing.
|
||||
- Scope: Wrapper, engine configuration, project lifecycle hook, exact safe snapshots of checked-out task branches including uncommitted/permitted untracked files, disposable SQLite/accounts/media, loopback Flask/Vite services, readiness, cleanup and documentation.
|
||||
- Non-goals: Application changes, copying live databases/media/secrets, dependency installation, containerization, merge or deployment; do not modify TASK-002.
|
||||
- Acceptance: One documented command prepares TASK-002, verifies snapshot hashes, starts isolated API/frontend, passes HTTP smoke checks, prints disposable credentials, and removes only owned state on exit. Repeated runs work; occupied ports and existing snapshots fail safely; malformed IDs/unknown sources are rejected. Captain manual browser validation required.
|
||||
- Dependencies: Installed roborto-testtask, Firefox, Python API environment, Node >=18 and existing react/node_modules; candidate must support FOLDERSHARE_DATABASE_URI (TASK-002).
|
||||
- Branch/worktree: Captain approved codex base, task/TASK-007-testtask and .worktrees/TASK-007. Captain authorized local integration into codex on 2026-11-25.
|
||||
- Risks: Snapshot omissions, stale source, secret inclusion, unsafe cleanup, port conflicts and dependency drift. Use hash manifests, exclusions, ownership markers and loopback binding.
|
||||
- Validation: Shell/Python syntax, adapter safety tests and engine lifecycle smoke using TASK-002; record graphical-browser limitations honestly.
|
||||
- Specialist: Roborto Project Context and Webapp Feature; bounded diff review.
|
||||
|
||||
- TASK-007 evidence: Six adapter safety tests pass; shell/Python syntax and diff checks pass. Repeated real-server lifecycle runs pass, including headless Firefox startup, frontend/API HTTP readiness, proxy logins and disabled-login denial; snapshots removed on exit. Occupied-port refusal preserves an unrelated listener. The adapter uses existing dependencies and leaves the source application intact.
|
||||
- Captain accepted the graphical Firefox run using TASK-002. Six adapter tests passed again and the owned snapshot was removed on shutdown.
|
||||
|
||||
Reference in New Issue
Block a user