MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestDispatchItemHistory_SummaryNamesTheEditor
TASK-3321 (ToolSurface 0.63): a summary row names WHO made the change, the display name the server joins on read. It said only "user" or "agent".
internal/mcp/dispatch_http_history_test.go:187
FunctionTestDispatchItemHistory_SummaryShape
TestDispatchItemHistory_SummaryShape pins BOTH halves of the fix: the action dispatches at all over HTTP (it previously answered "not yet implemented
internal/mcp/dispatch_http_history_test.go:88
FunctionTestDispatchItemHistory_UnknownItemIsNotFound
TestDispatchItemHistory_UnknownItemIsNotFound pins the error envelope in BOTH modes: a missing item must classify as the kind-aware item_not_found (wi
internal/mcp/dispatch_http_history_test.go:161
FunctionTestDispatchItemNote_HealthyItemStillAppends
TestDispatchItemNote_HealthyItemStillAppends is the over-breadth control: the two tests above would also pass against a dispatcher that refused every
internal/mcp/dispatch_http_stored_state_test.go:161
FunctionTestDispatchItemNote_RefusesUnreadableWithRetryHostileCode
(t *testing.T)
internal/mcp/dispatch_http_stored_state_test.go:107
FunctionTestDispatchItemUpdate_EmptyPromotedStringIsStillNotAChange
...and an empty string still means "not supplied", so widening the type check did not turn a no-op param into a write. Same invariant every other decl
internal/mcp/dispatch_http_advanced_test.go:996
FunctionTestDispatchItemUpdate_ForwardsForceFlag
(t *testing.T)
internal/mcp/dispatch_http_advanced_force_test.go:17
FunctionTestDispatchItemUpdate_LiftsAgentRoleIDFromFieldKVPToColumn
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:604
FunctionTestDispatchItemUpdate_NoFieldChangesSkipsFieldsMerge
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:387
FunctionTestDispatchItemUpdate_NonStringPromotedValueIsNotDropped
TestDispatchItemUpdate_NonStringPromotedValueIsNotDropped: a promoted param that arrives as a NUMBER must reach the PATCH, not be silently discarded (
internal/mcp/dispatch_http_advanced_test.go:944
FunctionTestDispatchItemUpdate_OmitsForceWhenAbsent
(t *testing.T)
internal/mcp/dispatch_http_advanced_force_test.go:59
FunctionTestDispatchItemUpdate_PassesThroughAgentRoleID
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:650
FunctionTestDispatchItemUpdate_RequiresWorkspaceAndRef
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:455
FunctionTestDispatchItemUpdate_ResolvesRoleSlugToAgentRoleID
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:691
FunctionTestDispatchItemUpdate_RoleResolutionFailureSurfacesAsToolError
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:747
FunctionTestDispatchItemUpdate_SameNameDuplicateResolvesFieldWins
(t *testing.T)
internal/mcp/dispatch_http_same_name_duplicate_test.go:25
FunctionTestDispatchItemUpdate_SendsFieldsPatch
--- dispatchItemUpdate --- TestDispatchItemUpdate_SendsFieldsPatch is the TASK-2022 update of the old read-modify-write test. The HTTP dispatcher no l
internal/mcp/dispatch_http_advanced_test.go:234
FunctionTestDispatchItemUpdate_SurfacesPrefetch404
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:426
FunctionTestDispatchItemUpdate_TagsForwarding
TestDispatchItemUpdate_TagsForwarding covers two regressions on the same area (#547): - the dispatcher must forward `tags: ["a"]` array shapes (was fi
internal/mcp/dispatch_http_advanced_test.go:315
FunctionTestDispatchNoteAndDecide_KeepTheUsersNameAsAuthor
BUG-3056: moving the append server-side must not change who the remote door says wrote an entry. It has always stamped the requesting user's display n
internal/mcp/dispatch_http_append_author_test.go:18
FunctionTestDispatch_AttachmentList_AttachedAndUnattachedFolds
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:61
FunctionTestDispatch_AttachmentList_BuildsExpectedQueryString
--- attachment list ---
internal/mcp/dispatch_http_attachments_test.go:16
FunctionTestDispatch_AttachmentList_ItemRefResolutionFailureSurfacesError
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:184
FunctionTestDispatch_AttachmentList_RejectsAttachedAndUnattachedTogether
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:108
FunctionTestDispatch_AttachmentList_RejectsItemAndUnattached
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:132
FunctionTestDispatch_AttachmentList_RequiresWorkspace
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:213
FunctionTestDispatch_AttachmentList_ResolvesItemRefToUUID
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:153
FunctionTestDispatch_AttachmentShow_404SurfacesAsToolError
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:302
FunctionTestDispatch_AttachmentShow_ExtractsHeadersAsJSON
--- attachment show ---
internal/mcp/dispatch_http_attachments_test.go:232
FunctionTestDispatch_AttachmentShow_ForwardsVariantQuery
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:280
FunctionTestDispatch_AttachmentShow_RequiresArgs
(t *testing.T)
internal/mcp/dispatch_http_attachments_test.go:323
FunctionTestDispatch_AttachmentUploadDownloadView_RejectedAsCLIOnly
--- noRemoteEquivalent: attachment upload/download/view ---
internal/mcp/dispatch_http_attachments_test.go:409
FunctionTestDispatch_BacklinksAndReport_RouteToRealEndpoints
TestDispatch_BacklinksAndReport_RouteToRealEndpoints smoke-drives the two new routeSpec entries (BUG-2304) through the real server — a mapper unit tes
internal/mcp/dispatch_http_history_test.go:134
FunctionTestDispatch_GithubCommandsRejectedAsCLIOnly
--- noRemoteEquivalent extension ---
internal/mcp/dispatch_http_routes_extras_test.go:871
FunctionTestDispatch_ItemBlock_MissingRefSurfacesAsToolError
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:235
FunctionTestDispatch_ItemBlock_PrefetchFailureBlocksPost
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:260
FunctionTestDispatch_ItemBlock_ResolvesAndPostsLink
--- Create-link dispatchers ---
internal/mcp/dispatch_http_links_test.go:90
FunctionTestDispatch_ItemBlockedBy_InvertsURLAndBody
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:129
FunctionTestDispatch_ItemBulkUpdate_DoesNotRevertAConcurrentFieldWrite
BUG-3156 (a): remote bulk-update is BUG-3049's revert on the transport that fix missed. It read the item, set status on the DECODED blob, and PATCHed
internal/mcp/dispatch_http_bulk_update_revert_test.go:25
FunctionTestDispatch_ItemBulkUpdate_PatchesOnlyTheKeysItSets
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1183
FunctionTestDispatch_ItemBulkUpdate_PerItemFailureDoesNotAbort
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1133
FunctionTestDispatch_ItemBulkUpdate_RefusesAnUndeclaredKeyPerRow
BUG-3156 (b): an item whose collection declares no `priority` is REFUSED by remote bulk-update, per row, and nothing is written, the answer WebMCP (PO
internal/mcp/dispatch_http_bulk_update_revert_test.go:108
FunctionTestDispatch_ItemBulkUpdate_RequiresStatusOrPriority
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1110
FunctionTestDispatch_ItemDecide_SendsServerAppend
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1305
FunctionTestDispatch_ItemDeps_RequiresWorkspaceAndRef
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:601
FunctionTestDispatch_ItemDeps_ReturnsRawLinksArray
--- Read-only link queries ---
internal/mcp/dispatch_http_links_test.go:418
FunctionTestDispatch_ItemImplementedBy_FiltersIncomingOnly
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:538
FunctionTestDispatch_ItemImplements_PostsLineageLink
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:168
FunctionTestDispatch_ItemNote_RequiresArgs
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1280
FunctionTestDispatch_ItemNote_SendsServerAppend
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:1245
FunctionTestDispatch_ItemRelated_ReturnsGroupedShape
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:472
FunctionTestDispatch_ItemSplitFrom_UsesCanonicalLinkType
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:203
FunctionTestDispatch_ItemUnblock_FindsAndDeletesMatchingLink
--- Delete-link dispatchers ---
internal/mcp/dispatch_http_links_test.go:289
FunctionTestDispatch_ItemUnblock_MissingLinkSurfacesError
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:380
FunctionTestDispatch_ItemUnblock_WrapsDelete204AsStatusRemoved
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:342
FunctionTestDispatch_ItemUpdate_RefusesAGithubPRFieldSetter
BUG-2696: a remote MCP `field: ["github_pr=..."]` setter used to store the PR as a string (no link rendered) and `github_pr=null` stored "null". It is
internal/mcp/dispatch_http_github_pr_test.go:16
FunctionTestDispatch_LibraryActivate_NotFoundReturnsError
(t *testing.T)
internal/mcp/dispatch_http_library_test.go:60
FunctionTestDispatch_LibraryActivate_PostsTheTitleToTheServer
--- library activate --- The dispatcher no longer resolves a destination or builds fields: since TASK-3462 the server's POST /library/activate does bo
internal/mcp/dispatch_http_library_test.go:22
FunctionTestDispatch_LibraryActivate_RequiresWorkspaceAndTitle
(t *testing.T)
internal/mcp/dispatch_http_library_test.go:83
FunctionTestDispatch_LibraryGet_RoutesToEntryEndpoint
TestDispatch_LibraryGet_RoutesToEntryEndpoint confirms the routeTable entry resolves: the dispatcher calls /library/entry?title=X and returns the resp
internal/mcp/dispatch_http_project_test.go:1038
FunctionTestDispatch_LibraryList_BothEndpoints
--- library list ---
internal/mcp/dispatch_http_project_test.go:879
FunctionTestDispatch_LibraryList_ForwardsCategoryAndSummary
TestDispatch_LibraryList_ForwardsCategoryAndSummary pins TASK-1563's extension to dispatchLibraryList: `category` flows to BOTH endpoints as a query p
internal/mcp/dispatch_http_project_test.go:971
FunctionTestDispatch_LibraryList_RejectsUnknownType
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:950
FunctionTestDispatch_LibraryList_TypeFilterSkipsOtherEndpoint
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:915
FunctionTestDispatch_NoRemoteEquivalentReturnsStableError
--- noRemoteEquivalent ---
internal/mcp/dispatch_http_links_test.go:917
FunctionTestDispatch_PrefetchesGoThroughApplyHook
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:780
FunctionTestDispatch_PreprocessAssignFailureSurfacesAsToolError
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:171
FunctionTestDispatch_PreprocessRoleFailureSurfacesAsToolError
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:744
FunctionTestDispatch_PreprocessSkippedForCommandsNotInAllowlist
(t *testing.T)
internal/mcp/dispatch_http_advanced_test.go:202
FunctionTestDispatch_PreprocessesAssignForItemCreate
--- Dispatch preprocess for assign ---
internal/mcp/dispatch_http_advanced_test.go:137
FunctionTestDispatch_PreprocessesRoleForItemCreate
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:703
FunctionTestDispatch_ProjectActivity_ForwardsLimitActorAndWrapsArray
--- project activity (TASK-2018) --- TestDispatch_ProjectActivity_ForwardsLimitActorAndWrapsArray pins the cloud MCP route for `project activity`: it
internal/mcp/dispatch_http_project_test.go:476
FunctionTestDispatch_ProjectActivity_RequiresWorkspace
TestDispatch_ProjectActivity_RequiresWorkspace mirrors the other project proxies: workspace is validated before the Handler is touched.
internal/mcp/dispatch_http_project_test.go:524
FunctionTestDispatch_ProjectChangelog_BadSinceProxiesGenericValidationError
TestDispatch_ProjectChangelog_BadSinceProxiesGenericValidationError pins the one observable behavior change TASK-1916 accepted: a malformed `since` no
internal/mcp/dispatch_http_project_test.go:280
FunctionTestDispatch_ProjectChangelog_ForwardsQueryParams
--- project changelog --- TestDispatch_ProjectChangelog_ForwardsQueryParams pins TASK-1916's consolidation for changelog: days/since/parent forwarded
internal/mcp/dispatch_http_project_test.go:214
FunctionTestDispatch_ProjectChangelog_RequiresWorkspace
TestDispatch_ProjectChangelog_RequiresWorkspace mirrors standup's: the thin proxy validates workspace before touching Handler.
internal/mcp/dispatch_http_project_test.go:255
FunctionTestDispatch_ProjectNext_EmptyArrayStaysEmpty
TestDispatch_ProjectNext_EmptyArrayStaysEmpty covers the "no candidates" path — the response must still produce a valid items envelope, not an error o
internal/mcp/dispatch_http_project_test.go:66
FunctionTestDispatch_ProjectNext_ProxiesToRESTEndpoint
--- project next / standup / changelog / ready / stale --- TestDispatch_ProjectNext_ProxiesToRESTEndpoint pins TASK-1916's consolidation: `project nex
internal/mcp/dispatch_http_project_test.go:27
FunctionTestDispatch_ProjectNext_RequiresWorkspace
TestDispatch_ProjectNext_RequiresWorkspace pins the pad_set_workspace hint even though the action is now a thin proxy: a plain routeTable entry's miss
internal/mcp/dispatch_http_project_test.go:96
FunctionTestDispatch_ProjectReady_ReturnsCountResultsShape
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:320
FunctionTestDispatch_ProjectReconcileRejectedAsCLIOnly
--- project reconcile (noRemoteEquivalent) ---
internal/mcp/dispatch_http_project_test.go:543
FunctionTestDispatch_ProjectStaleAndReady_RequireWorkspace
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:448
FunctionTestDispatch_ProjectStale_FiltersInterestingTypes
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:352
FunctionTestDispatch_ProjectStale_PreservesAllFields
(t *testing.T)
internal/mcp/dispatch_http_project_test.go:395
FunctionTestDispatch_ProjectStandup_ForwardsDaysAndPackagesResponse
TestDispatch_ProjectStandup_ForwardsDaysAndPackagesResponse pins TASK-1916's consolidation: the dispatcher no longer builds the standup payload itself
internal/mcp/dispatch_http_project_test.go:147
FunctionTestDispatch_ProjectStandup_OmitsDaysWhenNotGiven
TestDispatch_ProjectStandup_OmitsDaysWhenNotGiven confirms the dispatcher no longer applies its own days=1 default — that default is redundant now tha
internal/mcp/dispatch_http_project_test.go:183
FunctionTestDispatch_ProjectStandup_RequiresWorkspace
--- project standup --- TestDispatch_ProjectStandup_RequiresWorkspace moved from the pre-TASK-1916 dispatch_http_slice4_test.go — still valid unchange
internal/mcp/dispatch_http_project_test.go:121
FunctionTestDispatch_RolePreprocessSkippedForCommandsNotInAllowlist
(t *testing.T)
internal/mcp/dispatch_http_links_test.go:771
FunctionTestDispatcherFencePairingRejects
TestDispatcherFencePairingRejects is the negative control for the fence-count pin: a deleted second block or a truncated (unterminated) block must fai
cmd/pad/agent_dispatcher_commands_test.go:517
FunctionTestDispatcherInlineRejectsTypo
TestDispatcherInlineRejectsTypo is the permanent negative control for the inline-command pin: a typo'd inline command must fail both resolution and th
cmd/pad/agent_dispatcher_commands_test.go:933
FunctionTestDispatcherInventoryRejectsDeletionOrSubstitution
TestDispatcherInventoryRejectsDeletionOrSubstitution is the permanent negative control for the command-inventory pin: a deleted or substituted dispatc
cmd/pad/agent_dispatcher_commands_test.go:718
FunctionTestDispatcherLineRejectsPlaceholderInPath
TestDispatcherLineRejectsPlaceholderInPath is the negative control for the placeholder-path re-resolution logic: a placeholder interleaved inside the
cmd/pad/agent_dispatcher_commands_test.go:586
FunctionTestDispatcherLineRejectsPlaceholderOnGroup
TestDispatcherLineRejectsPlaceholderOnGroup is the negative control for the placeholder-on-group hole: a placeholder-shaped trailing token must NOT co
cmd/pad/agent_dispatcher_commands_test.go:654
FunctionTestDispatcherLineRejectsTypoSubcommand
TestDispatcherLineRejectsTypoSubcommand is the negative control for the unconsumed-trailing-token check: a typo'd subcommand that cobra's Find leaves
cmd/pad/agent_dispatcher_commands_test.go:613
FunctionTestDispatcherLineRejectsUnknownPrePathFlag
TestDispatcherLineRejectsUnknownPrePathFlag is the negative control for the pre-path flag check: an unknown flag before the command path must fail eve
cmd/pad/agent_dispatcher_commands_test.go:492
FunctionTestDispatcherSplitRejectsMalformed
TestDispatcherSplitRejectsMalformed is the negative control for the tokenizer strictness logic: an unterminated quote or a trailing backslash is a mal
cmd/pad/agent_dispatcher_commands_test.go:552
FunctionTestDispatcher_AllErrorsUseStructuredEnvelope
TestDispatcher_AllErrorsUseStructuredEnvelope walks every special- case dispatcher + each link command and asserts that calling them without the requi
internal/mcp/dispatch_http_envelope_uniform_test.go:36
FunctionTestDispatcher_CheckRedirectCap
TestDispatcher_CheckRedirectCap stops runaway redirect chains.
internal/webhooks/dispatcher_test.go:336
FunctionTestDispatcher_Dispatch
(t *testing.T)
internal/webhooks/dispatcher_test.go:88
FunctionTestDispatcher_DoesNotRetryPermanentFailure
TestDispatcher_DoesNotRetryPermanentFailure asserts a 4xx (permanent) response is attempted exactly once — no retries — and recorded as a failure.
internal/webhooks/dispatcher_test.go:437
← previousnext →19,301–19,400 of 28,840, ranked by callers