MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestPlanAttachmentCopy_RefToVariantPullsInParent
TestPlanAttachmentCopy_RefToVariantPullsInParent: content is user-controlled, so a reference can name a thumbnail directly. Cloning it alone would emi
internal/store/attachments_copy_plan_test.go:505
FunctionTestPlanAttachmentCopy_RefToVariantWithForeignParent
TestPlanAttachmentCopy_RefToVariantWithForeignParent: the same escalation from the other direction. The referenced thumbnail lives in workspace A but
internal/store/attachments_copy_plan_test.go:529
FunctionTestPlanAttachmentCopy_RefsInBoth
TestPlanAttachmentCopy_RefsInBoth covers the union, and pins that the two sources are merged rather than one shadowing the other.
internal/store/attachments_copy_plan_test.go:175
FunctionTestPlanAttachmentCopy_RefsInCodeFencesAreCloned
TestPlanAttachmentCopy_RefsInCodeFencesAreCloned pins a deliberate choice: enumeration matches the rewriter's reach (a plain ReplaceAll over "pad-atta
internal/store/attachments_copy_plan_test.go:282
FunctionTestPlanAttachmentCopy_RefsInContentOnly
--- reference enumeration ------------------------------------------------- TestPlanAttachmentCopy_RefsInContentOnly is the base case: one image refer
internal/store/attachments_copy_plan_test.go:131
FunctionTestPlanAttachmentCopy_RefsInFieldsOnly
TestPlanAttachmentCopy_RefsInFieldsOnly proves fields are enumerated — a reference living only in a field value (no markdown around it, nested inside
internal/store/attachments_copy_plan_test.go:156
FunctionTestPlanAttachmentCopy_RequiredInputs
TestPlanAttachmentCopy_RequiredInputs: the three identifiers that make the plan safe are mandatory. An empty SourceWorkspaceID in particular would tur
internal/store/attachments_copy_plan_test.go:886
FunctionTestPlanAttachmentCopy_RowShape
--- row shape -------------------------------------------------------------- TestPlanAttachmentCopy_RowShape pins every column the caller inserts: fre
internal/store/attachments_copy_plan_test.go:559
FunctionTestPlanAttachmentCopy_SameBackendNoTransfer
TestPlanAttachmentCopy_SameBackendNoTransfer: naming the backend explicitly, when it matches, must NOT trigger a pointless byte copy.
internal/store/attachments_copy_plan_test.go:704
FunctionTestPlanAttachmentCopy_SameRefTwice
TestPlanAttachmentCopy_SameRefTwice: the same attachment referenced in the body twice AND in a field gets ONE new UUID and is counted once. Two rows w
internal/store/attachments_copy_plan_test.go:193
FunctionTestPlanAttachmentCopy_SoftDeletedRefNotCloned
TestPlanAttachmentCopy_SoftDeletedRefNotCloned: a tombstoned attachment is out of scope exactly like a foreign one. Cloning it would resurrect bytes t
internal/store/attachments_copy_plan_test.go:379
FunctionTestPlanAttachmentCopy_SoftDeletedVariantNotFollowed
TestPlanAttachmentCopy_SoftDeletedVariantNotFollowed: the variant traversal carries the deleted_at half of the scope too.
internal/store/attachments_copy_plan_test.go:483
FunctionTestPlanAttachmentCopy_VariantsFollowParent
--- variants --------------------------------------------------------------- TestPlanAttachmentCopy_VariantsFollowParent: one referenced original with
internal/store/attachments_copy_plan_test.go:424
FunctionTestPlanCascade
(t *testing.T)
internal/schedule/links_test.go:255
FunctionTestPlanHardDeadlines
(t *testing.T)
internal/schedule/links_test.go:422
FunctionTestPlanLimitDetails_ImportCarriesRequested
(t *testing.T)
internal/server/import_plan_limit_message_test.go:85
FunctionTestPlanLimitDetails_NativeShellOmitsOnlyUpgradeURL
(t *testing.T)
internal/server/plan_limit_native_shell_test.go:252
FunctionTestPlanLimitDetails_UntouchedDoorsAreByteIdentical
(t *testing.T)
internal/server/import_plan_limit_message_test.go:47
FunctionTestPlanLimitError_ResponseShape
TestPlanLimitError_ResponseShape verifies that the 403 body emitted by writePlanLimitError follows the standard {"error":{"code":...,"message":...,"de
internal/server/handlers_workspace_cap_test.go:213
FunctionTestPlanLimitMessage_ImportNamesWhatWouldLand
TestPlanLimitMessage_ImportNamesWhatWouldLand pins that the refusal names how many would land versus the limit.
internal/server/import_plan_limit_message_test.go:69
FunctionTestPlanLimitMessage_UntouchedDoorsAreByteIdentical
BUG-3103, server half. The import refusal gets its own sentence and a `requested` detail, and every OTHER door's message and details stay exactly as t
internal/server/import_plan_limit_message_test.go:21
FunctionTestPlanLimitRace_ItemsImport_CompetingCreateInWindow_Refused
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:587
FunctionTestPlanLimitRace_ItemsImport_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:593
FunctionTestPlanLimitRace_Items_CompetingCreateInWindow_Refused
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:575
FunctionTestPlanLimitRace_Items_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:581
FunctionTestPlanLimitRace_Tokens_CompetingCreateInWindow_Refused
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:234
FunctionTestPlanLimitRace_Tokens_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:264
FunctionTestPlanLimitRace_Webhooks_CompetingCreateInWindow_Refused
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:599
FunctionTestPlanLimitRace_Webhooks_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:605
FunctionTestPlanLimitRace_WorkspacesBundle_CompetingCreateInWindow_Refused
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:399
FunctionTestPlanLimitRace_WorkspacesBundle_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:419
FunctionTestPlanLimitRace_WorkspacesImport_CompetingCreateInWindow_Refused
The JSON import door reaches the same pre-check (beginWorkspaceMint) and then ImportWorkspace, whose check runs last inside the import transaction.
internal/server/handlers_plan_limit_race_test.go:105
FunctionTestPlanLimitRace_WorkspacesImport_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:132
FunctionTestPlanLimitRace_Workspaces_CompetingCreateInWindow_Refused
--- U1: workspaces (create door) ---
internal/server/handlers_plan_limit_race_test.go:77
FunctionTestPlanLimitRace_Workspaces_NoCompetitor_Admitted
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:181
FunctionTestPlanLimit_NativeShell_BulkDoor
(t *testing.T)
internal/server/plan_limit_native_shell_test.go:112
FunctionTestPlanLimit_NativeShell_BundleImportDoor
The bundle import's own refusal (handlers_import_bundle.go, BUG-3103) is the one that names `requested`: a bundle carrying more items than the cap.
internal/server/plan_limit_native_shell_test.go:150
FunctionTestPlanLimit_NativeShell_SingleDoor
(t *testing.T)
internal/server/plan_limit_native_shell_test.go:82
FunctionTestPlanLimit_SelfHosted_NotEnforced
(t *testing.T)
internal/server/handlers_plan_limit_race_test.go:633
FunctionTestPlanLimit_WorkspaceTokenDoor_AdmittedUnderUserCap
Control for the leg above: under the cap the workspace door still mints.
internal/server/handlers_plan_limit_race_test.go:308
FunctionTestPlanLimit_WorkspaceTokenDoor_RefusedAtUserCap
The workspace token door had NO plan-limit check before BUG-2808, although the token it mints is user-owned and counts against the same cap. At the ca
internal/server/handlers_plan_limit_race_test.go:281
FunctionTestPlanMissingState
(t *testing.T)
internal/schedule/links_test.go:392
FunctionTestPlanRolesAndOccurrences
(t *testing.T)
internal/schedule/links_test.go:294
FunctionTestPlanRootDateRange
(t *testing.T)
internal/schedule/links_test.go:901
FunctionTestPlanViolations
(t *testing.T)
internal/schedule/links_test.go:356
FunctionTestPlaybookCommandsWarnOnAStaleBody
BUG-3033, the CLI half — and the half the server-side fix is useless without. An agent does not read the wire; it reads what the CLI prints. `pad pla
cmd/pad/cmd_playbook_stale_body_test.go:35
FunctionTestPlaybookLibraryArchive_BodiesCompiled
TestPlaybookLibraryArchive_BodiesCompiled keeps the archive helper referenced. If a future refactor removes the `var _ = archivedPlaybooks` reference
internal/collections/playbook_library_test.go:214
FunctionTestPlaybookLibrary_AllTriggersKnown
TestPlaybookLibrary_AllTriggersKnown asserts every library entry's Trigger field is one of the values SoftwarePlaybookTriggers accepts. Catches typos
internal/collections/playbook_library_test.go:74
FunctionTestPlaybookLibrary_CategoryAndSummary
TestPlaybookLibrary_CategoryAndSummary — both flags together.
internal/server/handlers_library_test.go:209
FunctionTestPlaybookLibrary_CategoryFilter
TestPlaybookLibrary_CategoryFilter — ?category=agent-workflows.
internal/server/handlers_library_test.go:116
FunctionTestPlaybookLibrary_InvokableEntriesPresent
TestPlaybookLibrary_InvokableEntriesPresent asserts that PlaybookLibrary() returns the three invokable workflow playbooks introduced by PLAN-1397 (shi
internal/collections/playbook_library_test.go:36
FunctionTestPlaybookLibrary_NoParams
TestPlaybookLibrary_NoParams — legacy shape: full Content, no Summary.
internal/server/handlers_library_test.go:89
FunctionTestPlaybookLibrary_ShipBodyShared
TestPlaybookLibrary_ShipBodyShared confirms the library `ship` entry and the startup template's ShipPlaybook() seed share the same body constant — the
internal/collections/playbook_library_test.go:92
FunctionTestPlaybookLibrary_SummaryDoesNotMutateGlobal
TestPlaybookLibrary_SummaryDoesNotMutateGlobal — guards against the summary-mode handler clobbering the package-level library data via shared slice ba
internal/server/handlers_library_test.go:171
FunctionTestPlaybookLibrary_SummaryMode
TestPlaybookLibrary_SummaryMode — Content stripped, Summary populated.
internal/server/handlers_library_test.go:136
FunctionTestPlaybookList
TestPlaybookList verifies the list endpoint returns the metadata shape agents expect (slug + invocation_slug + has_arguments). This is the same projec
internal/server/handlers_playbooks_test.go:14
FunctionTestPlaybookListEmptyShape
TestPlaybookListEmptyShape verifies a workspace with no playbooks returns an empty array rather than null, matching bootstrap's contract.
internal/server/handlers_playbooks_test.go:420
FunctionTestPlaybookListWarnsOnlyAboutStaleSummaries
TestPlaybookListWarnsOnlyAboutStaleSummaries covers the CLI half of the summary door (BUG-3033) through BOTH renderers. A `summary` is the body's fir
cmd/pad/cmd_playbook_stale_body_test.go:369
FunctionTestPlaybookMatchCommand_LeadingDashNeedsDoubleDash
TestPlaybookMatchCommand_LeadingDashNeedsDoubleDash pins a defect (BUG-3142's class, this command's own instance): text starting with "-" is parsed as
cmd/pad/cmd_playbook_match_test.go:130
FunctionTestPlaybookMatchCommand_NoneAndJSON
TestPlaybookMatchCommand_NoneAndJSON covers the "none" table rendering and the --format json passthrough in one pass.
cmd/pad/cmd_playbook_match_test.go:72
FunctionTestPlaybookMatchCommand_TableOutput
TestPlaybookMatchCommand_TableOutput drives `pad playbook match` end to end against a fake HTTP server, covering both the CLI client method (MatchPlay
cmd/pad/cmd_playbook_match_test.go:14
FunctionTestPlaybookMatch_DecisionRateLimitIs429WithRetryAfter
The burst is spent by calls that reach the provider; the next one is a 429 carrying Retry-After, and the provider is not called for it.
internal/server/handlers_playbook_match_ratelimit_test.go:53
FunctionTestPlaybookMatch_DraftAndDeprecatedExcluded_ExactPrompt
TestPlaybookMatch_DraftAndDeprecatedExcluded_ExactPrompt pins BOTH the filtering (draft/deprecated playbooks never reach the provider) and the exact p
internal/server/handlers_playbook_match_test.go:115
FunctionTestPlaybookMatch_InvisiblePlaybookExcludedFromOptions
TestPlaybookMatch_InvisiblePlaybookExcludedFromOptions — a guest holding an item-level grant on only ONE of two active playbooks must never see the ot
internal/server/handlers_playbook_match_test.go:433
FunctionTestPlaybookMatch_NoProviderIs404
TestPlaybookMatch_NoProviderIs404 — the fall-back-to-slug/trigger-routing case: no typed-decision provider configured at all.
internal/server/handlers_playbook_match_test.go:62
FunctionTestPlaybookMatch_NonSpendingRequestsConsumeNoToken
Requests that answer without a provider call consume nothing: an unconfigured provider's 404, a 400 for bad text, and zero active playbooks. After man
internal/server/handlers_playbook_match_ratelimit_test.go:93
FunctionTestPlaybookMatch_OneActivePlaybookIsLegal
TestPlaybookMatch_OneActivePlaybookIsLegal covers the edge case the reserved "none" option exists to fix for free: decision.Question.Validate refuses
internal/server/handlers_playbook_match_test.go:189
FunctionTestPlaybookMatch_OutOfSetChoiceIs502
TestPlaybookMatch_OutOfSetChoiceIs502 — the provider naming an option it was never offered must never pass through to the caller. Distinguished from a
internal/server/handlers_playbook_match_test.go:353
FunctionTestPlaybookMatch_ProviderErrorIs502
TestPlaybookMatch_ProviderErrorIs502 — a provider outage must be distinguishable from "no provider configured" (404): a caller reading a 502 knows the
internal/server/handlers_playbook_match_test.go:230
FunctionTestPlaybookMatch_ProviderTimeoutReason
TestPlaybookMatch_ProviderTimeoutReason pins the "timeout" half of writeDecisionProviderError's reason field — a context deadline (this endpoint's own
internal/server/handlers_playbook_match_test.go:271
FunctionTestPlaybookMatch_RequestTooLargeIs400
TestPlaybookMatch_RequestTooLargeIs400 pins that a request refused BEFORE it reached the provider — the question set alone busts the token budget, or
internal/server/handlers_playbook_match_test.go:309
FunctionTestPlaybookMatch_TextBounds
TestPlaybookMatch_TextBounds covers the empty/whitespace and length gates. The at-limit leg reaches the provider (no length refusal), the over-limit l
internal/server/handlers_playbook_match_test.go:391
FunctionTestPlaybookMatch_ZeroActivePlaybooksNoProviderCall
TestPlaybookMatch_ZeroActivePlaybooksNoProviderCall covers the "workspace has nothing to match against" case: a legitimate 200 answer, not an error, a
internal/server/handlers_playbook_match_test.go:86
FunctionTestPlaybookRunAcceptsEmptyBody
TestPlaybookRunAcceptsEmptyBody verifies that POSTing the run endpoint with no body (or only a {} body) still works for playbooks with no required arg
internal/server/handlers_playbooks_test.go:330
FunctionTestPlaybookRunBindsArgs
TestPlaybookRunBindsArgs verifies the run endpoint parses the `arguments` spec from fields, binds the caller's supplied values, and surfaces required-
internal/server/handlers_playbooks_test.go:122
FunctionTestPlaybookRunCarriesTheMarkerBothWays
TestPlaybookRunCarriesTheMarkerBothWays covers the door BUG-3033 ranks first. A playbook body is EXECUTED, not merely read: a stale one is an agent r
internal/server/handlers_content_state_doors_test.go:53
FunctionTestPlaybookRunDraftGate
TestPlaybookRunDraftGate verifies the server-side draft gate: a playbook whose status isn't "active" is refused with a structured playbook_not_active
internal/server/handlers_playbooks_test.go:208
FunctionTestPlaybookShowByInvocationSlug
TestPlaybookShowByInvocationSlug verifies the invocation_slug resolution path — `pad playbook show ship` should find the playbook regardless of its un
internal/server/handlers_playbooks_test.go:53
FunctionTestPlaybookShowByRef
TestPlaybookShowByRef verifies the fallback resolution — when the identifier isn't an invocation_slug, fall through to ResolveItem (UUID / ref / item
internal/server/handlers_playbooks_test.go:78
FunctionTestPlaybookShowIncludesStatus
TestPlaybookShowIncludesStatus verifies the get/show response hoists the playbook's status (which lives inside the fields JSON) to a top-level `status
internal/server/handlers_playbooks_test.go:261
FunctionTestPlaybookShowInheritsTheContentStateMarker
TestPlaybookShowInheritsTheContentStateMarker pins the SIBLING door. PlaybookShowResponse embeds *models.Item, so it gets the marker for free — which
internal/server/handlers_content_state_doors_test.go:105
FunctionTestPlaybookShowRejectsNonPlaybook
TestPlaybookShowRejectsNonPlaybook verifies the resolver refuses to surface non-playbook items even when their ref matches — keeps pad <slug> routing
internal/server/handlers_playbooks_test.go:102
FunctionTestPlaybookSummariesCarryTheMarkerBothWays
TestPlaybookSummariesCarryTheMarkerBothWays covers a door that this unit's own population table missed even though the precedent was already in the tr
internal/server/handlers_content_state_doors_test.go:398
FunctionTestPlaybookSummaryPrefersFirstParagraph
TestPlaybookSummaryPrefersFirstParagraph isolates the summary extraction from the bootstrap path so the rule (skip headings, take first non-empty para
internal/server/handlers_bootstrap_test.go:1001
FunctionTestPlaybooksCollectionHasInvocationFields
TestPlaybooksCollectionHasInvocationFields verifies that the playbooks schema seeds the invocation_slug + arguments fields introduced in PLAN-1377. If
internal/collections/templates_test.go:121
FunctionTestPlaybooksCollectionSurvivesRename
TestPlaybooksCollectionSurvivesRename locks BUG-2702's playbooks half, which is the worse of the two: a rename unregistered every invokable playbook,
internal/server/handlers_collection_traits_rename_test.go:95
FunctionTestPlaybooksCollectionUsesCallerOptions
TestPlaybooksCollectionUsesCallerOptions is the playbook counterpart to TestConventionsCollectionUsesCallerOptions.
internal/collections/templates_test.go:103
FunctionTestPointerKeyLabelsKeepTheirAddressWhenTheTypeNameIsLong
(t *testing.T)
internal/logging/redaction_followups_test.go:1650
FunctionTestPollAndSaveCLIAuth_ConsecutiveErrorsBound
TestPollAndSaveCLIAuth_ConsecutiveErrorsBound asserts a server that only ever errors (here, persistent HTTP 500s — client.get returns an error for non
cmd/pad/cmd_auth_poll_test.go:95
FunctionTestPollAndSaveCLIAuth_DeniedStopsAtOnce
TestPollAndSaveCLIAuth_DeniedStopsAtOnce: a sign-in denied in the browser (TASK-2253) ends the loop on the first poll that reports it, with its own er
cmd/pad/cmd_auth_poll_test.go:172
FunctionTestPollAndSaveCLIAuth_TimeoutFires
TestPollAndSaveCLIAuth_TimeoutFires asserts the new wall-clock timer ends the loop with a distinct, remedy-neutral error when the server never reports
cmd/pad/cmd_auth_poll_test.go:64
FunctionTestPollAndSaveCLIAuth_TransientErrorsRecover
TestPollAndSaveCLIAuth_TransientErrorsRecover asserts the consecutive-error counter resets on any successful poll rather than accumulating across the
cmd/pad/cmd_auth_poll_test.go:127
FunctionTestPoolReadInsideTransaction_RenameAndItemUpdateDoNotStall
BUG-2778, second half. A read issued against the connection POOL from inside an open transaction needs a SECOND connection while the first is still he
internal/store/pool_read_in_tx_test.go:28
FunctionTestPopulateHasChildren_ExcludesSoftDeletedCollections
has_children must agree with the children list. A child whose only child lives in a soft-deleted collection has none to list, so it must not claim to
internal/store/bug3428_deleted_collection_reads_test.go:195
FunctionTestPositiveTerminalValuesForDoneField_DropsNegatives
(t *testing.T)
internal/models/terminal_test.go:293
FunctionTestPositiveTerminalValuesForDoneField_KeepsDone
(t *testing.T)
internal/models/terminal_test.go:316
FunctionTestPositiveTerminalValuesHonourDeclaredAbandonedOptions
BUG-2347: a declared abandoned_options REPLACES the global names for that field rather than adding to them: the collection's own vocabulary is not sec
internal/models/terminal_test.go:349
FunctionTestPoster_DuplicateEntriesKeepEveryPath
(t *testing.T)
internal/appfetch/poster_test.go:135
FunctionTestPoster_EntryPinsAndPathsStayPaired
Each entry admits its own path at its own addresses; two entries for one origin are never merged into "any path at any pin".
internal/appfetch/poster_test.go:224
FunctionTestPoster_PathCannotEscapeItsPrefix
(t *testing.T)
internal/appfetch/poster_test.go:155
← previousnext →22,601–22,700 of 28,840, ranked by callers