MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestChatRemoteStoredIdentity
(t *testing.T)
internal/mcp/dispatch_http_chat_test.go:30
FunctionTestChatReplayDoesNotPublish
(t *testing.T)
internal/server/chat_delivery_test.go:132
FunctionTestChatSeenAppendsLinesPrivately
(t *testing.T)
internal/cli/chat_seen_test.go:29
FunctionTestChatSeenKeyedByPadSessionPidFirst
C1's pin: the mod passes its sessionPid() as PAD_SESSION_PID, and that keys the log ahead of CLAUDE_PID, so the reader and writer agree.
internal/cli/chat_seen_test.go:215
FunctionTestChatSeenOffOnInvalidSessionPid
(t *testing.T)
internal/cli/chat_seen_test.go:201
FunctionTestChatSeenOffWithoutHarnessPid
C2: a pid from os.Getpid() keys nothing a reader or a prune can find.
internal/cli/chat_seen_test.go:178
FunctionTestChatSeenOversizeLineOnEmptyLog
A line longer than the cap still lands; it is not rotated against itself.
internal/cli/chat_seen_test.go:163
FunctionTestChatSeenRefusesFifoWithReader
A FIFO with a reader opens fine, so only the regular-file check stops the log writing into someone's pipe.
internal/cli/chat_seen_fifo_unix_test.go:18
FunctionTestChatSeenRefusesFifoWithoutHanging
(t *testing.T)
internal/cli/chat_seen_test.go:115
FunctionTestChatSeenRefusesSymlinkAndStops
(t *testing.T)
internal/cli/chat_seen_test.go:87
FunctionTestChatSeenRefusesSymlinkedDir
ensurePrivateDir follows a symlink, so a symlinked chat-seen directory would have its target chmodded and the log written into it.
internal/cli/chat_seen_test.go:263
FunctionTestChatSeenReopensAfterRemoval
A log removed under the writer (a prune of an unknown-liveness record) is recreated at its path rather than written into an unlinked file.
internal/cli/chat_seen_test.go:294
FunctionTestChatSeenRotatesOneGeneration
(t *testing.T)
internal/cli/chat_seen_test.go:143
FunctionTestChatSeenTightensLooseDirAndFile
(t *testing.T)
internal/cli/chat_seen_test.go:56
FunctionTestChatSendAdvancesOnlyTheSendersReadMarker
BUG-4320: a send moves the sender's own read marker, never delivered_seq and never the other member's marker.
internal/server/chat_delivery_test.go:167
FunctionTestChatSendAndTargetResolution
(t *testing.T)
cmd/pad/cmd_chat_test.go:68
FunctionTestChatSendWorkspaceContext
(t *testing.T)
cmd/pad/cmd_chat_test.go:186
FunctionTestChatShowContiguousPage
(t *testing.T)
cmd/pad/cmd_chat_test.go:231
FunctionTestChatShowReadMarker
(t *testing.T)
cmd/pad/cmd_chat_test.go:16
FunctionTestChatStdioSendRefusesStdin
(t *testing.T)
cmd/pad/chat_direction_guard_test.go:142
FunctionTestChatStreamCookieIgnoresAgentHeader
(t *testing.T)
internal/server/chat_stream_auth_test.go:13
FunctionTestChatStreamDeniedWhenUserDisabled
(t *testing.T)
internal/server/chat_delivery_test.go:301
FunctionTestChatStreamTickDeniesAndRecovers
TASK-4041: chat-only streams have no workspace visibility lookup to refresh identity incidentally. Their reval tick must reset denial even on reload e
internal/server/chat_delivery_test.go:319
FunctionTestChatTarget
(t *testing.T)
internal/cli/chat_test.go:5
FunctionTestChatTimestampsAreFixedWidth
(t *testing.T)
internal/store/conversations_test.go:92
FunctionTestChat_AgentCannotReachSiblingAgentDM
TASK-4054: one owner, two agents. Agent alpha must not reach the owner's DM with agent bravo through any conversation endpoint, and must not leave a t
internal/server/task4054_chat_agent_separation_test.go:25
FunctionTestChat_AgentChatTargetGuardParity
TASK-4186 PR C: the client guard (cli.CheckAgentChatTarget) is only a pre-check, so it must refuse exactly what the real ensure handler refuses. The c
internal/server/task4186_chat_agent_guard_test.go:15
FunctionTestChat_AgentHeaderTruncatesToPresenceKey
BUG-4055: chat must use the key the real presence stream recorded, even when the self-declared header exceeds both the rune and former byte caps.
internal/server/handlers_chat_test.go:231
FunctionTestChat_AppPrincipalRefused
(t *testing.T)
internal/server/handlers_chat_test.go:438
FunctionTestChat_ContextWorkspace_BadValueIs400
(t *testing.T)
internal/server/handlers_chat_enrich_test.go:165
FunctionTestChat_ContextWorkspace_ShownThenHiddenAfterMemberRemoved
(t *testing.T)
internal/server/handlers_chat_enrich_test.go:92
FunctionTestChat_ContextWorkspace_SoftDeletedWorkspaceHidden
(t *testing.T)
internal/server/handlers_chat_enrich_test.go:141
FunctionTestChat_Delete_AuthorAndOwnerRules
(t *testing.T)
internal/server/handlers_chat_test.go:647
FunctionTestChat_EnsureDM_CreateThenIdempotent
(t *testing.T)
internal/server/handlers_chat_test.go:61
FunctionTestChat_EnsureDM_EmptyBody
(t *testing.T)
internal/server/handlers_chat_test.go:969
FunctionTestChat_Ensure_BodyKeyTheNormalizerWouldChangeIsRefusedWithoutCreation
BUG-4055 / TASK-4059: a human's body agent_key that the normalizer would change is refused, not silently changed, and nothing is created. This pins th
internal/server/handlers_chat_test.go:336
FunctionTestChat_Ensure_CreateBucketStillLimits
(t *testing.T)
internal/server/handlers_chat_test.go:412
FunctionTestChat_Ensure_RejectsUnnormalisedAgentKey
TASK-4039: human-created DMs must be reachable through X-Pad-Agent.
internal/server/handlers_chat_test.go:78
FunctionTestChat_Ensure_ReuseIsUncharged
(t *testing.T)
internal/server/handlers_chat_test.go:397
FunctionTestChat_FreshInstallNoUser_401
(t *testing.T)
internal/server/handlers_chat_test.go:792
FunctionTestChat_GetByNumber_HumanAndAgent
(t *testing.T)
internal/server/handlers_chat_test.go:495
FunctionTestChat_GetCallerDeliveredFloorBoundary
Store-seeded as in TASK-4060: reads cannot create a DM or change markers.
internal/server/task4041_chat_floor_test.go:12
FunctionTestChat_GuardHandlersDoNotReferenceEmitters
(t *testing.T)
internal/server/handlers_chat_guard_test.go:73
FunctionTestChat_InboxOmitsDeliveredFloor
(t *testing.T)
internal/server/task4041_chat_floor_test.go:86
FunctionTestChat_List_InboxRowsAndUnreadTotal
(t *testing.T)
internal/server/handlers_chat_test.go:463
FunctionTestChat_LongHeaderAgent_ExplicitKeyMatchesNormalisedName
BUG-4055: an agent whose header truncates must name itself by the normalised key, never by the raw header, on both the ensure body and the unread filt
internal/server/handlers_chat_test.go:312
FunctionTestChat_MarkRead_DisplayedSeq
(t *testing.T)
internal/server/handlers_chat_test.go:673
FunctionTestChat_Messages_PaginationTombstonesAndLimits
(t *testing.T)
internal/server/handlers_chat_test.go:511
FunctionTestChat_NonASCII64RuneAgentKeyRoundTrip
(t *testing.T)
internal/server/handlers_chat_test.go:265
FunctionTestChat_NonMemberAdminCookieGets404
(t *testing.T)
internal/server/handlers_chat_test.go:851
FunctionTestChat_NonMemberGets404Everywhere
(t *testing.T)
internal/server/handlers_chat_test.go:714
FunctionTestChat_PinnedPATRefused
(t *testing.T)
internal/server/handlers_chat_test.go:762
FunctionTestChat_RateLimit_20PerMinutePerAgentPerConversation
(t *testing.T)
internal/server/handlers_chat_test.go:362
FunctionTestChat_RateLimit_ReplayAfterContextLoss
TASK-4039: both replay paths spend exactly one token and share exhaustion.
internal/server/handlers_chat_test.go:933
FunctionTestChat_ReadScopedPATCanReadNotWrite
(t *testing.T)
internal/server/handlers_chat_test.go:776
FunctionTestChat_Refs_ContextlessRefsDoNotConsumeCap
TASK-4039 r1: bare refs without context do not consume lookup slots.
internal/server/handlers_chat_enrich_test.go:330
FunctionTestChat_Refs_TokenAllowListHonoured
(t *testing.T)
internal/server/handlers_chat_enrich_test.go:307
FunctionTestChat_Refs_TruncatedAt200
(t *testing.T)
internal/server/handlers_chat_enrich_test.go:36
FunctionTestChat_Refs_VisibleRestrictedUnresolved
(t *testing.T)
internal/server/handlers_chat_enrich_test.go:203
FunctionTestChat_ResponsesNeverCarryRawIdentifiers
(t *testing.T)
internal/server/handlers_chat_guard_test.go:100
FunctionTestChat_Send_AdvancesTheSendersReadMarker
BUG-4320: each side's send covers everything up to it; the other side's message after that stays unread.
internal/server/handlers_chat_test.go:617
FunctionTestChat_Send_BodyCannotOverrideAuthor
(t *testing.T)
internal/server/handlers_chat_test.go:128
FunctionTestChat_Send_CookieSessionIgnoresAgentHeader
(t *testing.T)
internal/server/handlers_chat_test.go:156
FunctionTestChat_Send_CreatesWithCredentialAuthor
(t *testing.T)
internal/server/handlers_chat_test.go:833
FunctionTestChat_Send_OpKeyReplayAfterContextMembershipRemoved
TASK-4039: an identical retry survives each kind of context access loss.
internal/server/handlers_chat_test.go:870
FunctionTestChat_Send_OpKeyReplayOverHTTP
(t *testing.T)
internal/server/handlers_chat_test.go:551
FunctionTestChat_Send_RemoteMCPWithoutNameRefused
(t *testing.T)
internal/server/handlers_chat_test.go:198
FunctionTestChat_Send_ReplyAndQuote
(t *testing.T)
internal/server/handlers_chat_test.go:579
FunctionTestChat_Send_SentinelStatusTable
(t *testing.T)
internal/server/handlers_chat_test.go:597
FunctionTestChat_Unread_AgentFilterAndMismatch
(t *testing.T)
internal/server/handlers_chat_test.go:694
FunctionTestChat_UserlessLegacyTokenRefused
(t *testing.T)
internal/server/handlers_chat_test.go:744
FunctionTestChat_WriteChatError_SentinelMapping
TASK-4039: sentinel details are static; unexpected store text never reaches HTTP.
internal/server/handlers_chat_test.go:803
FunctionTestCheckAgentChatTargetSharedTable
(t *testing.T)
internal/cli/chat_agent_target_test.go:14
FunctionTestCheckFence_WritesNothing
A fence that admits writes nothing by itself, and a refused one writes nothing at all: the census baseline every U2 mutation is measured against.
internal/appstore/appstore_test.go:55
FunctionTestCheckItemVisible_AdminBearerRestrictedRoleDeniedOnHiddenCollection
TestCheckItemVisible_AdminBearerRestrictedRoleDeniedOnHiddenCollection pins BUG-1918: checkItemVisible's unconditional `user.Role == "admin"` bypass i
internal/server/handlers_ref_resolver_test.go:459
FunctionTestCheckItemVisible_AuthenticatedEditorWithRestrictedAccess
TestCheckItemVisible_AuthenticatedEditorWithRestrictedAccess pins that the bypass at the top of checkItemVisible originally fired for ANY role in {own
internal/server/handlers_ref_resolver_test.go:340
FunctionTestCheckItemVisible_TokenizedRoleAllowsNilUser
TestCheckItemVisible_TokenizedRoleAllowsNilUser pins that the legacy workspace-scoped API token path admits requests with currentUser == nil and a syn
internal/server/handlers_ref_resolver_test.go:287
FunctionTestCheckLimitTx_SeesUncommittedRowsInTheTransaction
TestCheckLimitTx_SeesUncommittedRowsInTheTransaction is the direct proof that the DR-16 quota count runs on the caller's transaction. The concurrent-
internal/store/items_cross_workspace_copy_test.go:999
FunctionTestCheckUserLimitTreatsAnExpiredPlanAsFree
The limit check decides from the effective plan: an expired pro gets free limits.
internal/store/bug3356_plan_revision_test.go:108
FunctionTestCheckUserLimit_WorkspacesFreeTier
TestCheckUserLimit_WorkspacesFreeTier exercises the workspace-count limit for a free-tier user. The cap must be 3 (DefaultFreeLimits.Workspaces). - W
internal/store/limits_test.go:15
FunctionTestCheckUserLimit_WorkspacesFreeWithOverride
TestCheckUserLimit_WorkspacesFreeWithOverride confirms that a per-user plan_overrides JSON entry raises the cap above the default 3.
internal/store/limits_test.go:83
FunctionTestCheckUserLimit_WorkspacesProUnlimited
TestCheckUserLimit_WorkspacesProUnlimited confirms that pro-plan users are always allowed regardless of workspace count.
internal/store/limits_test.go:119
FunctionTestChildrenAndProgress_ExcludeSoftDeletedCollections
(t *testing.T)
internal/store/bug3428_deleted_collection_reads_test.go:109
FunctionTestChoiceValue
(t *testing.T)
internal/decision/effort_read_test.go:45
FunctionTestChunkStrings
TestChunkStrings covers the split at and around the boundary. The integration test below cannot pin these cases cheaply (each id costs a row), and an
internal/store/attachments_copy_plan_test.go:915
FunctionTestClaimForms
In-pack claims collide wherever the import's lookup (JSONFieldEquals) would match: boolean true vs "true", number 1000 vs "1e3".
internal/server/handlers_apps_install_test.go:678
FunctionTestClaimItemLease_ConcurrentSingleWinner
N concurrent claimers produce exactly one winner; every loser gets LeaseHeldError. The predicate on the UPDATE is the arbiter.
internal/store/item_lease_test.go:66
FunctionTestClaimItemLease_ContendedReturnsLeaseHeld
A second claim by a different holder while the lease is live fails with a typed LeaseHeldError naming the holder and expiry — never a silent second wi
internal/store/item_lease_test.go:44
FunctionTestClaimItemLease_ExpiredIsClaimable
An expired lease is absent: a new holder claims through it with no reaper having run.
internal/store/item_lease_test.go:122
FunctionTestClaimItemLease_HolderReclaimRefreshes
A re-claim by the live holder refreshes the expiry (heartbeat) and keeps the original acquired_at — extending is not re-acquiring.
internal/store/item_lease_test.go:101
FunctionTestClaimItemLease_UnclaimedSucceeds
A first claim on an unclaimed item succeeds and returns the lease.
internal/store/item_lease_test.go:25
FunctionTestClaimNeverAttached_PredicateLegs
(t *testing.T)
internal/store/attachments_gc_claim_test.go:176
FunctionTestClaimNotificationErrorCarriesNoRowID
Kills: putting a row id back into the claim error text (Q8).
internal/store/task3939b_settle_test.go:121
FunctionTestClaimNotifications_DisjointClaimers_Lease
Kills: dropping the lease predicate from the candidate select or from the claim UPDATE (a live claim is taken over); `<` flipped (a lapsed claim is ne
internal/store/task3939_push_dispatch_test.go:131
FunctionTestClaimNotifications_ExcludeSkipsTheListedIDs
TASK-4032. Kills: ignoring exclude (the excluded legs go red); building the clause for an empty list (the nil leg goes red on a SQL error).
internal/store/task3939b_settle_test.go:163
FunctionTestClaimNotifications_HeldRowsDoNotCrowdLimit
Held rows must not crowd the limit: the candidate select skips them, so a free younger row is still claimed. Kills: dropping the lease predicate from
internal/store/task3939_push_dispatch_test.go:618
FunctionTestClaimNotifications_LimitIsClamped
Kills (TASK-3939 r4-L3, r5-M1): an unguarded limit. A negative LIMIT is unbounded on SQLite (every pending row is claimed) and an error on Postgres; a
internal/store/task3939_push_dispatch_test.go:808
FunctionTestClaimNotifications_ReadBackExcludesSettled
A claimer that settled a row and then claims again reads back only the new claim, not its own sent row (the first claim's token stays on a settled row
internal/store/task3939_push_dispatch_test.go:592
FunctionTestClaimNotifications_ReusedToken
(a) a reused token already holds a row under a fresh lease: the next call neither returns it nor counts it toward limit. (b) more held rows plus new c
internal/store/task3939_push_dispatch_test.go:703
FunctionTestClaimNotifications_ReusedTokenReturnsOnlyThisCallsRows
Kills (TASK-3939 r1-H1): dropping the id predicate from the read-back (a row the reused token holds comes back though this call never claimed it; the
internal/store/task3939_push_dispatch_test.go:673
← previousnext →18,101–18,200 of 28,840, ranked by callers