diff --git a/docs/audits/verification-log.md b/docs/audits/verification-log.md index 727ea03..707c328 100644 --- a/docs/audits/verification-log.md +++ b/docs/audits/verification-log.md @@ -186,3 +186,4 @@ Output was reduced to filenames and commit counts. The token artifact appears un | V-152 | Focused/full correspondence-inbox Jest; production build; accessible-role inspection; staged diff review | `job-tracker-ui` / repository root | Verify new-message drafting uses an owned job and connected send-capable provider while reusing draft/send safety | PASS — inbox 13/13; frontend 50 suites/198 tests; build pass; owned paged jobs load, read-only provider is excluded, selectors have accessible names, empty job/re-consent guidance is visible, and saved new message uses null thread; `b735963` pushed | JSDOM/mocked APIs only; hub selector is bounded to 100 recent owned jobs; browser/provider/send/production not exercised | New-message repository flow verified locally | | V-153 | Complete Phase 9 requirement reread; provider interface/scope/controller inventory; canonical hub and embedded correspondence action comparison | Repository root | Determine whether safe independent MAIL-001 implementation remains | PASS/PARTIAL — routing, suggestions/dismissal, link/relink/unlink, shared saved domain, provider-neutral reads/detail, reply/new-message drafts and explicit send are implemented; Gmail modify/Graph read-write and IMAP outgoing/category contracts are absent, so read/unread/pin/read-later/archive/spam/trash cannot be honestly enabled | Source inspection only; no provider/re-consent/browser/production action. Full SEC-009 deletion and real-provider gates remain | Repository scope implemented; external/authority verification blocked | | V-154 | Phase 4 and discovery/import execution-path trace; `dotnet test ... --filter FullyQualifiedName~JobDiscoveryControllerTests --no-restore`; focused `job-discovery.test.tsx` and `quick-capture.test.tsx`; full backend/frontend; `npm run build`; `git diff --check` | Repository root / `job-tracker-ui` | Verify honest NAV provenance, explicit deadline/retrieval mapping and source preservation through reviewed import | PASS — focused backend 1/1; focused UI 2 suites and 4/4; backend 630/630; frontend 50 suites and 198/198; production build and diff check pass; `511a9f6` pushed | One npm command was initially run from repository root and failed environmentally before the correct-directory run passed. Synthetic fixtures/mocked API only; no NAV/browser/production request. Jest retains its existing force-exit/open-handle warning | Repository provenance increment verified; live/browser gates remain | +| V-155 | Focused `job-discovery.test.tsx`; full frontend Jest; `npm run build`; staged diff review | `job-tracker-ui` / repository root | Verify honest submitted-search, loading/error/retry/empty states, bounded sorting and missing-data disclosure | PASS — focused 4/4; frontend 50 suites and 201/201; production build/TypeScript and diff check pass; `3f74b23` pushed | JSDOM/mocked API only; no NAV/browser/production request. Jest retains its existing force-exit/open-handle warning | Repository UX increment verified; browser/live gates remain | diff --git a/docs/verification/jobs-001-job-discovery.md b/docs/verification/jobs-001-job-discovery.md index 43a436a..cbc3c1d 100644 --- a/docs/verification/jobs-001-job-discovery.md +++ b/docs/verification/jobs-001-job-discovery.md @@ -18,11 +18,19 @@ Updated: 2026-08-10 - Full frontend: 50 suites, 198/198 passed; existing Jest force-exit/open-handle warning remains. - Production frontend build and TypeScript checks passed. - `git diff --check` passed with line-ending notices only. -- Implementation commit: `511a9f6`. +- Implementation commits: `511a9f6`, `3f74b23`. + +## Result-state and assessment increment + +- Initial guidance is distinct from a completed zero-result search. +- Search criteria are trimmed and retained for an explicit retry after failure; stale results are cleared before a new request. +- Results expose a count and bounded recent-update, nearest-deadline and title sorting. Missing deadlines sort last. +- Missing location and work-arrangement data are disclosed instead of inferred. +- Cards use equal-height action placement and responsive result controls. +- Focused UI: 4/4; full frontend: 50 suites and 201/201; production build passed. ## Not yet verified - No live NAV, browser, provider or production request was performed. - Required 375/768/1440, light/dark, keyboard, Norwegian/long-content and end-to-end import checks remain. -- Sorting controls, submitted-search empty state, richer error/retry behavior and unavailable work-mode disclosure remain in JOBS-001. - +- Browser end-to-end sorting/retry/import and duplicate-feed regression remain before repository scope can close. diff --git a/docs/work-programmes/master-progress.md b/docs/work-programmes/master-progress.md index 6d9c8bb..478aade 100644 --- a/docs/work-programmes/master-progress.md +++ b/docs/work-programmes/master-progress.md @@ -3,7 +3,7 @@ Updated: 2026-08-10 - **Overall programme status:** Active. Seven packages are locally verified; twenty packages through MAIL-001 are implemented with automated/runtime evidence but blocked from applicable browser/provider/production gates; JOBS-001 is now in progress. Gitea run 609 passes complete pull-request CI in 4m20s; DEP-001 now awaits approved merge-to-main and production verification only. -- **Current work package:** `JOBS-001` — job-search source and assessment redesign (`IN PROGRESS`); verified NAV provenance/import preservation is committed, and submitted-search state/sort/scanability is next. +- **Current work package:** `JOBS-001` — job-search source and assessment redesign (`IN PROGRESS`); provenance, import preservation and result-state/sort/scanability increments are committed; duplicate and browser evidence are next. - **Completed work packages:** None are `DONE`; all repository security/AI packages still have applicable browser, provider and/or production gates. - **Locally verified work:** SEC-001, SEC-002, SEC-003, SEC-005A, CORE-001, PROD-002 and DEP-001 (`VERIFIED LOCALLY`). - **Implemented, verification incomplete:** SEC-004, SEC-005B, SEC-008, CORE-002, BG-001, OPS-001A/B/C, POL-001/002, AI-001/002/003/004, UX-001/002, QA-001, CAREER-001, CAREER-002 and MAIL-001 (`IMPLEMENTED — NOT VERIFIED`). MAIL repository flows are implemented; provider mutation/re-consent, browser, deletion and production gates remain. @@ -12,7 +12,7 @@ Updated: 2026-08-10 - **Deferred work:** None. Conditional multi-replica coordination, model deletion, realtime operation delivery and unrelated production changes remain outside current packages. - **Next five work packages:** JOBS-001 job-search/application redesign; HOME-001 homepage/Pro promotion; UX-003 authentication/profile polish; PRODUCT-001 homepage/Pro claims; JOBS-002 application workspace redesign. SEC-006/007 resume after package-index permission. - **Status counts:** 7 `VERIFIED LOCALLY`; 20 `IMPLEMENTED — NOT VERIFIED`; 1 `IN PROGRESS`; 7 `NOT STARTED`; 5 `BLOCKED`; 0 `DONE`; 0 `DEFERRED`. -- **Test status:** backend 630/630; frontend 50/50 suites and 198/198 tests; Playwright smoke 4/4; npm audit 0 vulnerabilities; production build passes. JOBS-001 provenance backend 1/1 and discovery/import UI 4/4 pass. DEP-001 focused router 24/24; MAIL-001 draft/new-message UI 13/13, draft API/idempotency/rotation 10/10, readable draft export 4/4, draft persistence 1/1, Free send 7/7, provider states 9/9, hub unlink 8/8 UI and 2/2 API, shared context 10/10, prior send export/cascade 16/16, recovery/send 10/10, legacy follow-up/backend worker 10/10, legacy UI 2/2, delivery/capability 18/18, provider/correspondence 5/5 and hub detail 5/5. EF model-current and SQLite/MariaDB up/down draft scripts pass; a full blank-chain SQLite apply remains blocked by pre-existing JT-019 drift. Jest open-handle/slow-run behavior remains recorded. +- **Test status:** backend 630/630; frontend 50/50 suites and 201/201 tests; Playwright smoke 4/4; npm audit 0 vulnerabilities; production build passes. JOBS-001 provenance backend 1/1 and discovery/import/result-state/sort UI 7/7 cumulatively pass. DEP-001 focused router 24/24; MAIL-001 suites remain as recorded. EF model-current and SQLite/MariaDB up/down draft scripts pass; a full blank-chain SQLite apply remains blocked by pre-existing JT-019 drift. Jest force-exit/open-handle behavior remains recorded. - **Deployment status:** Gitea pull-request run 609 passed the complete CI job in 4m20s. Deploy was intentionally skipped because the workflow deploys only a `push` to `main`; live remains unchanged. No merge/deployment was performed directly, no production migrations were run and the AI operation worker remains disabled by default. - **Production status:** Unchanged and unverified. No provider/model call, model pull, external request or paid API occurred. - **Known regressions:** None found by automated/local browser checks. Jest still needs `--forceExit` and reports its existing open-handle notice. Email-provider/send tests are fake/local only; real delivery is not claimed. Current MAIL browser evidence is 1280×720 only because the browser surface could not resize or perform native Tab traversal. Interrupted attempts are aged after 15 minutes and notified without retry; the five-minute scan is unmeasured on a large ledger. Direct clean EF-only SQLite migration still hits the pre-existing historical blank-chain defect before later migrations; normal startup owns reconciliation. Cross-feature monthly AI usage accounting remains a rollout gap. diff --git a/docs/work-programmes/master-work-plan.md b/docs/work-programmes/master-work-plan.md index b0163ce..49609dc 100644 --- a/docs/work-programmes/master-work-plan.md +++ b/docs/work-programmes/master-work-plan.md @@ -669,9 +669,9 @@ Ordering differences from the suggested list: - **Required production verification:** official NAV/safe provider smoke; unavailable providers labeled. - **Status:** `IN PROGRESS`. - **Blocker:** none for repository inspection and synthetic implementation; official source/browser/production validation remains external. -- **Evidence:** `docs/verification/jobs-001-job-discovery.md`; V-154. Verified NAV source name/key, searched acquisition type, request retrieval timestamp, explicit `applicationDue` mapping and reviewed import-source persistence; focused backend 1/1, UI 4/4, backend 630/630, frontend 198/198 and production build pass. -- **Commit:** `511a9f6` (honest NAV discovery provenance and import-preservation regression). -- **Remaining work:** improve submitted-search loading/empty/error/retry behavior, sorting and assessment scanability without inventing missing work-mode data; then perform required browser, live NAV and production gates. Add source filtering only when more than one real source is available. +- **Evidence:** `docs/verification/jobs-001-job-discovery.md`; V-154–V-155. Verified NAV source/acquisition/retrieval/deadline metadata, reviewed import-source persistence, honest initial/empty/error/retry states, result count, three bounded sorts and explicit missing location/work-mode disclosure; focused backend 1/1, focused UI 4/4, backend 630/630, frontend 201/201 and production build pass. +- **Commit:** `511a9f6` (honest provenance/import regression), `3f74b23` (result states, retry, sort and scanability). +- **Remaining work:** add duplicate-feed regression and browser verification for mocked results/import at required widths/themes/keyboard/long Norwegian content; then perform live NAV and production gates when authorized/available. Add source filtering only when more than one real source is available. ### JOBS-002 — Applications table and embedded workspace diff --git a/docs/work-programmes/session-handoff.md b/docs/work-programmes/session-handoff.md index f4c43cd..1d0760d 100644 --- a/docs/work-programmes/session-handoff.md +++ b/docs/work-programmes/session-handoff.md @@ -2,17 +2,17 @@ Updated: 2026-08-10 -- **Exact current task:** JOBS-001 — improve submitted-search state, sorting and assessment scanability after the verified provenance increment. -- **Last completed step:** committed and pushed `511a9f6`, which exposes honest NAV source/acquisition/retrieval/deadline metadata and verifies source/country preservation through the reviewed create-job request. +- **Exact current task:** JOBS-001 — add duplicate-feed regression and local browser evidence after the provenance and result-state increments. +- **Last completed step:** committed and pushed `3f74b23`, which distinguishes initial/empty/error/loading states, retries the last trimmed search, adds three result sorts and discloses unavailable location/work mode. - **Files currently modified:** authoritative JOBS-001 tracking, decision and verification evidence only; application/test code is committed. -- **Commands already run:** Phase 4/source/import trace; focused discovery backend test; focused discovery/quick-capture UI tests; full backend/frontend; production frontend build; diff review. See V-154 and prior records. -- **Test results:** npm audit 0 vulnerabilities; Gitea pull-request run 609 previously passed; backend 630/630; frontend 50/50 suites and 198/198 tests; JOBS focused backend 1/1 and UI 4/4; Playwright 4/4 from DEP-001; production build passes. Jest retains its known force-exit/open-handle warning. +- **Commands already run:** Phase 4/source/import trace; focused discovery backend/UI/quick-capture tests; full backend/frontend after provenance and full frontend after result states; production frontend builds; diff reviews. See V-154–V-155. +- **Test results:** npm audit 0 vulnerabilities; Gitea pull-request run 609 previously passed; backend 630/630; frontend 50/50 suites and 201/201 tests; JOBS cumulative focused backend 1/1 and UI 7/7; Playwright 4/4 from DEP-001; production build passes. Jest retains its known force-exit/open-handle warning. - **Services currently running:** none on task-owned ports 3000/5202. Playwright stopped its disposable API/Next servers. Pre-existing Docker services were not changed. - **Temporary files or processes:** no task-owned process is running and the failed disposable migration database was removed. Existing synthetic browser evidence/account and startup-created local backup remain documented. No provider account, real email, private content, paid service or production service was accessed. - **Production changes currently active:** none. No deployment, migration, provider connection/sync/send or production payload occurred. - **Rollback status:** downgrade `20260810080858_AddEmailDraftClientRequestId`, then `20260810075206_AddEmailDrafts`, before reverting draft commits; then follow the existing MAIL rollback order (`ee5ef7e`, `449faeb`, `123fc55`/`e9937ac`, ledger downgrade before `653f011`). No production migration/deploy/provider grant occurred. -- **Uncommitted changes:** JOBS-001 tracking/decision/evidence for V-154 only; commit and push before the next implementation increment. +- **Uncommitted changes:** JOBS-001 tracking/evidence for V-155 only; commit and push before browser work. - **Known failures:** live deployment is not verified because PR deploy is intentionally skipped and the active branch is not approved for merge. Draft export/API/UI, full thread/category actions and non-Gmail review remain; existing accounts need re-consent and IMAP stays read-only. A clean full-chain SQLite apply fails in the pre-existing JT-019 migration before the new draft migration. Browser/provider/MariaDB/production unavailable or unverified; recovery scan performance is unmeasured at large ledger scale; Jest open handles; SEC-006 parser dependency work is still separately gated; parser isolation remains SEC-007. -- **Exact next action:** add an explicit not-yet-searched versus no-results state, bounded client sort and retry behavior to `JobDiscoveryPage`, with loading/error/empty/sort tests; do not add a one-option source filter or infer work mode. +- **Exact next action:** add a backend duplicate/inactive-event regression, then a mocked Playwright discovery journey covering responsive layout, theme, keyboard-visible controls, long Norwegian data and reviewed URL import without contacting NAV. - **Work that can continue independently:** remaining JOBS-001 repository UX/tests and later UX packages. MAIL provider mutations await scopes/re-consent; SEC-006/007 await package-index permission; PROD-001/003/004 await production access. - **Decisions still required from the user:** none for synthetic/code-inspected repository work. Any provider connection or send test, internet/package upgrades, private data, external/paid providers and production actions retain explicit approval/safety gates; SEC-009 retention/legal policy remains unresolved.