Skip to content

Commit 940ede7

Browse files
docs: sync trusted-lan review readiness
1 parent bb54753 commit 940ede7

7 files changed

Lines changed: 80 additions & 61 deletions

File tree

‎AGENTS.md‎

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Jangan ulangi pekerjaan berikut selama trigger pada kolom terakhir tidak terjadi
150150
| FastAPI service | `src/skillpulse/api/`, `tests/test_api.py` | DONE-LOCAL | contract or endpoint requirement changes |
151151
| API container | `Dockerfile`, `.dockerignore`, `reports/api_container_smoke.json` | DONE-LOCAL | dependencies, service command, or deployment target changes |
152152
| Streamlit demo slice | `src/skillpulse/ui/`, `reports/ui_smoke.json`, `reports/ui_automated_qa.json`, `reports/ui_browser_qa.json` | DONE-THREE-ENGINE-RESILIENCE / STATIC-MEDIA / HUMAN-A11Y-VIDEO-GATE | contract, journey, browser, resilience, or media requirement changes |
153-
| Human accessibility/media review pack | `configs/human_accessibility_review.template.json`, `docs/human_accessibility_media_review.md`, `src/skillpulse/release/human_review.py` | READY-HUMAN-GATE v1 | review schema/completion rules change or genuine human evidence becomes available |
153+
| Human accessibility/media review pack | `configs/human_accessibility_review.template.json`, `docs/human_accessibility_media_review.md`, `src/skillpulse/release/human_review.py`, `scripts/run_demo.ps1` | READY-HUMAN-GATE v1.1 / TRUSTED-LAN-READY | review schema/completion rules change or genuine human evidence becomes available |
154154
| Aggregate market snapshot | `src/skillpulse/market/`, `configs/market_snapshot.json`, `reports/market_snapshot_quality.json`, `docs/market_snapshot_metrics.md` | DONE-SNAPSHOT-v0.1 | processed source, taxonomy/extractor, metric contract, or snapshot window changes |
155155
| Annotation rules | `docs/annotation_guidelines.md` | DONE v0.2 | ambiguity berulang ditemukan |
156156
| Explainable matcher | `src/skillpulse/matching/` | DONE v0.1 | gold labels atau matching requirements berubah |
@@ -289,27 +289,26 @@ berada di Git/reports.
289289

290290
<!-- HANDOFF:START -->
291291
**Last handoff:** 2026-08-12
292-
**Completed:** Added continuous dependency auditing and CodeQL `security-extended`, then remediated every
293-
finding from the first scan without dismissals. The fixes constrain browser-QA proxying to exact loopback
294-
targets and allowlisted paths, replace two polynomial-regex paths with linear string checks, and prevent
295-
row-derived pipeline/market values from reaching CLI logs. Pushed security automation commit
296-
`c21e6981a3718a608b43cb9c1be535da8cde41d1` and remediation commit
297-
`0def1fc15b5457dda8bcdbaf59cfb13c3b36d9d7` to `origin/main`.
298-
**Evidence:** Ruff passed and `pytest -q` reports 127 passed. GitHub CI run `31572435653` passed tests,
299-
publication guard, a 72-third-party-package `pip-audit` with zero known vulnerabilities, and three-engine
300-
browser QA. CodeQL run `31572435689` passed; all five initial alerts (one critical SSRF, two high ReDoS,
301-
and two high sensitive-data logging findings) are `fixed`, with zero open CodeQL and secret-scanning
302-
alerts. Publication guard passed the complete 120-file / 1,354,078-byte remediation snapshot.
303-
**Limitations/blockers:** Security automation is defense in depth, not a penetration or legal review.
304-
Dependabot version-update PRs are configured, but GitHub vulnerability alerts are disabled and require an
305-
owner-approved repository-setting change. No human accessibility observation, attestation, real-device
306-
result, or narrated video exists; M5c remains human-gated. ML-QG-2 remains 0/100, ML-QG-3 remains 0/50,
307-
salary remains 77/555, and public deployment remains owner-gated. Private review records/media stay local.
292+
**Completed:** Removed the M5c physical-device execution blocker by extending the existing launcher with
293+
an explicit `-AllowLan` review mode. Default behavior and FastAPI stay loopback-only; only Streamlit may
294+
bind to IPv4 LAN, private URLs are printed locally, exposure warnings are mandatory, headless mode is
295+
forced, and `-AllowLan -SmokeTest` fails before listener startup. Pushed implementation commit
296+
`bb5475301f6dfe367cdfdc3e0dff4c8aaecf4469` to `origin/main`.
297+
**Evidence:** PowerShell parsing, nine focused human-review/launcher tests, the loopback start-health-stop
298+
smoke on ports 18280/18701, listener cleanup, Ruff, and all 129 tests passed. LAN mode was intentionally
299+
not activated by automation. Publication guard passed the complete 120-file / 1,361,884-byte snapshot.
300+
CI run `31602756546` passed tests, dependency audit, guard, and three-engine browser QA; CodeQL run
301+
`31602756481` passed with zero open CodeQL or secret-scanning alerts.
302+
**Limitations/blockers:** M5c human evidence remains 0/9: no screen-reader observation, physical-device
303+
judgment, attestation, or narrated media exists. A human must use a trusted Private network and synthetic
304+
samples; no public Wi-Fi, tunnel, port forwarding, or real CV is allowed. ML-QG-2 remains 0/100, ML-QG-3
305+
remains 0/50, salary remains 77/555, Dependabot vulnerability alerts and deployment remain owner-gated.
308306

309307
**Recommended next actions:**
310308

311309
1. **[NEXT][HUMAN-GATE][M5c] Execute the M5c human review pack and narrated walkthrough** - value:
312310
closes the final recruiter-facing accessibility/presentation gap; dependency: a human reviewer uses
311+
`scripts/run_demo.ps1 -AllowLan -NoBrowser` on a trusted Private network and follows
313312
`docs/human_accessibility_media_review.md` with a screen reader and physical mobile device; complete
314313
when the private record passes `skillpulse-release-review ... --require-complete`, no blocker/high
315314
finding is open, and the 2-4 minute synthetic/redacted media passes human privacy review.
@@ -322,8 +321,8 @@ salary remains 77/555, and public deployment remains owner-gated. Private review
322321
50 relevance scores are frozen, then agreement and both matcher evaluations rerun without tuning.
323322

324323
**Auto-selected next task:** `M5c - execute private human screen-reader/real-device review and public-safe narration (HUMAN-GATE)`
325-
**PRD sync:** synchronized with 127 passing tests, zero open CodeQL/secret-scanning alerts, a clean
326-
dependency audit, guarded 120-file public source, and unchanged human/deployment/salary gates.
324+
**PRD sync:** synchronized with trusted-LAN physical-device readiness, 129 passing tests, green
325+
CI/CodeQL, guarded 120-file public source, and unchanged human/deployment/salary gates.
327326
<!-- HANDOFF:END -->
328327

329328
## 10. Project State
@@ -341,14 +340,14 @@ Last materially verified: **2026-08-12**
341340
| M3a | Explainable CV–job matcher baseline | DONE | CLI + report + unit tests |
342341
| M3b | Matching relevance dataset and semantic challenger | AI-EXPERIMENTAL / HUMAN-GATE | 50 pseudo-label diagnostics; semantic challenger evaluated and not promoted; ML-QG-3 remains 0/50 human |
343342
| M4 | FastAPI/domain service | DONE-LOCAL | contract v1; 4 endpoints; OpenAPI tests; healthy non-root container smoke |
344-
| M5 | Portfolio UI and market dashboard | DEMO-LOCAL / MARKET-SNAPSHOT-DONE / THREE-ENGINE-RESILIENCE-DONE / STATIC-MEDIA-DONE / HUMAN-REVIEW-PACK-READY / HUMAN-EVIDENCE-0 | aggregate dashboard and three-engine automation pass; strict private review pack is ready, but no human accessibility/video evidence exists |
343+
| M5 | Portfolio UI and market dashboard | DEMO-LOCAL / MARKET-SNAPSHOT-DONE / THREE-ENGINE-RESILIENCE-DONE / STATIC-MEDIA-DONE / TRUSTED-LAN-REVIEW-READY / HUMAN-EVIDENCE-0 | aggregate dashboard and three-engine automation pass; strict private review plus opt-in physical-device access are ready, but no human accessibility/video evidence exists |
345344
| M6 | Containerized public portfolio release | PUBLIC-SOURCE / SECURITY-AUTOMATION-DONE / STATIC-MEDIA / APP-DEPLOYMENT-HUMAN-GATES | clean public repo, guard, CI, dependency audit, CodeQL, docs, story, API container, and reviewed media complete; public app and human gates remain |
346345
| M7 | Salary prediction | BLOCKED-DATA | only 77/555 salary rows (13.9%); below PRD gate |
347346

348347
Current verified engineering evidence:
349348

350349
- `ruff check src tests`: passed.
351-
- `pytest -q`: 127 passed.
350+
- `pytest -q`: 129 passed.
352351
- Kaggle source: version 1, creator Rafli Rizkya Sakti Nugraha, CC-BY-4.0,
353352
observation window 2025-08-25 through 2025-09-24.
354353
- Local raw identity: 1,059,991 bytes and SHA-256
@@ -378,24 +377,25 @@ Current verified engineering evidence:
378377
charts on desktop/mobile, safe loading/offline behavior, Firefox/WebKit chart renders and keyboard
379378
matches, exact viewport widths, and eight synthetic artifact captures; three reviewed screenshots
380379
remain SHA-pinned. Invalid local crash captures remain excluded.
381-
- One-command demo smoke started API/UI on ports 18080/18501, verified both health endpoints,
382-
stopped both processes, and left no listeners.
383-
- M5c review workflow v1 provides a blank private-by-default template and strict validator. Seven
384-
focused tests pass; the untouched template validates structurally but correctly fails completion.
385-
No reviewer judgment, attestation, or narrated media is claimed.
380+
- One-command demo smoke started API/UI on ports 18280/18701, verified both health endpoints,
381+
stopped both processes, and left no listeners. The opt-in trusted-LAN path exposes only Streamlit,
382+
keeps FastAPI loopback-only, prints private IPv4 URLs/warnings, and rejects automation pairing.
383+
- M5c review workflow v1.1 provides a blank private-by-default template, strict validator, and a
384+
physical-device execution path. Seven validator and two launcher regression tests pass; no reviewer
385+
judgment, attestation, narrated media, or automated LAN exposure is claimed.
386386
- Portfolio evidence is reconciled in `docs/model_card.md`, `docs/architecture.md`,
387387
`docs/case_study.md`, and `reports/portfolio_release_metrics.json`; JSON/link QA passed.
388388
- Portable portfolio artifact passed package-contract checks but browser verification remains
389389
blocked by shared-renderer desktop overflow; `reports/portfolio_report_qa.md` records the failure
390390
and no unverified HTML is delivered.
391-
- Public `origin/main` has a clean parentless 120-file product history; security automation commit
392-
`c21e698` and remediation commit `0def1fc` were pushed without force.
391+
- Public `origin/main` has a clean parentless 120-file product history; trusted-LAN review commit
392+
`bb54753` and earlier guarded security commits were pushed without force.
393393
- Publication guard scans staged and committed snapshots, is enforced by the executable pre-push hook
394-
and CI, and passed on the complete 1,354,078-byte / 120-file remediation snapshot. Eight guard tests
394+
and CI, and passed on the complete 1,361,884-byte / 120-file implementation snapshot. Eight guard tests
395395
cover allow/deny behavior plus exact-hash and PNG-metadata enforcement.
396-
- GitHub repository is PUBLIC with default `main`; CI run `31572435653` passed tests, dependency audit,
396+
- GitHub repository is PUBLIC with default `main`; CI run `31602756546` passed tests, dependency audit,
397397
and three-engine browser QA. Its pip-audit artifact contains 72 audited third-party packages and zero
398-
known vulnerabilities. CodeQL `security-extended` run `31572435689` passed; five initial alerts were
398+
known vulnerabilities. CodeQL `security-extended` run `31602756481` passed; five initial alerts were
399399
fixed without dismissal and zero CodeQL/secret-scanning alerts remain open. Dependabot version updates
400400
are configured, but vulnerability alerts are disabled pending owner authorization; CI actions v7 are pinned.
401401
- Historical research remains local only on `research-history-local-20260810`/`research-origin`;

‎PRD.md‎

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,28 @@ Timpa isi di antara marker; jangan append session log.
1616
<!-- AUTO-SYNC:START -->
1717
**Last synchronized:** 2026-08-12
1818
**Current phase:** Phase 3 complete locally; Phase 4 aggregate market snapshot and three-engine
19-
automation are complete, and the M5c private human-review pack/validator is ready while actual
20-
screen-reader, real-device, and narrated-media evidence remains human-gated. Phase 5 public
19+
automation are complete, and the M5c private human-review pack/validator plus opt-in trusted-LAN
20+
physical-device access are ready while actual screen-reader, device, and narrated-media evidence remains human-gated. Phase 5 public
2121
source/story/security evidence is complete and application deployment remains owner-gated.
2222
**Status:** Working portfolio product published at `https://github.com/Rajapranata512/skillpulse-ai`
2323
with clean history, green CI, privacy/security publication controls, verified extraction/matching
2424
baselines, FastAPI, non-root container, Streamlit product journey, aggregate 30-day market snapshot,
2525
and a fail-closed accessibility/media review workflow. It is not portfolio-ready because independent
2626
human annotation/relevance, human accessibility/usability media, and public application deployment remain open.
27-
**Completed this session:** added continuous `pip-audit` and CodeQL `security-extended`, then fixed all
28-
five initial CodeQL findings without dismissal: strict loopback/allowlist proxy targets, linear contextual
29-
term checks, and non-sensitive CLI completion messages. Pushed automation commit
30-
`c21e6981a3718a608b43cb9c1be535da8cde41d1` and remediation commit
31-
`0def1fc15b5457dda8bcdbaf59cfb13c3b36d9d7`.
32-
**Verified baseline:** 127 tests and Ruff passed. CI run `31572435653` passed committed-snapshot guard,
33-
tests, a 72-third-party-package audit with zero known vulnerabilities, and Chromium/Firefox/WebKit QA.
34-
CodeQL run `31572435689` passed; all five initial alerts are fixed, with zero open CodeQL and secret-
35-
scanning alerts. Publication guard scanned the complete 120-file / 1,354,078-byte remediation snapshot;
36-
private records/media, row-level data, annotations, workbooks, academic artifacts, credentials, PII
37-
patterns, and local paths remain absent.
27+
**Completed this session:** extended the existing demo launcher with explicit `-AllowLan` physical-device
28+
review access. Default/UI smoke and FastAPI remain loopback-only; the opt-in path exposes only Streamlit,
29+
prints private IPv4 URLs and strong privacy warnings, forces headless mode, and rejects `-SmokeTest`
30+
pairing before listener startup. Pushed implementation commit
31+
`bb5475301f6dfe367cdfdc3e0dff4c8aaecf4469`.
32+
**Verified baseline:** 129 tests, Ruff, PowerShell parsing, loopback start-health-stop smoke, listener
33+
cleanup, and the fail-closed automation guard passed. LAN mode was not activated by automation. CI run
34+
`31602756546` passed committed-snapshot guard, tests, dependency audit, and Chromium/Firefox/WebKit QA.
35+
CodeQL run `31602756481` passed with zero open CodeQL and secret-scanning alerts. Publication guard
36+
scanned the complete 120-file / 1,361,884-byte implementation snapshot; private evidence/data and
37+
credentials remain absent.
3838
**Selected next task:** `M5c - execute private human screen-reader/real-device review and public-safe narration (HUMAN-GATE)`.
39-
**Next completion check:** a human completes `docs/human_accessibility_media_review.md`; the private JSON
39+
**Next completion check:** a human runs `scripts/run_demo.ps1 -AllowLan -NoBrowser` on a trusted Private
40+
network and completes `docs/human_accessibility_media_review.md`; the private JSON
4041
passes `skillpulse-release-review ... --require-complete`, no blocker/high finding remains open, and a
4142
120-240 second synthetic/redacted walkthrough passes human privacy review while automated QA stays green.
4243
**Other gates:** ML-QG-2 is 0/100, ML-QG-3 is 0/50, and salary is 77/555. The snapshot is one source/
@@ -526,6 +527,8 @@ Vanity metrics seperti jumlah model, library, atau baris kode bukan success metr
526527
mobile market views, Firefox/WebKit chart renders and keyboard matches, and exact viewport widths.
527528
Eight synthetic captures stay in CI; three reviewed screenshots remain SHA-pinned without metadata.
528529
- The one-command PowerShell launcher starts API/UI, verifies both endpoints, and cleans both processes.
530+
Its explicit trusted-LAN mode makes physical-device review possible without a public deployment:
531+
only Streamlit binds to LAN, FastAPI remains loopback-only, and unsafe automation pairing is rejected.
529532
- A blank v1 M5c template, private-by-default workflow, and strict validator are ready; automation
530533
rejects incomplete/unsafe evidence but cannot create observations or attest their truth.
531534
- Exit remains open only for human screen-reader/focus/contrast, real Safari/device review, and a

‎docs/architecture.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ portfolio walkthrough, but a public release still needs an explicit hosting desi
105105
environment configuration, browser QA, monitoring, and rollback evidence. Human M5c observations
106106
remain in a Git-ignored local record; the release validator checks completeness and fail-closed
107107
conditions but cannot attest that an accessibility or privacy judgment is true.
108+
109+
For physical-device review, `scripts/run_demo.ps1 -AllowLan` is an explicit temporary boundary:
110+
Streamlit may bind to private IPv4 interfaces, while FastAPI remains on `127.0.0.1`. The mode is
111+
not used by automation, has no TLS/authentication, accepts synthetic samples only, and must be
112+
stopped immediately after review; it is not a public deployment design.

‎docs/case_study.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ the build context.
138138
| Product/UI | API-backed Streamlit journey, filterable aggregate market snapshot, three-engine chart QA, reviewed static media, and launcher |
139139
| Governance | No CV persistence, protected attributes excluded, open human/data gates |
140140

141-
Latest engineering verification: Ruff passed and 114 tests passed. API container and
141+
Latest engineering verification: Ruff passed and 129 tests passed. API container and
142142
Streamlit health checks passed locally; widget-state tests cover aggregate filter changes without API
143143
calls. Playwright Chromium covers desktop/mobile market charts plus empty, loading, match, validation,
144144
extraction, and API-offline states; Firefox and WebKit each render all three dashboard charts before
@@ -176,8 +176,9 @@ limits, abuse controls, accessibility checks, monitoring, and a verified retenti
176176

177177
## Next evidence milestones
178178

179-
1. Complete the private-by-default `docs/human_accessibility_media_review.md` pack with a human
180-
screen-reader/real-device review, then record a public-safe narrated walkthrough.
179+
1. Run the explicit trusted-LAN physical-device mode, then complete the private-by-default
180+
`docs/human_accessibility_media_review.md` pack with a human screen-reader/real-device review
181+
and record a public-safe narrated walkthrough.
181182
2. Have a different human complete the 100-row blind annotation and publish agreement.
182183
3. Freeze 50 independent human relevance judgments and rerun both matchers without tuning
183184
on the evaluation set.

‎docs/release_checklist.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## What is ready
77

8-
- Ruff passes and 114 Python tests pass.
8+
- Ruff passes and 129 Python tests pass.
99
- The one-command launcher starts FastAPI and Streamlit, verifies both health endpoints,
1010
and removes both processes in smoke mode.
1111
- Four privacy-safe Streamlit AppTest scenarios cover sample loading, empty input,
@@ -21,6 +21,8 @@
2121
checklist, and aggregate evaluation evidence exist.
2222
- A strict, privacy-minimizing M5c JSON template and validator reject premature accessibility/media
2323
completion, missing human attestation, unsafe media flags, and unresolved high-severity findings.
24+
- The explicit `-AllowLan` review mode enables a physical device on a trusted Private network while
25+
keeping FastAPI loopback-only; automation cannot combine this mode with `-SmokeTest`.
2426
- Unsupported human-agreement, human-relevance, salary, and global-market claims are
2527
explicitly blocked.
2628

@@ -58,6 +60,8 @@ Remaining completion evidence:
5860

5961
- a human completes the private-by-default [M5c review pack](human_accessibility_media_review.md),
6062
including focus/contrast, screen-reader, mobile real-device, and real Safari evidence where available;
63+
- physical-device review uses `scripts/run_demo.ps1 -AllowLan -NoBrowser` with synthetic samples on
64+
a trusted Private network, never public Wi-Fi, port forwarding, or a public tunnel;
6165
- `skillpulse-release-review artifacts/human_accessibility_media_review.json --require-complete` returns `0`;
6266
- a 2-4 minute public-safe video/GIF follows the condensed journey in `docs/demo_checklist.md`;
6367
- no real CV, third-party raw description, PII, credential, or local path appears in review evidence or media.

0 commit comments

Comments
 (0)