MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestBUG2805_AccidentalCompatibilitiesSurvive
TestBUG2805_AccidentalCompatibilitiesSurvive pins the two rescues the repro identified as non-reproducing directions (TASK-2826 2c and 2d). Both are
internal/links/rewrite_brackets_diff_test.go:893
FunctionTestBUG2840HalfA_RefusedPatchLeavesTheDocumentUntouched
TestBUG2840HalfA_RefusedPatchLeavesTheDocumentUntouched asserts the property the reorder buys: a refused PATCH on the applier path changes NOTHING — n
internal/server/handlers_collab_applier_refusal_test.go:133
FunctionTestBUG2963CFBOfficeTrio
TestBUG2963CFBOfficeTrio covers the legacy Office family: the bytes say "CFB container" and nothing finer, so the extension chooses which of the three
internal/attachments/mime_magic_test.go:865
FunctionTestBUG2963F4Brands
TestBUG2963F4Brands covers the audio/video half of the ISO-BMFF pre-check: "qt " -> video/quicktime, "M4A " -> audio/mp4, both from the MAJOR brand.
internal/attachments/mime_isobmff_test.go:325
FunctionTestBUG2963F4M4AExtensionTrust
TestBUG2963F4M4AExtensionTrust covers the third F4 leg: an isom-branded MP4 named .m4a is stored as audio/mp4. Audio-only and video MP4 are one contai
internal/attachments/mime_test.go:538
FunctionTestBUG2963F5TextFamily
TestBUG2963F5TextFamily is what TestTextFamilyStillStoresAsPlain became. That test recorded a boundary — .js, .yaml and .md all stored as text/plain,
internal/attachments/mime_magic_test.go:424
FunctionTestBUG2963F6RemovedSpellings
TestBUG2963F6RemovedSpellings covers the deletions and, more importantly, the thing deleting them nearly broke. extMIMEMap's values are looked up in `
internal/attachments/mime_magic_test.go:388
FunctionTestBUG2963FormatsReachTheAllowlist
TestBUG2963FormatsReachTheAllowlist is the headline property: for each format BUG-2963 measured as unreachable, a real file of it now sniffs as the sp
internal/attachments/mime_magic_test.go:26
FunctionTestBUG2963RTF
TestBUG2963RTF covers the one signature in this change that needs NO extension. RTF is printable ASCII, so the stdlib answers text/plain — an opinion
internal/attachments/mime_magic_test.go:949
FunctionTestBUG2995_ApplierPatchDoesNotEchoPreviousContent
BUG-2995: a SUCCESSFUL content PATCH through the designated applier answers 200 carrying the item's PREVIOUS content. This is the control: a test tha
internal/server/handlers_items_content_echo_test.go:23
FunctionTestBUG2995_NoPendingMarkerWhenTheContentIsInTheRow
TestBUG2995_NoPendingMarkerWhenTheContentIsInTheRow is the control leg. The marker means something only if it is absent when the content DID land in t
internal/server/handlers_items_content_echo_test.go:154
FunctionTestBUG3035_StaleSeqRefusesOnTheApplierPathBeforeApplying
BUG-3035: `pad item edit` now round-trips the `seq` that seeded the editor as `expected_seq`, and the whole design rests on one server claim — that th
internal/server/bug3035_applier_seq_test.go:21
FunctionTestBUG3069_CollabWorkspaceRefusalCarriesTheMarker
(t *testing.T)
internal/server/bug3069_workspace_not_found_test.go:142
FunctionTestBUG3069_GuestHiddenItemIsNotMarked
(t *testing.T)
internal/server/bug3069_workspace_not_found_test.go:163
FunctionTestBUG3069_SSEWorkspaceRefusalIsMarked
(t *testing.T)
internal/server/bug3069_workspace_not_found_test.go:122
FunctionTestBUG3069_WorkspaceRefusalIsMarkedThroughTheRouter
(t *testing.T)
internal/server/bug3069_workspace_not_found_test.go:70
FunctionTestBUG3079_CreateDoorDropsAnInvalidDefault
(t *testing.T)
internal/server/bug3079_default_drop_test.go:35
FunctionTestBUG3079_CreateDoorStillAppliesAGoodDefault
(t *testing.T)
internal/server/bug3079_default_drop_test.go:92
FunctionTestBUG3079_GoodDefaultStillApplies
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:61
FunctionTestBUG3079_PresentButNilTakesTheDefaultPath
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:130
FunctionTestBUG3079_RelationDefaultTakesTheSameShapeCheck
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:145
FunctionTestBUG3079_RequiredFieldWithABadDefault
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:83
FunctionTestBUG3079_RequiredFieldWithABadDefaultRefusesAndSaysWhy
(t *testing.T)
internal/server/bug3079_default_drop_test.go:129
FunctionTestBUG3079_RequiredWithNoDefaultIsUnchanged
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:112
FunctionTestBUG3079_SuppliedAndInjectedAgree
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:26
FunctionTestBUG3079_WrapperSurfacesAgree
(t *testing.T)
internal/items/bug3079_default_typecheck_test.go:191
FunctionTestBUG3080_AFailedWriteDoesNotMoveTheMark
(t *testing.T)
internal/server/bug3080_client_write_test.go:134
FunctionTestBUG3080_AStampOnANonContentWriteNeitherOrdersNorMarks
(t *testing.T)
internal/server/bug3080_client_write_test.go:267
FunctionTestBUG3080_InOrderWritesBothApply
(t *testing.T)
internal/server/bug3080_client_write_test.go:73
FunctionTestBUG3080_MalformedStampIsA400
(t *testing.T)
internal/server/bug3080_client_write_test.go:154
FunctionTestBUG3080_MarksAgeOutAndStayBounded
(t *testing.T)
internal/server/bug3080_client_write_test.go:222
FunctionTestBUG3080_NewerWriteWaitsForAnOlderOneMidWrite
The check, the write and the mark are ONE step per (item, tab). The older write is held after passing its check; the newer one must WAIT for it rather
internal/server/bug3080_client_write_test.go:176
FunctionTestBUG3080_OlderWriteLandingLastIsRefusedAndNotWritten
(t *testing.T)
internal/server/bug3080_client_write_test.go:38
FunctionTestBUG3080_TabsAreIndependent
(t *testing.T)
internal/server/bug3080_client_write_test.go:92
FunctionTestBUG3080_UnstampedWriteIsUnaffectedByAnyMark
(t *testing.T)
internal/server/bug3080_client_write_test.go:111
FunctionTestBUG3163_ArtifactImportCannotCarryAReservedKey
Artifact import shares createItemChecked but not handleCreateItem's gate. It needs none because artifact.Decode builds Fields from a fixed key list, s
internal/server/bug3163_reserved_write_doors_test.go:214
FunctionTestBUG3163_CreateRefusesEveryReservedKey
Every reserved key, in the shape a system writer would store AND in the string shape a `--field` / MCP `field` setter produces, is refused by create's
internal/server/bug3163_reserved_write_doors_test.go:73
FunctionTestBUG3163_FullFieldsCarryIsAllowed
A full `fields` blob may CARRY stored reserved metadata unchanged. The carry is written with its keys REORDERED relative to the seed, which is what ma
internal/server/bug3163_reserved_write_doors_test.go:268
FunctionTestBUG3163_FullFieldsChangeIsRefused
A differing value, an omitted stored key, and a key the item does not have are all refused, and the stored row is unchanged afterwards.
internal/server/bug3163_reserved_write_doors_test.go:297
FunctionTestBUG3163_FullFieldsCheckUsesTheLockedRow
The comparison runs against the row as re-read UNDER THE WRITE LOCK. A note appended after the handler's own read, but before the update transaction,
internal/server/bug3163_reserved_write_doors_test.go:356
FunctionTestBUG3163_NonObjectStoredBlobIsRepairable
A stored blob that is not a JSON object has no readable reserved metadata (every reader parses it as an object first), so the carry check treats it as
internal/server/bug3163_reserved_write_doors_test.go:414
FunctionTestBUG3163_RefusalTextsMatchTheStdioTable
The stdio MCP transport classifies a refusal by matching the CLI's stderr text, so these first sentences are part of the contract: a rewording that dr
internal/server/bug3163_reserved_write_doors_test.go:398
FunctionTestBUG3163_ReservedKeyListIsTheOneTheGateUses
(t *testing.T)
internal/server/bug3163_reserved_write_doors_test.go:26
FunctionTestBUG3163_TypedConventionIsStored
The typed member is how convention metadata gets in: validated, normalized, and stored under the reserved key. The counterfactual leg is what makes th
internal/server/bug3163_reserved_write_doors_test.go:126
FunctionTestBUG3163_TypedConventionRefusals
(t *testing.T)
internal/server/bug3163_reserved_write_doors_test.go:180
FunctionTestBUG3167_CommaParentFilterIsStillRefused
A parent filter names one item. Before the lowering, `?parent=A,B` reached the resolver as the whole string and was refused; it still is, rather than
internal/server/bug3167_query_or_contract_test.go:76
FunctionTestBUG3167_FieldsAnyOfSkipsAnInvalidKey
An invalid field key is skipped in FieldsAnyOf exactly as it is in Fields: the key is interpolated into a JSON path, so isValidFieldKey is what keeps
internal/store/bug3167_exact_field_filters_test.go:75
FunctionTestBUG3167_FieldsMatchExactlyAndAnyOfIsExplicit
BUG-3167: a Fields value is matched EXACTLY, comma or not. It used to be split into an OR for every caller, so a stored "x,y" could never be matched a
internal/store/bug3167_exact_field_filters_test.go:16
FunctionTestBUG3167_ParseLowersOnlyCommaValues
The parse is where a comma becomes an OR, so its edges are pinned directly (BUG-3167): pieces are trimmed, an empty piece survives as the empty string
internal/server/bug3167_query_or_contract_test.go:94
FunctionTestBUG3167_QueryCommaIsStillAnOr
BUG-3167: the store now matches field filters EXACTLY, and the query-string parse is the one place a comma becomes an OR. These legs pin both halves a
internal/server/bug3167_query_or_contract_test.go:19
FunctionTestBUG3167_UniqueCheckTreatsACommaValueAsOneValue
checkUniqueFields asks the store whether a value is taken. With the split, a comma value "a,b" was looked up as IN ('a','b'): an item holding "a" made
internal/server/bug3167_query_or_contract_test.go:50
FunctionTestBUG3190_filenameFromContentDisposition_PrefersFilenameStar
BUG-3190: the server sends a non-ASCII (or otherwise unquotable) name as an ASCII fallback in filename plus the exact name in filename*. This parser m
internal/cli/bug3190_filename_star_test.go:10
FunctionTestBUG3190_parseAttachmentFilename_PrefersFilenameStar
BUG-3190: the server sends a non-ASCII (or otherwise unquotable) name as an ASCII fallback in filename plus the exact name in filename*. This parser m
internal/mcp/bug3190_filename_star_test.go:10
FunctionTestBUG3190_parseAttachmentFilename_PrefersFilenameStar
BUG-3190: the server sends a non-ASCII (or otherwise unquotable) name as an ASCII fallback in filename plus the exact name in filename*. This parser m
cmd/pad/bug3190_filename_star_test.go:10
FunctionTestBUG3244RebuildThenSeedGrantKeepsTheItemSuperseded
BUG-3244 x BUG-3240: after a bumped rebuild sets the unflushed rows aside, the op-log is empty, so the room's elector grants the next writable open `s
internal/server/bug3244_rebuild_seed_grant_test.go:23
FunctionTestBUG3244SchemaRebuildKeepsUnflushedEditsMarked
(t *testing.T)
internal/server/bug3244_schema_rebuild_set_aside_test.go:114
FunctionTestBUG3253_AppendSyncFramesIsAllOrNothing
(t *testing.T)
internal/store/bug3253_sync_frames_test.go:59
FunctionTestBUG3253_AppendSyncFramesMatchesOneByOne
BUG-3253: AppendSyncFrames persists a run of relay frames in one transaction. Each frame must get exactly what AppendSyncFrame alone gives it, in orde
internal/store/bug3253_sync_frames_test.go:11
FunctionTestBUG3253_MixedRunPublishesInOrderAndRelaysAwarenessWhenRefused
A run carries the awareness frame every keystroke sends behind its sync update (the first version stopped at it, so runs stayed one frame long, measur
internal/collab/bug3253_batch_test.go:97
FunctionTestBUG3253_WaitingFramesPersistAsOneBatchInOrder
BUG-3253: frames of a burst that are already waiting persist in one transaction, and every frame is still stored and relayed in order, each with its o
internal/collab/bug3253_batch_test.go:15
FunctionTestBUG3254_GetWorkspaceMarksAGuest
(t *testing.T)
internal/server/bug3254_guest_workspace_get_test.go:48
FunctionTestBUG3257_RoleCountsDescribeOnlyVisibleItems
BUG-3257: each lane of GET /roles/board embeds its role, and the store fills that role's item_count from every item in the workspace. The lane's items
internal/server/bug3257_role_board_counts_test.go:18
FunctionTestBUG3314_AdminAuditLogKeepsIPAndUserAgent
The audit surfaces keep them: that is what they are for, and the fix must not have been made by dropping the columns everywhere.
internal/server/bug3314_activity_ip_test.go:132
FunctionTestBUG3314_GuestTimelineCarriesNoIPOrUserAgent
(t *testing.T)
internal/server/bug3314_activity_ip_test.go:120
FunctionTestBUG3314_MemberDoorsCarryNoIPOrUserAgent
(t *testing.T)
internal/server/bug3314_activity_ip_test.go:104
FunctionTestBUG3326_RemoteSetWorkspaceBootstrapIsScopedToCaller
The embed is read as the TOKEN's user: a workspace the caller is not a member of embeds nothing, while its owner gets it (the control showing the abse
cmd/pad/bug3326_remote_set_workspace_test.go:98
FunctionTestBUG3326_RemoteSetWorkspaceEmbedsBootstrap
(t *testing.T)
cmd/pad/bug3326_remote_set_workspace_test.go:79
FunctionTestBUG3327_ApplierPathBodyEditLeavesAVersion
BUG-3327: a body edit that takes the designated-applier path (a tab has the item open) wrote NO version row: the row write runs with Content nil, and
internal/server/bug3327_applier_version_test.go:17
FunctionTestBUG3327_DedupeSkipsOnlyFlushes
The flush dedupe is limited to flushes: a user's A->B (versioned) then B->A (throttled, same writer) leaves the newest row holding A, and a DIFFERENT
internal/server/bug3327_applier_version_test.go:136
FunctionTestBUG3327_FlushAfterThrottledRevertStillVersions
An ORDINARY flush (no applier edit before it) after a throttled revert to a versioned body must still version. Only an applier-path row, which postdat
internal/server/bug3327_applier_version_test.go:174
FunctionTestBUG3327_FlushDedupeNeedsTheFlushTimestamp
BUG-3327: a collab-snapshot flush skips the version of a body the newest version already holds ONLY when that newest row is recognised as the applier
internal/store/bug3327_flush_dedupe_test.go:14
FunctionTestBUG3331_CollectionCountsScopedToGrants
BUG-3331 sibling: /collections reported whole-collection item counts to a caller who can see only a granted item inside the collection.
internal/server/bug3331_search_scope_test.go:301
FunctionTestBUG3331_RemoteMCPSearchScopesToVisibleItems
BUG-3331 over remote /mcp: pad_search shares /api/v1/search's handler, so a signed-in non-member naming another workspace's slug must find nothing the
cmd/pad/bug3331_mcp_search_scope_test.go:15
FunctionTestBUG3331_RestrictedNumberLookupTotalAndMixedFanOut
Test gaps: the bare-number lookup and the filtered total for a restricted caller, and a fan-out over workspaces with DIFFERENT access, where one works
internal/server/bug3331_search_scope_test.go:348
FunctionTestBUG3331_SearchScopesToVisibleItems
(t *testing.T)
internal/server/bug3331_search_scope_test.go:223
FunctionTestBUG3331_SearchWithoutPermissionFilterMatchesNothing
BUG-3331: a search with no permission filter is not an unfiltered search. Unless Unrestricted says so, empty CollectionIDs and ItemIDs (nil or not) ma
internal/store/bug3331_search_failclosed_test.go:14
FunctionTestBUG3331_UnscopedSearchStaysInsideAccess
With no workspace named, search fans out over the caller's own workspaces. A user-less workspace token must stay inside its own workspace, and a non-m
internal/server/bug3331_search_scope_test.go:280
FunctionTestBUG3333_DeletedCollectionNotVisibleThroughAGrant
BUG-3333: an item grant must never become access to its whole collection. VisibleCollectionIDsQ promotes the collection of a granted item into the mem
internal/server/bug3333_deleted_collection_grant_test.go:20
FunctionTestBUG3333_GuestDeltaSyncDropsDeletedGrantedCollection
The delta-sync door uses GuestVisibleResourcesIncludeDeleted, whose collection-grant query did not filter deleted collections either: a guest with a g
internal/server/bug3333_deleted_collection_grant_test.go:159
FunctionTestBUG3334_AnonymousReadDuringUserCountFaultIsRefused
(A1+A2) Through the real router: the anonymous read that both holes together turned into owner access.
internal/server/bug3334_fail_closed_test.go:109
FunctionTestBUG3334_AuditLogRefusesAnAdminPAT
(C) /audit-log is a platform-wide admin surface. An admin's PAT is refused with session_required (the BUG-2890 line); the admin's own browser session
internal/server/bug3334_fail_closed_test.go:397
FunctionTestBUG3334_CSRFFailsClosedOnUserCountError
(A3) CSRFProtect: a cookie-borne mutation during a user-count fault is held to the CSRF check rather than waved through as a fresh install.
internal/server/bug3334_fail_closed_test.go:121
FunctionTestBUG3334_CollabFailsClosedOnUserCountError
(A5) Collab: the same fault does not grant an anonymous socket write access.
internal/server/bug3334_fail_closed_test.go:153
FunctionTestBUG3334_CreateResolvesVisibilityOnce
Create and move already resolve visibility before their write, with the error checked; the response must be built from THAT result, not from a second,
internal/server/bug3334_fail_closed_test.go:334
FunctionTestBUG3334_FixtureHidesBothSignals
The fixture itself: without a fault, the member is shown neither hidden item, so a leak below is the fault's doing.
internal/server/bug3334_fail_closed_test.go:261
FunctionTestBUG3334_GetItemFailsClosedOnVisibilityError
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:275
FunctionTestBUG3334_MoveBuildsItsResponseFromTheCheckedResolution
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:347
FunctionTestBUG3334_ProgressFailsClosedOnVisibilityError
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:286
FunctionTestBUG3334_RequireAuthFailsClosedOnUserCountError
(A1) RequireAuth: an anonymous API request during a user-count fault is refused, not let through as if the instance had no users.
internal/server/bug3334_fail_closed_test.go:72
FunctionTestBUG3334_RequireWorkspaceAccessFailsClosedOnUserCountError
(A2) RequireWorkspaceAccess: the same fault never grants the fresh-install owner role. The workspace lookup ahead of the check reads the users table t
internal/server/bug3334_fail_closed_test.go:87
FunctionTestBUG3334_RestoreFailsClosedBeforeWriting
(t *testing.T)
internal/server/bug3334_fail_closed_test.go:313
FunctionTestBUG3334_SSERecheckFailsClosedOnUserCountError
(A4) SSE revalidation: a user-count fault does not short-circuit the recheck into "everyone has access"; an anonymous, tokenless stream ends.
internal/server/bug3334_fail_closed_test.go:136
FunctionTestBUG3334_SSEVisibilityDeniesWithoutAFreshUser
SSE visibility: when the fresh user row cannot be read, the cached identity (as old as the connection) grants nothing: neither a cookie admin's bypass
internal/server/bug3334_fail_closed_test.go:461
FunctionTestBUG3334_SignedInMemberWorksThroughUserCountFault
A signed-in member keeps working through a user-count fault at every site the fault no longer short-circuits: the fall-through, not a 500.
internal/server/bug3334_fail_closed_test.go:430
FunctionTestBUG3334_UpdateFailsClosedBeforeWriting
Update resolves visibility BEFORE writing: a fault is a 500 with nothing written, never a committed write answered with an unfiltered response.
internal/server/bug3334_fail_closed_test.go:298
FunctionTestBUG3335_RestoreDocumentIsScopedToTheURLWorkspace
BUG-3335: restoring a document is scoped to the workspace in the URL. An editor of workspace A naming an archived document of workspace B must get a 4
internal/server/bug3335_document_restore_scope_test.go:16
FunctionTestBUG3336_APITokenCannotDeleteTheAccount
A PAT is refused whatever it sends, before any identity check, so it can neither delete nor probe the password.
internal/server/bug3336_account_delete_test.go:41
FunctionTestBUG3336_CLIApprovalDoesNotMintAFreshSignIn
Approving a CLI sign-in from an existing session is not a fresh sign-in. The CLI session it mints carries the approver's sign-in time, so it cannot co
internal/server/bug3336_account_delete_test.go:180
FunctionTestBUG3336_ConfirmOnlyNeedsARecentSignIn
Confirm-only needs a recent sign-in: an 11-minute-old session is refused with reauth_required and the account survives.
internal/server/bug3336_account_delete_test.go:119
FunctionTestBUG3336_ConfirmOnlyRefusedForAPasswordAccount
A cloud account WITH a password cannot skip it by sending confirm.
internal/server/bug3336_account_delete_test.go:27
← previousnext →16,701–16,800 of 28,840, ranked by callers