Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
Function
TestTask3392_PasswordLoginAnswersABotAsUnknown
(t *testing.T)
internal/server/task3392_bot_principal_test.go:80
Function
TestTask3392_PasswordNeverValidatesForABot
(t *testing.T)
internal/store/task3392_bot_principal_test.go:144
Function
TestTask3392_PeopleCannotTakeTheReservedDomain
(t *testing.T)
internal/store/task3392_bot_principal_test.go:123
Function
TestTask3392_ResetAndVerificationDoorsAnswerABotAsUnknown
(t *testing.T)
internal/server/task3392_bot_principal_test.go:92
Function
TestTask3392_SessionDoorsOwnChecksRefuseABot
The doors' own checks, behind the session backstop: each handler is called with the bot ALREADY resolved as the current user, which no real request ca
internal/server/task3392_bot_principal_test.go:340
Function
TestTask3392_SessionDoorsTreatABotAsSignedOut
Consent, CLI approval and invitation acceptance: a session whose row became a bot is no signed-in person. The session resolution refuses it first; the
internal/server/task3392_bot_principal_test.go:210
Function
TestTask3392_StoredCredentialsAreNoUseToABot
A stored reset or verification token, however it came to exist, is no credential for a bot, and neither is rotating a stored PAT.
internal/store/task3392_bot_principal_test.go:586
Function
TestTask3392_StoredCredentialsAreNoUseToABotOverHTTP
An OAuth access token whose subject is a bot authenticates nothing at /mcp, and a stored reset token for a bot changes no password.
internal/server/task3392_bot_principal_test.go:414
Function
TestTask3392_TOTPVerifyRefusesABot
A 2FA challenge minted before the row became a bot mints nothing after.
internal/server/task3392_bot_principal_test.go:161
Function
TestTask3392_TheReservedDomainIsNoPersonsAddress
Nobody can register, bootstrap with, be invited at, or sign in through a provider with an address in the bots' domain.
internal/server/task3392_bot_principal_test.go:141
Function
TestTask3392_TokenEndpointRefusesABotSubject
The token endpoint refuses a refresh whose subject is a bot, with its own invalid_grant (a 500 would mean only the store's gate caught it).
internal/server/task3392_bot_principal_test.go:190
Function
TestTask3392_UserCountsAndListsAreHumansOnly
(t *testing.T)
internal/store/task3392_bot_principal_test.go:208
Function
TestTask3394_ABotCredentialHasOneDoor
The barrier is the ONLY door for a bot credential. Any other subject on an install client, and a bot asked for by any other client, is refused, and no
internal/store/task3394_install_clients_test.go:165
Function
TestTask3394_ALaterPersistenceUnderAMovedEpochIsRefused
A family bound under one epoch cannot persist again after the epoch moved.
internal/store/task3394_install_clients_test.go:245
Function
TestTask3394_AServiceGrantTakesNoCodeFlow
A grant that carries no delegated kind is a service grant, and a service grant has no code flow (TASK-3399 kept this refusal for it).
internal/store/task3394_install_clients_test.go:232
Function
TestTask3394_BarrierIssuesTheBotsServiceToken
The barrier persists a service token for the install's own bot, with a binding that carries the install's epoch and workspace.
internal/store/task3394_install_clients_test.go:137
Function
TestTask3394_BarrierRefusesAGrantCarryingAnOldEpoch
A grant carries the epoch it read BEFORE the client authenticated, and the barrier refuses unless it is still the install's. A request that authentica
internal/store/task3394_install_clients_test.go:507
Function
TestTask3394_BarrierRefusesAnInactiveInstallOrDisabledClient
(t *testing.T)
internal/store/task3394_install_clients_test.go:200
Function
TestTask3394_ClientCredentialsIsForInstallClientsOnly
client_credentials is for installed apps only, and a bot subject is refused for any client but its own install's.
internal/server/task3394_install_tokens_test.go:182
Function
TestTask3394_CreateInstallClientRefusals
(t *testing.T)
internal/store/task3394_install_clients_test.go:115
Function
TestTask3394_CreateInstallClientShape
(t *testing.T)
internal/store/task3394_install_clients_test.go:82
Function
TestTask3394_InstallTokenRequestRules
(t *testing.T)
internal/server/task3394_install_tokens_test.go:139
Function
TestTask3394_IntrospectAppTokenRefusals
(t *testing.T)
internal/server/task3394_install_tokens_test.go:193
Function
TestTask3394_IssuanceRacesTheLifecycle_Postgres
The issuance barrier serializes with the lifecycle on the install row (Postgres; SQLite's single writer gives the same order trivially). Each case hol
internal/store/task3394_install_clients_test.go:413
Function
TestTask3394_LifecyclePrimitives
(t *testing.T)
internal/store/task3394_install_clients_test.go:259
Function
TestTask3394_MCPRefusesABotsServiceToken
mcp keeps refusing a bot, its service token included.
internal/server/task3394_install_tokens_test.go:242
Function
TestTask3394_MultipartTokenRequestFromAnInstallClient
The token endpoint classifies the client from the body fosite will parse, multipart included. A multipart request from an install client must meet the
internal/server/task3394_install_tokens_test.go:372
Function
TestTask3394_PrimitivesWriteOnlyThroughTheCallersTx
The primitives write only through the caller's transaction: rolled back, nothing persists.
internal/store/task3394_install_clients_test.go:324
Function
TestTask3394_PublicIntrospectionAndInstallClients
Install clients do not use the public introspection endpoint, and it never describes their tokens.
internal/server/task3394_install_tokens_test.go:253
Function
TestTask3394_PublicIntrospectionCallerEncodings
The install-caller refusal reads credentials exactly as fosite does: a percent-encoded Basic client id, and a bearer in the form.
internal/server/task3394_install_tokens_test.go:339
Function
TestTask3394_ServiceTokenForTheInstallsBot
(t *testing.T)
internal/server/task3394_install_tokens_test.go:125
Function
TestTask3394_TheExemptInsertHasExactlyTwoGatedCallers
Structurally: insertOAuthRequestRowTx is the guard's one exempt credential insert, and its exemption holds only while every caller gates. Its callers
internal/store/task3394_install_clients_test.go:363
Function
TestTask3394_TokenEndpointWithMCPOffAndAppsOn
A0: with MCP off and apps on, the token endpoint serves install clients and nobody else, and the rest of the authorization server stays off.
internal/server/task3394_install_tokens_test.go:298
Function
TestTask3397_AccountDeletionAfterProvisioning
Account deletion of the confirming owner is a real cycle: its bot scan reads what provisioning writes. Lock 0 serializes the two whole. Provisioning f
internal/store/task3397_provision_test.go:217
Function
TestTask3397_BotLookupsKeyOnBotUserID
U5/U8b agreement: the install's bot is app_installs.bot_user_id once provisioning sets it, at every lookup (the issuance barrier, AppPrincipalForInsta
internal/store/task3397_provision_test.go:306
Function
TestTask3397_CollectionArchiveWaitsForProvisioning
Lock 3: the collections rows are held for the derivation's consistent read, so an archive (which skips the workspace lock) waits for the commit.
internal/store/task3397_provision_test.go:166
Function
TestTask3397_DisableAndReenable
Disable kills every token, refuses new ones, and re-enable never revives a pre-disable token (the epoch never moves back), while fresh ones work.
internal/server/task3397_lifecycle_test.go:62
Function
TestTask3397_IssuanceDoesNotDeadlockWithUninstall
The check on #1775: UninstallAppTx takes the bot's users row BEFORE the install row, and the issuance barrier takes the install row FOR UPDATE. No cyc
internal/store/task3397_lifecycle_test.go:265
Function
TestTask3397_LifecycleDoors
The owner doors, end to end over a provisioned install: disable, a wrong-state refusal, enable, rotate (a code that redeems), uninstall (repeatable),
internal/server/task3397_lifecycle_test.go:274
Function
TestTask3397_LifecycleStatesAndResume
Wrong states answer a typed refusal, and the doors resume a call left between the phases.
internal/server/task3397_lifecycle_test.go:237
Function
TestTask3397_MemberRemovalDoesNotDeadlock
Member removal (RemoveWorkspaceMemberAndRevokeGrants): it deletes the member's grants, then their membership.
internal/store/task3397_provision_test.go:282
Function
TestTask3397_PhaseOneFencesAnAdmittedWrite
Phase 1 refuses an app write admitted at the old epoch: BeginFenced re-reads the epoch and state under the same install row (DOC-3371 §2, R3-4). Lives
internal/store/task3397_lifecycle_test.go:240
Function
TestTask3397_ProvisionHappyPath
(t *testing.T)
internal/store/task3397_provision_test.go:73
Function
TestTask3397_ProvisionRefusesADemotedOwner
Lock 4: the caller must still be an owner inside the transaction.
internal/store/task3397_provision_test.go:89
Function
TestTask3397_ProvisionRefusesAnUpgradeRecord
The store refuses to provision an upgrade's pending record as a fresh install, whatever the caller (the handler refuses first; this is the transaction
internal/store/task3397_upgrade_test.go:106
Function
TestTask3397_ProvisioningAfterAccountDeletion
Deletion first: provisioning waits behind the deletion's user lock, then finds the pending record gone with the user, and refuses cleanly.
internal/store/task3397_provision_test.go:240
Function
TestTask3397_Rotate
Rotate: old tokens die, the old secret stops authenticating, and the new install code redeems for the secret the app uses from then on.
internal/server/task3397_lifecycle_test.go:110
Function
TestTask3397_RotateEndsGrantsFromBetweenThePhases
Rotate's phase 2 bumps the epoch again, so a grant that read the phase-1 epoch while the install was disabling (and authenticated with the old secret)
internal/store/task3397_lifecycle_test.go:132
Function
TestTask3397_TeardownInvalidatesEarlierInstallCodes
Phase 1 kills every unconsumed install code, so an earlier code cannot be redeemed for a fresh secret after a rotate or after a disable and re-enable.
internal/store/task3397_lifecycle_test.go:155
Function
TestTask3397_UninstallAppTxIsAllOrNothing
TASK-3397 (U8c): UninstallAppTx is one transaction (DOC-3371 §8 step 3). A failure injected after EACH step leaves every table exactly as it was.
internal/store/task3397_lifecycle_test.go:14
Function
TestTask3397_UninstallDoesNotDeadlockWithTheBotPurge
Uninstall racing account deletion's bot purge, which deletes the bot's membership, then the bot (whose FK action updates the install's bot_user_id), m
internal/store/task3397_lifecycle_test.go:196
Function
TestTask3397_UninstallKeepsADisabledBotAndTheTombstone
Uninstall keeps the bot's users row, disabled, and the install row as the tombstone; it removes the client, the bot's membership and every credential
internal/server/task3397_lifecycle_test.go:146
Function
TestTask3397_UninstallKeepsAttribution
Attribution survives: what the bot wrote keeps its via_app and its user id.
internal/server/task3397_lifecycle_test.go:205
Function
TestTask3397_UpgradeDoesNotDeadlockWithAFencedWrite
A fenced app write holds the install row FOR SHARE and then takes the workspace lock (an item create). The upgrade takes the install row BEFORE the wo
internal/store/task3397_upgrade_test.go:46
Function
TestTask3397_UpgradeNeverSkipsAnUnresolvedRelease
The transaction never skips a release that does not resolve: a plan naming a companion slug that is not this install's is refused, not ignored (the de
internal/store/task3397_upgrade_test.go:122
Function
TestTask3397_UpgradeRefusesAMovedInstall
The install moved since the preview (its manifest hash, or its state): the upgrade refuses and writes nothing.
internal/store/task3397_upgrade_test.go:80
Function
TestTask3399_AChangeBetweenPersistencesIsRemembered
A revoke, a disable and re-enable, or a removal and re-add between two persistences of one grant ends it; none is forgotten.
internal/store/task3399_delegated_barrier_test.go:369
Function
TestTask3399_AConsentAcrossARemovalAndReAddMintsNothing
A consent carries the membership its gate read; a removal and re-add before its code persists (no grant yet for the removal to revoke) refuses the cod
internal/store/task3399_delegated_barrier_test.go:575
Function
TestTask3399_AConsentFromAStaleSessionMintsNothing
A consent decided under the person's credentials as a session resolved them cannot mint a code after those credentials changed (a disable destroyed th
internal/store/task3399_delegated_barrier_test.go:531
Function
TestTask3399_ADeadlockedAttemptIsRunAgainFromTheStart
Attempt 1 does all its writes, then fails as a deadlock just before its commit; attempt 2 commits the whole effect, once.
internal/store/task3399_deadlock_retry_test.go:18
Function
TestTask3399_ADelegatedGrantPersistsThroughTheBarrier
The whole code flow persists for a person: code, PKCE, access and refresh, under one binding carrying the delegated kind and the consented access.
internal/store/task3399_delegated_barrier_test.go:57
Function
TestTask3399_ADelegatedSignInIssuesAPersonsToken
(t *testing.T)
internal/server/task3399_delegated_flow_test.go:175
Function
TestTask3399_ADeletedWorkspaceTakesNoGrant
A consent approved after the workspace was soft-deleted persists nothing.
internal/store/task3399_delegated_barrier_test.go:592
Function
TestTask3399_ADisableBetweenAuthorizeAndExchangeRefusesTheToken
The required race: a disable or rotate between the consent decision (the code is minted) and the token exchange refuses the exchange.
internal/server/task3399_delegated_flow_test.go:231
Function
TestTask3399_ADisableIsOrderedAgainstIssuance
An account disable that commits while a delegated issuance is between its checks and its commit does not miss the rows the issuance writes. The disabl
internal/store/task3399_delegated_barrier_test.go:418
Function
TestTask3399_AGrantPastTheInstallEpochIsNotListed
A grant the install's epoch has moved past (an upgrade, a rotate) is already unusable, and the console does not list it.
internal/store/task3399_delegated_barrier_test.go:513
Function
TestTask3399_ASweptTombstoneRevivesNothing
A revoked grant whose tombstone the sweep removed is not revived by a persistence already past its checks: only a grant's code writes its binding, so
internal/store/task3399_delegated_barrier_test.go:456
Function
TestTask3399_AnUnexchangedGrantIsListedAndRevocable
A grant consented to but not yet exchanged is listed, so its person can revoke its code.
internal/store/task3399_delegated_barrier_test.go:551
Function
TestTask3399_AppChainsAreNotMCPConnections
An installed app's chains are not MCP connections. Every reader that lists or counts chains as connections leaves them out; the app grant is listed on
internal/store/task3399_delegated_barrier_test.go:225
Function
TestTask3399_AppGrantsWorkWithMCPOff
On a self-host with apps on and MCP off, a person can still sign in to an installed app, and still see and revoke the grant.
internal/server/task3399_delegated_flow_test.go:402
Function
TestTask3399_DeadlockRetriesAreBounded
Three deadlocks in a row: the last error is returned unchanged, and nothing any attempt wrote is committed.
internal/store/task3399_deadlock_retry_test.go:83
Function
TestTask3399_EveryConnectionReaderIsClassified
(t *testing.T)
internal/store/task3399_reader_census_test.go:73
Function
TestTask3399_EveryPersistenceRechecksTheEpoch
Every persistence re-checks the epoch: a disable or rotate between authorize and any later step refuses that step (the required race, at the store; th
internal/store/task3399_delegated_barrier_test.go:82
Function
TestTask3399_RemovingAMemberEndsTheirGrants
Removing a member ends their delegated grants in that workspace, so a re-add in the same second revives nothing.
internal/store/task3399_delegated_barrier_test.go:483
Function
TestTask3399_RevokingAPersonReachesTheirDelegatedCodes
Disabling or claiming an account deactivates the person's unexchanged delegated codes through their bindings, so a re-enable cannot exchange one; eras
internal/store/task3399_delegated_barrier_test.go:328
Function
TestTask3399_RevokingAnAppGrantEndsItThroughTheBinding
(t *testing.T)
internal/store/task3399_delegated_barrier_test.go:262
Function
TestTask3399_SignInRefusals
(t *testing.T)
internal/server/task3399_delegated_flow_test.go:254
Function
TestTask3399_TheAccessIsWithinTheManifest
(t *testing.T)
internal/store/task3399_delegated_barrier_test.go:161
Function
TestTask3399_TheBindingFixesKindAndAccess
A later step cannot change what the grant is: its kind and access are fixed by the binding its first persistence wrote.
internal/store/task3399_delegated_barrier_test.go:189
Function
TestTask3399_TheBindingFixesThePerson
A grant's later persistence cannot change whom it acts for: the binding fixes the person its first persistence named.
internal/store/task3399_delegated_barrier_test.go:352
Function
TestTask3399_TheConsentPageIsFixedToTheInstall
(t *testing.T)
internal/server/task3399_delegated_flow_test.go:148
Function
TestTask3399_TheConsoleShowsAndRevokesAppGrants
The console lists an app grant on its own, read-only plus revoke; every connection mutation refuses it and changes nothing.
internal/server/task3399_delegated_flow_test.go:334
Function
TestTask3399_TheSubjectIsALiveHumanMember
(t *testing.T)
internal/store/task3399_delegated_barrier_test.go:135
Function
TestTask3399_TheSweepRemovesOrphanBindings
The expiry sweep removes bindings whose grant has no row left, for service and delegated grants alike; a live binding stays.
internal/store/task3399_delegated_barrier_test.go:294
Function
TestTask3399_WriteIsChosenOnlyWhenOffered
(t *testing.T)
internal/server/task3399_delegated_flow_test.go:216
Function
TestTask3399b_ACompanionReleasedMidReadWithholdsIt
U6a's Q7 note made load-bearing: re-admission replays every authorization under the FRESH context, so a companion released while a delegated read is i
internal/server/task3399b_delegated_api_test.go:213
Function
TestTask3399b_ADelegatedWritesEventNamesTheInstallAndThePerson
U5b-2 x U10d: a DELEGATED app write's event names the install that wrote it (actor_via_app, envelope via_app) AND credits the person, never the instal
internal/server/task3399b_delegated_api_test.go:412
Function
TestTask3399b_AListCountsNothingHidden
A person who sees only granted items in a companion lists only those, and the window (has_more, next_offset) counts nothing hidden.
internal/server/task3399b_delegated_api_test.go:345
Function
TestTask3399b_APersonLosingAccessMidBodyWritesNothing
Every delegated JSON write re-admits the person after its body is read; one who lost access while the body arrived writes nothing.
internal/server/task3399b_delegated_api_test.go:285
Function
TestTask3399b_APersonNarrowedMidUploadCommitsNoRow
U6c: a delegated upload re-admits the PERSON (their visibility of the item and their edit right) immediately before its row.
internal/server/task3399b_delegated_api_test.go:228
Function
TestTask3399b_ARoleDroppedDuringTheReChecksWithholdsTheResponse
The response's final re-admission step re-checks the workspace and the person's role, not only the credential.
internal/server/task3399b_delegated_api_test.go:380
Function
TestTask3399b_AccessIsTheLesser
§4 step 4: the token's access is the LESSER of the person's consent and what the manifest offers now; and the person's role still applies.
internal/server/task3399b_delegated_api_test.go:129
Function
TestTask3399b_TheAppActsAsThePerson
(t *testing.T)
internal/server/task3399b_delegated_api_test.go:46
Function
TestTask3399b_ThePersonIsCheckedOnEveryRequest
§8: removing a delegated user's membership (or disabling them, or moving their credentials) stops their token at the NEXT request, even where no revoc
internal/server/task3399b_delegated_api_test.go:158
Function
TestTask3399b_ThePersonsVisibilityBoundsTheApp
The person's own visibility bounds what the app sees as them: the request ceiling (U6a), not only the companion set.
internal/server/task3399b_delegated_api_test.go:198
Function
TestTask3401_ABotsVisibilityIsItsInstallCeiling
A bot with "all" access (as a member) still sees only its companions and the system collections: the ceiling does not rely on its membership.
internal/store/task3401_app_ceiling_test.go:56
Function
TestTask3401_ACrossItemParentProjectsToNull
A comment whose parent is on ANOTHER item projects parent_comment_id null.
internal/server/task3401_app_api_test.go:559
Function
TestTask3401_ARevocationDuringAReadWithholdsItsData
A revocation that commits while a read is in flight withholds its data. The response is re-validated against the install (epoch, state, service access
internal/server/task3401_app_api_test.go:720
Function
TestTask3401_AWriteRowRefusesAReadToken
A write row refuses a read token before anything is resolved: the access step runs first, on every write row (U6b adds them).
internal/server/task3401_app_api_test.go:458
Function
TestTask3401_AppAfterHandlerSeamIsNilInProduction
The seam is nil in production.
internal/server/task3401_app_api_test.go:767
← previous
next →
25,301–25,400 of 28,840, ranked by callers