MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestTASK1273_AnAwarenessDropIsSilentAndDeliveryContinues
(t *testing.T)
internal/collab/task1273_overflow_test.go:67
FunctionTestTASK1273_OtherSubscribersKeepTheirOps
(t *testing.T)
internal/collab/task1273_overflow_test.go:92
FunctionTestTASK1273_TheRoomClosesAPeerTheBusOverflowed
(t *testing.T)
internal/collab/task1273_overflow_test.go:130
FunctionTestTASK1809_ExplicitHolderStillWins
(t *testing.T)
internal/server/task1809_lease_agent_default_test.go:117
FunctionTestTASK1809_ForeignLeasePredicateMatchesTheClaim
The filter's identity is the claim's predicate. With no signed-in user the claim compares lease_user_id to NULL, which a NOT(...) spelling turns into
internal/server/task1809_lease_agent_default_test.go:217
FunctionTestTASK1809_NextLeavesOutOthersLeasedItems
next leaves out an item another holder leased, filtered BEFORE the cap of three: the leased item outranks the rest (critical vs high), so filtering af
internal/server/task1809_lease_agent_default_test.go:132
FunctionTestTASK1809_TwoAgentsOnOneAccountDoNotShareALease
(t *testing.T)
internal/server/task1809_lease_agent_default_test.go:70
FunctionTestTASK2219_CollectionFilterExcludesWorkspaceRows
(t *testing.T)
internal/server/task2219_activity_collection_test.go:83
FunctionTestTASK2219_CollectionFilterIsAppliedBeforeTheLimit
(t *testing.T)
internal/server/task2219_activity_collection_test.go:38
FunctionTestTASK2219_UnknownCollectionAnswersEmpty
(t *testing.T)
internal/server/task2219_activity_collection_test.go:96
FunctionTestTASK2253_DenyAfterApproveIsRefused
(t *testing.T)
internal/server/task2253_cli_auth_deny_test.go:101
FunctionTestTASK2253_DenyIsFinalAndReachesTheCLIAsAnError
(t *testing.T)
internal/server/task2253_cli_auth_deny_test.go:67
FunctionTestTASK2253_DenyUnknownCode
(t *testing.T)
internal/server/task2253_cli_auth_deny_test.go:121
FunctionTestTASK2253_PendingPollCarriesWhoAsked
(t *testing.T)
internal/server/task2253_cli_auth_deny_test.go:43
FunctionTestTASK2253_StoreRefusesApprovingADeniedSession
The race the store guards: a deny landing between approve's read and its write. The write is conditional on pending, so it affects no row and reports
internal/server/task2253_cli_auth_deny_test.go:135
FunctionTestTASK2257_FieldsPatchKeepsTheConventionCopyInStep
TASK-2257: editing a convention's ordinary metadata keys (what agents obey) keeps item.convention (what the web reads) in step. Measured before the fi
internal/server/task2257_convention_mirror_test.go:14
FunctionTestTASK2257_FullFieldsCarryStillPassesAndTheCopyFollows
A full `fields` write that carries the stored reserved copy unchanged (BUG-3163's rule) and changes `trigger` passes the carry guard, and the copy fol
internal/server/task2257_convention_mirror_test.go:49
FunctionTestTASK2307_ClientClass
(t *testing.T)
internal/server/task2307_mcp_request_counter_test.go:77
FunctionTestTASK2307_ClientClassVocabularyIsClosed
The label vocabulary is closed: no rule can emit a class a dashboard does not know, and nothing from the header itself reaches the label.
internal/server/task2307_mcp_request_counter_test.go:104
FunctionTestTASK2307_CountsAuthenticatedRequestsOnBothMounts
Through the real route table, on both mounts: authenticated requests are counted by mount, method and client; a refused one is not.
internal/server/task2307_mcp_request_counter_test.go:37
FunctionTestTASK2307_RateLimitedRequestsAreNotCounted
A caller refused by the per-token rate limit inside MCPBearerAuth is not counted: the counter's total equals the requests the transport actually recei
internal/server/task2307_mcp_request_counter_test.go:126
FunctionTestTASK2308_ChatGPTMountIsNotChallengedHere
The ChatGPT mount keeps its own tool-result challenge (TASK-3321 U2c): the 403 is a /mcp-chain middleware and must not run there.
internal/server/task2308_mcp_scope_test.go:199
FunctionTestTASK2308_NoClassifierNoCheck
With no classifier wired the check is off, and a read-only write call reaches the transport as it did before TASK-2308.
internal/server/task2308_mcp_scope_test.go:182
FunctionTestTASK2308_PassThroughCases
Everything the check is not about reaches the transport, with its body byte for byte.
internal/server/task2308_mcp_scope_test.go:119
FunctionTestTASK2308_ReadOnlyOAuthWriteCallIsChallenged
(t *testing.T)
internal/server/task2308_mcp_scope_test.go:93
FunctionTestTASK2308_UnauthorizedChallengeNamesScope
(t *testing.T)
internal/server/task2308_mcp_scope_test.go:83
FunctionTestTASK2308_WireMCPBindsTheCatalogClassifier
TASK-2308: the production wiring hands the /mcp mount the catalog's own write classifier. The middleware is tested through the router in internal/serv
cmd/pad/task2308_mcp_scope_test.go:13
FunctionTestTASK2863_ReadGrantRunsAPlaybookOverHTTP
TASK-2863: over remote /mcp, pad_playbook.run with a pad:read grant now reaches the run handler, and a ref that would make the dispatcher's unescaped
internal/mcp/task2863_read_scope_run_test.go:17
FunctionTestTASK2863_ReadPATThroughTheRouter
Through the router with real PATs: the read token's run answers the handler's 200; its other POSTs get TokenAuth's scope refusal, matched on its messa
internal/server/task2863_read_scope_run_test.go:84
FunctionTestTASK2863_ReadScopePOSTPathTable
TASK-2863: a read-scoped token may POST exactly one side-effect-free path, /api/v1/workspaces/{ws}/playbooks/{ref}/run. Every other POST stays refused
internal/server/task2863_read_scope_run_test.go:16
FunctionTestTASK2863_RunPathSegmentsAreEscaped
TASK-2863 follow-up: mapPlaybookRun was the one catalog mapper that built its path from unescaped input, so a ref of "match?" routed pad_playbook.run
internal/mcp/task2863_escape_run_path_test.go:20
FunctionTestTASK2864_SearchIncludeArchived
(t *testing.T)
internal/server/task2864_search_archived_test.go:101
FunctionTestTASK2923_RenumberFallbackIsLogged
TASK-2923: when an archive's item numbers are not positive and workspace-unique, ImportWorkspace falls back to sequential numbering and every referenc
internal/store/task2923_import_renumber_warn_test.go:16
FunctionTestTASK3351_BindAfterUnlinkBindsNothing
A sign-in that read the link before an unlink committed cannot bind its provider account afterwards (TASK-3351).
internal/store/task3351_claim_providers_test.go:70
FunctionTestTASK3351_ClaimAndVerifyDoNotDeadlock
A provider claim and a verification consume racing on one account take their locks in the same order, so neither fails with a deadlock (TASK-3351). Th
internal/store/task3351_claim_providers_test.go:92
FunctionTestTASK3351_ClaimFallsBackToARandomUsername
When nothing derived from the name passes the rules or is free, the claim still gets a valid username rather than failing (TASK-3351): a name with no
internal/store/task3351_claim_providers_test.go:293
FunctionTestTASK3351_ClaimRefusedOnSubjectChangesNothing
A claim whose provider account is already bound to someone else is refused WHOLE: the account it would have claimed is unchanged (TASK-3351).
internal/store/task3351_claim_providers_test.go:44
FunctionTestTASK3351_ClaimResetsTheRegistrantsIdentity
A claim resets the identity the registrant chose (#1760): the username and display name can impersonate ("support", a staff name), and nothing live de
internal/store/task3351_claim_providers_test.go:177
FunctionTestTASK3351_ClaimRetriesALostUsername
Another account taking the chosen username before the claim writes it makes the claim retry with the next one, not fail (TASK-3351). Postgres only: SQ
internal/store/task3351_claim_providers_test.go:264
FunctionTestTASK3351_ClaimUnlinksProvidersAndForgetsSubjects
TASK-3351: a claim unlinks every sign-in provider the account held and forgets their bound provider accounts. They were linked by whoever held the acc
internal/store/task3351_claim_providers_test.go:16
FunctionTestTASK3351_ClaimUsernameFollowsTheRules
The regenerated username passes the username rules: a reserved name is skipped, and a suffix never pushes it past the length limit (TASK-3351).
internal/store/task3351_claim_providers_test.go:218
FunctionTestTASK3351_DeletionClaimAndVerifyDoNotDeadlock
Account deletion takes the account, then its tokens. A verification consume and an account claim that start while it holds the account must wait for i
internal/store/task3351_claim_providers_test.go:122
FunctionTestTASK3351_GitHubClaimsOnlyThePrimaryAddress
GitHub claims only for the account's primary address (TASK-3351 ruling 2). A sidecar that does not say so claims nothing.
internal/server/task3351_social_claim_test.go:299
FunctionTestTASK3351_GoogleClaimsAnUnverifiedAccount
The address's owner signs in with a provider that vouches for the address, on an account somebody else registered and never verified. The account is c
internal/server/task3351_social_claim_test.go:236
FunctionTestTASK3351_LinkBindsAndRefusesASubjectBoundElsewhere
oauth-link binds too, and refuses a provider account bound elsewhere before linking anything.
internal/server/task3351_social_claim_test.go:172
FunctionTestTASK3351_LinkClaimChecksExpiryAfterTheWait
A link claim that waits for the account lock past its token's expiry claims nothing (TASK-3351): expiry is checked when the token is spent, not when i
internal/store/task3351_claim_providers_test.go:154
FunctionTestTASK3351_ProviderSubjectBindsOnNextLoginThenMustMatch
The first sign-in that carries a subject binds it; a different provider account asserting the same address is refused, and the refusal names the way b
internal/server/task3351_social_claim_test.go:61
FunctionTestTASK3351_SidecarOAuthRoutesAreCloudOnly
TASK-3351 PR 2: the sidecar OAuth routes answer only in cloud mode. A self-hosted install that happens to carry a cloud secret (copied config, a lefto
internal/server/task3351_social_claim_test.go:15
FunctionTestTASK3351_SocialClaimNeverAssignsAReservedUsername
With the server's real username rules: a provider name that would generate a reserved username never gets it.
internal/server/task3351_social_claim_test.go:360
FunctionTestTASK3351_SocialClaimRefusesBilling
Billing is never moved by a claim (ruling 4): refused with a support contact, and nothing changes.
internal/server/task3351_social_claim_test.go:341
FunctionTestTASK3351_SubjectBoundElsewhereCreatesNothing
A provider account already bound to one pad account signs in to no other, and creates no account for the new address it asserts.
internal/server/task3351_social_claim_test.go:125
FunctionTestTASK3351_SubjectMustBePrintable
(t *testing.T)
internal/server/task3351_social_claim_test.go:204
FunctionTestTASK3351_UnlinkForgetsTheSubject
Unlinking forgets the bound provider account, so a relink binds the new one.
internal/server/task3351_social_claim_test.go:143
FunctionTestTASK3351_VerifiedAccountIsNotClaimable
A verified account is never claimed: its owner proved the address.
internal/server/task3351_social_claim_test.go:328
FunctionTestTASK3352_AcceptWithTheEmailedProofVerifies
(t *testing.T)
internal/server/task3352_invitation_proof_test.go:157
FunctionTestTASK3352_ConsumeInvitationProofRules
The proof is single-use and bound to its invitation, and a disabled account is never verified by it.
internal/server/task3352_invitation_proof_test.go:201
FunctionTestTASK3352_ProofReachesOnlyTheEmail
The proof is in the email and nowhere the inviter reads: not the invite response, the members/settings list, nor the admin invitation list; not even a
internal/server/task3352_invitation_proof_test.go:96
FunctionTestTASK3352_RegisterWithTheEmailedProofVerifies
(t *testing.T)
internal/server/task3352_invitation_proof_test.go:123
FunctionTestTASK3363_AudienceIsValidatedLikeResource
The condition on that behavior: audience= is held to the same allowed set as resource=. A value resource= refuses, audience= refuses.
internal/server/task3363_resource_missing_test.go:278
FunctionTestTASK3363_AudienceOnlyIsServedAndCountedUnderItsOwnLabel
TASK-3363 phase 2: audience= without resource= is NOT yet refused (phase 1 never counted it). It is served, counted under its own label, and enforced
internal/server/task3363_resource_missing_test.go:233
FunctionTestTASK3363_AudienceOnlyNoteNamesTheClientAndBoundsTheID
The audience-only log names the client however it identifies itself (form or HTTP Basic), and an oversized client id is cut, not stored whole in the l
internal/server/task3363_resource_missing_test.go:323
FunctionTestTASK3363_AuthorizeWithoutResourceIsRefusedAndCounted
The authorize step refuses too, at the client's redirect_uri, and counts.
internal/server/task3363_resource_missing_test.go:51
FunctionTestTASK3363_DelegatedSignInWithoutResourceIsRefused
An installed app's delegated sign-in goes through the same decide handler and gets no code without resource= (population row: decideAppConsent). The r
internal/server/task3363_resource_missing_test.go:303
FunctionTestTASK3363_MissingResourceIsLoggedWithTheClient
The log line is half the phase-1 signal: it must name the endpoint and the client, including a client that sends its id by HTTP Basic auth. Not parall
internal/server/task3363_resource_missing_test.go:129
FunctionTestTASK3363_MissingResourceIsRefusedAndCounted
TASK-3363 phase 2: a consent decision that omits the RFC 8707 resource parameter is REFUSED with invalid_target, and counted. With resource it is serv
internal/server/task3363_resource_missing_test.go:21
FunctionTestTASK3363_TokenExchangeWithoutResourceKeepsTheGrantedAudience
The token endpoint is NOT refused (RFC 8707 makes resource optional there), and that is safe only because the grant binds the audience (fosite replace
internal/server/task3363_resource_missing_test.go:81
FunctionTestTASK3363_WarningIsRateLimitedPerClient
One log line per client per hour, while the counter takes every request: a popular client that omits resource must not flood the log.
internal/server/task3363_resource_missing_test.go:164
FunctionTestTASK3365_AccountDeleteKicksIssuedGrantWorkspaces
Account deletion removes the grants the user ISSUED, possibly in a workspace someone else owns, and kicks that workspace's connections. The workspace
internal/server/task3365_kick_door_census_test.go:308
FunctionTestTASK3365_CollabClosesOnKickWithoutWaitingForTheTick
(t *testing.T)
internal/server/task3365_access_kick_test.go:213
FunctionTestTASK3365_EveryAccessDoorKicks
(t *testing.T)
internal/server/task3365_kick_door_census_test.go:99
FunctionTestTASK3365_KickCrossesInstances
Kicks travel their own transport, so a revocation on one instance reaches connections held by another, including a workspace kick reaching a watch str
internal/server/task3365_access_kick_test.go:118
FunctionTestTASK3365_KickerCoalescesAndIsNonBlocking
TASK-3365: revoking access re-checks live connections NOW, by kicking the revalidation they already run on a 60s tick. These tests set that tick to an
internal/server/task3365_access_kick_test.go:26
FunctionTestTASK3365_KicksDoNotUseTheClientWatchBus
Kicks never touch the client watch bus: no sequence id, no replay slot, no entry in any client's queue.
internal/server/task3365_access_kick_test.go:144
FunctionTestTASK3365_LogoutKicksEachSessionOwner
Logout deletes every session the request presents, which can belong to two users; each owner is kicked.
internal/server/task3365_kick_door_census_test.go:250
FunctionTestTASK3365_NarrowingAndResourceDoorsKick
A grant can NARROW access, and deletes and moves change who reaches a resource; each kicks.
internal/server/task3365_kick_door_census_test.go:203
FunctionTestTASK3365_PR2DoorsKick
Behavioural legs for doors PR2 wired: each kicks a registered connection of the affected user through the real HTTP door.
internal/server/task3365_kick_door_census_test.go:170
FunctionTestTASK3365_PartialRevokeStillKicks
A removal that leaves the user SOME access (a grant) still narrows it, so the user's connections are kicked even though "lost" is not published.
internal/server/task3365_access_kick_test.go:396
FunctionTestTASK3365_RestoreAndBulkDoorsKick
Restore makes kept grants effective again, and the bulk archive/restore paths kick as the single-item ones do.
internal/server/task3365_kick_door_census_test.go:277
FunctionTestTASK3365_SSEClosesOnKickWithoutWaitingForTheTick
(t *testing.T)
internal/server/task3365_access_kick_test.go:267
FunctionTestTASK3365_StalledTransportDoesNotBlockTheRequest
A stalled transport never delays the request that published the kick, and this instance's own connections are kicked at once.
internal/server/task3365_access_kick_test.go:431
FunctionTestTASK3365_TransportInstallIsIdempotent
Installing the same transport twice subscribes once; replacing it stops the previous subscription.
internal/server/task3365_access_kick_test.go:195
FunctionTestTASK3365_WatchStreamClosesOnKickWhenItsCredentialDies
The watch stream re-checks on a kick too, and a dead CREDENTIAL closes it rather than leaving it connected and silent (TASK-3365 detail 3).
internal/server/task3365_access_kick_test.go:340
FunctionTestTASK3390_DebounceKeepsInstallsApart
TASK-3390: via_app is part of the writer identity wherever writes are consolidated (DOC-3371 §4), so two installs, or an install and a human, never fo
internal/store/task3390_identity_test.go:13
FunctionTestTASK3390_IsItemSlugConflict
IsItemSlugConflict recognises exactly the items (workspace_id, slug) violation, on both dialects, and not another unique index on items.
internal/store/task3390_slugconflict_test.go:7
FunctionTestTASK3390_VersionThrottleKeepsInstallsApart
(t *testing.T)
internal/store/task3390_identity_test.go:48
FunctionTestTASK3391_CommentsSurviveTheSourceMigration
(t *testing.T)
internal/store/task3391_comments_rebuild_test.go:71
FunctionTestTASK3391_RebuildPreservesRowsAndSchema
SQLite: re-running the rebuild over populated data keeps every row, rowid, link and index posting, and leaves the schema identical. 115 rebuilds from
internal/store/task3391_comments_rebuild_test.go:178
FunctionTestTASK3452_CloudCatalogUnavailableFallsBackToLinks
(t *testing.T)
internal/server/task3452_tutorials_test.go:142
FunctionTestTASK3452_CloudServesTheCatalogSameOrigin
(t *testing.T)
internal/server/task3452_tutorials_test.go:90
FunctionTestTASK3452_ConcurrentDismissalsBothLand
Two dismissals racing from two devices both land, on both backends (SQLite serializes writers with BEGIN IMMEDIATE; Postgres takes the users row FOR N
internal/server/task3452_tutorials_test.go:250
FunctionTestTASK3452_PosterRedirectIsNotFollowed
An allowed getpad.dev poster URL that redirects elsewhere is not followed.
internal/server/task3452_tutorials_test.go:192
FunctionTestTASK3452_SelfHostedNeverFetchesAndAddsNoFrameSrc
(t *testing.T)
internal/server/task3452_tutorials_test.go:67
FunctionTestTASK3452_StaleCatalogServedWhileUpstreamHangs
A stale catalog is served at once while a slow refresh runs; no request waits on the network when a copy is in hand.
internal/server/task3452_tutorials_test.go:221
FunctionTestTASK3452_UIDismissals
(t *testing.T)
internal/server/task3452_tutorials_test.go:151
FunctionTestTASK3462U3a_BootstrapCountsBuiltinUpdates
TASK-3462 U3a: the bootstrap counts the items an update is on offer for (update_available and diverged), so an agent can mention it once. Design: a nu
internal/server/task3462_u3a_bootstrap_count_test.go:40
FunctionTestTASK3462U3a_EverySeedAndActivationReadsCurrent
TASK-3462 U3a (night-43 review note): the registry's hash must equal what every seeding door STORES, or a workspace made today would offer an "update"
internal/server/task3462_u3a_registry_sweep_test.go:25
FunctionTestTASK3462U3a_ReplacedFieldsSummary
TASK-3462 U3a: the replaced-fields summary.
internal/server/task3462_u3a_replaced_fields_test.go:11
FunctionTestTASK3462U3a_UpdateRecordsReplacedFields
TASK-3462 U3a: version history keeps BODIES only, so an accepted update that replaces an edited trigger, scope or arguments left no record of the valu
internal/server/task3462_u3a_bootstrap_count_test.go:83
FunctionTestTASK3462U3b_StateCarriesCurrentText
TASK-3462 U3b: the state response carries the item's CURRENT text, read in the same request as its seq, whenever an update is on offer. A client compa
internal/server/task3462_u3b_state_current_test.go:14
FunctionTestTASK3462U3c_CapabilityAdvertisesBuiltinUpdate
TASK-3462 U3c: the CLI's built-in commands need to tell an older server (no route, a bare 404) from an item made from no built-in (404 not_builtin), s
internal/server/task3462_u3c_capability_test.go:12
← previousnext →24,801–24,900 of 28,840, ranked by callers