| blob_data |
2026-09-23T15:37:35.8690931Z iZ2zed3pt2nygf9dy1a9d 2026-09-23T15:37:35.8690931Z iZ2zed3pt2nygf9dy1a9d2Z(version:v0.2.13) received task 29978 of job static-governance, be triggered by event: push
2026-09-23T15:37:35.8698176Z workflow prepared
2026-09-23T15:37:35.8699076Z evaluating expression 'success()'
2026-09-23T15:37:35.8700336Z expression 'success()' evaluated to 'true'
2026-09-23T15:37:35.8705488Z ☁ git clone 'https://github.com/actions/checkout' # ref=v4
2026-09-23T15:37:35.8706225Z cloning https://github.com/actions/checkout to /root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab
2026-09-23T15:37:38.3148482Z Non-terminating error while running 'git clone': some refs were not updated
2026-09-23T15:37:38.3165720Z ☁ git clone 'https://github.com/actions/setup-node' # ref=v4
2026-09-23T15:37:38.3166403Z cloning https://github.com/actions/setup-node to /root/.cache/act/e5877e7fc2f7e5000a2f22526584a2565cc2ae38cd26a9b1938dbca653b056cc
2026-09-23T15:37:40.1042342Z Non-terminating error while running 'git clone': some refs were not updated
2026-09-23T15:37:40.1046878Z evaluating expression ''
2026-09-23T15:37:40.1047267Z expression '' evaluated to 'true'
2026-09-23T15:37:40.1047402Z ⭐ Run Main Checkout
2026-09-23T15:37:40.1050661Z expression '${{ github.token }}' rewritten to 'format('{0}', github.token)'
2026-09-23T15:37:40.1050813Z evaluating expression 'format('{0}', github.token)'
2026-09-23T15:37:40.1051173Z expression 'format('{0}', github.token)' evaluated to '%!t(string=***)'
2026-09-23T15:37:40.1051943Z expression '${{ github.repository }}' rewritten to 'format('{0}', github.repository)'
2026-09-23T15:37:40.1052080Z evaluating expression 'format('{0}', github.repository)'
2026-09-23T15:37:40.1052350Z expression 'format('{0}', github.repository)' evaluated to '%!t(string=luoanwu/juhai-ai-hr-system)'
2026-09-23T15:37:40.1052645Z type=remote-action actionDir=/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab actionPath= workdir=/workspace/luoanwu/juhai-ai-hr-system actionCacheDir=/root/.cache/act actionName=c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab containerActionDir=/root/.cache/act/7219ce633d1f1608/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab
2026-09-23T15:37:40.1052874Z /root/.cache/act/7219ce633d1f1608/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab
2026-09-23T15:37:40.1053099Z Stripping prefix:/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/ src:/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/
2026-09-23T15:37:40.3224235Z executing remote job container: [node /root/.cache/act/7219ce633d1f1608/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js]
2026-09-23T15:37:40.4617255Z ::add-matcher::/root/.cache/act/7219ce633d1f1608/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/problem-matcher.json
2026-09-23T15:37:40.4617519Z ::add-matcher::/root/.cache/act/7219ce633d1f1608/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/problem-matcher.json
2026-09-23T15:37:40.4622849Z Syncing repository: luoanwu/juhai-ai-hr-system
2026-09-23T15:37:40.4626812Z ::group::Getting Git version info
2026-09-23T15:37:40.4627581Z Working directory is '/root/.cache/act/7219ce633d1f1608/hostexecutor'
2026-09-23T15:37:40.4662192Z [command]/usr/bin/git version
2026-09-23T15:37:40.4716137Z git version 2.43.0
2026-09-23T15:37:40.4743926Z ::endgroup::
2026-09-23T15:37:40.4757108Z Copying '/root/.gitconfig' to '/root/.cache/act/7219ce633d1f1608/tmp/97ab0cee-2aa6-4687-be84-4e889c2ebf40/.gitconfig'
2026-09-23T15:37:40.4772857Z Temporarily overriding HOME='/root/.cache/act/7219ce633d1f1608/tmp/97ab0cee-2aa6-4687-be84-4e889c2ebf40' before making global git config changes
2026-09-23T15:37:40.4773269Z Adding repository directory to the temporary git global config as a safe directory
2026-09-23T15:37:40.4779458Z [command]/usr/bin/git config --global --add safe.directory /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:40.4842122Z Deleting the contents of '/root/.cache/act/7219ce633d1f1608/hostexecutor'
2026-09-23T15:37:40.4848148Z ::group::Initializing the repository
2026-09-23T15:37:40.4853198Z [command]/usr/bin/git init /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:40.4905359Z hint: Using 'master' as the name for the initial branch. This default branch name
2026-09-23T15:37:40.4905729Z hint: is subject to change. To configure the initial branch name to use in all
2026-09-23T15:37:40.4905991Z hint: of your new repositories, which will suppress this warning, call:
2026-09-23T15:37:40.4906130Z hint:
2026-09-23T15:37:40.4906263Z hint: git config --global init.defaultBranch <name>
2026-09-23T15:37:40.4906389Z hint:
2026-09-23T15:37:40.4906516Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2026-09-23T15:37:40.4906633Z hint: 'development'. The just-created branch can be renamed via this command:
2026-09-23T15:37:40.4906752Z hint:
2026-09-23T15:37:40.4906860Z hint: git branch -m <name>
2026-09-23T15:37:40.4917472Z Initialized empty Git repository in /root/.cache/act/7219ce633d1f1608/hostexecutor/.git/
2026-09-23T15:37:40.4931296Z [command]/usr/bin/git remote add origin https://gitea.g-hi.com/luoanwu/juhai-ai-hr-system
2026-09-23T15:37:40.4991464Z ::endgroup::
2026-09-23T15:37:40.4991940Z ::group::Disabling automatic garbage collection
2026-09-23T15:37:40.4996568Z [command]/usr/bin/git config --local gc.auto 0
2026-09-23T15:37:40.5043248Z ::endgroup::
2026-09-23T15:37:40.5043530Z ::group::Setting up auth
2026-09-23T15:37:40.5052722Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-09-23T15:37:40.5111702Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-09-23T15:37:40.5507561Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/gitea\.g\-hi\.com\/\.extraheader
2026-09-23T15:37:40.5566249Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/gitea\.g\-hi\.com\/\.extraheader' && git config --local --unset-all 'http.https://gitea.g-hi.com/.extraheader' || :"
2026-09-23T15:37:40.5963555Z [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
2026-09-23T15:37:40.6013236Z [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
2026-09-23T15:37:40.6403155Z [command]/usr/bin/git config --local http.https://gitea.g-hi.com/.extraheader AUTHORIZATION: basic ***
2026-09-23T15:37:40.6478377Z ::endgroup::
2026-09-23T15:37:40.6478765Z ::group::Fetching the repository
2026-09-23T15:37:40.6490110Z [command]/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
2026-09-23T15:37:41.3442672Z From https://gitea.g-hi.com/luoanwu/juhai-ai-hr-system
2026-09-23T15:37:41.3443168Z * [new branch] codex/ms1-platform-consumer -> origin/codex/ms1-platform-consumer
2026-09-23T15:37:41.3444486Z * [new branch] codex/platform-rc1 -> origin/codex/platform-rc1
2026-09-23T15:37:41.3444807Z * [new branch] main -> origin/main
2026-09-23T15:37:41.3505825Z [command]/usr/bin/git branch --list --remote origin/main
2026-09-23T15:37:41.3555080Z origin/main
2026-09-23T15:37:41.3573767Z [command]/usr/bin/git rev-parse refs/remotes/origin/main
2026-09-23T15:37:41.3616006Z ade7e0c56c80d6d58fff7f4f3c7878fb8dc67bdd
2026-09-23T15:37:41.3624977Z ::endgroup::
2026-09-23T15:37:41.3625543Z ::group::Determining the checkout info
2026-09-23T15:37:41.3631310Z ::endgroup::
2026-09-23T15:37:41.3637915Z [command]/usr/bin/git sparse-checkout disable
2026-09-23T15:37:41.3707276Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2026-09-23T15:37:41.3751105Z ::group::Checking out the ref
2026-09-23T15:37:41.3758598Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2026-09-23T15:37:41.5751491Z Switched to a new branch 'main'
2026-09-23T15:37:41.5752403Z branch 'main' set up to track 'origin/main'.
2026-09-23T15:37:41.5768489Z ::endgroup::
2026-09-23T15:37:41.5843820Z [command]/usr/bin/git log -1 --format=%H
2026-09-23T15:37:41.5891622Z ade7e0c56c80d6d58fff7f4f3c7878fb8dc67bdd
2026-09-23T15:37:41.5909775Z ::remove-matcher owner=checkout-git::
2026-09-23T15:37:42.1807000Z Found in cache @ /root/.cache/act/tool_cache/node/20.20.0/x64
2026-09-23T15:37:42.1812516Z (node:2689894) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2026-09-23T15:37:42.1812811Z (Use `node --trace-deprecation ...` to show where the warning was created)
2026-09-23T15:37:42.1816565Z ::group::Environment details
2026-09-23T15:37:42.3109671Z [warning]This project is configured to use pnpm because /root/.cache/act/7219ce633d1f1608/hostexecutor/package.json has a "packageManager" field
2026-09-23T15:37:42.3114523Z
2026-09-23T15:37:42.3674514Z node: v20.20.0
2026-09-23T15:37:42.3675439Z npm: 10.8.2
2026-09-23T15:37:42.3675590Z yarn:
2026-09-23T15:37:42.3676228Z ::endgroup::
2026-09-23T15:37:42.3677682Z ##[add-matcher]/root/.cache/act/7219ce633d1f1608/act/actions/e5877e7fc2f7e5000a2f22526584a2565cc2ae38cd26a9b1938dbca653b056cc/.github/tsc.json
2026-09-23T15:37:42.3678212Z ##[add-matcher]/root/.cache/act/7219ce633d1f1608/act/actions/e5877e7fc2f7e5000a2f22526584a2565cc2ae38cd26a9b1938dbca653b056cc/.github/eslint-stylish.json
2026-09-23T15:37:42.3678614Z ##[add-matcher]/root/.cache/act/7219ce633d1f1608/act/actions/e5877e7fc2f7e5000a2f22526584a2565cc2ae38cd26a9b1938dbca653b056cc/.github/eslint-compact.json
2026-09-23T15:37:42.6077236Z Preparing pnpm@9.15.9 for immediate activation...
2026-09-23T15:37:42.6669892Z Private package authentication configured in runner temporary storage.
2026-09-23T15:37:43.2794367Z Scope: all 9 workspace projects
2026-09-23T15:37:43.3743502Z Lockfile is up to date, resolution step is skipped
2026-09-23T15:37:43.5109449Z Progress: resolved [96m1[39m, reused [96m0[39m, downloaded [96m0[39m, added [96m0[39m
2026-09-23T15:37:43.6583019Z Packages: [32m+881[39m
2026-09-23T15:37:43.6583650Z
2026-09-23T15:37:44.5138077Z Progress: resolved [96m881[39m, reused [96m873[39m, downloaded [96m0[39m, added [96m488[39m
2026-09-23T15:37:44.9485387Z Progress: resolved [96m881[39m, reused [96m873[39m, downloaded [96m0[39m, added [96m881[39m, done
2026-09-23T15:37:45.9525272Z
2026-09-23T15:37:45.9526152Z [96mdevDependencies:[39m
2026-09-23T15:37:45.9526331Z [32m+[39m @juhai/contracts [90m1.0.0-rc.1[39m
2026-09-23T15:37:45.9526700Z [32m+[39m @juhai/governance [90m1.0.0-rc.1[39m
2026-09-23T15:37:45.9526833Z [32m+[39m turbo [90m2.9.16[39m
2026-09-23T15:37:45.9527089Z [32m+[39m typescript [90m5.9.3[39m
2026-09-23T15:37:45.9527216Z
2026-09-23T15:37:46.0880980Z Done in 3.3s using pnpm v9.15.9
2026-09-23T15:37:46.6912989Z
2026-09-23T15:37:46.6913923Z > juhai-ai-hr-system@0.1.0 prisma:generate /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:46.6914158Z > turbo run prisma:generate --concurrency=1
2026-09-23T15:37:46.6914297Z
2026-09-23T15:37:46.8840250Z
2026-09-23T15:37:46.8840961Z • Packages in scope: @repo/auth, @repo/config, @repo/contracts, @repo/database-rls, @repo/enterprise-fact-publisher, api-fastify, api-nestjs, web
2026-09-23T15:37:46.8841227Z • Running prisma:generate in 8 packages
2026-09-23T15:37:46.8841651Z • Remote caching disabled
2026-09-23T15:37:46.8841900Z
2026-09-23T15:37:51.3678490Z ::group::api-nestjs:prisma:generate
2026-09-23T15:37:51.3678771Z cache bypass, force executing [2m1448cfcf195ad565[0m
2026-09-23T15:37:51.3678973Z
2026-09-23T15:37:51.3679337Z > api-nestjs@0.1.0 prisma:generate /root/.cache/act/7219ce633d1f1608/hostexecutor/apps/api-nestjs
2026-09-23T15:37:51.3679489Z > prisma generate
2026-09-23T15:37:51.3679930Z
2026-09-23T15:37:51.3680049Z Prisma schema loaded from prisma/schema.prisma
2026-09-23T15:37:51.3680166Z
2026-09-23T15:37:51.3680402Z ✔ Generated Prisma Client (v6.19.3) to ./../../node_modules/.pnpm/@prisma+client@6.19.3_prisma@6.19.3_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client in 1.38s
2026-09-23T15:37:51.3680666Z
2026-09-23T15:37:51.3680861Z Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
2026-09-23T15:37:51.3680995Z
2026-09-23T15:37:51.3681134Z Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
2026-09-23T15:37:51.3681266Z
2026-09-23T15:37:51.3681493Z ::endgroup::
2026-09-23T15:37:55.8135443Z ::group::api-fastify:prisma:generate
2026-09-23T15:37:55.8135696Z cache bypass, force executing [2m008099521ab19a23[0m
2026-09-23T15:37:55.8135838Z
2026-09-23T15:37:55.8136207Z > api-fastify@1.0.0 prisma:generate /root/.cache/act/7219ce633d1f1608/hostexecutor/apps/api-fastify
2026-09-23T15:37:55.8136360Z > prisma generate
2026-09-23T15:37:55.8136543Z
2026-09-23T15:37:55.8136654Z Prisma schema loaded from prisma/schema.prisma
2026-09-23T15:37:55.8136827Z
2026-09-23T15:37:55.8136989Z ✔ Generated Prisma Client (v6.19.3) to ./../../node_modules/.pnpm/@prisma+client@6.19.3_prisma@6.19.3_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client in 1.40s
2026-09-23T15:37:55.8137217Z
2026-09-23T15:37:55.8137388Z Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
2026-09-23T15:37:55.8137512Z
2026-09-23T15:37:55.8137707Z Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate
2026-09-23T15:37:55.8137893Z
2026-09-23T15:37:55.8138209Z ::endgroup::
2026-09-23T15:37:55.8141252Z
2026-09-23T15:37:55.8141375Z [1m Tasks: [32m[1m2 successful[0m, 2 total[0m
2026-09-23T15:37:55.8141667Z [1mCached: [1m0 cached[0m, 2 total[0m
2026-09-23T15:37:55.8141913Z [1m Time: [1m9.048s[0m [0m
2026-09-23T15:37:55.8142099Z
2026-09-23T15:37:55.8476319Z ...Finishing writing to cache...
[2K> ...Finishing writing to cache...
[2K
2026-09-23T15:37:56.4127991Z
2026-09-23T15:37:56.4128871Z > juhai-ai-hr-system@0.1.0 check /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:56.4129133Z > pnpm check:platform && pnpm check:naming && pnpm check:schema && pnpm check:validation && pnpm check:contract-consumers && pnpm check:dual-backend && pnpm check:write-guard && pnpm check:fork-readiness && pnpm check:migrations && pnpm check:database-rls && pnpm check:report-provenance && pnpm check:os-product:distribution && pnpm build:os-product:bundle && pnpm check:os-product && pnpm check:governance-docs && pnpm check:docs-truth && pnpm check:governance && pnpm lint && pnpm typecheck
2026-09-23T15:37:56.4129440Z
2026-09-23T15:37:56.9682661Z
2026-09-23T15:37:56.9683243Z > juhai-ai-hr-system@0.1.0 check:platform /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:56.9683462Z > juhai-governance check:pins --require @juhai/contracts --require @juhai/governance && juhai-governance check:fixtures --suite governance/fixtures/contracts.suite.json
2026-09-23T15:37:56.9683638Z
2026-09-23T15:37:57.0504449Z ✓ check:pins:3 处 @juhai/* 依赖均为 exact pin 或 workspace:*(9 个 package.json;已接入 @juhai/contracts, @juhai/governance)。
2026-09-23T15:37:57.4030134Z ✓ contracts-v1: 8 例(正 4 / 反 4),失败 0
2026-09-23T15:37:57.4034457Z passed check:fixtures:1 套件,8 例,失败 0,不可用 0(/root/.cache/act/7219ce633d1f1608/hostexecutor/reports/fixtures.latest.json)
2026-09-23T15:37:57.9495574Z
2026-09-23T15:37:57.9496448Z > juhai-ai-hr-system@0.1.0 check:naming /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:57.9496651Z > node scripts/check-naming.mjs
2026-09-23T15:37:57.9496779Z
2026-09-23T15:37:58.3103985Z ✓ 命名检查通过:未发现业务词典禁用词。
2026-09-23T15:37:58.8896453Z
2026-09-23T15:37:58.8897015Z > juhai-ai-hr-system@0.1.0 check:schema /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:58.8897265Z > node scripts/check-schema-sync.mjs
2026-09-23T15:37:58.8897406Z
2026-09-23T15:37:59.2691666Z ✓ 状态枚举单源校验通过:47 个实体(Order, OrganizationUnit, Position, Employment, Assignment, PersonnelChange, PersonnelApprovalPolicySet, PersonnelDeliveryPolicySet, PersonnelApprovalCase, IdentityLink, PersonnelDataQualityCase, EmploymentDocument, PrehireInvitation, PrehireResume, Principal, Account, PasswordCredential, IdentitySession, RefreshTokenFamily, RefreshToken, PaymentBatch, ShiftPattern, WorkCalendar, ShiftAssignment, AttendanceSource, AttendanceExceptionCase, TimesheetPeriod, TimesheetCalculationRun, LeavePolicySet, LeaveRequest, PayrollConfigurationDecisionSet, CompensationAgreement, BonusAward, PayrollPolicySet, PayrollPolicyAssignment, TaxProfile, ContributionProfile, PayrollPeriod, PayrollRun, PayrollPayslipPublication, JobRequisition, RecruitmentOpening, CandidateApplication, InterviewPlan, Offer, PerformanceTemplate, PerformanceCycle)三处一致,状态机覆盖完整。
2026-09-23T15:37:59.8449135Z
2026-09-23T15:37:59.8449673Z > juhai-ai-hr-system@0.1.0 check:validation /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:37:59.8449873Z > node scripts/check-validation-source.mjs
2026-09-23T15:37:59.8450161Z
2026-09-23T15:38:00.0603582Z ✓ 入参校验单源通过:NestJS/Fastify 运行时 body schema 均来自 @repo/contracts。
2026-09-23T15:38:00.6895747Z
2026-09-23T15:38:00.6896276Z > juhai-ai-hr-system@0.1.0 check:contract-consumers /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:00.6896684Z > node scripts/check-contract-consumers.mjs
2026-09-23T15:38:00.6896810Z
2026-09-23T15:38:00.9960992Z ✓ 跨层契约消费通过:job 响应与订单金额口径均命中 contracts 真源。
2026-09-23T15:38:01.5919368Z
2026-09-23T15:38:01.5920295Z > juhai-ai-hr-system@0.1.0 check:dual-backend /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:01.5920586Z > node scripts/check-dual-backend-parity.mjs
2026-09-23T15:38:01.5920794Z
2026-09-23T15:38:01.8142268Z ✓ 双后端维护红线通过:NestJS/Fastify 仍是同一 contracts 的完整独立消费者。
2026-09-23T15:38:02.4133416Z
2026-09-23T15:38:02.4134023Z > juhai-ai-hr-system@0.1.0 check:write-guard /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:02.4134239Z > node scripts/check-statemachine-write-guard.mjs
2026-09-23T15:38:02.4134370Z
2026-09-23T15:38:02.7035172Z ✓ 写链守护通过:后端无裸 update/delete(租户绑定写链完好);47 个登记状态实体的迁移均用 updateMany + state 前置条件做乐观锁。
2026-09-23T15:38:03.3747515Z
2026-09-23T15:38:03.3748282Z > juhai-ai-hr-system@0.1.0 check:fork-readiness /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:03.3748504Z > node scripts/check-fork-readiness.mjs
2026-09-23T15:38:03.3748700Z
2026-09-23T15:38:03.7654253Z ✓ 可迁移性通过:门禁无业务硬编码(15 个业务域、47 个状态实体全部走注册表),基座前缀派生自 "juhai-ai-hr-system",禁用词表来自词典,验收证据绑定本仓,迁移手册覆盖必做步骤。
2026-09-23T15:38:04.3539948Z
2026-09-23T15:38:04.3540493Z > juhai-ai-hr-system@0.1.0 check:migrations /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:04.3540823Z > node scripts/check-migrations.mjs
2026-09-23T15:38:04.3540982Z
2026-09-23T15:38:06.3777283Z ✓ 迁移治理通过:版本化迁移历史在位、无未豁免高危 DDL、schema 表/映射列均已落迁移。
2026-09-23T15:38:06.9727211Z
2026-09-23T15:38:06.9727801Z > juhai-ai-hr-system@0.1.0 check:database-rls /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:06.9728019Z > node --test scripts/lib/database-rls-role-governance.test.mjs scripts/lib/database-rls-history-governance.test.mjs && node scripts/check-database-rls.mjs
2026-09-23T15:38:06.9728192Z
2026-09-23T15:38:07.3102778Z [32m✔ accepts exact direct and audited dynamic RLS policy definitions [90m(11.856258ms)[39m[39m
2026-09-23T15:38:07.3111352Z [32m✔ rejects permanent history weakening: ALTER TABLE public.users DISABLE ROW LEVEL SECURITY; [90m(13.666589ms)[39m[39m
2026-09-23T15:38:07.3111988Z [32m✔ rejects permanent history weakening: ALTER TABLE public.users NO FORCE ROW LEVEL SECURITY; [90m(2.709854ms)[39m[39m
2026-09-23T15:38:07.3112168Z [32m✔ rejects permanent history weakening: ALTER TABLE IF EXISTS public.users DISABLE ROW LEVEL SECURITY; [90m(1.561636ms)[39m[39m
2026-09-23T15:38:07.3114409Z [32m✔ rejects permanent history weakening: ALTER TABLE IF EXISTS ONLY public.users NO FORCE ROW LEVEL SECURITY; [90m(1.391726ms)[39m[39m
2026-09-23T15:38:07.3114597Z [32m✔ rejects permanent history weakening: ALTER TABLE public.users ADD COLUMN harmless integer, DISABLE ROW LEVEL SECURITY; [90m(1.654031ms)[39m[39m
2026-09-23T15:38:07.3117847Z [32m✔ rejects permanent history weakening: ALTER TABLE public.users * DISABLE ROW LEVEL SECURITY; [90m(1.04874ms)[39m[39m
2026-09-23T15:38:07.3121907Z [32m✔ rejects protected policy mutation: DROP POLICY tenant_isolation ON public.users; [90m(1.775505ms)[39m[39m
2026-09-23T15:38:07.3125037Z [32m✔ rejects protected policy mutation: ALTER POLICY system_infrastructure_access ON public.users TO juhai_ai_hr_tenant; [90m(1.376187ms)[39m[39m
2026-09-23T15:38:07.3127587Z [32m✔ rejects an extra PERMISSIVE policy and terminal inventory drift [90m(0.840701ms)[39m[39m
2026-09-23T15:38:07.3130742Z [32m✔ rejects an extra RESTRICTIVE policy and terminal inventory drift [90m(0.652041ms)[39m[39m
2026-09-23T15:38:07.3134163Z [32m✔ rejects tenant policy OR true in direct and dynamic templates [90m(2.47762ms)[39m[39m
2026-09-23T15:38:07.3137580Z [32m✔ rejects tenant policy missing WITH CHECK in direct and dynamic templates [90m(1.169783ms)[39m[39m
2026-09-23T15:38:07.3156858Z [32m✔ rejects tenant policy USING true in direct and dynamic templates [90m(0.874041ms)[39m[39m
2026-09-23T15:38:07.3157072Z [32m✔ rejects tenant policy broad role in direct and dynamic templates [90m(1.07982ms)[39m[39m
2026-09-23T15:38:07.3157236Z [32m✔ rejects tenant policy FOR SELECT in direct and dynamic templates [90m(1.412918ms)[39m[39m
2026-09-23T15:38:07.3157377Z [32m✔ rejects tenant policy AS RESTRICTIVE in direct and dynamic templates [90m(1.162039ms)[39m[39m
2026-09-23T15:38:07.3159956Z [32m✔ rejects non-true system policy predicates [90m(0.618491ms)[39m[39m
2026-09-23T15:38:07.3160149Z [32m✔ rejects concatenated dynamic DROP/ALTER POLICY without misreading ALTER TABLE [90m(1.182279ms)[39m[39m
2026-09-23T15:38:07.3160306Z [32m✔ rejects nested RLS weakening in quoted DO or a routine body [90m(0.80566ms)[39m[39m
2026-09-23T15:38:07.3161501Z [32m✔ rejects nested RLS weakening in quoted DO or a routine body [90m(0.531204ms)[39m[39m
2026-09-23T15:38:07.3163616Z [32m✔ comments and inert strings cannot manufacture RLS coverage [90m(1.273271ms)[39m[39m
2026-09-23T15:38:07.3165988Z [32m✔ rejects unverifiable escape-quoted DO bodies [90m(0.510514ms)[39m[39m
2026-09-23T15:38:07.3168742Z [32m✔ unmapped tenantId models retain quoted case-sensitive relation identity [90m(1.021347ms)[39m[39m
2026-09-23T15:38:07.3171274Z [32m✔ current NestJS and Fastify sequences satisfy exact history and terminal invariants [90m(153.814428ms)[39m[39m
2026-09-23T15:38:07.3618607Z [32m✔ accepts the complete fail-closed role terminal state [90m(15.438692ms)[39m[39m
2026-09-23T15:38:07.3619330Z [32m✔ rejects LOGIN anywhere in history even when a subsequent statement repairs it [90m(16.24784ms)[39m[39m
2026-09-23T15:38:07.3625235Z [32m✔ rejects SUPERUSER anywhere in history even when a subsequent statement repairs it [90m(1.424822ms)[39m[39m
2026-09-23T15:38:07.3627259Z [32m✔ rejects CREATEDB anywhere in history even when a subsequent statement repairs it [90m(0.903454ms)[39m[39m
2026-09-23T15:38:07.3628608Z [32m✔ rejects CREATEROLE anywhere in history even when a subsequent statement repairs it [90m(0.762244ms)[39m[39m
2026-09-23T15:38:07.3630487Z [32m✔ rejects INHERIT anywhere in history even when a subsequent statement repairs it [90m(2.430812ms)[39m[39m
2026-09-23T15:38:07.3632290Z [32m✔ rejects REPLICATION anywhere in history even when a subsequent statement repairs it [90m(0.914033ms)[39m[39m
2026-09-23T15:38:07.3635501Z [32m✔ rejects BYPASSRLS anywhere in history even when a subsequent statement repairs it [90m(0.729243ms)[39m[39m
2026-09-23T15:38:07.3637419Z [32m✔ rejects a backdated unsafe migration that an already-deployed database could apply last [90m(1.130678ms)[39m[39m
2026-09-23T15:38:07.3639784Z [32m✔ rejects a protected role becoming a member of any upper role [90m(2.045932ms)[39m[39m
2026-09-23T15:38:07.3642736Z [32m✔ rejects legacy GRANT parent TO GROUP protected membership syntax [90m(0.809547ms)[39m[39m
2026-09-23T15:38:07.3645832Z [32m✔ rejects membership with PostgreSQL 16 WITH ADMIN TRUE syntax [90m(0.775395ms)[39m[39m
2026-09-23T15:38:07.3647748Z [32m✔ rejects membership with PostgreSQL 16 WITH ADMIN FALSE syntax [90m(0.725878ms)[39m[39m
2026-09-23T15:38:07.3650049Z [32m✔ rejects membership with PostgreSQL 16 WITH ADMIN OPTION syntax [90m(0.735789ms)[39m[39m
2026-09-23T15:38:07.3652172Z [32m✔ rejects membership with PostgreSQL 16 WITH INHERIT TRUE syntax [90m(0.647226ms)[39m[39m
2026-09-23T15:38:07.3657001Z [32m✔ rejects membership with PostgreSQL 16 WITH INHERIT FALSE syntax [90m(1.543044ms)[39m[39m
2026-09-23T15:38:07.3668955Z [32m✔ rejects membership with PostgreSQL 16 WITH INHERIT OPTION syntax [90m(0.779061ms)[39m[39m
2026-09-23T15:38:07.3669302Z [32m✔ rejects membership with PostgreSQL 16 WITH SET TRUE syntax [90m(0.870087ms)[39m[39m
2026-09-23T15:38:07.3673340Z [32m✔ rejects membership with PostgreSQL 16 WITH SET FALSE syntax [90m(0.566783ms)[39m[39m
2026-09-23T15:38:07.3675956Z [32m✔ rejects membership with PostgreSQL 16 WITH SET OPTION syntax [90m(0.630585ms)[39m[39m
2026-09-23T15:38:07.3676113Z [32m✔ rejects legacy ALTER GROUP parent ADD USER protected membership syntax [90m(0.706303ms)[39m[39m
2026-09-23T15:38:07.3678287Z [32m✔ rejects quoted or dollar-quoted dynamic protected-role mutation [90m(1.160574ms)[39m[39m
2026-09-23T15:38:07.3679414Z [32m✔ rejects quoted or dollar-quoted dynamic protected-role mutation [90m(0.870748ms)[39m[39m
2026-09-23T15:38:07.3685370Z [32m✔ rejects quoted or dollar-quoted dynamic protected-role mutation [90m(0.865759ms)[39m[39m
2026-09-23T15:38:07.3688173Z [32m✔ rejects quoted or dollar-quoted dynamic protected-role mutation [90m(1.501804ms)[39m[39m
2026-09-23T15:38:07.3688593Z [32m✔ rejects dropping or renaming either protected role [90m(1.10989ms)[39m[39m
2026-09-23T15:38:07.3689924Z [32m✔ does not accept hardening text hidden in a block comment [90m(1.372541ms)[39m[39m
2026-09-23T15:38:07.3691079Z [32m✔ ignores unsafe text that exists only in SQL comments [90m(0.561156ms)[39m[39m
2026-09-23T15:38:07.3693350Z [32m✔ current NestJS and Fastify migration sequences have a safe terminal role state [90m(162.747296ms)[39m[39m
2026-09-23T15:38:07.3696085Z [32m✔ role-hardening migration is byte-identical across both backends [90m(0.413437ms)[39m[39m
2026-09-23T15:38:07.3697415Z [32m✔ security-critical migration parity without any database: 20260830120000_employment_canonical_fact_intents/migration.sql [90m(0.320523ms)[39m[39m
2026-09-23T15:38:07.3700034Z [32m✔ security-critical migration parity without any database: 20260830120500_database_rls_role_hardening/migration.sql [90m(0.259771ms)[39m[39m
2026-09-23T15:38:07.3702052Z [32m✔ security-critical migration parity without any database: 20260830121000_employment_canonical_constraints/migration.sql [90m(0.555864ms)[39m[39m
2026-09-23T15:38:07.3705293Z [32m✔ security-critical migration parity without any database: 20260830130000_enterprise_fact_relay_recovery/migration.sql [90m(0.218719ms)[39m[39m
2026-09-23T15:38:07.3713159Z [32m✔ rejects routine-body protected-role mutation and fragmented role names [90m(0.587259ms)[39m[39m
2026-09-23T15:38:07.3717532Z [32m✔ rejects routine-body protected-role mutation and fragmented role names [90m(0.351066ms)[39m[39m
2026-09-23T15:38:07.3719599Z [32m✔ rejects protected-role database/schema/relation ownership: ALTER DATABASE app OWNER TO juhai_ai_hr_system; [90m(0.423462ms)[39m[39m
2026-09-23T15:38:07.3722011Z [32m✔ rejects protected-role database/schema/relation ownership: ALTER SCHEMA public OWNER TO juhai_ai_hr_tenant; [90m(0.29661ms)[39m[39m
2026-09-23T15:38:07.3724139Z [32m✔ rejects protected-role database/schema/relation ownership: ALTER TABLE users OWNER TO juhai_ai_hr_tenant; [90m(0.311712ms)[39m[39m
2026-09-23T15:38:07.3726376Z [32m✔ rejects protected-role database/schema/relation ownership: ALTER SEQUENCE seq OWNER TO juhai_ai_hr_system; [90m(0.299063ms)[39m[39m
2026-09-23T15:38:07.3729231Z [32m✔ rejects protected-role database/schema/relation ownership: ALTER VIEW app_view OWNER TO juhai_ai_hr_system; [90m(0.257992ms)[39m[39m
2026-09-23T15:38:07.3732291Z [32m✔ rejects protected-role database/schema/relation ownership: ALTER MATERIALIZED VIEW app_view OWNER TO juhai_ai_hr_system; [90m(0.371419ms)[39m[39m
2026-09-23T15:38:07.3734606Z [32m✔ rejects protected-role database/schema/relation ownership: CREATE SCHEMA AUTHORIZATION juhai_ai_hr_system; [90m(0.30338ms)[39m[39m
2026-09-23T15:38:07.3736289Z [32m✔ rejects protected-role database/schema/relation ownership: CREATE SCHEMA juhai_ai_hr_tenant; [90m(0.287412ms)[39m[39m
2026-09-23T15:38:07.3738088Z [32m✔ rejects protected-role database/schema/relation ownership: CREATE DATABASE unsafe OWNER juhai_ai_hr_system; [90m(0.301135ms)[39m[39m
2026-09-23T15:38:07.3739645Z [32m✔ rejects protected-role database/schema/relation ownership: REASSIGN OWNED BY migration_admin TO juhai_ai_hr_system; [90m(0.28536ms)[39m[39m
2026-09-23T15:38:07.3742816Z [32m✔ allows only the byte-frozen correction-chain function owner exception [90m(6.049808ms)[39m[39m
2026-09-23T15:38:07.3746175Z [32m✔ rejects arbitrary security-definer routine ownership and same-name exceptions in other migrations [90m(0.764156ms)[39m[39m
2026-09-23T15:38:07.4016415Z [34mℹ tests 73[39m
2026-09-23T15:38:07.4016938Z [34mℹ suites 0[39m
2026-09-23T15:38:07.4017076Z [34mℹ pass 73[39m
2026-09-23T15:38:07.4017246Z [34mℹ fail 0[39m
2026-09-23T15:38:07.4017422Z [34mℹ cancelled 0[39m
2026-09-23T15:38:07.4017547Z [34mℹ skipped 0[39m
2026-09-23T15:38:07.4017670Z [34mℹ todo 0[39m
2026-09-23T15:38:07.4017786Z [34mℹ duration_ms 384.270908[39m
2026-09-23T15:38:07.9840803Z ✓ 数据库 RLS 门禁通过:双后端 115 张租户表均受强制策略与运行入口守护。
2026-09-23T15:38:08.5772873Z
2026-09-23T15:38:08.5773718Z > juhai-ai-hr-system@0.1.0 check:report-provenance /root/.cache/act/7219ce633d1f1608/hostexecutor
2026-09-23T15:38:08.5773971Z > node --test scripts/lib/report-provenance.test.mjs scripts/lib/os-product-migration-governance.test.mjs
2026-09-23T15:38:08.5774125Z
2026-09-23T15:38:18.3252800Z [32m✔ accepts tenant-aware correction-chain backfill with current-only uniqueness [90m(41.963652ms)[39m[39m
2026-09-23T15:38:18.3258305Z [32m✔ rejects per-row canonical allocation without correction-chain projection [90m(1.21803ms)[39m[39m
2026-09-23T15:38:18.3258567Z [32m✔ rejects per-row fallback even when a valid recursive projection is present [90m(12.316333ms)[39m[39m
2026-09-23T15:38:18.3258858Z [32m✔ rejects a correction recursion that can cross tenant boundaries [90m(8.500344ms)[39m[39m
2026-09-23T15:38:18.3259032Z [32m✔ rejects all-history canonical uniqueness [90m(7.132936ms)[39m[39m
2026-09-23T15:38:18.3261048Z [32m✔ rejects Employment migration bypass: employment-runner-owned-transaction-begin [90m(7.172972ms)[39m[39m
2026-09-23T15:38:18.3261227Z [32m✔ rejects Employment migration bypass: employment-runner-owned-transacti... |