feat: updade workspace

This commit is contained in:
thanhnv
2026-07-11 15:56:31 +09:00
parent 4fc72332f5
commit 193a449829
120 changed files with 868 additions and 350 deletions
@@ -64,7 +64,7 @@ SYMBROKEN="$WORK/map-badsym.json"
python3 - "$MAP" "$SYMBROKEN" <<'PY'
import json, sys
d = json.load(open(sys.argv[1]))
d["FR-01"]["code"] = [{"file": "backend/src/auth/auth.service.ts", "symbols": ["NoSuchSymbolXYZ"]}]
d["FR-01"]["code"] = [{"file": "apps/okr/backend/src/auth/auth.service.ts", "symbols": ["NoSuchSymbolXYZ"]}]
json.dump(d, open(sys.argv[2], "w"), indent=2)
PY
set +e
@@ -79,7 +79,7 @@ LINEBROKEN="$WORK/map-badline.json"
python3 - "$MAP" "$LINEBROKEN" <<'PY'
import json, sys
d = json.load(open(sys.argv[1]))
d["FR-01"]["code"] = [{"file": "backend/src/auth/auth.service.ts", "lines": [999999]}]
d["FR-01"]["code"] = [{"file": "apps/okr/backend/src/auth/auth.service.ts", "lines": [999999]}]
json.dump(d, open(sys.argv[2], "w"), indent=2)
PY
set +e
@@ -58,7 +58,7 @@ case "$step" in
text="# Model Generated Tasks\n\n- [X] Backend auth module with JWT and bcrypt.\n- [X] Frontend dashboard and detail pages.\n- [X] Backend and frontend tests.\n- [X] Golden regression evidence.\n"
;;
10-implement)
text="# Model Generated Implementation Draft\n\n## Backend Source\n- backend/src/auth/auth.service.ts\n- backend/src/objectives/objectives.service.ts\n\n## Frontend Source\n- frontend/src/lib/api.ts\n- frontend/src/pages/DashboardPage.tsx\n\n## Acceptance Gate\nThis draft is not accepted until STEP12 test PASS.\n"
text="# Model Generated Implementation Draft\n\n## Backend Source\n- apps/okr/backend/src/auth/auth.service.ts\n- apps/okr/backend/src/objectives/objectives.service.ts\n\n## Frontend Source\n- apps/okr/frontend/src/lib/api.ts\n- apps/okr/frontend/src/pages/DashboardPage.tsx\n\n## Acceptance Gate\nThis draft is not accepted until STEP12 test PASS.\n"
;;
*)
text="# Model Generated SRS\n\n## Functional Requirements\n- FR-01 Login\n- FR-02 Create Objective\n- FR-03 Create Key Result\n- FR-04 Update Progress\n- FR-05 Dashboard\n\n## Non Functional Requirements\nAuthentication required.\n"
@@ -28,7 +28,7 @@ expect_rc() {
}
echo "===== C1: tool authorization / action gating (V17) ====="
expect_rc 2 "C1 blocks overwrite of .env" bash "$S/action-gate.sh" --write "backend/.env"
expect_rc 2 "C1 blocks overwrite of .env" bash "$S/action-gate.sh" --write "apps/okr/backend/.env"
expect_rc 2 "C1 blocks write of a private key" bash "$S/action-gate.sh" --write "deploy/id_rsa"
expect_rc 2 "C1 blocks write of a CI workflow" bash "$S/action-gate.sh" --write ".github/workflows/deploy.yml"
expect_rc 2 "C1 blocks rm -rf /" bash "$S/action-gate.sh" --command "rm -rf /"