Skip to content

feat(ops-01): add scoped Network registry and Coverage foundation - #83

Merged
HiHonnn merged 18 commits into
developfrom
feature/ops-01-network-runtime
Dec 2, 2026
Merged

HiHonnn merged 18 commits into
developfrom
feature/ops-01-network-runtime

Conversation

@HiHonnn

@HiHonnn HiHonnn commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Station/Hub, link và Coverage hiện chỉ có nguồn đọc nền tảng. PR này bổ sung producer ghi phiên bản qua SYSTEM Admin có explicit ADMIN_NETWORK_WRITE, UI Carrier Network/Coverage và public lookup vào facts đã publish. Eligibility đối chiếu đúng dataset/service/route và Tariff hiện hành; không tạo Quote hoặc quyền Pricing.

V56 chạy sau integrated PricingV55, giữ lịch sử migration/private owner boundary. Command/receipt/audit cùng transaction với current authority, kiểm version/replay/revoke/expiry và chặn đổi mạng khi còn Booking/custody thật. Flag mặc định tắt, accepted M0-v1 LOCAL/TEST; sáu READ code và Staff/Courier engines hiện hữu được giữ nguyên.

Validation:

  • Corrected source 59d9b44763534d02ffb602a3130522b5f11c5dec all5 CI SUCCESS: PG1503 executed PASS/5 allowed skips, H2862/17, Architecture24, guard và Portable Compose53. Artifacts PG15598450441/Compose15595004088 đã xác minh SHA256; cold/restart source/health/ACL/no automatic account PASS, Customer browser11 cases + PG PASS.
  • Owned source-labelled59d Compose: Network/Coverage genuine HTTP/UI/public và R28 Tariff cutover; Workforce browser2/2; real Customer→Quote/Booking→Operations two-parcel intake/receipt/timeline browser1/1. Restart smoke28 checks/5 stages, READ browser1/1, PG11+8+9 PASS; exact business snapshot/UNPAID giữ nguyên. Eleven negative/replay cases, revoke/expiry/new-grant và native Courier rotation/logout/SMTP recovery PASS. Raw/proof/credentials giữ private; không claim Mobile OS-storage DONE.
  • Web342 unit, typecheck/lint/build/strict OpenAPI PASS. Local guard225 total:212 executed PASS/13 Windows skips. Historical e999 PG failure, frozen59-case56 PASS/3 failed và follow-up3/3 PASS được giữ nguyên; sửa shared Merchant callback chỉ áp Network binding đúng operation,19 forward-count expectations và exact5 accepted FK edges.
  • Final HEAD de07df78b08ef5f32c2a319862ed87a7d8af0a6c tích hợp actual develop5a744ac/Nam PR85. Giữ nguyên Nginx fix, ba kiểm tra real TLS singular headers và inventory53; verifier hợp nhất PASS trên Compose thật. App/packages/contracts/workflows/Compose/Nginx tree giống tested59d, không đổi Backend/migration. Strict final-head CI đang chạy.

Task/evidence: docs/tasks/README.md#m0-hoang-network-20261202, docs/quality/traceability.md. OPS-01 giữ TESTING trước protected normal merge/postmerge. Nam đã dùng producer SYSTEM để activate genuine Org/Owner; Business shipping-entitlement/contract và Station consumer cohort còn riêng. Không suy ra full M0/M1 từ scoped PASS.

…work-runtime

# Conflicts:
#	app/backend/src/test/java/com/elogistic/backend/identity/internal/infrastructure/IdentityGrantApplicationTests.java
#	docs/quality/traceability.md
#	docs/tasks/README.md
#	scripts/ci/test_verify_reports.py
…work-runtime

# Conflicts:
#	app/backend/src/test/java/com/elogistic/backend/demo/PostgresFoundationTests.java
#	app/backend/src/test/java/com/elogistic/backend/demo/PostgresTestcontainersTests.java
#	app/backend/src/test/java/com/elogistic/backend/identity/internal/infrastructure/IdentityMigrationTests.java
#	app/backend/src/test/java/com/elogistic/backend/workflow/internal/web/AdminDashboardPostgresCases.java
#	docs/quality/traceability.md
#	docs/tasks/README.md
#	scripts/ci/test_verify_reports.py
#	scripts/ci/verify-reports.py
@HiHonnn

HiHonnn commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Exact e99940bee37c71275b755d2bee0bc178fd9d311a CI checkpoint: guard PASS; digest-verified Architecture24/24 and H2862/17 allowed skips PASS. Backend PostgreSQL job143355114448/run46850524837 remains live in its clean verification step; no cancellation/restart requested.

Compose46850524866 failed its cold-start verifier after the actual stack was healthy. Verified artifact15587584148 SHA256f2eb576609dff4357d412a96f66c584ed4eaacd04a886244f6403a9c8f37c7f5 shows PG18.6,53 migrations/0 failed, exact scriptsMatchSource, healthy five services, correct Admin/Staff bindings with one receipt/audit, no automatic accounts, and intact operator/runtime boundaries. The remaining stale assertion is scripts/dev/verify-compose.py: migrationCount == len(expected) ==52 despite new forward V56 yielding53. This is a verifier inventory defect, not a migration/application/privilege failure.

Prepared one-line correction52→53 locally, retaining every source/health/ACL/binding assertion. The corrected verifier PASSes against the owned actual Compose target. I will let the current live PostgreSQL job finish, retain its evidence, then publish the bounded verifier/checkpoint correction and run required checks on the new exact HEAD. No gate bypass, blanket same-head rerun or migration repair.

@HiHonnn

HiHonnn commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Additional genuine portable Compose acceptance on unchanged application source e99940bee37c71275b755d2bee0bc178fd9d311a (LOCAL/TEST only, owned project argopost-hoang-network-5abbd1d412b4, HTTPS localhost5743):

  • Existing Workforce browser2/2 PASS using actual Mailpit SMTP invitation and native Courier activation/login. SYSTEM site grant/revoke immediately invalidates old sessions; disable/reactivate, reload and READ-only Admin denial PASS. SELECT-only PG8 checks: ACTIVE verified Courier auth-version6,5 command receipts and matching mutation audits, revoked site assignment version2. Bootstrap/Admin onboarding flags remain off; only this owned override enables accepted Staff/Ops/Courier/Workforce features.
  • New Personal cohort uses real Customer enrollment/OTP verification, SYSTEM Operations invitation and two explicit site grants. Writer creates the canonical Station-directed link through HTTP; earlier registry receipt count9 now10, with the historical zero-business snapshot retained separately. Existing Operations browser1/1 PASS: real Quote/Booking53000/two labels, exact two scans, atomic intake, receipt, reload/history, Customer timeline, audience separation/logout and mobile390. Mobile screenshot visually checked.
  • SELECT-only11 checks bind actual Parcel/scan/acceptance/event IDs:2 custody rows,1 acceptance,3 intake receipts/audits,1 tracking event,2 parcel events,1 UNPAID53000 obligation. Eleven negative/replay cases PASS, including simultaneous original-key replay, wrong-site403 and Customer→Ops401. Immutable business MD5 ed519c15b6d53fc7707c4fc35f0b0d35 is identical before/after; no duplicate facts.
  • Genuine Ops grant revocation/replacement6 checks PASS: old session401, fresh session without INTAKE403, replacement grant invalidates intermediate session401, fresh original history200. PG11 checks preserve the identical business hash/UNPAID; revoked grant history remains.

Private raw logs/credentials/mail proofs/PDF/screenshots remain local. Initial negative helper mistakes (Customer-style CSRF field and pre-login challenge) were corrected to native Ops csrfToken after login, with no product/security change. These prove Personal and foundation acceptance; no Business/Merchant/full M0/M1 DONE claim. PostgreSQL CI job143355114448 is still live at the last check; retain HEAD until terminal, then publish the already-verified Compose inventory52→53 correction and exact new-head CI.

@HiHonnn

HiHonnn commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Terminal CI audit for PR83 e99940b: PG job143355114448 FAIL with complete inventory1508 discovered/1503 executed,1447 PASS/25 failures/31 errors/5 allowed skips. Sanitized artifact15590834591 verified SHA256 fb3aefb5833ed225fabbaab3bc0295271834aa4dff4d5354ed63aaecc037c930; this is a source regression, not an infra-only rerun.

Concrete root causes found and bounded fixes prepared: JdbcAdminCommandAdmission called networkBound unconditionally inside the shared callback requireCurrent(). Gate that check with the explicit Network operation flag so existing Merchant callbacks retain their accepted authority and Network still requires its dedicated conjunction/physical binding. Nineteen stale upgrade-to-latest expected counts now include the forward V56 script; historical migration bytes/targets, checksum/row preservation and narrow ACL assertions remain unchanged. Compose verifier inventory52→53 correction remains included.

Currently rerunning all56 failed canonical cases plus3 Network authority/registry/HTTPS regressions on frozen source snapshot 11b40e07a7f4f213196f4484fb2172a7c1ae59f416c5d882b9bb0d2777074ad6. No app/scripts-CI edits or commit during that run. After a valid terminal result, integrate Nam's docs-only PR82 develop7296814 and publish one corrected exact-head CI; no merge/READY/full M0 claim before required checks and postmerge acceptance.

@phamquoainam

phamquoainam commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

@HiHonnn — Nam M1 genuine Merchant reviewer download reproduced HTTP200 with X-Content-Type-Options nosniff, nosniff; strict unchanged client correctly rejects it. Your exact PR83 two-line Nginx correction (proxy_hide_header X-Content-Type-Options and Referrer-Policy) fixes the real target; I am reusing those exact lines, preserving your config comment, in bounded branch feature/mer-01-evidence-download to unblock Merchant before the broader Network runtime integration. No other PR83 runtime, contracts or migration is pulled in. Both branches have the same change at this shared hunk, so do not remove either security header/validator when integrating.

New validation goes into existing scripts/dev/verify-compose.py: real TLS static200/publicAPI200/deniedAPI401 must have exactly one no-store/nosniff/no-referrer. Observed RED before proxy correction, GREEN after; Nginx syntax and current Compose52-migration/ACL/health verification PASS. Reviewer UI downloads both actual CLEAN private synthetic files with exact SHA256, checklist completes, distinct decider genuine password step-up activates one Org/Owner; scope/Shipping is separate. I will link the small consumer regression PR here; no additional administrative review/approval chain requested. Existing volumes and source/cohorts preserved, no weakened privacy or CI tests.

Published bounded consumer regression: PR85 #85 HEAD810bbf34b83a3291f035a9c060f82a1a0f810bc1. Exact shared Nginx two-line diff reused from this PR83; branch includes only its scoped verifier/evidence, not Network code.

@HiHonnn HiHonnn changed the title feat(OPS-01): guard Network/Coverage commands and public lookup feat(ops-01): add scoped Network registry and Coverage foundation Dec 2, 2026
…work-runtime

# Conflicts:
#	docs/quality/traceability.md
#	scripts/dev/verify-compose.py
@phamquoainam

Copy link
Copy Markdown
Owner

@HiHonnn — producer7343272264 consumed on actual integrated develop 5a744aca99bac8d3d9f20eb07093d4823e6bb9ff after your normal PR85 merge. PR85 exact810 all5 checks SUCCESS; PG artifact15596383072 digestf8d4946bb87924bfbb016f35125744d97b9e77829650838b02c3a5359e69fb8c verified:1498 executed PASS/0failure/error/5 allowed skips. Entire merge tree equals810. Postmerge genuine private evidence hash-download/immutable PG/Personal labels4/Business context+privacy/mobile4 and Compose52/ACL/health/headers PASS. MER-01 full DoD is satisfied on5a; Business shipping/Station/Finance/full M1 remain separate.

Native Workforce → Operations READY on Nam target. SELECT-only verified existing SYSTEM current actor has exactly IDENTITY_MANAGEMENT/IDENTITY/146c01af-2585-41d0-beee-eb6938056c24, active verified/native/not local_admin_principal or Staff; then actual native login/Workforce current admission200. Enabled accepted LOCAL Staff/Operations/Courier/Workforce flags on existing target; Admin onboarding/delivery and Root bootstrap stayed off. Reused existing rings/physical bindings/Backend EXECUTE; zero DB login/membership/private-DML additions. UI invitation→actual SMTP /ops/activate→native204 activation→Ops login200, empty /ops/sites200 and SYSTEM denial401, original-key201 replay/current ACTIVE detail:6 bounded checks across original run+continuation PASS. First helper equality wrongly expected replayed=false; canonical Receipt.replayed=true correction verified with unchanged target/committedVersion/outcome; initial evidence retained, no product fix or duplicate actor.

Actual target OPERATIONS account cf6bd55d-5362-444e-a3b8-8a890b24587a, current version 2; original INVITE operation fa0fcb08-9500-4b0d-ad20-42be3bfc7f5c. PG verifies one verified ACTIVE Operations principal, one genuine Workforce INVITE receipt+audit,0 site assignments and0 carrier sites; runtime Operations operator membership remains false. No credential/token/proof/email/private file is published. This removes the offline Ops principal blocker; registry/site grants remain pending your effective PR83 producer integration. Nam Personal cohort still exact2 Parcels/one UNPAID obligation/no fabricated custody or AT_STATION.

Status contribution for the existing integration path: pushed feature/mer-01-acceptance commit 993681b93b38896cd7b9dda13b2793ed15b2dfc5 based directly on5a. Only docs/tasks/README.md and docs/tasks/03-nam/MER-01.md: closes actual MER-01 DoD, records nativeOps readiness, maps PRC-01.b Personal read-back vs Business gap, corrects MER-02.a status column accidentally overwritten by the previous evidence update (correct status TESTING). All48 parent/39 increment column/status enums and DONE-checkbox consistency, links and diff whitespace PASS. No runtime source/schema/workflow edits or extra docs-only PR/CI cycle. Please cherry-pick this bounded docs contribution during your already-required PR83 develop integration (now old59d checks all SUCCESS but branch DIRTY), preserving your ownership/status deltas. If README conflicts, retain both members' evidence and keep only MER-01 DONE; no Business/Station/M1 DONE. This is producer/consumer coordination, not another reviewer/approval chain.

After actual registry merge, Nam will use the separate explicit Network Writer and actual on-target site IDs/versions, then native Workforce SITE_READ/STATION_INTAKE grants/fresh Ops login, same-Parcel UI scan/accept/receipt/PG/tracking. No Hoang target IDs or direct business SQL/legacy pilot assignment. Pending Business schema-owner operator and Finance-purpose decisions remain unapproved; they are not inferred from this genuine Workforce path.

@HiHonnn

HiHonnn commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

@phamquoainam — consumed7343989431. Your genuine on-target Operations account cf6bd55d-5362-444e-a3b8-8a890b24587a/current version2, INVITE receipt/audit, SMTP activation/login and zero implicit site assignment confirm the integrated Workforce producer handoff; no offline Ops DB principal is needed. Postmerge5a MER-01/private-download/PG and Business-context4 evidence is accepted for scoped consumer traceability; shipping/Station/Finance remain separate.

I fetched exact docs contribution993681b93b38896cd7b9dda13b2793ed15b2dfc5 (only README + MER-01 task file), inspected its MER-01 DONE/checklist and MER-02.a TESTING column correction, and prepared the cherry-pick as 0f9a545 on feature/m0-m1-acceptance-sync. Validation PASS:48 parent/39 increment column/status enums and checkbox consistency,153 local file targets, zero app/packages/contracts/workflow/Compose/infra/scripts delta.

Timing crossed your comment: PR83 had already resolved both5a integration conflicts and published final de07df78b08ef5f32c2a319862ed87a7d8af0a6c; its exact-head CI is live. It retains header assertions+53 and both evidence histories; app tree equals fully PASS59d (PG1503/5). I will keep that valid live run intact, then batch your prepared contribution with the already-needed Hoang acceptance/status synchronization after actual PR83 merge/postmerge. No standalone PR/check cycle just for your two docs files and no early Business/M1 DONE; your ownership/status changes are preserved. This also lets the registry producer release before a status-only head change would restart its long PG gate.

After effective registry integration, continue with actual on-target Network Writer/site/link IDs, current target versions for both Workforce site grants and fresh Ops login. I will provide the exact merge/source receipt. Your genuine Business context evidence can advance IAM-01.b independently of shipping-entitlement approval; no duplicate consumer/reviewer approval chain is requested.

@HiHonnn

HiHonnn commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

@phamquoainam — producer update: final PR83/de07 retains your PR85 responseHeadersPass +53 exact scripts; Arch24/H2(862+17 skips)/guards/portable Compose are terminal PASS and digest-verified, PG143427146051 still running, no HEAD churn. Your genuine Ops account/native activation and MER-01 acceptance contribution remain preserved for the acceptance sync.

Independent OPS-02.b remaining gap is now SOURCE_AVAILABLE in stacked draft PR87 b589e3f798e86ad049d9ee37ac4837293b7f2448: additive GET /api/v1/ops/sites/{siteId}/shipments/{id}/intake-receipt, own current actor/site only, null for another actor, stored ACCEPT receipt + actor/time/exact parcel/scan set. Existing v2 shipment DTO and receipt-by-key unchanged; no new permission/purpose/migration or business mutation. Contract/OpenAPI and PG privacy/read-purity + Business pipeline + genuine Personal two-parcel HTTPS reload evidence are in that PR. It will target develop after83; own Compose/CI/merge/postmerge remain required before READY.

For the remaining genuine Business cohort, your7342515675 says the exact narrow configure_local_workspace GRANT + pricing.configure_local_business_contract continuation is prepared but outside the V42-only authorization. Please link its existing reviewable contract/decision or post only the finite non-secret target/resource/action/permission/tariff/lease bounds and current approval status, so we can resolve that actual authority dependency without duplicating an approval chain. I will not infer shipping/COD/credit or schema-owner access from ACTIVE Org/SYSTEM IAM/PRICING. Finance operational admission stays separate. Network/Personal integration proceeds independently; no request to wait for full parents.

@HiHonnn
HiHonnn merged commit 0f99018 into develop Dec 2, 2026
5 checks passed
@HiHonnn

HiHonnn commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

@phamquoainam @trietnguyenminh1502-nmt — READY: OPS-01 Network/Coverage v1 / accepted M0-v1 LOCAL/TEST producer, normal protected PR83 merge to actual develop 0f9901895f8d6277390a6605f3ff8b2b45d573f3. Exact tested head de07 has all5 checks SUCCESS: Backend46871423804, Portable46871423569. Digest-verified PG artifact15599814957 SHA2568fa78d37482cbef909cd19559eea73b1125e82581a39cd63f5733384d152bba0:1508 discovered/1503 executed and PASS/0 failure/error/5 allowed skips. Architecture24; H2=862 PASS/17 allowed skips. Compose artifact15599940522 SHA2562ee3e065be351c0eeb8f6294215f281c528bd569aedab4b9b1b2149f2d42c452 proves cold/restart53 exact scripts, ACL/health/singular TLS headers/no automatic accounts and real Customer browser/PG.

Merged application/contracts/scripts/workflow/infra/Compose trees equal tested de07. Owned Compose refreshed with both backend and web images labelled actual0f99018, all services healthy, bootstrap/onboarding/delivery off. Postmerge genuine5-stage28-check API/native/public smoke + READ browser1/1(retries0), verifier53/current source/ACL/headers PASS. SELECT-only Intake11 + Network8 + native9 invariants PASS: original two-parcel custody/receipt/audit/tracking snapshot unchanged, UNPAID53000, recovered Courier version7 and0 active native sessions/refresh after logout. Expired Ops site leases correctly403; explicit SYSTEM revoke/replacement grants invalidate old session401 and restore original history200 without changing facts.

Consumer integration uses the already supplied native contract7343272264, contracts/openapi/carrier-network.yaml, contracts/openapi/workforce-management.yaml and ADR0026. Nam can now refresh/rebuild actual develop on his owned target, forward-migrate V56 (53 scripts total; historical migrations untouched), use an explicit ENTRY+NETWORK_READ+NETWORK_WRITE Writer to create actual Station/Hub/canonical link, then his current genuine SYSTEM IAM actor grants SITE_READ/STATION_INTAKE to actual Ops cf6bd55d-5362-444e-a3b8-8a890b24587a with returned on-target IDs/current If-Match and fresh login after grants. Use actual BookedCargo dropOffCode/dataset/service/route; do not copy Hoang site IDs or create legacy/fake assignment. Both Network/Coverage flags remain default-off and may be enabled only on the already authorized owned LOCAL/TEST physical binding. Original-key receipt/replay and current permission/version/expiry rules remain mandatory.

Please ACK actual on-target registry/site-grant/Personal two-parcel intake result or the precise remaining finite producer gap; no need to wait for PR87 or full task parents. PR87 is only the additive own receipt/history reload consumer, still pending its own integration checks. Business shipping entitlement/standard contract and Finance decisions remain separate; this release does not grant shipping/COD/credit, fake custody, Production authority or shared M0 Mobile completion. README DoD sync is being batched with Nam993681 contribution into the already needed acceptance change.

@phamquoainam

Copy link
Copy Markdown
Owner

@HiHonnn ACK PR83 exact de07df78b08ef5f32c2a319862ed87a7d8af0a6c all5 checks SUCCESS and actual merge develop 0f9901895f8d6277390a6605f3ff8b2b45d573f3; merged tree equals tested HEAD. Nam is refreshing the existing isolated nam-m0-pricing-current target with forward V56, preserving volumes/cohorts and comparing the captured25-table business fingerprints before any registry/grant/intake mutation. Existing native Ops actor cf6bd55d-5362-444e-a3b8-8a890b24587a and original Personal2Parcel cohort are retained. PR87 remains SOURCE_AVAILABLE only until its own CI/merge/postmerge; no dependent completion claimed.

Finite Business continuation requested in7344951123 (NOT EXECUTED; pending Nam's existing technical approval question, no new administrative chain):

  • Target only this existing LOCAL/TEST installation, approved Org be40f1f8-93ca-49ff-89b7-53115bb7836e, genuine initial Owner Membership 8e4a8d47-622c-4680-b533-01c58d7e2713 and its actual verified applicant.
  • Reuse authorized bootstrap; one transaction SET LOCAL argopost.operator_environment=LOCAL, verified existing NOLOGIN schema/table owner via transaction-local role only. No new login/membership/lease extension, runtime privilege, schema/migration or raw business DML. The V42 dedicated4h login remains NOLOGIN/member-revoked/sessions0 and is NOT reused.
  • Existing merchant.configure_local_workspace: GRANT OWNER only dashboard.read, shipment.draft.read, shipment.draft.write, shipment.prepare, shipment.quote, shipment.book, shipment.label.read, exact Org/member, saved request UUID and decision ref.
  • Existing pricing.configure_local_business_contract: ACTIVATE expectedVersion0, exact Org, existing standard LOCAL/TEST ARGO-ROAD-TARIFF-1 pilot. No negotiated pricing/COD/credit/payment.
  • Verify physical binding/current Identity/owners/versions first; original-key receipt/replay/audit and all-or-nothing rollback, then genuine Business UI Quote/Booking/Labels + owner/Org negatives + PG readback. Session authority ends at transaction completion; rollback/revoke only via existing canonical operators with history retained.
    Business policy for non-COD is already approved; this pending scope is solely owner-operator execution beyond the explicit two-function V42 limit. Finance purpose/admission remains a separate unapproved boundary. Please retain Nam993/your prepared0f9a545 in the existing acceptance/status batch after actual integration; no duplicate docs-only PR from Nam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants