Skip to content

Prepare org-scoped staff administration - #193

Merged
Yoshiofthewire merged 8 commits into
masterfrom
feat/tenancy-staff-read
Nov 24, 2026
Merged

Yoshiofthewire merged 8 commits into
masterfrom
feat/tenancy-staff-read

Conversation

@Yoshiofthewire

@Yoshiofthewire Yoshiofthewire commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

In recorded multi mode, dedicated staff administrators get an organization-scoped, read-only metadata console. Health and readiness probes finish independently on network failure, and Refresh retries them.

  • Scope account/usage reads to one organization; default audit reads to platform events, with explicit organization selection. Recheck staff authority and commit the read audit before publishing metadata.
  • Show organization status and pool/usage metadata in the existing single-navigation shell. Validate responses and suppress late results from another selected scope.
  • Keep customer account/team changes in KyIdentity and refuse those web mutations in multi mode. Staff grants no note-content or content-key access; single-mode administration remains available.
  • Integrate merged host-maintenance and fixed-SSO work from master 5c90fdd857010b4a843bc9dc9027bcf7795b0a22, retaining merged object/credential pins. Resolve four documentation conflicts by retaining both owning contracts.

Review this: staff_routes.go owns authority, scope and audit-before-disclosure; StaffConsole.tsx owns selected-scope results; api.ts owns independent probe failure handling. Generated assets can be assessed through authored sources and exact build/dist evidence.

Checked: at 531462c84c66d9b139be570d487b6a05d2a345f0, fresh affected race compilation, whole-repo build/vet, CI actionlint, normal/FIPS auth+SSO suites and focused combined staff/SSO/maintenance/restore tests on SQLite and PostgreSQL, SQLite upgrade golden, mdBook, 287 local links/fragments and strong-crypto Compose checks passed. Exact-source archive verification covered 1,588 blobs before/after execution; focused runner exited 0. Reused approved ff3d054 evidence: 693 frontend tests, Node 26.13 build and identical repeat/dist comparison, both staff/admin-separation browser fixtures, and race-enabled embedded-web tests. Root independently verified all 190 web files, go.mod/go.sum, 43 embedded assets and nine authored production files are unchanged. Across the entire tree, 1,554 files are unchanged from the approved head and 34 are added or updated; all 1,588 current blobs match the fresh tested archive. The complete non-document PR patch is byte-identical.

Merged validation: reviewed head 531462c passed 12 CI checks with two intentional publication skips; exact-head security cleared and Guide reports no major issues. Supplemental coverage binds all 26 changed paths to the documented reviewed authored sources and exact build output, accounting for truncated automatic input and omitted bundles. Minified bodies were not manually reviewed. Owner interface approval remains applicable. Guarded merge 1dfcdd7c971f204794405bff1f5884c1c02ac811 independently confirmed; the merged tree exactly matches the tested head.

Not checked: preserved queued Major full jobs are not counted as passes. No new full runner was started. Hosted lifecycle, provider qualification and PostgreSQL backup/recovery readiness remain gated.

You need to: nothing further for interface approval: the owner's All Approved remains applicable to the unchanged interface. This PR is merged. Hosted startup remains refused.

Detail

Integration head 531462c84c66d9b139be570d487b6a05d2a345f0 has parents approved ff3d054f84e7386fed23a4a952a3e2acccade697 and master 5c90fdd857010b4a843bc9dc9027bcf7795b0a22. Only AGENTS.md, DESIGN.md, IMPLEMENTATION_PLAN.md and docs/ASSURANCE-CASE.md required manual conflict resolution; both exact staff and incoming host/SSO blocks remain. Incoming non-document changes match master exactly. Root's per-probe rejection fix, api-status.test.ts and extended browser case are untouched. No interface behavior or product decision changed.

The non-document patch against each corresponding base is identical: 1,712,314 bytes, SHA256 611eae8644c3bcc900428f68662fb47438eb27da66142aadc91f699d8e592718. This is a local Git diff-format hash, not a GitHub raw-diff claim. Approved-to-integrated delta: 34 paths / 47 hunks. Current PR: 26 paths / 43 hunks.

Fresh verification used a no-git exact archive on Usagi, Go 1.27.4/default auto toolchain, PostgreSQL 17.12 UTF8/C/C, persistent caches, the shared integration lock, 6 GiB/no-swap/400% CPU scope, race -p 2 and blank push relays. All source hashes remained unchanged. PostgreSQL-specific tests skipped on SQLite executed against the isolated PostgreSQL fixture; skips are not counted as executions.

Reused UI evidence establishes component passes, not a whole-wrapper pass: the original root wrapper exited 2 on a nonexistent documentation script after UI checks; the correct mdBook/link checks passed separately and again on this integrated source. Mocked multi metadata over a throwaway single-mode browser server demonstrates UI behavior, not hosted operation. Old-head technical clearances do not count as new-head gates.

🤖 Generated with Claude Code

Yoshiofthewire and others added 5 commits November 23, 2026 17:30
Audit org-scoped account and audit reads before disclosure, list mirror/pool metadata, and remove multi-mode customer/team mutations. Add a read-only staff console with validated metadata and scope-bound async state, retaining single JSON/UI behavior and the startup refusal. Build artifacts and rendered checks follow before publication.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
Compile the multi-only org selection case against the shared default-org constant.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
Filter the multi-mode event ledger by its stored org column while leaving standalone cleanup history unchanged. Reload the browser fixture so its synthetic multi session is actually fetched.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
Use the native combobox name: Playwright label-text matching includes nested option text while the actual accessible name remains Organization or Audit scope.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
Build the committed browser assets with Node 26.13.0; keep the standalone administration path unchanged.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
@Yoshiofthewire

Yoshiofthewire commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪

🧪 PR contains tests

⚡ No major issues detected


⚠️ Review coverage: The following files were not included in this review because of the token budget:

  • internal/web/dist/assets/index-MO5nEwio.js
  • internal/web/dist/assets/CanvasPage-Cs4cgNZD.js

Advisory only: this comment never gates the pull request.
gpt-6.1-sol using pr-agent on behalf of Yoshi

@Yoshiofthewire

Yoshiofthewire commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Security review - cleared

Detail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kynotes-server-193, where it is readable by the operator and expires seven days after the last post.

Review input was truncated; omitted changes were not reviewed.


gpt-6.1-sol using security-audit on behalf of Yoshi

@Yoshiofthewire

Yoshiofthewire commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Autonomous review - 1/1 personas cleared

  • security: cleared

Merging remains a human decision; this bot never approves.


gpt-6.1-sol using security-audit on behalf of Yoshi

Retain every reviewed web input, dependency manifest, embedded asset and staff/API source byte while integrating master 69cbd5c. Union four owning-document conflicts without dropping merged object/credential contracts. Correct only the supplied merged-but-unconsumed status of shared API 78; retain the object pin, owner approval and startup gates.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Note

🤖 GPT 6.1 Sol responding on behalf of Yoshiofthewire

Integrated current master69cbd5c into193 at 712b15e95db44d5491ed06e4b4a226fbce2a071c, preserving merged196/197. Four conflicts were owning-document unions. All189tracked web inputs/dependency manifests,43embedded assets and HTTPAPI/auth files match reviewed875c3bd exactly. The complete non-document PR patch against its respective base is byte-identical; the14old-to-new changed paths are docs/module metadata/master object+credential imports.

Fresh exact-head normal/FIPS SQLite/PostgreSQL affected race checks, staff authority/audit/wrong-org/golden, complete object/part and credential tests, build/vet/actionlint/docs passed (session52612 exit0). Frontend58files/689tests and Node26 build/dist pass;43rebuilt assets match both reviewed embedded and prior-built bytes. Full Major verification is queued once, session59405; the original audited source/full job is untouched.

Fresh CI/security/Guide and supplemental-audit/screenshot rebinding remain with the dispatcher. This evidence does not grant owner UI approval.19406bd1d1 and1957357c2b remain untouched; no startup gate changes.

Handle each health and readiness fetch rejection at the shared status boundary. Preserve the other probe result and let both administrator consoles leave the pending state after a network failure. Cover pending, outage and refresh recovery in the browser and verify HTTP and independent network failures in unit tests. Regenerate the Node 26 assets and document the probe contract.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Note

🤖 gpt-6.1-sol responding on behalf of Yoshiofthewire

Fixed Misleading status in ff3d054f84e7386fed23a4a952a3e2acccade697. The shared health/readiness helper now turns each rejected network request into that probe's failed result while preserving the other result, covering both admin consoles.

Three network-failure unit cases and the staff browser assertion failed before correction. All 693 frontend tests, both browser fixtures (including pending → failed → Refresh recovery), Node 26 typecheck/build, identical rebuilt assets, race-enabled embedded-web tests and documentation/link checks now pass. All 1,575 committed blobs match the tested manifest. Fresh current-head CI/security/Guide clearance and owner interface approval remain required; hosted startup stays refused.

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Note

🤖 gpt-6.1-sol responding on behalf of Yoshiofthewire

Supplemental coverage is bound to ff3d054f84e7386fed23a4a952a3e2acccade697: all 26 changed files accounted; eight previously independently audited production files remain byte-identical, and serviceStatus is the sole new production delta. Its complete change was read, and the current automatic review marks Misleading status resolved.

All 1,575 GitHub blobs match the tested source manifest. All 43 embedded files match both the recorded Node 26 build manifest and generated output, including the two bundles omitted from the Guide. Minified bodies use source/build mapping; no new independent audit or manual bundle-body review is claimed. Evidence is recorded on the private tenancy handoff board.

Current CI has 12 passes and two intentional publication skips; Guide reports no major issues. Owner approval for the staff UI remains outstanding. No merge or hosted-launch approval follows from this binding.

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Note

🤖 gpt-6.1-sol responding on behalf of Yoshiofthewire

The owner approved this interface with “All Approved” after the dispatcher's four-item explanation.

For this PR, approval covers the read-only staff metadata console and its health/readiness behavior, reviewed at ff3d054f84e7386fed23a4a952a3e2acccade697. The interface-approval hold is lifted. Root retains current-head CI/security/Guide checks, dependency-order integration and merge responsibility.

This is approval to merge the described interface. Live maintenance, deployment and hosted startup/launch retain their separate gates.

Merge master 5c90fdd into the approved ff3d054 staff surface. Preserve every approved web input, per-probe status correction, unit/browser case, dependency manifest and embedded asset byte. Union four owning-document conflicts while retaining incoming staff maintenance and fixed-SSO contracts. No interface behavior, startup or product decision changes.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.com>
@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Note

🤖 GPT 6.1 Sol responding on behalf of Yoshiofthewire

Integrated approved ff3d054f84e7386fed23a4a952a3e2acccade697 with master 5c90fdd857010b4a843bc9dc9027bcf7795b0a22 in 531462c, pushed with the exact old-head lease. Four documentation conflicts retain both contracts; incoming production changes match master. No interface behavior changed, so the owner's linked All Approved remains applicable.

Identity proof: all 190 web inputs, go.mod/go.sum, all 43 embedded assets, root's serviceStatus correction, api-status.test.ts and extended browser case are unchanged. All nine authored production files and 1,575 tested blobs match root's ff3 evidence. The complete non-document PR patch against corresponding bases is byte-identical (1,712,314 bytes; local Git diff SHA256 611eae8644c3bcc900428f68662fb47438eb27da66142aadc91f699d8e592718).

Fresh exact-source checks exited 0: affected race compile; whole-repo build/vet and CI actionlint; normal/FIPS auth+SSO suites and focused combined staff, cross-org, SSO/session/step-up/directory/erasure, maintenance/bootstrap/fingerprint/credential and restore checks on SQLite and PostgreSQL; SQLite upgrade golden; mdBook, 287 local links and strong-crypto Compose checks. Go 1.27.4/default auto, PostgreSQL 17.12, shared lock/resource caps/blank relays; all 1,588 archive blob hashes stayed unchanged.

Reused unchanged-source component evidence: 693 frontend tests, Node 26.13 build and repeat/dist check, two browser fixtures, race-enabled embedded-web tests. The prior root wrapper's exit 2 was a later nonexistent docs command; correct docs checks passed separately. No whole-wrapper or new full-suite pass is claimed. No new Major full runner or job cancellation/restart; frozen inputs/jobs remain intact.

The brief now distinguishes fresh checks from reused evidence. Dispatcher owns new-head CI/security/Guide, supplemental coverage binding, default-base CLEAN and merging. No startup/recovery/provider gate was lifted.

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Note

🤖 gpt-6.1-sol responding on behalf of Yoshiofthewire

Supplemental coverage is bound to 531462c84c66d9b139be570d487b6a05d2a345f0: all 26 changed files accounted, all nine authored production files and all 43 embedded assets match the approved head and its prior source/build evidence. All 190 web files and go.mod/go.sum are unchanged; owner interface approval remains applicable.

Correction to the integration reply: 1,554 files are unchanged from the approved tree; 34 are added or updated. The earlier claim that all 1,575 prior blobs were identical was too broad. Root independently verified all 1,588 current blobs against the fresh tested archive. Incoming non-document changes match merged master, and the non-document PR patch is byte-identical to the approved version.

This reuses the documented independent authored-source review, the reviewed status correction and exact Node 26 build mapping. Minified bundle bodies were not manually reviewed; no new independent security audit is claimed. Fresh CI/security/Guide remain required before merge; hosted startup remains refused.

@Yoshiofthewire
Yoshiofthewire merged commit 1dfcdd7 into master Nov 24, 2026
14 checks passed
@Yoshiofthewire
Yoshiofthewire deleted the feat/tenancy-staff-read branch November 24, 2026 04:44
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.

1 participant