MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestOwnerLiveness_PIDNamespace
TestOwnerLiveness_PIDNamespace is BUG-4090's verdict table. Across a namespace boundary — or a possible one — absence is not evidence: the pid probe a
internal/cli/session_owner_pidns_linux_test.go:232
FunctionTestOwnerLiveness_Pid
(t *testing.T)
internal/cli/session_owner_test.go:104
FunctionTestOwnerLiveness_Socket
(t *testing.T)
internal/cli/session_owner_test.go:138
FunctionTestOwnerLiveness_SocketProbeErrorIsUnknown
TestOwnerLiveness_SocketProbeErrorIsUnknown: a socket the caller cannot stat (EACCES, not ENOENT) is not evidence the owner is gone — the verdict is u
internal/cli/session_owner_test.go:224
FunctionTestOwnerLiveness_WindowsIsUnknown
TestOwnerLiveness_WindowsIsUnknown pins the tri-state's reason to exist: on Windows pidAlive cannot probe, and the verdict must be UNKNOWN — not dead,
internal/cli/session_owner_test.go:209
FunctionTestOwnerLockIsNotInheritedByChildren
The lock fd must not leak into children. If it did, a child outliving the test binary would hold the lock and keep the directory forever.
internal/testtmp/lock_unix_test.go:112
FunctionTestPGDueUnfiredFireVersusMoveFiresOncePerDoor
D3 r2-2, PG order: a fire tick racing a move for a due-but-unfired occurrence. Move first: the source fires nothing and the destination fires it once.
internal/store/schedule_copy_test.go:1138
FunctionTestPGFireVersusMove
PG: a fire and a move of the same item serialise on the item row, and neither order double-fires or loses the fire.
internal/store/schedule_copy_test.go:816
FunctionTestPGMethodWrapper
(t *testing.T)
scripts/ci-web-census/main_test.go:137
FunctionTestPGMoveParkedBehindAPatchReArmingToTheFutureDoesNotCatchUp
PG (r1-2): a timing edit that re-arms the managed reminder to a FUTURE occurrence commits while a move is parked on the schedule row. The move must re
internal/store/schedule_copy_test.go:975
FunctionTestPGMoveParkedBehindAReArmingPatchFollowsTheNewRecipientZone
PG (r1-2, the honest red): a FLOATING schedule whose recipient zone the move changes. The source assignee (Tokyo) is not a member of B, so carryAssign
internal/store/schedule_copy_test.go:908
FunctionTestPGNoTestsException
(t *testing.T)
scripts/ci-web-census/main_test.go:86
FunctionTestPGParkedScheduleCreateAndResolveAnswer409WhenAMoveArchivesTheItem
PG, fix1-e: a schedule CREATE and a RESOLVE that passed the door's pre-check, then parked behind a move that archived the item, answer 409 archived (t
internal/server/handlers_items_copy_schedule_test.go:428
FunctionTestPGParkedSchedulePatchAnswers409WhenAMoveArchivesTheItem
PG, D3-b: a schedule PATCH that passed the door's pre-check, then parked on the schedule row while a move archived the item and committed, answers 409
internal/server/handlers_items_copy_schedule_test.go:198
FunctionTestPGTransitiveImports
(t *testing.T)
scripts/ci-web-census/main_test.go:65
FunctionTestPGUpdateParkedOnTheScheduleWhileAMoveCommitsIsRefused
PG: the move holds the item and the schedule through its commit. A timing edit parked on pinScheduleTx's row locks must find the item archived when it
internal/store/schedule_copy_test.go:752
FunctionTestPIDFileOwner_HeldButUnreadableIsUnprovable
TestPIDFileOwner_HeldButUnreadableIsUnprovable covers the claim caught mid-write: the lock says held, the bytes do not parse, and there is no pid we c
internal/cli/pid_file_test.go:186
FunctionTestPIDFileOwner_LegacyBarePIDIsUnprovableAndKept
TestPIDFileOwner_LegacyBarePIDIsUnprovableAndKept is BUG-2970. A bare-pid file was written by a build that predates the lock (BUG-2969), so the free l
internal/cli/pid_file_test.go:231
FunctionTestPIDFileOwner_LegacyBarePIDNamingADeadProcessIsStale
TestPIDFileOwner_LegacyBarePIDNamingADeadProcessIsStale is the way out of BUG-2970's kept state: a legacy record whose pid has no process behind it ca
internal/cli/pid_file_test.go:306
FunctionTestPIDFileOwner_MissingFileIsStale
(t *testing.T)
internal/cli/pid_file_test.go:83
FunctionTestPIDFileOwner_RemovesTheStaleFileItself
TestPIDFileOwner_RemovesTheStaleFileItself pins where cleanup happens. It has to be inside the ownership check, while the lock is held: a caller that
internal/cli/pid_file_test.go:206
FunctionTestPIDFileOwner_ReportsTheRecordItVerified
TestPIDFileOwner_ReportsTheRecordItVerified guards a race, as a property rather than a timing test: the record the ownership check hands back must be
internal/cli/pid_file_test.go:161
FunctionTestPIDFileOwner_UnheldFileIsStale
TestPIDFileOwner_UnheldFileIsStale is the defect's core, expressed as a property: a record nobody holds is stale NO MATTER WHAT PID IT NAMES. The pid
internal/cli/pid_file_test.go:70
FunctionTestPIDNamespaceHelper
TestPIDNamespaceHelper is not a test on its own: it is the reader half of TestSessionRegistry_ReadFromForeignPIDNamespace, run by the test binary re-e
internal/cli/session_owner_pidns_linux_test.go:27
FunctionTestPLAN3535_AdminItemsOpenLeavesOutReference
PLAN-3535: the admin items_open count leaves out the open items of a REFERENCE collection, as every other open-work count does, and still counts them
internal/store/plan3535_admin_open_test.go:12
FunctionTestPLAN3535_AttentionSkipsReferenceCollections
PLAN-3535: the attention set is not asked about an item of a REFERENCE collection, whatever its status, and still is about the same open item in a col
internal/decision/plan3535_eligibility_test.go:12
FunctionTestPLAN3535_CollectionMappersCarryTracksWork
PLAN-3535: pad_collection's tracks_work reaches the API as the typed member over the remote transport, false included (the case a bool flag would drop
internal/mcp/plan3535_tracks_work_test.go:10
FunctionTestPLAN3535_CreateDefaultsAndExplicitValues
(t *testing.T)
internal/store/plan3535_tracks_work_test.go:56
FunctionTestPLAN3535_ImportOfAnOldBundleMarksSystemCollectionsReference
PLAN-3535: a bundle written before tracks_work existed lands the way an upgraded database does. Its system collections become reference (what the migr
internal/store/plan3535_import_test.go:14
FunctionTestPLAN3535_LifecycleHelperCallSitesAreClassified
(t *testing.T)
internal/models/plan3535_lifecycle_sites_guard_test.go:112
FunctionTestPLAN3535_MigrationMarksExistingSystemCollections
The migration itself, run on both dialects against a pre-migration state: a system collection whose settings lack the key gets false; a non-system one
internal/store/plan3535_tracks_work_test.go:138
FunctionTestPLAN3535_ParseTracksWorkFlag
PLAN-3535: --tracks-work is a string flag so false survives stdio MCP.
cmd/pad/plan3535_flag_test.go:6
FunctionTestPLAN3535_ReferenceItemsCountTowardNoOpenWork
PLAN-3535 PR 2, the behavioural guard: the items of a REFERENCE collection count toward no open-work or progress surface, and still count on the surfa
internal/server/plan3535_reference_exclusion_test.go:31
FunctionTestPLAN3535_TemplateSeedsMarkReferenceCollections
(t *testing.T)
internal/store/plan3535_tracks_work_test.go:31
FunctionTestPLAN3535_TracksWorkOverHTTP
PLAN-3535: tracks_work through the HTTP door: the typed member, the settings key, and a non-boolean refused on create and update.
internal/server/plan3535_tracks_work_test.go:12
FunctionTestPLAN3535_UpdateKeepsAndSetsTheFlag
(t *testing.T)
internal/store/plan3535_tracks_work_test.go:91
FunctionTestPLAN3555_ApplierPathContentConflictIsAContentConflict
PLAN-3555: on the APPLIER path the row write carries no content (it travels to the tab), so the store cannot know the request was a body write; the ro
internal/server/plan3555_unguarded_write_test.go:155
FunctionTestPLAN3555_CLIAndMCPAgreeOnContentConflictHint
(t *testing.T)
internal/mcp/plan3555_replace_test.go:146
FunctionTestPLAN3555_ContentConflictSaysDoNotResend
PLAN-3555: a seq conflict on a BODY write says not to resend the body and carries content_write, changed_at and changed_by_kind; the same conflict on
internal/server/plan3555_unguarded_write_test.go:98
FunctionTestPLAN3555_ItemUpdateReplace
PLAN-3555 phase 1 at the CLI: --replace reaches the server, is refused before any request when it contradicts a token or has no body, and an unguarded
cmd/pad/plan3555_replace_test.go:13
FunctionTestPLAN3555_MCPContentConflictHint
(t *testing.T)
internal/mcp/plan3555_replace_test.go:85
FunctionTestPLAN3555_MCPReplaceAndWarning
(t *testing.T)
internal/mcp/plan3555_replace_test.go:46
FunctionTestPLAN3555_StdioContentConflict
Stdio half, through the REAL CLI writer: the marker carries the hint and the new details, which the CLI re-marshals from its own struct.
internal/mcp/plan3555_replace_test.go:119
FunctionTestPLAN3555_UnguardedWritesCountedByDoorAndKind
PLAN-3555 phase 1: every unguarded item update is counted by door and kind, a guarded or deliberate one is not, an append-only one is not, and only an
internal/server/plan3555_unguarded_write_test.go:17
FunctionTestPLAN3578_CLIAndMCPAgreeOnPatchHints
(t *testing.T)
internal/mcp/plan3578_patch_test.go:87
FunctionTestPLAN3578_EverySeqMovingSiteIsClassified
(t *testing.T)
internal/store/plan3578_seq_site_guard_test.go:40
FunctionTestPLAN3578_ItemPatchScopedAndCascaded
PLAN-3578 step 3: a stored patch is read only within its workspace, and goes with its item.
internal/store/plan3578_item_patches_test.go:11
FunctionTestPLAN3578_ItemSeqChainWalk
(t *testing.T)
internal/store/plan3578_seq_chain_test.go:42
FunctionTestPLAN3578_MCPPatchLinesAndRefusals
PLAN-3578 step 1 at the MCP doors.
internal/mcp/plan3578_patch_test.go:16
FunctionTestPLAN3578_MCPUndo
PLAN-3578 step 3 at the MCP doors: undo round-trips over HTTP, and a patch_not_found carries its own code and hint on both transports.
internal/mcp/plan3578_patch_test.go:121
FunctionTestPLAN3578_MergeKeepsTheChainOnlyWhenContiguous
PLAN-3578: a debounced merge keeps the chain only when its runs are contiguous; otherwise the merged entry is marked broken.
internal/store/plan3578_seq_chain_test.go:17
FunctionTestPLAN3578_NoOpPatchIsRefused
Retro CONVE-735 findings on #2055 and #2058. A no-op edit, or edits that cancel out, used to report success and advance seq with no version behind it.
internal/server/plan3578_retro_fixes_test.go:13
FunctionTestPLAN3578_NoOpPatchThroughAnOpenEditorIsRefused
The same no-op through an open editor: the tab applies it as nothing, and the server must still refuse rather than write a version for it.
internal/server/plan3578_retro_fixes_test.go:60
FunctionTestPLAN3578_NonCapableTabIsNeverSentAPatch
The property the capability filter carries, and its failure mode: an older tab reads an edits-only applier_request as markdown "" and would replace th
internal/server/plan3578_patch_room_test.go:146
FunctionTestPLAN3578_PatchAppliesAndReturnsTheDiff
(t *testing.T)
internal/server/plan3578_patch_test.go:58
FunctionTestPLAN3578_PatchEditsFromFlags
PLAN-3578: the CLI builds a patch's edits from --old/--new pairs or --edits and refuses a bad combination before any request.
cmd/pad/plan3578_patch_flags_test.go:10
FunctionTestPLAN3578_PatchLeavesNoEmptyTimelineCard
The seq-chain and patch keys are bookkeeping: an agent's body-only patch renders its version card, never an empty activity card.
internal/server/plan3578_patch_test.go:210
FunctionTestPLAN3578_PatchRefusals
(t *testing.T)
internal/server/plan3578_patch_test.go:84
FunctionTestPLAN3578_PatchRefusedOverUnflushedEdits
(t *testing.T)
internal/server/plan3578_patch_test.go:191
FunctionTestPLAN3578_PatchRefusedWhileAnEditorIsOpen
(t *testing.T)
internal/server/plan3578_patch_test.go:164
FunctionTestPLAN3578_PatchThroughAnOpenEditor
(t *testing.T)
internal/server/plan3578_patch_room_test.go:95
FunctionTestPLAN3578_PatchUndoFlagConflicts
PLAN-3578 step 3: --undo carries its own anchors, so it refuses edit flags and a token before any request.
cmd/pad/plan3555_replace_test.go:86
FunctionTestPLAN3578_RebaseReportsTheInterveningWrites
A moved seq is applied over when the anchors still match, and reported: the intervening write, stamped in the chain, and complete.
internal/server/plan3578_patch_test.go:118
FunctionTestPLAN3578_StdioPatchRefusal
Stdio: the CLI's marker carries the code, details and hint.
internal/mcp/plan3578_patch_test.go:67
FunctionTestPLAN3578_TabRefusalIsTypedAndCounted
(t *testing.T)
internal/server/plan3578_patch_room_test.go:120
FunctionTestPLAN3578_UndoNamesOnlyThisItemsPatch
(t *testing.T)
internal/server/plan3578_undo_test.go:62
FunctionTestPLAN3578_UndoOfAnEmptiedLine
Deleting a line's only content left the undo with no anchor; it is undoable now. A patch that empties the WHOLE body still cannot be undone by anchor,
internal/server/plan3578_retro_fixes_test.go:34
FunctionTestPLAN3578_UndoRefusesOverALaterChange
(t *testing.T)
internal/server/plan3578_undo_test.go:41
FunctionTestPLAN3578_UndoRoundTrip
PLAN-3578 step 3: --undo inverts a stored patch, anchored on context, as an ordinary patch of its own.
internal/server/plan3578_undo_test.go:11
FunctionTestPLAN3578_UnstampedWriteBreaksTheChain
A write that recorded no stamped entry breaks the chain: complete is false.
internal/server/plan3578_patch_test.go:146
FunctionTestPLAN3598_ItemContextArchivedFollowsGet
An archived item is served read-only, exactly as the single-item GET serves it: to a caller who can read it, and as the same 404 as a missing item to
internal/server/plan3598_item_context_test.go:477
FunctionTestPLAN3598_ItemContextBigConventionDoesNotBlockSmallOnes
PLAN-3598: a 32 KB convention ahead of small ones in the order is skipped, and the small ones after it still ship.
internal/server/plan3598_item_context_test.go:260
FunctionTestPLAN3598_ItemContextBlockerAgreesWithDashboard
The brief's open_blocker agrees with the dashboard's blocked attention (#2094): the brief reuses firstActiveBlocker's predicate, so the two must not d
internal/server/plan3598_item_context_test.go:511
FunctionTestPLAN3598_ItemContextBrief
(t *testing.T)
internal/server/plan3598_item_context_test.go:95
FunctionTestPLAN3598_ItemContextBudgetSkipsAndKeepsFilling
A tiny budget keeps the item and omits the rest, each named. A part that does not fit is skipped WHOLE and filling continues, so a smaller later part
internal/server/plan3598_item_context_test.go:195
FunctionTestPLAN3598_ItemContextConventionsInRelevanceOrder
PLAN-3598: relevance order. The intent's triggers come first, then role-scoped rules, then the global always ones; within a tier, must before should.
internal/server/plan3598_item_context_test.go:299
FunctionTestPLAN3598_ItemContextGuestSeesOnlyGrantedItems
A guest granted only the task sees nothing about the ancestor, blocker or linked item: not as parts, not in omitted, not in conflicts.
internal/server/plan3598_item_context_test.go:414
FunctionTestPLAN3598_ItemContextImplementIncludesPRRules
PLAN-3598: implement includes opening the PR, so an on-pr-create rule (CONVE-735, the mandatory review) is in the brief.
internal/server/plan3598_item_context_test.go:382
FunctionTestPLAN3598_ItemContextRefusals
(t *testing.T)
internal/server/plan3598_item_context_test.go:172
FunctionTestPSRSSLive
TestPSRSSLive runs the real `ps` fallback against this process. It skips when there is no `ps` to run (the Nix build sandbox has none), which is accep
internal/materialize/memcap_ps_test.go:29
FunctionTestPackageHTTPResponse_404Workspace_FiltersAvailableWorkspaces
(t *testing.T)
internal/mcp/dispatch_http_envelope_test.go:377
FunctionTestPackageHTTPResponse_StructuredJSONOnSuccess
(t *testing.T)
internal/mcp/dispatch_http_test.go:804
FunctionTestPackageHTTPResponse_TextFallbackOnNonJSON
(t *testing.T)
internal/mcp/dispatch_http_test.go:821
FunctionTestPackageJSONResult_ArrayItemsNormalized
TestPackageJSONResult_ArrayItemsNormalized confirms list-style responses are normalized too, in combination with the BUG-985 {items: [...]} array wrap
internal/mcp/bug991_test.go:202
FunctionTestPackageJSONResult_MalformedFieldsStaysString
TestPackageJSONResult_MalformedFieldsStaysString covers the safety net at the end-to-end level: if `fields` carries an invalid JSON string, leave it a
internal/mcp/bug991_test.go:222
FunctionTestPackageJSONResult_NormalizesItemFields
TestPackageJSONResult_NormalizesItemFields end-to-end test: a CLI stdout body containing a single item with stringified fields/tags produces structure
internal/mcp/bug991_test.go:173
FunctionTestPackageJSONResult_StripsAcrossArrayItems
TestPackageJSONResult_StripsAcrossArrayItems confirms the dedup happens for every entry in a list-style response, not just the top-level item.
internal/mcp/bug992_test.go:106
FunctionTestPackageJSONResult_StripsDuplicatedNotesAndLog
TestPackageJSONResult_StripsDuplicatedNotesAndLog is the end-to-end regression: a CLI body that carries top-level implementation_notes / decision_log
internal/mcp/bug992_test.go:67
FunctionTestPackageJSONResult_WrapsTopLevelArray
TestPackageJSONResult_WrapsTopLevelArray is the regression test for BUG-985 bug 3. Top-level arrays must be wrapped in `{items: [...]}` so MCP host va
internal/mcp/bug985_test.go:111
FunctionTestPadBoard_AllowListRefusal
(t *testing.T)
internal/mcp/board_test.go:285
FunctionTestPadBoard_ChangesExactCollection
Two collections whose slugs differ only by a trailing s never mix: changes matches the collection show returned exactly.
internal/mcp/board_test.go:411
FunctionTestPadBoard_ChangesUpsertRemove
(t *testing.T)
internal/mcp/board_test.go:170
FunctionTestPadBoard_HiddenVsMissingIdentical
(t *testing.T)
internal/mcp/board_test.go:274
FunctionTestPadBoard_ParentFilterAndSlugForms
A parent-filtered board stays filtered across changes when changes is passed the collection show returned, and the assignee is projected.
internal/mcp/board_test.go:368
FunctionTestPadBoard_ReadOnly
(t *testing.T)
internal/mcp/board_test.go:298
FunctionTestPadBoard_RestrictedCursorNoLeak
(t *testing.T)
internal/mcp/board_test.go:249
FunctionTestPadBoard_ShowCaps
(t *testing.T)
internal/mcp/board_test.go:150
FunctionTestPadBoard_ShowColumns
(t *testing.T)
internal/mcp/board_test.go:91
FunctionTestPadBoard_ShowDefaultTerminals
A status field with no terminal_options takes the default terminal list, matched case-insensitively, like the rest of Pad.
internal/mcp/board_test.go:464
FunctionTestPadCollectionTakesNoTraitsParam
BUG-2896 added warnings.collapsed_duplicate_keys to collection create and update responses. It is set only when the request's `traits` repeats a JSON
internal/mcp/bug2896_collection_traits_surface_test.go:14
← previousnext →22,201–22,300 of 28,840, ranked by callers