32 KiB
phase, verified, status, score, covered_files, covered_digest, covered_files_note, behavior_unverified, overrides_applied, decision_coverage, re_verification, deferred, advisory
| phase | verified | status | score | covered_files | covered_digest | covered_files_note | behavior_unverified | overrides_applied | decision_coverage | re_verification | deferred | advisory | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 19-chat-and-chatchannels | 2026-10-17T20:40:27Z | passed | 26/26 must-haves verified |
|
v2:sha256:573444ee2af546235cd14dbc5133a31859ffe07afd0c9e1aac1600a858f05ddc | verification.fingerprint covers only paths under the summercms.go root. Sibling implementation re-read this pass: sm-chat-plugin f4aeb87 (canSend → isParticipant, ReassignCreatedBy, boot user.Deleting, TestTeammateDMWriteIDOR, TestGapClosureSmoke); sm-chatchannels-plugin 3738f45 (TestDeletingCascade Unscoped + created_by creator path); sm-user-plugin under fonoteka.go/plugins/golem15/user c077029 (FormAfterDelete FireDeletingEvent then Unscoped). This pass did not re-run the postgres suite; named tests TestGapClosureSmoke, TestTeammateDMWriteIDOR, TestDeletingCascade and bash scripts/check-phase19.sh --self-test / --all were recorded green in the gap-closure round. | 0 | 0 |
|
|
|
Phase 19: Chat and ChatChannels Verification Report
Phase Goal: Golem15.Chat and Golem15.ChatChannels run on SummerCMS as shared plugins, with realtime delivery through lighthouse, ready for the Wavepath port.
Verified: 2026-10-17T20:40:27Z
Status: passed
Re-verification: Yes — after gap closure 19-06 and 19-07
MVP note: ROADMAP marks this phase mode: mvp but the ROADMAP goal is not in user-story form (user-story.validate → valid: false). PLAN.md goals are valid user stories. This report uses the PLAN story for User Flow Coverage and does not refuse verification.
User story (from plans): As an application developer, I want to have Chat and ChatChannels run on SummerCMS as shared plugins with realtime through lighthouse, so that they are ready for the Wavepath port.
Previous pass (verified: 2026-10-17T20:17:10Z) was gaps_found 23/26: CR-01 (canSend HasMember fallback) and CR-02 (no created_by reassignment on user.Deleting). This pass re-read production sources. Both criticals are closed. 19-REVIEW-DISPOSITION.md records CR-01 and CR-02 as fixed. WR-01..WR-04 and IN-01..IN-02 stay open and do not flip a must-have.
User Flow Coverage
User story: «As an application developer, I want to have Chat and ChatChannels run on SummerCMS as shared plugins with realtime through lighthouse, so that they are ready for the Wavepath port.»
| Step | Expected | Evidence | Status |
|---|---|---|---|
| Depend on shared plugins | golem15.chat and golem15.chatchannels compile as sibling modules with Winter layout |
sm-chat-plugin module git.golem15.com/golem15/sm-chat-plugin, PluginID golem15.chat, Requires golem15.user; sm-chatchannels-plugin golem15.chatchannels, Requires golem15.chat + golem15.user |
✓ |
| Mount generic APIs | /_chat/api/v1 and /_chatchannels/api/v1 behind jwt.auth + named buckets |
sm-chat-plugin/routes.go APIPrefix, chat-api/chat-dm; sm-chatchannels-plugin/routes.go chatchannels-api |
✓ |
| Realtime through lighthouse | created.chat.message Bind + chat / user authorizers; no WebSockets plugin |
boot.go lighthouse.Bind + Register("chat"); user plugin Register("user"); no WebSockets package |
✓ |
| Ready for the Wavepath port | PHP send and GDPR delete behave the same so Wavepath can thin-alias | canSend returns s.isParticipant only; ReassignCreatedBy on user.Deleting; TestTeammateDMWriteIDOR 404; TestDeletingCascade creator path keeps Bob's channel |
✓ |
Outcome clause is observably true. WR-01..WR-04 remain open handler/service bugs; they are not Wavepath-port blockers on this phase's must-haves.
Goal Achievement
Observable Truths
| # | Truth | Status | Evidence |
|---|---|---|---|
| 1 | SC-19-1: chat schema, models, adapters, jobs, commands and routes port 1:1; ChatChannels plugs in through the same adapter | ✓ VERIFIED | Schema/models/jobs/commands/routes exist and ChatChannels uses chat.Context. Send authorization now matches PHP: canSend returns s.isParticipant after nil/zero-id guards (classes/service.go:304-308); SendMessage maps false to ErrNotParticipant (service.go:159-164). No HasMember fallback in canSend. HasMember remains only on GetOrCreateDm / GetGroupChat / context helpers. Named case TestTeammateDMWriteIDOR (cited PASS) |
| 2 | SC-19-2: realtime broadcasts and channel authorization go through lighthouse; no WebSockets plugin | ✓ VERIFIED | bootRealtime binds chat.message and Registry.Register("chat", AuthorizeChatLookup); AuthorizeChat splits chat:conversation:{id} locally, participants only, capabilities ["prs"]. No WebSockets plugin in either repo. Unchanged this gap round |
| 3 | SC-19-3: golden tests match PHP serializers and every realtime event; /_wave deferred to the Wavepath port |
✓ VERIFIED | Chat goldens: message_to_api_array, created_chat_message (ids-only, no content key), typing/read/unread/deleted. Channel goldens: channel/category/pref/pin/mention/mentions.changed. Required names in scripts/check-phase19.sh. Unchanged this gap round |
| 4 | SC-19-4: unit tests delivered in the last plan | ✓ VERIFIED | Plan 19-07 (tests last of the gap round): TestTeammateDMWriteIDOR, TestDeletingCascade creator path, PG_CHAT_TESTS includes the new name. Plan 19-05 goldens/PHP_METHOD_MAP.md/TestNoQuestStreamTrace still required |
| 5 | D-01 chat: module git.golem15.com/golem15/sm-chat-plugin, package chat, plugin ID golem15.chat, Requires golem15.user; tables golem15_chat_conversations, _participants, _messages, _thread_summaries |
✓ VERIFIED | go.mod, plugin.go PluginID, baseline CREATE TABLE names. Unchanged |
| 6 | D-04 / D-05: one gormigrate ID 202610160001_create_golem15_chat_baseline, IF NOT EXISTS, TIMESTAMPTZ/JSONB, never adds or drops the legacy owner column |
✓ VERIFIED | Baseline ID and SQL; family_id absent. Gap plans did not ALTER the baseline; golem15_chat_conversations_created_by_foreign ON DELETE CASCADE still present (lines 26-27) |
| 7 | D-11: Registry.Add stores the alias; Resolver returns ErrUnknownContextType and is never skipped; chat registers no host aliases |
✓ VERIFIED | contracts/registry.go; bootRegistry publishes an empty registry. Unchanged |
| 8 | D-03: Context.CanActFor; default adapter true only when actorID == memberID |
✓ VERIFIED | contracts/context.go interface + DefaultCanActFor. Unchanged |
| 9 | D-13 / D-16 chat writes: SendMessage / EditMessage / DeleteMessage persist in lagoon.Transaction and Fire MessageCreated / Updated / Deleted inside that tx; Bind alias chat.message; ids-only payload |
✓ VERIFIED | classes/service.go and writes.go Fire inside the tx; boot.go Bind Alias: "chat.message". Unchanged |
| 10 | D-06 / D-08: /_chat/api/v1; contexts as /contexts/{type}/{id}/…; participation checked on every call; unknown type 404 |
✓ VERIFIED | Prefix and addressing hold. Write path is now participant-only: canSend → isParticipant; HTTP ErrNotParticipant → 404 (api/errors.go:56-64). TestTeammateDMWriteIDOR: A opens DM with B (exactly two participants); C (same acme.teams host) POST /conversations/{id}/messages is 404; A is 200/201. Read path still CanView (participant or overseer). CONTEXT D-08 is the contract; Plan 02's older "participation or HasMember" wording is no longer in production canSend |
| 11 | D-09: groups use jwt.auth and named buckets; DM start chat-dm Max 10 / minute keyed by frontend user id else ClientIP |
✓ VERIFIED | routes.go surf.Use("jwt.auth", "throttle:chat-api") and throttle:chat-dm. Unchanged |
| 12 | D-07: operations match Wavepath community chat including PUT /threads/{rootId}/mute with body muted; persistence is golem15_chat_thread_mutes |
✓ VERIFIED | Route mounted; mute table in chat baseline. Unchanged |
| 13 | D-10: /api/chat/dm and /api/chat/attachments/{messageId}/{fileId} are not registered |
✓ VERIFIED | Only /_chat/api/v1 groups in routes.go. Unchanged |
| 14 | D-18: uploads through attach.Store with ChatAttachmentPolicy (MaxBytes 102400*1024, max 5, KNOWN_EXTS, SVG/HTML/XML banned); downloads stream from /_chat/api/v1/attachments/{messageId}/{fileId} after participation check; missing and unauthorized 404 |
✓ VERIFIED | attachment_policy.go, api/download.go. WR-04 (filename header) does not undo the participation gate |
| 15 | D-01 / D-04 chatchannels: module git.golem15.com/golem15/sm-chatchannels-plugin, package chatchannels, golem15.chatchannels, Requires chat+user; baseline eight PHP v1.6.0 tables, never adds users.handle |
✓ VERIFIED | go.mod, plugin.go, baseline. Unchanged |
| 16 | D-14: AccessResolver CanAccess/CanManage default false; SetAccessResolver installs the host; Boot slog.Warn while DenyAll remains |
✓ VERIFIED | classes/deny_all.go; boot.go Warn + Publish. Unchanged |
| 17 | D-13 chatchannels message listeners: Boot listens MessageCreated / Updated / Deleted; accrue/reconcile/remove mentions and indexer; does not import chat models |
✓ VERIFIED | boot.go Listen[*chatevents.MessageCreated] etc. Unchanged |
| 18 | D-20: MessageIndex.SearchableAs returns messages; document fields id/content/conversation_id/sender_id/type/created_at Unix; ShouldBeSearchable excludes TYPE_SYSTEM and empty content; indexer fail-open |
✓ VERIFIED | models/message_index.go; search_indexer.go. WR-01 remains a warning on the HTTP handler, not this contract |
| 19 | D-12: rewrite of golem15_chatchannels_channels.context_type uses the same LegacyPHPClass map as chat; command is idempotent |
✓ VERIFIED | Both rewrite commands walk LegacyPHPClass. Unchanged |
| 20 | D-15: users.handle VARCHAR(255) NULL + unique index users_handle_unique IF NOT EXISTS; HandleGenerator charset subset of [A-Za-z0-9._-]; MentionParser @([\w.-]{2,255}) resolves among that conversation's participants |
✓ VERIFIED | Handle migration, generator, mention parser. Unchanged |
| 21 | D-13 GDPR: user.Created / user.Deleting fire from create paths and FormAfterDelete before unscoped delete; chatchannels listens and SeverUserFromContext preserves remaining members' channels |
✓ VERIFIED | Chat now owns user.Deleting reassignment: boot.go Listen[*userclasses.DeletingEvent] → WithDB(ev.Tx).ReassignCreatedBy. ReassignCreatedBy (service.go:115-139) updates created_by to another remaining participant; empty conversations skip (CASCADE of an empty row is acceptable). Baseline CASCADE and PHP constraint name unchanged. chatchannels SeverUserFromContext still only removes that user's members/prefs/participants. TestDeletingCascade: Bob-as-member block kept; Alice creates a second private channel with Bob; Fire DeletingEvent then Unscoped delete of Alice; Bob's member row, channel row, and conversation row remain; created_by is Bob. bootChannels default plugins include golem15.chat so the listener is mounted. Cited PASS |
| 22 | D-17: sm-user-plugin Boot registers lighthouse namespace user if free; user:{id} allowed only to that user |
✓ VERIFIED | classes/authorizer.go RegisterUserAuthorizer / AuthorizeUser. Unchanged |
| 23 | D-06 / D-08 / D-09 chatchannels API: /_chatchannels/api/v1, jwt.auth, bucket chatchannels-api 120/min, contexts at /contexts/{type}/{id}/… |
✓ VERIFIED | routes.go full ChannelService resource set. WR-01..WR-03 remain handler/service bugs, not missing prefix/auth |
| 24 | D-21: testdata/PHP_METHOD_MAP.md lists 59 chat and 106 chatchannels PHP test methods, each mapped to a Go case; TestPHPMethodMap fails if a PHP method is missing |
✓ VERIFIED | 59 and 106 test_* rows still present |
| 25 | D-02: TestNoQuestStreamTrace greps production sources for the four locked tokens and fails on a hit; fixture id acme.teams stays out of production |
✓ VERIFIED | Both plugins' queststream_trace_test.go; required by check-phase19.sh |
| 26 | scripts/check-phase19.sh is fail-closed: named tests must pass; skipped/missing/red required test fails; no admin or layers stage |
✓ VERIFIED | PG_CHAT_TESTS now includes TestTeammateDMWriteIDOR (slash-free) plus TestChatHTTPTracer; PG_CHATCHANNELS_TESTS still has TestDeletingCascade; self-test token loop greps the new name. This pass: bash scripts/check-phase19.sh --self-test → phase19 self-test passed. Gap-round --all recorded phase19 postgres passed |
Score: 26/26 truths verified (0 present, behavior-unverified)
CONTEXT D-08 is the contract for item 10. Production canSend no longer implements the Plan 02 "or HasMember" restatement.
Deferred Items
| # | Item | Addressed In | Evidence |
|---|---|---|---|
| 1 | /_wave route-level parity |
Wavepath app port | SC-19-3 last sentence |
| 2 | Vue chat UI, satellites, chat:migrate-attachments |
Phase 19.1 / D-19 | ROADMAP 19.1; CONTEXT D-19 |
WR-01..WR-04 and IN-01..IN-02 are not deferred must-haves. They stay open by 19-06/19-07 plan prohibition and do not flip this verdict.
Advisory (New Scope, Unevidenced)
None. Re-verification Step 7 found no new-scope unevidenced blockers. WR-01..WR-04 and IN-01..IN-02 were already recorded on the prior pass as warnings/info and remain so.
Required Artifacts
| Artifact | Expected | Status | Details |
|---|---|---|---|
../sm-chat-plugin/plugin.go |
golem15.chat plugin | ✓ VERIFIED | PluginID, Requires, config/lang/migrations/models/jobs/commands/routes |
../sm-chat-plugin/updates/202610160001_create_golem15_chat_baseline.go |
idempotent v1.3.0 baseline minus D-05 column | ✓ VERIFIED | IF NOT EXISTS; PHP-named created_by CASCADE kept (19-06 prohibition) |
../sm-chat-plugin/contracts/context.go |
Context including CanActFor and BroadcastChannel | ✓ VERIFIED | |
../sm-chat-plugin/classes/service.go |
ChatService successor | ✓ VERIFIED | canSend → return s.isParticipant; WithDB; ReassignCreatedBy |
../sm-chat-plugin/boot.go |
Bind + chat authorizer + user.Deleting | ✓ VERIFIED | bootListeners → onUserDeleting → ReassignCreatedBy |
../sm-chat-plugin/events/events.go |
MessageCreated/Updated/Deleted | ✓ VERIFIED | golem15.chat.message.created etc. |
../sm-chat-plugin/routes.go |
APIPrefix, buckets, jwt.auth | ✓ VERIFIED | /_chat/api/v1 |
../sm-chat-plugin/api/download.go |
participation-gated private blob stream | ✓ VERIFIED | Content-Disposition; WR-04 unsanitized filename |
../sm-chat-plugin/classes/attachment_policy.go |
Limits and banned MIME | ✓ VERIFIED | 102400 |
../sm-chat-plugin/gap_closure_test.go |
19-06 smoke of both post-fix behaviours | ✓ VERIFIED | TestGapClosureSmoke (not a required gate name) |
../sm-chat-plugin/http_tracer_test.go |
HTTP 404 teammate DM write | ✓ VERIFIED | TestTeammateDMWriteIDOR + unchanged TestChatHTTPTracer |
../sm-chatchannels-plugin/plugin.go |
golem15.chatchannels | ✓ VERIFIED | |
../sm-chatchannels-plugin/updates/202610160001_create_golem15_chatchannels_baseline.go |
eight v1.6.0 tables | ✓ VERIFIED | golem15_chatchannels_channels |
../sm-chatchannels-plugin/classes/channel_service.go |
ChannelService | ✓ VERIFIED | CreateChannel; SeverUserFromContext still no created_by write (chat owns it); WR-02/WR-03 in Join/Pin |
../sm-chatchannels-plugin/classes/search_indexer.go |
fail-open beachcomber | ✓ VERIFIED | SearchableAs |
../sm-chatchannels-plugin/http_tracer_test.go |
creator-delete CASCADE case | ✓ VERIFIED | TestDeletingCascade Bob-as-member + Alice-as-creator Unscoped |
../fonoteka.go/plugins/golem15/user/updates/202610160002_add_handle_to_users.go |
handle column | ✓ VERIFIED | ADD COLUMN IF NOT EXISTS handle |
../fonoteka.go/plugins/golem15/user/classes/handle_generator.go |
unique handle generation | ✓ VERIFIED | |
../sm-chatchannels-plugin/routes.go |
/_chatchannels/api/v1 |
✓ VERIFIED | |
../sm-chat-plugin/testdata/PHP_METHOD_MAP.md |
59-row map | ✓ VERIFIED | 59 test_* rows |
../sm-chatchannels-plugin/testdata/PHP_METHOD_MAP.md |
106-row map | ✓ VERIFIED | 106 test_* rows |
scripts/check-phase19.sh |
phase gate | ✓ VERIFIED | TestTeammateDMWriteIDOR in PG_CHAT_TESTS and self-test token loop; --self-test green |
Artifacts: 22/22 exist and are substantive. None are stubs.
Key Link Verification
| From | To | Via | Status | Details |
|---|---|---|---|---|
../sm-chat-plugin/boot.go |
../sm-chat-plugin/classes/authorizer.go |
lighthouse.From then Registry.Register("chat", …) |
✓ WIRED | Register("chat", classes.AuthorizeChatLookup(…)) |
../sm-chat-plugin/classes/service.go |
../sm-chat-plugin/events/events.go |
Fire MessageCreated/Updated/Deleted inside the write tx | ✓ WIRED | |
../sm-chat-plugin/classes/service.go |
../sm-chat-plugin/classes/service.go |
canSend returns s.isParticipant; SendMessage maps false to ErrNotParticipant |
✓ WIRED | service.go:308 and :159-164 |
../sm-chat-plugin/api/errors.go |
../sm-chat-plugin/classes/service.go |
ErrNotParticipant maps to HTTP 404 |
✓ WIRED | errors.go:58 |
../sm-chat-plugin/boot.go |
../fonoteka.go/plugins/golem15/user/classes/events.go |
Listen[*userclasses.DeletingEvent] then ReassignCreatedBy on the event Tx |
✓ WIRED | boot.go:183-192 |
../sm-chat-plugin/console/rewrite_context_types.go |
../sm-chat-plugin/contracts/registry.go |
D-12 rewrite uses LegacyPHPClass |
✓ WIRED | |
../sm-chat-plugin/api/messages.go |
../sm-chat-plugin/classes/service.go |
handlers call classes.Service; they do not write rows |
✓ WIRED | PostMessage → SendMessage → canSend |
../sm-chat-plugin/api/download.go |
modules/lagoon/attach |
bucket.NewReader after participant check |
✓ WIRED | |
../sm-chat-plugin/http_tracer_test.go |
../sm-chat-plugin/api/dm.go |
POST DM then teammate POST message is 404 | ✓ WIRED | TestTeammateDMWriteIDOR |
../sm-chatchannels-plugin/boot.go |
../sm-chat-plugin/events/events.go |
Listen MessageCreated/Updated/Deleted | ✓ WIRED | |
../sm-chatchannels-plugin/classes/channel_service.go |
../sm-chatchannels-plugin/contracts/access_resolver.go |
every access check through resolver; default deny-all | ✓ WIRED | |
../sm-chatchannels-plugin/classes/search_indexer.go |
modules/beachcomber |
SearchableAs "messages"; fail-open Sync |
✓ WIRED | |
../fonoteka.go/plugins/golem15/user/plugin.go |
modules/lighthouse |
Boot Register("user") if free |
✓ WIRED | |
../sm-chatchannels-plugin/boot.go |
../fonoteka.go/plugins/golem15/user/classes/events.go |
Listen user.Deleting then SeverUserFromContext |
✓ WIRED | GDPR outcome now holds because chat reassigns first/alongside |
../sm-chatchannels-plugin/http_tracer_test.go |
../fonoteka.go/plugins/golem15/user/controllers/users_admin_controller.go |
Fire DeletingEvent then Unscoped delete of the creator |
✓ WIRED | TestDeletingCascade lines 298-323; bootChannels mounts golem15.chat |
../sm-chatchannels-plugin/api/channels.go |
../sm-chatchannels-plugin/classes/channel_service.go |
handlers call ChannelService only | ✓ WIRED | |
../sm-chat-plugin/golden_test.go |
../sm-chat-plugin/testdata/goldens |
byte-compare event name, channels, payload | ✓ WIRED | TestGoldenEvents |
../sm-chatchannels-plugin/golden_test.go |
../sm-chatchannels-plugin/testdata/goldens |
byte-compare arrays and mentions.changed |
✓ WIRED | TestChannelGoldenEvents |
scripts/check-phase19.sh |
../sm-chat-plugin/http_tracer_test.go |
PG_CHAT_TESTS requires TestTeammateDMWriteIDOR by name |
✓ WIRED | go_named slash-free; self-test token loop |
Wiring: 19/19 connections present.
Data-Flow Trace (Level 4)
| Artifact | Data Variable | Source | Produces Real Data | Status |
|---|---|---|---|---|
api/messages.go ListMessages |
out []MessageAPI |
svc.GetMessages → GORM golem15_chat_messages then MessageAPI |
Yes | ✓ FLOWING |
api/messages.go PostMessage |
created message | svc.SendMessage → canSend/isParticipant then tx.Create(msg) |
Yes; teammate-of-DM is 404 | ✓ FLOWING |
api/download.go |
blob bytes | bucket.NewReader after participant check |
Yes | ✓ FLOWING |
api/search.go |
ids |
beachcomber.Engine().SearchIDs on collection messages |
Yes, but unscoped (WR-01) | ✓ FLOWING |
| lighthouse Bind payload | created.chat.message | broadcastPayload ids-only |
Yes; golden has no content |
✓ FLOWING |
ReassignCreatedBy |
created_by |
GORM update to another golem15_chat_participants.user_id on the deleting event Tx |
Yes; proven by TestDeletingCascade |
✓ FLOWING |
No hollow/static serializer path. Search is real engine data without a context filter (WR-01, not a must-have).
Behavioral Spot-Checks
| Behavior | Command | Result | Status |
|---|---|---|---|
| Fail-closed detectors | bash scripts/check-phase19.sh --self-test |
phase19 self-test passed (this pass) |
✓ PASS |
| Phase gate postgres names | grep TestTeammateDMWriteIDOR scripts/check-phase19.sh |
in PG_CHAT_TESTS and self-test token loop |
✓ PASS |
| CR-01 canSend is participant-only | read classes/service.go:304-308 |
return s.isParticipant(ctx, conv.ID, senderID) after nil/zero-id guards; no HasMember |
✓ PASS (code) |
| CR-01 HTTP teammate DM write | TestTeammateDMWriteIDOR (gap-round cited) |
C POST into A↔B DM is 404; A is 200/201; two participants | ✓ PASS (cited) |
| CR-02 ReassignCreatedBy + listener | read service.go:115-139 + boot.go:176-192 |
chat-owned user.Deleting updates created_by; baseline CASCADE not ALTER'd |
✓ PASS (code) |
| CR-02 creator-delete CASCADE | TestDeletingCascade (gap-round cited) |
Fire + Unscoped Alice; Bob member, channel, conversation remain; created_by = Bob |
✓ PASS (cited) |
| CR-01/CR-02 smoke | TestGapClosureSmoke (gap-round cited) |
Carol ErrNotParticipant on Alice/Bob DM; Alice send ok; group lazy-join; after Alice delete DM created_by = Bob |
✓ PASS (cited) |
| Phase gate (gap-round) | bash scripts/check-phase19.sh --all |
recorded phase19 postgres passed; not re-run here |
✓ PASS (cited) |
Postgres suite was not re-run. Must-haves that previously failed are proven by source plus the named tests the user recorded green this gap round.
Probe Execution
| Probe | Command | Result | Status |
|---|---|---|---|
| — | — | No scripts/*/tests/probe-*.sh; plans record spec-less probe fallback skipped |
SKIP |
Decision Coverage
All 21 trackable CONTEXT.md decisions (D-01..D-21) are honored by shipped artifacts (check decision-coverage-verify: honored 21 / total 21, not_honored: []). D-08 and D-13 now hold at runtime as well as in artifacts.
Requirements Coverage
REQUIREMENTS.md has no SC-19-* rows (ROADMAP Phase 19 Requirements line is TBD). Plans declare SC-19-1..SC-19-4 and D-01..D-21. No REQUIREMENTS.md IDs are orphaned onto this phase.
| Requirement | Source Plan | Description | Status | Evidence |
|---|---|---|---|---|
| SC-19-1 | ROADMAP + 19-01..04, 19-06 | 1:1 schema/models/adapters/jobs/commands/routes | ✓ SATISFIED | participant-only canSend; TestTeammateDMWriteIDOR |
| SC-19-2 | ROADMAP + 19-01 | lighthouse realtime, no WebSockets | ✓ SATISFIED | Bind + authorizers |
| SC-19-3 | ROADMAP + 19-02, 19-05 | goldens; /_wave deferred |
✓ SATISFIED | goldens + named tests; /_wave deferred |
| SC-19-4 | ROADMAP + 19-05, 19-07 | unit tests last plan | ✓ SATISFIED | 19-07 named postgres + check-phase19.sh |
| D-01 | 19-01, 19-03 | module/package/plugin IDs and table names | ✓ SATISFIED | |
| D-02 | 19-05 | no QuestStream tokens | ✓ SATISFIED | TestNoQuestStreamTrace |
| D-03 | 19-01 | CanActFor | ✓ SATISFIED | |
| D-04 / D-05 | 19-01, 19-03 | squashed IF NOT EXISTS baselines; no family_id | ✓ SATISFIED | |
| D-06 / D-07 / D-09 / D-10 | 19-02, 19-04 | generic APIs, throttle, no legacy /api/chat | ✓ SATISFIED | |
| D-08 | 19-02, 19-06, 19-07 | participation on every call | ✓ SATISFIED | canSend → isParticipant; HTTP 404 |
| D-11 / D-12 | 19-01, 19-03 | registry + rewrite | ✓ SATISFIED | |
| D-13 | 19-01, 19-03, 19-04, 19-06, 19-07 | festival hooks + GDPR sever | ✓ SATISFIED | chat ReassignCreatedBy; chatchannels SeverUserFromContext; creator-delete test |
| D-14 | 19-03 | deny-all AccessResolver | ✓ SATISFIED | |
| D-15 | 19-04 | users.handle | ✓ SATISFIED | |
| D-16 / D-17 | 19-01, 19-04 | lighthouse chat + user namespaces | ✓ SATISFIED | |
| D-18 | 19-02 | private attachments | ✓ SATISFIED | |
| D-19 | 19-01 prohibition | migrate-attachments not ported | ✓ SATISFIED | TestMigrateAttachmentsAbsent; command not in Commands() |
| D-20 | 19-03 | beachcomber MessageIndex | ✓ SATISFIED | |
| D-21 | 19-05 | PHP method map 59+106 | ✓ SATISFIED |
Anti-Patterns Found
No TBD / FIXME / XXX in plugin production sources or scripts/check-phase19.sh.
| File | Line | Pattern | Severity | Impact |
|---|---|---|---|---|
../sm-chatchannels-plugin/api/search.go |
25-38 | SearchIDs with only q after context access check (WR-01) |
⚠️ Warning | Cross-context existence oracle; not a locked must-have |
../sm-chatchannels-plugin/classes/channel_service.go |
959-968 | JoinChannel only clears has_left (WR-02) |
⚠️ Warning | Public join does not grant send rights |
../sm-chatchannels-plugin/classes/channel_service.go |
1332-1344 | PinMessage does not load the message (WR-03) |
⚠️ Warning | Pin IDOR across conversations |
../sm-chat-plugin/api/download.go |
63-68 | Content-Disposition interpolates unsanitized filename (WR-04) |
⚠️ Warning | Header injection via upload name |
../sm-chat-plugin/classes/writes.go |
38-40 | GetGroupChat ignores addParticipant error (IN-01) |
ℹ️ Info | Failed join 200s then 404s on send (after CR-01 this is consistent) |
../fonoteka.go/plugins/golem15/user/controllers/users_admin_controller.go |
516-532 | user.Deleting only from admin FormAfterDelete (IN-02) |
ℹ️ Info | A later API/console hard-delete would skip Sever and reassignment |
Prior blockers CR-01 (canSend HasMember) and CR-02 (CASCADE without reassignment) are gone from this table: canSend is participant-only; chat user.Deleting reassigns created_by.
Open review findings WR-01..WR-04 and IN-01..IN-02 stay in 19-REVIEW-DISPOSITION.md as open. They do not independently flip a must-have.
Test Quality Audit
| Test File | Linked Req | Active | Skipped | Circular | Assertion Level | Verdict |
|---|---|---|---|---|---|---|
sm-chat-plugin/golden_test.go |
SC-19-3 | yes | no | no — goldens _source names frozen PHP @943b712 |
Value (byte-compare) | OK |
sm-chatchannels-plugin/golden_test.go |
SC-19-3 | yes | no | no — frozen PHP @b92fb42 | Value | OK |
sm-chat-plugin/php_method_map_test.go |
D-21 | yes | no | no | Value (map completeness) | OK |
sm-chat-plugin/queststream_trace_test.go |
D-02 | yes | no | no | Behavioral (walk sources) | OK |
sm-chat-plugin/http_tracer_test.go TestTeammateDMWriteIDOR |
D-08 / CR-01 | yes (postgres) | skips under -short via TestMain |
no | Behavioral (HTTP 404 + participant 200/201 + two-row count) | OK — closes the prior insufficient-assertion gap |
sm-chat-plugin/gap_closure_test.go TestGapClosureSmoke |
D-08 / D-13 | yes (postgres) | -short skip |
no | Behavioral | OK — smoke, not a required gate name |
sm-chatchannels-plugin TestDeletingCascade |
D-13 / CR-02 | yes (postgres) | -short skip |
no | Behavioral (Fire + Unscoped; member/channel/conversation/created_by) |
OK — creator path added; Bob-as-member kept |
| HTTP tracers TestChatHTTPTracer | D-08 | yes (postgres) | -short skip |
no | Behavioral | OK for stranger-of-context; teammate-of-DM is the new named case |
Disabled tests on requirements: 0 requirement-linked skips (Docker skip in TestMain is the documented -short gate).
Circular patterns detected: 0.
Insufficient assertions: 0 (the two prior insufficient cases are now named and asserted).
Prohibitions
| Statement | Tier | Status | Evidence |
|---|---|---|---|
| Production sources never contain the four D-02 tokens; plugin.name is Chat / Czat | grep | held | TestNoQuestStreamTrace; lang names unchanged |
| summercms.go modules are not edited; no new third-party require beyond the analog pin set | grep | held | Framework artifact is scripts/check-phase19.sh only |
chat:migrate-attachments is not ported; /_wave and friendship DMs stay out |
grep / judgment | held | No command; no /_wave routes; GetOrCreateDm is context-scoped |
Chat blobs never on StaticHandler / StaticHandlerPublic |
grep | held | |
users.handle is not a chatchannels migration; Searchable not on chat.models.Message |
grep | held | |
| Do not ALTER the IF NOT EXISTS chat or chatchannels baseline; keep PHP constraint names including ON DELETE CASCADE | grep | held | golem15_chat_conversations_created_by_foreign still CASCADE; no new gormigrate ID |
| WR-01..WR-04 and IN-01..IN-02 stay open | judgment | held | JoinChannel / PinMessage / search.go / Content-Disposition / ignored addParticipant / FormAfterDelete fire site unread |
User.MorphName stays Golem15\User\Models\User |
judgment | held | |
| Plugins never patch each other's models | grep | held | festival listeners only |
Human Verification Required
N/A — Infrastructure/foundation phase with no user-facing elements.
All acceptance criteria are verifiable programmatically. The two previously failed truths are behavior-dependent and now have named postgres tests (TestTeammateDMWriteIDOR, TestDeletingCascade creator path). behavior_unverified: 0.
Gaps Summary
None. Both prior blockers are closed:
- CR-01 / D-08 / SC-19-1 —
canSendreturns onlys.isParticipant. A third context member POSTing into another pair's DM is HTTP 404.GetGroupChatstill lazy-joins viaaddParticipant. Required gate name:TestTeammateDMWriteIDOR. - CR-02 / D-13 GDPR — chat-owned
user.DeletingrunsReassignCreatedByon the event Tx before the user row is deleted. Remaining members keep the conversation and channel. Baseline CASCADE is unchanged. Required case:TestDeletingCascadecreator path (Fire + Unscoped).
WR-01..WR-04 remain open warnings. They are not must-have blockers on this pass.
Verified: 2026-10-17T20:40:27Z Verifier: Claude (msd-verifier)