MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestAttention_OnlyOpenItemsInUserCollectionsAreAsked
A terminal item and a system-collection item are never sent; the open item beside them is (the leg that shows the fixture CAN ask). Reopening the term
internal/decision/attention_test.go:243
FunctionTestAttributionColumnsAreAllProtected
TestAttributionColumnsAreAllProtected keeps the class swept. Unprotected attribution columns were found one at a time. One answer was a sweep — but b
internal/store/nulcolumns_test.go:291
FunctionTestAudienceChangeAppliesFromTheNextFire
Changing the audience applies from the next fire: the first fire follows the audience it armed under, the second the audience read at its own fire.
internal/store/schedule_audience_push_test.go:75
FunctionTestAudienceForNewClient_ProducesSingletonOrEmpty
(t *testing.T)
internal/oauth/server_test.go:380
FunctionTestAudienceMatchingStrategy_TwoCanonicals
TASK-3321 U2a: with two canonical resources, a request may name exactly one; both together, a foreign one, or none are refused, and the client's audie
internal/oauth/server_test.go:974
FunctionTestAudienceRouting
(t *testing.T)
internal/store/schedule_audience_push_test.go:27
FunctionTestAudienceStrategy_AcceptsCanonicalOnly
(t *testing.T)
internal/oauth/server_test.go:215
FunctionTestAudienceStrategy_NoCanonicalIsServerError
(t *testing.T)
internal/oauth/server_test.go:337
FunctionTestAudienceStrategy_PathSlashIsNotEquivalent
TestAudienceStrategy_PathSlashIsNotEquivalent guards #386 directly at the strategy layer: even with normalization active, a token requested for a path
internal/oauth/server_test.go:309
FunctionTestAudienceStrategy_RejectsClientWithoutCanonical
(t *testing.T)
internal/oauth/server_test.go:201
FunctionTestAudienceStrategy_RejectsEmptyNeedle
===================================================================== audienceMatchingStrategy — RFC 8707 hook =======================================
internal/oauth/server_test.go:176
FunctionTestAudienceStrategy_RejectsMismatchedNeedle
(t *testing.T)
internal/oauth/server_test.go:189
FunctionTestAudienceStrategy_RejectsMultipleAudiences
(t *testing.T)
internal/oauth/server_test.go:325
FunctionTestAudienceStrategy_TrailingSlashEquivalence
TestAudienceStrategy_TrailingSlashEquivalence pins the fix for the real-world bug Claude Desktop hit against pad: the connector parses the URL the use
internal/oauth/server_test.go:237
FunctionTestAuditLogDetail
BUG-2789: the audit-log Details column applies the activity display rule to a `changes` member and cuts by runes.
cmd/pad/bug2789_audit_log_detail_test.go:11
FunctionTestAuthBootstrapFlow
(t *testing.T)
internal/server/handlers_auth_test.go:41
FunctionTestAuthBootstrapRequiresLoopback
(t *testing.T)
internal/server/handlers_auth_test.go:327
FunctionTestAuthLoginFlow
(t *testing.T)
internal/server/handlers_auth_test.go:341
FunctionTestAuthLoginRequiresSetupWhenNoUsers
(t *testing.T)
internal/server/handlers_auth_test.go:378
FunctionTestAuthLogout
(t *testing.T)
internal/server/handlers_auth_test.go:509
FunctionTestAuthMeEndpoint
(t *testing.T)
internal/server/handlers_auth_test.go:554
FunctionTestAuthMeReportsPasswordSetForOAuthUser
TestAuthMeReportsPasswordSetForOAuthUser pins the OAuth-only branch of TASK-1957: a user created via OAuth (no password) must report password_set=fals
internal/server/handlers_auth_test.go:583
FunctionTestAuthRegistrationValidation
(t *testing.T)
internal/server/handlers_auth_test.go:470
FunctionTestAuthRequiredWhenUsersExist
(t *testing.T)
internal/server/handlers_auth_test.go:527
FunctionTestAuthSessionBillingAvailable
billing_available is true only in cloud mode, with PAD_BILLING=auto, while the sidecar's offer says available; billing_offer carries that offer and is
internal/server/handlers_auth_test.go:203
FunctionTestAuthSessionBillingBothUnsetSidecarDown
With PAD_BILLING and PAD_BILLING_AVAILABLE both unset the mode is auto, and with the sidecar down that still gives billing_available false: auto fails
internal/server/handlers_auth_test.go:269
FunctionTestAuthSessionEmitsVersion
version is surfaced on /auth/session (IDEA-1826 / TASK-1839) so the mobile shells can read the server build version in the call they already make on c
internal/server/handlers_auth_test.go:296
FunctionTestAuthSessionMCPURLAndAuth
The session and setup payloads carry the MCP URL and its auth methods exactly when MCP is available (PLAN-2310 DR-8): the resolved URL with ["oauth","
internal/server/handlers_auth_test.go:103
FunctionTestAuthorizeCollabAccessCanWrite
TestAuthorizeCollabAccessCanWrite unit-tests the write-permission half of the collab authorization decision (TASK-265): a workspace editor resolves ca
internal/server/handlers_collab_test.go:831
FunctionTestAuthorizeCollabAccessFreshInstallTokenScope
TestAuthorizeCollabAccessFreshInstallTokenScope covers the zero-user (pre-bootstrap) branch: the anonymous setup caller keeps write, but a legacy work
internal/server/handlers_collab_test.go:931
FunctionTestAuthorizeCollabAccess_AdminBearer_DeniedOnNonMember
TestAuthorizeCollabAccess_AdminBearer_DeniedOnNonMember pins the WebSocket-collab entry gate. Bearer-admin on a non-member workspace's item → forbidde
internal/server/handlers_admin_bearer_gate_test.go:197
FunctionTestAutoAddCreatorConnection_GrantUnchangedMidFlight_Added
Control: the same seam, with the grant left as it was. Without this leg a fix that stopped auto-adding altogether would pass the revoking leg.
internal/server/handlers_workspace_autoadd_race_test.go:74
FunctionTestAutoAddCreatorConnection_HandlerMakesOnlyTheAtomicCall
TestAutoAddCreatorConnection_HandlerMakesOnlyTheAtomicCall pins every call maybeAutoAddCreatorConnection makes, against a closed list. A sequential SQ
internal/server/handlers_workspace_autoadd_race_test.go:111
FunctionTestAutoAddCreatorConnection_RevokedMidFlight_NotAdded
BUG-2792: the creator-connection auto-add must decide on the grant as it stands when the allow-list row is written, not as it stood at some earlier re
internal/server/handlers_workspace_autoadd_race_test.go:33
FunctionTestAutoAddHasOneCaller_FinishWorkspaceMint
The structural half: maybeAutoAddCreatorConnection has exactly ONE caller, finishWorkspaceMint, so a future mint door cannot call one side effect and
internal/server/handlers_workspace_import_autoadd_test.go:113
FunctionTestAutoCreateWorkspaceReconcileArmsAreDistinguishable
TestAutoCreateWorkspaceReconcileArmsAreDistinguishable is the control for the two tests above: it proves the ABSENT arm still deletes, so a fix that s
internal/server/handlers_cloud_member_ack_test.go:251
FunctionTestAutoCreateWorkspace_AbsentArm_LeavesNoRestorableHusk_Postgres
(t *testing.T)
internal/server/handlers_cloud_autocreate_husk_test.go:194
FunctionTestAutoCreateWorkspace_AbsentArm_LeavesNoRestorableHusk_SQLite
--- ABSENT arm ----------------------------------------------------------- The pre-fix code passes every assertion here EXCEPT the restorable-husk one
internal/server/handlers_cloud_autocreate_husk_test.go:190
FunctionTestAutoCreateWorkspace_BUG3479_FailedRemovalIsLogged
Cloud auto-create, both arms: the log must not end on "being removed" when the workspace survived.
internal/server/bug3479_remove_unusable_truth_test.go:97
FunctionTestAutoCreateWorkspace_DeleteWorkspace_NoRowsIsAReportableError
TestAutoCreateWorkspace_DeleteWorkspace_NoRowsIsAReportableError pins the store-layer contract that autoCreateWorkspace's compensating cleanup depends
internal/server/handlers_cloud_autocreate_workspace_test.go:75
FunctionTestAutoCreateWorkspace_MemberAddAckLossKeepsTheWorkspace_Postgres
(t *testing.T)
internal/server/handlers_cloud_member_ack_test.go:75
FunctionTestAutoCreateWorkspace_MemberAddAckLossKeepsTheWorkspace_SQLite
(t *testing.T)
internal/server/handlers_cloud_member_ack_test.go:71
FunctionTestAutoCreateWorkspace_MemberAddFailure_CleansUpAndLogsLoudly
TestAutoCreateWorkspace_MemberAddFailure_CleansUpAndLogsLoudly covers the B6 hardening from TASK-1932: if AddWorkspaceMember fails after the workspace
internal/server/handlers_cloud_autocreate_workspace_test.go:23
FunctionTestAutoCreateWorkspace_SeedFailure_LeavesNoRestorableHusk_Postgres
(t *testing.T)
internal/server/handlers_cloud_autocreate_husk_test.go:152
FunctionTestAutoCreateWorkspace_SeedFailure_LeavesNoRestorableHusk_SQLite
TestAutoCreateWorkspace_SeedFailure_LeavesNoRestorableHusk is the same property on the function itself, on both dialects: the purge is what makes the
internal/server/handlers_cloud_autocreate_husk_test.go:148
FunctionTestAutoCreateWorkspace_UnreadableMembershipKeepsTheWorkspace
TestAutoCreateWorkspace_UnreadableMembershipKeepsTheWorkspace pins the third outcome, and it is the arm most likely to be lost to a later simplificati
internal/server/handlers_cloud_member_ack_test.go:188
FunctionTestAutoCreateWorkspace_WrongRoleMembershipKeepsTheWorkspace
TestAutoCreateWorkspace_WrongRoleMembershipKeepsTheWorkspace pins the fourth arm. It exists because the first version of this reconcile asked the wro
internal/server/handlers_cloud_member_ack_test.go:290
FunctionTestAwaitsHuman_ReadCarrySetValidate
TASK-3919 (IDEA-3906): awaits_human reads false when absent, is carried across a settings write that does not mention it, and refuses a non-bool.
internal/models/awaits_human_test.go:7
FunctionTestAwarenessCountBoundedByEntryBytes
BUG-3772: the entry count is bounded by the bytes that follow it, at three bytes an entry, before anything is allocated from it. The accepting half pi
internal/collab/awareness_test.go:84
FunctionTestAwarenessDecodesWhatYProtocolsWrites
(t *testing.T)
internal/collab/awareness_test.go:32
FunctionTestAwarenessLyingCountAllocatesNothingForIt
BUG-3772: a frame at the WebSocket read limit (handlers_collab.go, collabMaxMessageBytes) claiming one entry per byte reserved room for a million entr
internal/collab/awareness_test.go:108
FunctionTestAwarenessRefusesMalformedFrames
(t *testing.T)
internal/collab/awareness_test.go:58
FunctionTestAwarenessRemovalIsWhatYProtocolsSends
The synthesized removal is byte-for-byte the frame y-protocols' own removeAwarenessStates sends, so every client applies it.
internal/collab/awareness_test.go:51
FunctionTestAwarenessTrackerCappedConnTakesNoOwnership
A connection at its cap takes nothing, so it cannot take a client away from the connection that must remove it on close.
internal/collab/awareness_test.go:176
FunctionTestAwarenessTrackerFirstSenderOwns
(t *testing.T)
internal/collab/awareness_test.go:143
FunctionTestAwarenessTrackerIgnoresMalformedAndCapsOwnership
(t *testing.T)
internal/collab/awareness_test.go:205
FunctionTestAwarenessTrackerKeepsLatestClockAndLiveness
(t *testing.T)
internal/collab/awareness_test.go:189
FunctionTestAwarenessTrackerReconnectOverlapMovesOwnership
A client that reconnects announces at a newer clock (the provider advances it on every connect) on its new connection before the old one has closed: o
internal/collab/awareness_test.go:162
FunctionTestB
(t *testing.T)
internal/buildtools/testdata/shardpkg/shard_test.go:8
FunctionTestBUG1865_ExplicitWorkspaceStillWins
TestBUG1865_ExplicitWorkspaceStillWins confirms an explicit workspace on the call is honored on the shared transport (the supported way to target a wo
internal/mcp/bug1865_test.go:183
FunctionTestBUG1865_LocalStdioSessionStillInjected
TestBUG1865_LocalStdioSessionStillInjected locks in that the fix does NOT regress the single-user local stdio transport, where a (non-shared) session
internal/mcp/bug1865_test.go:210
FunctionTestBUG1865_SharedSetWorkspaceDescriptionWarns
TestBUG1865_SharedSetWorkspaceDescriptionWarns guards that the pad_set_workspace tool description is honest per-deployment: a shared (cloud) state mus
internal/mcp/bug1865_test.go:134
FunctionTestBUG1865_SharedSetWorkspaceDoesNotPersist
TestBUG1865_SharedSetWorkspaceDoesNotPersist locks in the honest shared-state contract: pad_set_workspace on a shared state must NOT persist the value
internal/mcp/bug1865_test.go:111
FunctionTestBUG1865_SharedStateDoesNotLeakAcrossUsers
TestBUG1865_SharedStateDoesNotLeakAcrossUsers guards the cross-user case: Alice's pad_set_workspace must NOT influence Bob's later call.
internal/mcp/bug1865_test.go:66
FunctionTestBUG1865_SharedStateNoSameUserSessionBleed
TestBUG1865_SharedStateNoSameUserSessionBleed guards the same-user case: two concurrent sessions of one user must not clobber each other's workspace.
internal/mcp/bug1865_test.go:149
FunctionTestBUG1926_CloudBillingRoutesTakeAnAdminSessionNotAnAdminPAT
On Pad Cloud the billing routes take the cloud secret OR a platform admin. The admin alternative is a session's, never a PAT's (BUG-1926 / BUG-3361):
internal/server/bug3361_admin_pat_test.go:179
FunctionTestBUG1926_MeSummaryMirrorsTheAdminBypass
BUG-1926: the /me workspace summary answered "all" for any platform admin, while the workspace middleware gives an admin no bypass over a bearer (an A
internal/server/bug1926_me_admin_bearer_test.go:17
FunctionTestBUG2136_DeclineByCode
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:172
FunctionTestBUG2136_DeclineByID
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:122
FunctionTestBUG2136_InviteAsksAVerifiedExistingUser
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:44
FunctionTestBUG2136_InvitingAMemberIsRefused
Inviting an existing member is still refused.
internal/server/bug2136_invite_consent_test.go:234
FunctionTestBUG2136_ReinviteReplacesThePendingInvitation
(t *testing.T)
internal/server/bug2136_invite_consent_test.go:82
FunctionTestBUG2136_SiblingInvitationsAcceptCleanly
Two sibling invitations for one address (a concurrent re-invite can leave both on Postgres without the lock): accepting both is one membership and no
internal/server/bug2136_invite_consent_test.go:200
FunctionTestBUG2367_BulkMove
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:206
FunctionTestBUG2367_CloseState_BulkMove
(t *testing.T)
internal/server/bug2367_close_state_test.go:88
FunctionTestBUG2367_CloseState_PreflightAndCopy
(t *testing.T)
internal/server/bug2367_close_state_test.go:112
FunctionTestBUG2367_CloseState_SingleMove
(t *testing.T)
internal/server/bug2367_close_state_test.go:54
FunctionTestBUG2367_PreflightAndCopyAgree
The preflight and the copy must drop the same keys with the same words (DR-6), same workspace and across workspaces.
internal/server/bug2367_migrate_doors_test.go:239
FunctionTestBUG2367_SingleMove
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:109
FunctionTestBUG2639_CompletedWorkListsAnItemOnce
A collection whose completed-work values include both "x" and "x,y" lists an item with status x once. When this was written, ListItems split a Fields
internal/server/bug2639_guest_grant_terminal_test.go:138
FunctionTestBUG2639_GuestItemGrantsCountOnlyUnderTheirOwnCollection
BUG-2639: listTerminalItemsSince passed a guest's item grants into EVERY per-(field, value) completed-work query. ListItems ORs ItemIDs past the Colle
internal/server/bug2639_guest_grant_terminal_test.go:30
FunctionTestBUG2640_CompletedRowsShowTheDoneFieldValue
BUG-2640: standup and changelog rendered a completed item's Status from the literal "status" field, so an item from a collection whose done field is s
internal/server/bug2640_done_field_display_test.go:15
FunctionTestBUG2640_CompletedWorkValueFallsBackToStatus
completedWorkValue falls back to "status" when the item's collection is not in the map (an otherwise uncovered branch, BUG-2640).
internal/server/bug2640_done_field_display_test.go:68
FunctionTestBUG2683_BulkMoveRecordsAnOrdinaryDroppedField
BUG-2683, the case it was filed for: a bulk move to a collection with no home for an ORDINARY schema field records that field in the move's activity r
internal/server/bug2683_bulk_move_dropped_test.go:17
FunctionTestBUG2684_PreflightLabelsADroppedThenDefaultedKeyAsDefault
BUG-2684, the case it was filed for: the SOURCE declares a key, migration DROPS its value (it cannot convert), and the destination's default fills the
internal/server/bug2684_preflight_origin_test.go:16
FunctionTestBUG2685_ADeclarationDoesNotDecideWhetherAWriteSucceeds
Leg B — the declaration must not DECIDE the answer. The class rule stated as something a test can refute: two collections, one carrying a legacy decl
internal/server/bug2685_grandfathered_reserved_key_test.go:135
FunctionTestBUG2685_BootstrapDoesNotPublishAGrandfatheredDeclarationToEveryAgent
(t *testing.T)
internal/server/bug2685_grandfathered_reserved_key_test.go:286
FunctionTestBUG2685_LegacyDeclarationRefusesTheSystemsOwnWrite
Leg A — the system's OWN value is refused. `pad item note` / `pad item decide` read the item's fields, append an entry with models.AppendImplementati
internal/server/bug2685_grandfathered_reserved_key_test.go:84
FunctionTestBUG2685_LegacyRequiredDeclarationBlocksCreate
Leg C — a legacy REQUIRED declaration makes the collection uncreatable. Nothing in a create request mentions implementation_notes, and no client surf
internal/server/bug2685_grandfathered_reserved_key_test.go:179
FunctionTestBUG2685_PublicSharePayloadDoesNotPublishAGrandfatheredDeclaration
The public payload could be read as a response-shape change, with the raw schema preserved instead. The change IS the fix, and the reason is in the ha
internal/server/bug2685_grandfathered_reserved_key_test.go:231
FunctionTestBUG2706_WhoamiSaysWhatTheFailureEstablished
BUG-2706: whoami reported EVERY failed identity check as a rejection ("PAD_TOKEN is set but the server rejected it." / "Session expired.") and exited
cmd/pad/bug2706_whoami_failure_test.go:15
FunctionTestBUG2741_DropCoverageAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:84
FunctionTestBUG2741_FanOutFromRedisAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:30
FunctionTestBUG2741_FanOutLocallyAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:57
FunctionTestBUG2741_StampLastSeenAfterCloseRecordsNothing
(t *testing.T)
internal/watchevents/bug2741_closed_receive_test.go:111
FunctionTestBUG2772_RemoteLeaseHolderIsPerConnection
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:279
FunctionTestBUG2772_RemoteMCPWritesAreAgentWrites
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:202
FunctionTestBUG2772_ResolveRemoteCaller
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:365
FunctionTestBUG2788_DeletingTheFirstDuplicateDoesNotChangeTheSurvivor
(t *testing.T)
internal/server/bug2788_entry_id_stability_test.go:103
FunctionTestBUG2788_InsertAheadDoesNotRenumber
(t *testing.T)
internal/server/bug2788_entry_id_stability_test.go:76
← previousnext →16,601–16,700 of 28,840, ranked by callers