MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestCarryRoundTripEveryScheduleState
(t *testing.T)
internal/store/schedule_carry_matrix_test.go:179
FunctionTestCarryTracksWork
(t *testing.T)
internal/models/tracks_work_test.go:72
FunctionTestCascadeAgainstAResolveOfOneOfItsChildrenDoesNotDeadlock
(t *testing.T)
internal/store/commitment_links_pg_test.go:204
FunctionTestCascadeExhaustionStaysSerial
TASK-2900. TestUpdateDocument_CascadeExhaustionRollsBackTheWholeRename assigns the package-level cascadeRewriteAttempts and restores it in a defer. Th
internal/store/cascade_serial_guard_test.go:33
FunctionTestCascadeLeavesAChildDeadlineAndCrossingABoundNeedsAcknowledgement
(t *testing.T)
internal/store/commitment_links_test.go:252
FunctionTestCascadeLeavesAnArchivedChildAlone
(t *testing.T)
internal/store/commitment_links_test.go:416
FunctionTestCascadeMovesLinkedTargetsAndKeepsOneLineage
(t *testing.T)
internal/store/commitment_links_test.go:220
FunctionTestCascadeRetainedBytesProjectsTheEscapedRewrite
The cascade's memory bound projects the rewritten length before building it. It must project what ReplaceTitle actually writes, which since BUG-2806 i
internal/store/bug2806_document_rename_escaped_test.go:100
FunctionTestCascade_EmitsEscapedTitlesAndDoesNotDestroyTheIndex
TestCascade_EmitsEscapedTitlesAndDoesNotDestroyTheIndex is BUG-2805 direction 2a, the data-destroying one. Before: renaming TO a title containing `]`
internal/store/items_rename_escape_test.go:86
FunctionTestCascade_RenameToEmptyTitleDoesNotDestroyLinks
TestCascade_RenameToEmptyTitleDoesNotDestroyLinks closes a second door onto BUG-2805's data-destruction shape, found while probing the TitleEscaper's
internal/store/items_rename_escape_test.go:173
FunctionTestCascade_RewritesLinksStoredInEscapedForm
BUG-2805 end-to-end, through the real rename cascade. The unit tests in internal/links pin the rewriter; these pin that the CASCADE actually carries
internal/store/items_rename_escape_test.go:25
FunctionTestCatalogProject_ActivityParamsExposed
TestCatalogProject_ActivityParamsExposed verifies the actor + limit params activity relies on are declared on the tool schema (since already existed f
internal/mcp/catalog_project_test.go:40
FunctionTestCatalogProject_HasActivityAction
TestCatalogProject_HasActivityAction pins TASK-2018: pad_project exposes an `activity` action alongside the existing computed-view actions, and the ac
internal/mcp/catalog_project_test.go:20
FunctionTestCatalogTools_AnnotationsExplicit
TestCatalogTools_AnnotationsExplicit pins the annotation block every catalog tool advertises (BUG-2302). Before this, no tool set annotations, so mcp-
internal/mcp/catalog_annotations_test.go:26
FunctionTestCatalogWorkspaceDescriptionDocumentsPrecedence
TestCatalogWorkspaceDescriptionDocumentsPrecedence pins the schema- level description so the resolution order is discoverable by agents that read the
internal/mcp/catalog_workspace_precedence_test.go:154
FunctionTestCatalogWorkspaceParamAdvertisedOnAllWorkspaceTools
TestCatalogWorkspaceParamAdvertisedOnAllWorkspaceTools confirms every tool with Schema.Workspace=true exposes a `workspace` property in its tools/list
internal/mcp/catalog_workspace_precedence_test.go:120
FunctionTestCatalogWorkspacePrecedence
TestCatalogWorkspacePrecedence covers the four resolution cases from TASK-972's spec. Drives a real catalog action through the fan-out handler so it e
internal/mcp/catalog_workspace_precedence_test.go:21
FunctionTestCatalogWorkspace_DescriptionMentionsLifecycle
(t *testing.T)
internal/mcp/catalog_workspace_lifecycle_test.go:78
FunctionTestCatalogWorkspace_LifecycleActionsRegistered
MCP catalog wiring tests for the workspace-lifecycle actions (PLAN-1519 / TASK-1521 / IDEA-1517 §1 + §4). The catalog is the contract — agents discov
internal/mcp/catalog_workspace_lifecycle_test.go:25
FunctionTestCatchUpCommand_ErrorSurfaces
(t *testing.T)
cmd/pad/task4035_catch_up_test.go:155
FunctionTestCatchUpCommand_JSON
(t *testing.T)
cmd/pad/task4035_catch_up_test.go:72
FunctionTestCatchUpCommand_JSONSkipsTypedDecode
A body whose field type the CLI struct does not hold: json prints the server's JSON anyway, table and markdown refuse (TASK-4035, rulings eedbf63d and
cmd/pad/task4035_catch_up_test.go:174
FunctionTestCatchUpCommand_OldCursorLabelsFourteenDayCap
TASK-4051: an existing cursor older than the ceiling is labelled as capped in both human-readable formats. Kills: M5b.
cmd/pad/task4035_catch_up_test.go:196
FunctionTestCatchUpCommand_ReadNeverWrites
(t *testing.T)
cmd/pad/task4035_catch_up_test.go:136
FunctionTestCatchUpCommand_TextAndMarkdown
(t *testing.T)
cmd/pad/task4035_catch_up_test.go:91
FunctionTestCategoryLabel
TestCategoryLabel exercises known and unknown category label lookup.
internal/collections/templates_test.go:374
FunctionTestCensus
(t *testing.T)
scripts/ci-web-census/main_test.go:10
FunctionTestChainedReversePatches
(t *testing.T)
internal/diff/diff_test.go:87
FunctionTestChangelogCommandShowsTheDoneFieldValue
BUG-2640, the CLI copy, driven through the real commands: a completed item from a collection whose done field is `stage` must render its stage value,
cmd/pad/bug2640_done_field_display_test.go:76
FunctionTestChangelogOmitsAValueTheCollectionDeclaresAbandoned
(t *testing.T)
internal/server/handlers_changelog_abandoned_test.go:43
FunctionTestChangelogWithoutAbandonedOptionsFallsBackToTheGlobalNames
The counterfactual, and the fallback pinned: WITHOUT a declaration the global names decide, and "overturned" is not one of them, so it still counts as
internal/server/handlers_changelog_abandoned_test.go:65
FunctionTestChatArmHasNoMCPPath
DOC-4036 pins dispatch destinations, not cmdhelp visibility: MCP cannot enable direction even when chat arm/disarm are ordinary visible CLI commands.
cmd/pad/cmd_chat_direction_test.go:179
FunctionTestChatArmHeadlessRefuses
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:112
FunctionTestChatArmPrintsWarningEveryTime
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:78
FunctionTestChatArmRequiresFlag
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:67
FunctionTestChatDeletePublishesRetractionOnce
(t *testing.T)
internal/server/chat_delivery_test.go:144
FunctionTestChatDeliveredEndpoint
(t *testing.T)
internal/server/chat_delivery_test.go:195
FunctionTestChatDirectionArmGeneration
(t *testing.T)
internal/cli/chat_direction_generation_test.go:34
FunctionTestChatDirectionFileKeyedBySocketOnly
(t *testing.T)
internal/cli/chat_direction_state_test.go:33
FunctionTestChatDirectionGuard
(t *testing.T)
cmd/pad/chat_direction_guard_test.go:27
FunctionTestChatDirectionLivenessAndReaping
(t *testing.T)
internal/cli/chat_direction_state_test.go:85
FunctionTestChatDirectionMissingGenerationFailsClosed
(t *testing.T)
internal/cli/chat_direction_generation_test.go:77
FunctionTestChatDirectionNeedsArmedSession
(t *testing.T)
internal/cli/chat_direction_state_test.go:137
FunctionTestChatDirectionNotSettableFromServer
(t *testing.T)
internal/server/chat_delivery_test.go:224
FunctionTestChatDirectionRootCommandBinding
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:35
FunctionTestChatDirection_MountNamespace
TestChatDirection_MountNamespace: the chat-direction file is the third socket-identity writer (after the registry capture and the arm write, BUG-4090)
internal/cli/session_owner_pidns_linux_test.go:612
FunctionTestChatDisarmLeavesPushArm
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:125
FunctionTestChatEmitsNoKernelEvent
TASK-4041: chat has no kernel event, activity, outbox or webhook effects.
internal/server/handlers_chat_guard_test.go:20
FunctionTestChatFramingByAuthor
(t *testing.T)
cmd/pad/cmd_watch_chat_test.go:180
FunctionTestChatGPTCatalogReady_RefusesAMissingShape
The mount's prerequisite gate (TASK-3321 U2b): the catalog is ready only when every tool has a response shape.
internal/mcp/chatgpt_project_test.go:140
FunctionTestChatGPTCatalog_CoversEveryOperation
TestChatGPTCatalog_CoversEveryOperation is the parity guard TASK-3321 requires: every /mcp operation, and pad_set_workspace, is EITHER a ChatGPT entry
internal/mcp/chatgpt_catalog_test.go:22
FunctionTestChatGPTCatalog_DescriptionsSpeakForThisSurface
No ChatGPT tool or parameter description may use /mcp's vocabulary: action names, "Required for:" lists or pad_* tool names describe operations these
internal/mcp/chatgpt_catalog_test.go:146
FunctionTestChatGPTCatalog_DispatchesExactlyAsItsSource
TestChatGPTCatalog_DispatchesExactlyAsItsSource proves the projection claim: calling a ChatGPT tool produces the SAME dispatch (CLI path, args and dis
cmd/pad/chatgpt_catalog_test.go:103
FunctionTestChatGPTCatalog_HintsAsRuled
TestChatGPTCatalog_HintsAsRuled pins each tool's hints to the decided values, written out here rather than read back from the catalog, so the two can
internal/mcp/chatgpt_catalog_test.go:76
FunctionTestChatGPTCatalog_KeepsFieldNumberLiterals
A `fields` number keeps the literal the caller sent through the ChatGPT door, as it does through /mcp (BUG-3217): the projection must hand the source
cmd/pad/chatgpt_catalog_test.go:220
FunctionTestChatGPTCatalog_RefusesUndeclaredParams
A ChatGPT tool refuses a parameter it does not declare, even one its /mcp source accepts: the narrowed schema is the contract.
cmd/pad/chatgpt_catalog_test.go:193
FunctionTestChatGPTCatalog_Valid
TestChatGPTCatalog_Valid: the catalog as shipped passes the checks registration applies.
internal/mcp/chatgpt_catalog_test.go:11
FunctionTestChatGPTCatalog_WorkspaceIsRequiredWhereverItIsTaken
There is no session workspace on the ChatGPT server (shared state, BUG-1865), so every tool that acts inside a workspace must REQUIRE the slug: an opt
internal/mcp/chatgpt_catalog_test.go:172
FunctionTestChatGPTDoorVersionsContentIsTrue
The ChatGPT mount is only wired while ChatGPTDoorVersionsContent says the door versions content (TASK-3321 U2b's prerequisite gate). The constant is h
internal/server/task3321_u2b_mount_test.go:173
FunctionTestChatGPTMountPrerequisitesHold
As shipped, the ChatGPT mount's prerequisites hold (TASK-3321 U2b): U1b's versioning door and U3's response shapes for every tool.
cmd/pad/chatgpt_catalog_test.go:255
FunctionTestChatGPTPlugin_MCPConfig
(t *testing.T)
internal/mcp/chatgpt_plugin_package_test.go:190
FunctionTestChatGPTPlugin_Manifest
(t *testing.T)
internal/mcp/chatgpt_plugin_package_test.go:89
FunctionTestChatGPTPlugin_SkillIsMCPOnly
(t *testing.T)
internal/mcp/chatgpt_plugin_package_test.go:222
FunctionTestChatGPTPlugin_TestCases
(t *testing.T)
internal/mcp/chatgpt_plugin_package_test.go:159
FunctionTestChatGPTProjection_EmailShapedNamesAreMasked
A display name that is an email address reaches ChatGPT as "a Pad user" in every person field, and nowhere else is a name touched (TASK-3321).
internal/mcp/chatgpt_project_test.go:118
FunctionTestChatGPTProjection_ErrorPathsDoNotLeak
Error results are swept too: an error that embeds item data must not carry what a success would have dropped.
cmd/pad/chatgpt_projection_test.go:306
FunctionTestChatGPTProjection_ErrorsAreMinimized
Other errors keep their code, message and hint, lose any other member, and have ids masked.
internal/mcp/chatgpt_project_test.go:65
FunctionTestChatGPTProjection_EveryToolHasAShape
Every ChatGPT tool has a response allow-list (TASK-3321 U3); a tool without one would fail closed at runtime, so it fails here first.
internal/mcp/chatgpt_project_test.go:13
FunctionTestChatGPTProjection_HistoryNamesTheEditor
item_history names who made each change (the display name #1714 added), and masks a name that is an email address.
cmd/pad/chatgpt_projection_test.go:342
FunctionTestChatGPTProjection_KeepsWhatTheToolsAreFor
What the projection keeps is what the tools are for: one of the plugin's test cases reads ref, title, status and priority; a relation field reads as a
cmd/pad/chatgpt_projection_test.go:255
FunctionTestChatGPTProjection_NoIdentifiersOrEmailsLeak
(t *testing.T)
cmd/pad/chatgpt_projection_test.go:180
FunctionTestChatGPTProjection_NonJSONFailsClosed
A success that is not JSON fails closed; archive_item, whose source answers no body, confirms without echoing an id.
internal/mcp/chatgpt_project_test.go:91
FunctionTestChatGPTProjection_PlanLimitIsNeutral
A plan-limit refusal reaches ChatGPT without its upgrade text or billing link (OpenAI's no-upsell rule); other errors pass unchanged.
internal/mcp/chatgpt_project_test.go:45
FunctionTestChatGPTProjection_TextFallbackIsProjected
The text fallback is rewritten from the projected value, so a client that reads only text does not see what the structured content dropped.
internal/mcp/chatgpt_project_test.go:105
FunctionTestChatGPTProjection_UnknownKeysAreDropped
An allow-list: a key the shape does not name is dropped, so a field added to an item tomorrow does not reach ChatGPT by default.
internal/mcp/chatgpt_project_test.go:32
FunctionTestChatGPTResourceURL
TASK-3321 U2a: the ChatGPT catalog's resource is the /mcp resource's MCP path plus /chatgpt; the bare cloud host maps to /mcp first.
internal/config/mcp_chatgpt_test.go:7
FunctionTestChatGPTScope_ReadGrantOnAWriteToolIsChallenged
(t *testing.T)
cmd/pad/chatgpt_scope_test.go:116
FunctionTestChatGPTScope_SufficientGrantsAreNotChallenged
The challenge fires only on a missing scope: a read tool with a read grant, and a write tool with a write grant, reach the dispatcher.
cmd/pad/chatgpt_scope_test.go:147
FunctionTestChatGPTToolsList_JSONWithTopLevelSchemes
tools/list asked for the way ChatGPT asks (Accept: application/json, text/event-stream) answers a JSON body whose every tool carries securitySchemes a
cmd/pad/chatgpt_scope_test.go:170
FunctionTestChatGPTWireGolden
TASK-3321 U1: the ChatGPT catalog's wire contract, pinned like /mcp's (TestMCPWireGolden_*). /mcp's own golden files are untouched by this unit, which
cmd/pad/chatgpt_catalog_test.go:25
FunctionTestChatHumanTombstonesAndQuotes
(t *testing.T)
cmd/pad/cmd_chat_test.go:161
FunctionTestChatInboxDeliveryPredicate
(t *testing.T)
internal/server/chat_inbox_test.go:22
FunctionTestChatInboxLiveStreams
(t *testing.T)
internal/server/chat_inbox_test.go:160
FunctionTestChatInboxPrefHonouredOnlyForPersonCookie
No app principal reaches this stream by a non-bearer path (its routes are all behind the cookie or token middleware, and the revalidation tick denies
internal/server/chat_inbox_test.go:59
FunctionTestChatKindNotWatchMatched
(t *testing.T)
internal/server/chat_delivery_test.go:65
FunctionTestChatKindRequiresOptInArmedAgentMatch
(t *testing.T)
internal/server/chat_delivery_test.go:20
FunctionTestChatLimitValidation
(t *testing.T)
cmd/pad/cmd_chat_test.go:325
FunctionTestChatMarkFailurePreservesOutcome
(t *testing.T)
cmd/pad/cmd_chat_test.go:276
FunctionTestChatNotificationSurvivesRedisRoundTrip
(t *testing.T)
internal/watchevents/redis_bus_test.go:803
FunctionTestChatPublishInboxDeleteDedupesAuthor
(t *testing.T)
internal/server/chat_inbox_test.go:124
FunctionTestChatPublishInboxNoticeIsRefOnlyAgentNoticeKeepsExcerpt
An agent notice published alongside a human one for the same message keeps its excerpt and reply seq (the monitor's line needs them); the human notice
internal/server/chat_inbox_test.go:97
FunctionTestChatPublishRefOnlyNoBody
(t *testing.T)
internal/server/chat_delivery_test.go:79
FunctionTestChatPublishSkipsAuthorAndHuman
(t *testing.T)
internal/server/chat_delivery_test.go:107
FunctionTestChatReadSeq
(t *testing.T)
internal/cli/chat_test.go:26
FunctionTestChatRemoteAgentTargetGuard
TASK-4186 PR C: the remote resolveChatTarget refuses send to another agent's @name before any list or POST (show, read and delete keep not_found), and
internal/mcp/task4186_chat_agent_guard_test.go:43
FunctionTestChatRemoteContiguousPage
(t *testing.T)
internal/mcp/dispatch_http_chat_test.go:207
FunctionTestChatRemoteLimitValidation
(t *testing.T)
internal/mcp/dispatch_http_chat_test.go:299
FunctionTestChatRemoteMarkFailurePreservesOutcome
(t *testing.T)
internal/mcp/dispatch_http_chat_test.go:261
FunctionTestChatRemoteReadMarkers
(t *testing.T)
internal/mcp/dispatch_http_chat_test.go:147
FunctionTestChatRemoteSendRefusesStdin
(t *testing.T)
internal/mcp/dispatch_http_chat_test.go:315
← previousnext →18,001–18,100 of 28,840, ranked by callers