Commit Graph

2506 Commits

Author SHA1 Message Date
Jakub Zych
44a39ff250 docs(32.2-02): complete admin consent screen and account items plan 2026-11-21 00:57:03 +01:00
Jakub Zych
ee754b6b5d chore(32.2-02): rebuild embedded admin dist with the connect screen and account items 2026-11-21 00:53:01 +01:00
Jakub Zych
2708982601 feat(32.2-02): My account item rows with per-row actions; connect screen docs
- AccountContributions renders a section's items as list rows (title,
  subtitle, meta joined with ' · ') with one button per item action, or
  the dashed empty block; sections without items render as before
- item actions confirm with :title filled as text, post to
  /account/contribution-items/{name}/{item}/actions/{action}, reload and
  focus the section heading; 404 toasts item_gone and reloads
- myaccount.items_empty, item_gone, item_action_named in en and pl
- docs/backend/admin-spa.md: the /connect screen and My account item rows
2026-11-21 00:52:23 +01:00
Jakub Zych
6900bd1a72 feat(32.2-02): every consent card state, account switch and login hint
- Loading skeleton (aria-busy, no buttons), Expired (404 or no request,
  no call), Load error with Try again, No grantable scope (Deny only),
  Returning with the continue link for http(s) redirects
- 422 shows scopes_required under the scopes; 5xx, network, 400 and a
  javascript:/data:/vbscript: redirect show decide_failed; ticks kept
- 401 hands over to expireSession; focus follows the state heading
- Use another account: logout() without the router, then login with the
  /connect?request= redirect
- LoginView shows mcp_connect.login_hint when the redirect is /connect
2026-11-21 00:48:02 +01:00
Jakub Zych
f46c90f7fb feat(32.2-02): admin consent card at /connect posts the decision and leaves for redirect_uri
- /connect route without shell and without public, so login round-trips back
- ConnectView ready state: client mark, fact box, catalog-order scope picker
  with the token-dialog * rule, Stay connected, Deny and Allow
- Allow/Deny POST /mcp/consent/{request}; the browser leaves through
  window.location.assign after refusing javascript:, data: and vbscript:
- MCPConsent, MCPConsentDecision and AccountItem type aliases
- backend::lang.mcp_connect copy in en and pl; connect page title
- smoke test: ticks, POST body, assign called, router never used
2026-11-21 00:42:01 +01:00
Jakub Zych
1d3e6df6ec docs(phase-32.2): update tracking after wave 1 2026-11-21 00:35:58 +01:00
Jakub Zych
9809f9bea8 docs(32.2-01): complete framework seams plan 2026-11-21 00:33:39 +01:00
Jakub Zych
fcc7bbde25 feat(32.2-01): in-transaction BackendAccessRevokedEvent at every admin access change
- cabana: BackendAccessRevokedEvent with reasons deleted, deactivated,
  password_changed, password_set, password_reset and permissions, fired
  synchronously inside the save's transaction; a listener error rolls back
- fired on admin delete, deactivate, a password set by another admin, an own
  password change, admin:reset-password, a role/permissions/superuser change
  and a role's permission change (every holder); MCPSubjectChanged unchanged
- role delete fires nothing (refused while the role has holders); no sign
  out everywhere action exists
- smoke test TestBackendAccessRevokedSmoke (Postgres)
2026-11-21 00:32:26 +01:00
Jakub Zych
3f7ce6020d feat(32.2-01): per-item rows and item actions on My account contributions
- pact: AccountContribution.Items/ItemActions/ItemsEmpty, AccountItem,
  AccountItemAction, AccountItemActionInput, ErrAccountItemNotFound
- cabana: the list sends items (null without Items), permitted item actions
  and the empty line; boot refuses item actions without Items
- cabana: POST {api}/account/contribution-items/{name}/{item}/actions/{action}
  runs only for an item the administrator's own Items listed, in a transaction
  (path outside /account/contributions/ to avoid a ServeMux overlap)
- swag views; admin.json and schema.d.ts regenerated; route inventories
2026-11-21 00:22:13 +01:00
Jakub Zych
97d7ee0586 feat(32.2-01): admin consent endpoint for administrator-only MCP grants
- pact: MCPAdminConsent provider interface, MCPAdminConsentRequest,
  MCPAdminConsentDecision, ErrMCPConsentNotFound, ErrMCPConsentNoScopes
- cabana: GET/POST {api}/mcp/consent/{request}, interactive-only, scope
  policy of personal tokens (requested, catalog, owned; * collapses)
- cabana: TokenScopeNames and TokenScopeLabels export the token-scope catalog
- swag views and annotations; admin.json and schema.d.ts regenerated so the
  contract and conformance inventories stay green
- phrasebook keys mcp_connect.request_not_found and no_grantable_scopes
2026-11-21 00:14:43 +01:00
Jakub Zych
c63bfa3ef2 feat(32.2-01): administrator-only MCP grants and a configurable consent handoff
- pact: MCPGrant.Subject with MCPGrantSubjectBackend, MCPSubject.ScopeLimited
- pier: a backend-subject grant resolves straight to a scope-limited backend
  subject bound to oauth:backend:<client>:<admin>, no link lookup, no ceiling
- pier: the backend guard scope-limits ScopeLimited subjects like g15_ tokens
- wristband: Options.ConsentPath and Options.DefaultScopes; defaults unchanged
- smoke tests TestBackendSubjectSmoke (Postgres) and TestConsentPathSmoke
2026-11-21 00:06:19 +01:00
Jakub Zych
45eb34e5c4 docs(32.2): create phase plan
Five plans in four waves: framework seams, admin SPA consent route and plugin backend mode in parallel, app wiring with a local proof, then unit tests and the release checkpoint. Research open questions marked resolved.
2026-11-20 23:52:23 +01:00
Jakub Zych
9783b3d530 docs(32.2): UI design contract 2026-11-20 23:00:29 +01:00
Jakub Zych
28a07f6b27 docs(32.2): research and validation strategy 2026-11-20 21:58:45 +01:00
Jakub Zych
6c44946dfa docs(state): insert phase 32.2 and record its context session 2026-11-20 20:39:26 +01:00
Jakub Zych
b70071060c docs(32.2): capture phase context 2026-11-20 20:39:13 +01:00
Jakub Zych
e74af3b6c3 docs: capture exploration — mcp-oauth-backend-subject 2026-11-20 19:31:35 +01:00
Jakub Zych
e4863b22fb docs(quick-261119-kj8): sm-user-plugin JWT blacklist sweep as scheduled command 2026-11-19 15:08:10 +01:00
Jakub Zych
005fb4a2cb docs(quick-261118-qsd): compile module README Go examples via src= references v0.6.6 2026-11-18 20:25:00 +01:00
Jakub Zych
8c03cc3621 feat(docsite): require src= on Go code blocks of module READMEs (quick-261118-qsd) 2026-11-18 20:18:38 +01:00
Jakub Zych
1e56d750ef docs(lighthouse,postcard,signpost): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:13:14 +01:00
Jakub Zych
a2551d83d7 docs(pact,party,surf): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:07:39 +01:00
Jakub Zych
cd55a3980d docs(pier,seaglass,sunrise,sunscreen,tide): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:04:47 +01:00
Jakub Zych
6409837b0c docs(phrasebook,sieve,towel,wire,wristband): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:01:05 +01:00
Jakub Zych
c517db564c docs(flare,kiosk,lagoon): compile README Go examples via src= (quick-261118-qsd)
- flare: send region run by TestDocsNotifyReply against a loopback TLS push
  service; blogSubscriptions and the publish-source region run by
  TestDocsSubscriptionSource on a Postgres container (skips under -short)
- kiosk: write, newest and client regions run by TestDocsWriteManifest (a
  copy of the literal fixture), ExampleVersionsResponse and
  TestDocsBlogReleases (httptest registry); the CheckT fence reuses
  TestPluginManifest
- lagoon: new open region run by TestDocsOpenFromApp (DocsDSN added to
  export_docs_test.go); the model, create-post, on-database, publish and
  migrations fences reuse the Database pages' targets
2026-11-18 19:53:27 +01:00
Jakub Zych
d04454c57b docs(cooler,diary,festival,fetchguard): compile README Go examples via src= (quick-261118-qsd)
- cooler: ExampleFromApp and the articlesController purge declarations;
  AllowExport run by TestDocsAllowExport on miniredis
- diary: blogLog and ExampleFor; the generated main's run function, run by
  TestDocsRun in a temp directory with diary.Reset on cleanup
- festival: PostPublished/ExampleBus_Fire and PostFormExtended/Collected/
  ExampleBus_Collect, with a TestDocsDeclarations for Collected
- fetchguard: fetch region run by TestDocsFetchImage (loopback refused as
  private_ip), client region run by TestDocsSyncItems on a stub transport
2026-11-18 19:48:01 +01:00
Jakub Zych
becb31fbef docs(cabana,compass,conga): compile README Go examples via src= (quick-261118-qsd)
- cabana: the hand-written controller fence points at Post, PostsController
  and BlogPlugin declarations; TestDocsDeclarations now calls each of them
- compass: mailSettings and ExampleOpen; the YAML block matches the
  directory ExampleOpen writes
- conga: job, dispatch and progress fences reuse the Jobs page targets; new
  reindex and worker regions run in TestDocsDispatch (Docker), and the
  schedule fence is FeedPlugin.Schedule, checked by TestDocsSchedule
2026-11-18 19:44:21 +01:00
Jakub Zych
a0f5b5e561 docs(backpack,beachcomber,boardwalk,bonfire,bouncer): compile README Go examples via src= (quick-261118-qsd)
- backpack: Greeter and ExampleApp_Publish replace the whole-file fence
- beachcomber: Post's Searchable methods plus a new SearchIndexSchema, a
  Plugin.Boot that installs the gate, and the existing gate/search regions
- boardwalk: new example_test.go; the mount region runs in ExampleHandler
- bonfire: importPostsCommand and acmeMain (the binary's main as a function
  returning the exit code), run by ExampleExecute; ExampleCatalog_Has
- bouncer: users/FindByID and ExampleNewJWTGuard; RefreshRoute run by
  TestDocsRefreshRoute on a production compass config
2026-11-18 19:39:50 +01:00
Jakub Zych
48527e4206 docs(breakwater): compile README Go examples via src= (quick-261118-qsd)
- the Usage fence becomes two src= references to ExampleRender and
  ExamplePurify, filled by summer docs:sync
- the Phase 11.1 SC4 acceptance scan now allows top-level src= fences
  in module READMEs (nested ones are still refused) and expects the
  api/<name> pages to caption them like docs/ pages
2026-11-18 19:32:11 +01:00
Jakub Zych
721830c502 feat(docsite): check, caption and sync src= blocks in module READMEs (quick-261118-qsd)
- checkSnippets compares top-level src= fences of module READMEs like
  docs/ pages; the README src= refusal is gone
- Sync also rewrites drifted src= fences in modules/<name>/README.md,
  still all-or-nothing across pages and READMEs
- fenceAnnotator captions top-level src= fences on every page
- the snippet-readme-src planted violation now plants a drifted README
  fence instead of the old refusal
- utilities.md, README.md and CLAUDE.md describe src= in module READMEs
2026-11-18 19:29:36 +01:00
Jakub Zych
830f305376 style: gofmt cabana mail routes and postcard store test 2026-11-18 18:42:59 +01:00
Jakub Zych
66ec8de315 docs(quick-261118-lbt): per-app plugin instances, closable limiter store, one router build 2026-11-18 15:50:11 +01:00
Jakub Zych
38f7f3a777 feat(surf): AssembleRouter builds the router and handler once; the router stops the MCP endpoint it mounted (quick-261118-lbt)
- surf.AssembleRouter returns the router and the compiled handler from
  one build, so an mcp.enabled app is not built twice; Assemble keeps
  its signature and is implemented on top of it
- serve uses AssembleRouter with a deferred Router.Close
- pier.Pier.Close stops the session reaper and the Redis warm-up; the
  router that mounted the endpoint owns it
- ExampleAssembleRouter, routing/testing docs and the surf/pier READMEs
2026-11-18 15:44:56 +01:00
Jakub Zych
d9e21ad019 fix(surf): close the rate-limit store a router created (quick-261118-lbt)
- MemoryStore.Close stops the sweep goroutine; Attempt keeps working
- Router.Close runs what the router owns (the fallback MemoryStore of
  BuildRouter), never a store published on the app
- BuildRouter closes the router on every error return
- serve closes its router and installCooler's fallback store on exit;
  route:list closes its router
- README and rate-limiting docs describe the ownership
2026-11-18 15:41:05 +01:00
Jakub Zych
ea1befdd6c feat(party): give every application its own plugin instances (quick-261118-lbt)
- Register keeps a pristine shallow copy of each pointer-to-struct plugin;
  every Activate hands its application a fresh copy, so a second
  application no longer rebinds the first one's plugins
- value plugins and pointers to non-struct types are used as is
- party.RegisterFactory for plugins whose init builds maps or pointers
- activate() and its tests are unchanged
- README and plugin/lifecycle docs describe the per-application rule
2026-11-18 15:37:06 +01:00
Jakub Zych
4d3b1e9f62 docs(phase-35): complete phase - UAT 14/14 (real-inbox check passed, G-35-9 framework part resolved) v0.6.5 2026-11-16 10:05:23 +01:00
Jakub Zych
0c24e0e656 test(35): re-verify after quick 261115-cha - 23/23 truths, human_needed (inbox check) 2026-11-16 08:19:09 +01:00
Jakub Zych
419e41fee5 test(35): note G-35-9 framework part closed by quick 261115-cha 2026-11-15 09:11:21 +01:00
Jakub Zych
ed17833ab7 docs(quick-261115-cha): let a mail template use another plugin's layout by full code 2026-11-15 09:11:11 +01:00
Jakub Zych
b8487b028b test(quick-261115-cha): cover cross-plugin mail layouts through overrides, the editor and the index
- TestCrossPluginLayoutOverride: a template override naming the lender's
  layout, a customized lender layout, Editor Validate and Preview
- TestCrossPluginLayoutSync (Docker): SyncIndex points the borrower rows'
  layout_id at the lender's layout row and keeps it on a second run
2026-11-15 09:09:58 +01:00
Jakub Zych
1fb4254291 feat(quick-261115-cha): let a mail template use another plugin's layout by full code
- resolveLayoutLocked: after the plugin's own alias and the built-in
  aliases, a full layout name already in the catalog resolves to itself;
  an unregistered full name fails with a require-the-owner hint
- another plugin's short alias and the short-alias error are unchanged
- TestCrossPluginLayout covers register, send, errors and precedence
- postcard README and docs/services/mail.md describe the rule
2026-11-15 09:08:21 +01:00
Jakub Zych
42ab223e79 test(35): complete UAT - 12 passed, 1 issue 2026-11-15 08:57:50 +01:00
Jakub Zych
358da17aeb docs(quick-261114-p5n): style the user and paymentgateway plugin mail layouts 2026-11-14 18:48:31 +01:00
Jakub Zych
4ef3aa1f90 test(35): seed UAT re-test rows after re-verification 2026-11-14 18:46:48 +01:00
Jakub Zych
3541c9bda3 docs(35): re-verify after quick 261114-p5m - all automated checks pass, human verification needed 2026-11-14 18:46:33 +01:00
Jakub Zych
5735e7c7d5 test(35): reconcile UAT gaps G-35-1 and G-35-8 as resolved by 35-07 2026-11-14 18:38:19 +01:00
Jakub Zych
8fabf87b8a docs(quick-261114-p5m): fix CR-02 residual quoted end tags in the mail URL check 2026-11-14 18:38:18 +01:00
Jakub Zych
f1f284a0f9 test(quick-261114-p5m): pin end tags inside quoted attributes in the mail URL check
- refuse cases for all eight probe payloads (noscript href and handler,
  svg style, title and textarea, noembed, xmp, conditional comment)
- send fallback and editor refusal for the three that survive rendering
- escaped_send subtests check svg title/textarea sends with an x/net/html
  parser oracle, scripting on and off
- accept cases for conditional comments, quoted CSS, a safe noscript
  link and a literal comment opener in an attribute
2026-11-14 18:37:08 +01:00
Jakub Zych
e47d4ae6cf docs(quick-261114-p5m): amend the mail URL scheme note for quoted end tags 2026-11-14 18:25:32 +01:00
Jakub Zych
d6ac0aeb4b fix(quick-261114-p5m): read tags across raw-text and comment ends in the mail URL check
- unsafeMarkupAt runs the existing HTML reading, then a tag reading in
  which attribute quoting alone decides where a tag ends
  (NextIsNotRawText after raw-text start tags, comment openers blanked)
- both readings share unsafeAttrs; existing refusals keep their message
  and snippet
- svg/style end tag inside a quoted attribute is refused at check, save
  and send; README and docs/services/mail.md describe the second reading
2026-11-14 18:25:13 +01:00