MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionassertGapBurstYieldsOneThenOne
assertGapBurstYieldsOneThenOne drives a burst of gaps through one connection and asserts both halves of the bound: exactly ONE announcement inside the
internal/server/handlers_stream_gap_test.go:442
↓ 2 callersFunctionassertInterchangeGoldenCoverage
assertInterchangeGoldenCoverage fails when the golden no longer carries one of the shapes the round trip exists to check, so a regeneration that lost
internal/server/interchange_golden_test.go:559
↓ 2 callersFunctionassertKeptThroughTheDoor
assertKeptThroughTheDoor is the KEEP door's outcome, and each clause is what the dropped-workspace arm did NOT do: the 400 names the slug, the workspa
internal/server/handlers_import_bundle_bug3184_test.go:132
↓ 2 callersFunctionassertMentionsLinear
assertMentionsLinear times ExtractMentions on body(n) and body(4n), best of five each, and fails if 4x the input costs 8x the time or more: about 4x w
internal/links/mentions_test.go:86
↓ 2 callersFunctionassertNoSessionMinted
(t *testing.T, srv *Server, rr *httptest.ResponseRecorder, email string)
internal/server/handlers_auth_admin_register_test.go:38
↓ 2 callersFunctionassertNonRetryableRemapAnswer
TASK-4278. ANY failure of the import's attachment remap keeps the workspace, marks it partial and answers the non-retryable 500, through one helper, w
internal/server/task4278_remap_failures_test.go:25
↓ 2 callersFunctionassertNothingDeleted
assertNothingDeleted counts, with raw SQL, that the whole deletion rolled back: the user, the session, the membership, the authored attribution, and t
internal/store/task4278_ctx_test.go:152
↓ 2 callersFunctionassertNothingLeft
assertNothingLeft: no event left the process and the reminder is still armed — the same three assertions TestFirePathInvariant makes, so the pin and t
internal/store/reminders_pg_test.go:143
↓ 2 callersFunctionassertOnlyAllowed
(t *testing.T, writes []storetest.Write)
internal/appstore/items_test.go:98
↓ 2 callersFunctionassertOnlyAllowedCommentWrites
(t *testing.T, writes []storetest.Write)
internal/appstore/comments_test.go:42
↓ 2 callersFunctionassertOwnSnapshot
(t *testing.T, s *Store, got *models.Item, what string)
internal/store/bug2717_intx_snapshot_test.go:56
↓ 2 callersFunctionassertOwnerOnlyDACL
(t *testing.T, path string, userSID, everyoneSID *windows.SID)
internal/cli/credentials_acl_windows_test.go:66
↓ 2 callersFunctionassertPlainStreamRefusal
(t *testing.T, resp *http.Response, body []byte)
internal/server/bug3835_mcp_keepalive_test.go:125
↓ 2 callersFunctionassertRedirectURIManifestError
(t *testing.T, status int, body string, index int)
internal/server/handlers_apps_install_test.go:167
↓ 2 callersFunctionassertRefsAreLocal
assertRefsAreLocal fails unless the workspace's item content and resolved version bodies carry at least one reference each, and every reference names
internal/server/bug3656_import_remap_test.go:56
↓ 2 callersFunctionassertRefused
BUG-2800: the watch bus had no way to refuse a subscriber, so the SSE handler admitted streams on an instance that could deliver nothing to them. Thes
internal/watchevents/subscribe_refused_test.go:17
↓ 2 callersMethodassertRefusedIntact
assertRefusedIntact checks a refusal wrote nothing: body, seq, version count and the pending op-log row are all where they were.
internal/server/handlers_item_versions_bug3031_test.go:70
↓ 2 callersFunctionassertRetiresCursor
assertRetiresCursor checks the frame carries an id: line whose value is empty. A mid-stream sync_required that left the cursor standing would have the
internal/server/handlers_stream_gap_test.go:272
↓ 2 callersFunctionassertRolledBack
BUG-3475: a TRANSPORT failure (a stalled upload, a reset, a client that went away) rolls the partial workspace back instead of keeping it, and every k
internal/server/handlers_import_bundle_bug3475_test.go:24
↓ 2 callersFunctionassertSameFields
assertSameFields compares two `fields` blobs by VALUE, not by bytes. The column is TEXT on SQLite — which hands back exactly what was written — and JS
internal/store/items_preimage_test.go:18
↓ 2 callersFunctionassertSetAsideRefusal
(t *testing.T, f bug3133Fixture, before *models.Item, rrCode int, body string, code string, details map[string
internal/server/bug3244_set_aside_guard_test.go:44
↓ 2 callersFunctionassertSignedIn
(t *testing.T, srv *Server, rr *httptest.ResponseRecorder, email string)
internal/server/handlers_auth_admin_register_test.go:138
↓ 2 callersFunctionassertSnapshotQuickCheck
(t *testing.T, db *sql.DB)
internal/store/migration_guard_test.go:624
↓ 2 callersFunctionassertUnmarkedNotFound
assertUnmarkedNotFound is the control: a 404 about something INSIDE a readable workspace must not carry the marker, or a client would purge a workspac
internal/server/bug3069_workspace_not_found_test.go:59
↓ 2 callersFunctionassertUnreadableLog
(t *testing.T, raw string, want map[string]int)
internal/store/reminder_unreadable_test.go:169
↓ 2 callersFunctionassertVerificationsArrived
assertVerificationsArrived checks the destination carries the same verdicts verbatim, with the item and via ids remapped, and judges them the same.
internal/store/task3617_verifications_export_test.go:57
↓ 2 callersMethodassertWrite
(t *testing.T, title, name string)
internal/server/mcp_modern_test.go:155
↓ 2 callersMethodassigneeRows
(t *testing.T, scheduleID string)
internal/store/commitment_c1_test.go:454
↓ 2 callersFunctionassignmentRoot
The root identifier an assignment target writes through.
web/src/lib/components/items/childIdentityFencePopulation.test.ts:631
↓ 2 callersFunctionat
(n: Node)
web/src/test/identityFenceAst.ts:866
↓ 2 callersFunctionatNine
The local date at 09:00, `days` after `now`'s date.
web/src/lib/components/needs/deferTimes.ts:8
↓ 2 callersFunctionatoiSafe
atoiSafe returns the decimal value of s, or 0 if s is not a positive decimal integer. Used by promptForMode where 0 (no match) is always an invalid mo
cmd/pad/configure.go:280
↓ 2 callersFunctionats
(occ []Occurrence)
internal/schedule/nextbetween_test.go:36
↓ 2 callersFunctionatt
(overrides: Partial<AttachmentListItem> & { id: string })
web/src/lib/components/settings/StorageTab.svelte.test.ts:121
↓ 2 callersFunctionattachBundle
(container: HTMLElement)
web/src/lib/components/layout/createWorkspaceModalImportProgress.svelte.test.ts:61
↓ 2 callersMethodattachImportStatus
attachImportStatus sets ws.ImportStatus from the partial-import marker (TASK-896). The note is shown to owners and instance admins only; anyone else w
internal/server/handlers_workspaces.go:646
↓ 2 callersMethodattachUnroutedAsk
attachUnroutedAsk sets warnings.unrouted_ask on a stored item's response, merging into any warnings already there. The write has committed, so a store
internal/server/needs_unrouted_ask.go:61
↓ 2 callersMethodattachment
attachment inserts an attachment row bound to itemID ("" = unbound), optionally a variant of parentID.
internal/appstore/comments_test.go:78
↓ 2 callersMethodattachmentCallerIsRestrictedQ
attachmentCallerIsRestrictedQ is attachmentCallerIsRestricted parameterized over its executor (see resolveAttachmentParentItemQ).
internal/server/attachments_authz.go:134
↓ 2 callersFunctionattachmentFilenameSource
attachmentFilenameSource is the filename_source an insert writes (BUG-2819). An unset value is stored as "unknown" — the honest answer for a row whose
internal/store/attachments.go:63
↓ 2 callersFunctionattachmentImageSrc
(raw: string, origin: string)
web/src/lib/chat/urlPolicy.ts:51
↓ 2 callersFunctionattachmentLinkUrl
(ctx: AttachmentActionContext)
web/src/lib/attachments/actions.ts:154
↓ 2 callersFunctionattachmentListCmd
()
cmd/pad/cmd_attachment.go:784
↓ 2 callersFunctionattachmentListFilters
(r *http.Request)
internal/server/handlers_storage.go:227
↓ 2 callersFunctionattachmentListQuery
(filters: DeletedAttachmentListFilters)
web/src/lib/api/client.ts:4343
↓ 2 callersFunctionattachmentRefsIn
attachmentRefsIn returns the distinct attachment UUIDs referenced by the copied content and the final destination fields, in first-appearance order (c
internal/store/attachments_copy_plan.go:643
↓ 2 callersFunctionattachmentRestoreCmd
()
cmd/pad/cmd_attachment.go:346
↓ 2 callersMethodattachmentRestoreWindow
attachmentRestoreWindow is how long after a delete a restore is promised to succeed: the configured GC grace minus orphanGCRefStaleWindow, so a restor
internal/server/handlers_storage.go:478
↓ 2 callersFunctionattachmentResults
attachmentResults packages one result entry the way the stdio transport packages the CLI's one-element JSON array.
internal/mcp/dispatch_http_attachments.go:256
↓ 2 callersFunctionattachmentRowsFor
(t *testing.T, srv *Server, workspaceID string)
internal/server/handlers_import_bundle_husk_test.go:164
↓ 2 callersFunctionattachmentURL
attachmentURL returns the canonical download URL for an attachment. Uses the workspace slug from the request — the same shape every other API endpoint
internal/server/handlers_attachments.go:545
↓ 2 callersMethodattachmentUsage
attachmentUsage recounts the install's live ORIGINAL attachment rows. The caller holds the seq lock (see LOCKS above).
internal/store/fenced_attachments.go:78
↓ 2 callersFunctionattachmentVariantPath
attachmentVariantPath builds the attachment blob URL with an optional ?variant= query (the resource layer always requests thumb-md).
internal/mcp/resources_http.go:327
↓ 2 callersMethodattachmentWrite
attachmentWrite issues a write against one attachment and returns the response body, or the error result to hand back. Refusals are classified as atta
internal/mcp/dispatch_http_attachments.go:216
↓ 2 callersFunctionattentionEntries
(entries: AgendaEntry[], priorityList: AgendaWorkEntry[])
web/src/lib/calendar/presentation.ts:337
↓ 2 callersFunctionattentionKey
One schedule has at most one outstanding occurrence, so that occurrence is keyed by its schedule.
web/src/lib/calendar/presentation.ts:327
↓ 2 callersMethodattributionQueryQ
(q Queryer, table, installCol string, ids []string)
internal/store/app_attribution.go:34
↓ 2 callersFunctionauc
auc is the Mann-Whitney U statistic over positives vs negatives, ties counted half.
scripts/decision-eval/attention/main.go:292
↓ 2 callersFunctionaudienceFixture
TASK-4238 (calendar P1b): a schedule's audience routes the push. A fire of a managed (schedule) reminder pushes to its recipient only when the audienc
internal/store/schedule_audience_push_test.go:17
↓ 2 callersFunctionaudienceResourceConflict
audienceResourceConflict reports whether audience= and resource= name different normalized sets. Call it before translateResourceToAudience.
internal/server/handlers_oauth.go:651
↓ 2 callersFunctionauditLogDetail
auditLogDetail is the Details column of `pad workspace audit-log`: the row's metadata, with a `changes` member passed through the activity display rul
cmd/pad/cmd_workspace.go:1548
↓ 2 callersFunctionauth
(f: SuiteFixture)
web/e2e/bug-3240-collab-seed.spec.ts:20
↓ 2 callersFunctionauthHeaders
* BUG-2602 — ItemDetail's collection writes raced under fences that * ordered STARTS, and loadData's cross-collection escape hatch admitted * any ge
web/e2e/bug-2602-collection-adopt-race.spec.ts:34
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:38
↓ 2 callersFunctionauthHeaders
* BUG-3157 — on the mobile board, a tap on a card's status chip moved the card * a lane. The chip was a one-tap CYCLE control: it advanced the status
web/e2e/bug-3157-status-chip-tap-does-not-move.spec.ts:21
↓ 2 callersFunctionauthHeaders
* BUG-3160 — an open item timeline never showed an activity row the debounce * merge had changed. `mergeIntoUnlinkedActivity` folds a second update b
web/e2e/bug-3160-timeline-merged-row.spec.ts:19
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/bug-3040-refused-field-write-reverts.spec.ts:30
↓ 2 callersFunctionauthHeaders
* BUG-2281 regression e2e — the inline "New quick action" form must open * and stay open. * * Found during the BUG-2129 switch-safety reconciliatio
web/e2e/quickactions-inline-form.spec.ts:35
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/bug-3038-list-retry-rederives.spec.ts:23
↓ 2 callersFunctionauthHeaders
* TASK-2231 (audit C114): the tag and starred pages fetched full-content items * (and their own collection list) to render card summaries the local i
web/e2e/task-2231-tag-starred-from-index.spec.ts:13
↓ 2 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/pane-controller.spec.ts:115
↓ 2 callersFunctionauthJson
(fixture: SuiteFixture)
web/e2e/task-2210-dashboard-caps.spec.ts:20
↓ 2 callersFunctionauthJson
(fixture: SuiteFixture)
web/e2e/bug-3492-list-jk-rendered-order.spec.ts:27
↓ 2 callersMethodauthServerIssuerURL
===================================================================== Helpers shared with handlers_well_known.go for the discovery doc ===============
internal/server/handlers_oauth.go:2544
↓ 2 callersFunctionauthSignupCmd
authSignupCmd is `pad auth signup --agent`: an agent creates an unclaimed account for itself (POST /api/v1/agent-signup), saves its token as this serv
cmd/pad/cmd_auth.go:1211
↓ 2 callersMethodauthorizeAttachmentWrite
authorizeAttachmentWrite preserves the refusal bytes used by both write doors.
internal/server/handlers_storage.go:453
↓ 2 callersMethodauthorizeCopyDestination
authorizeCopyDestination is the ladder's destination half (steps 4 and 5): workspace-level access to the destination, then the collection lookup and i
internal/server/handlers_items_copy_resolve.go:220
↓ 2 callersFunctionautoPopulateDates
autoPopulateDates auto-fills start_date/end_date when status changes to active/completed. Only sets dates if the schema defines those date fields and
internal/server/handlers_items.go:4524
↓ 2 callersFunctionavatarOf
avatarOf reads the stored avatar, which oauth-login fills for an existing account that has none, but only once the sign-in has passed TOTP.
internal/server/handlers_bug3322_totp_doors_test.go:59
↓ 2 callersFunctionawaitAnnouncement
awaitAnnouncement is startAnnouncedStub's core, returning its failure instead of failing a test, so the fixture's own refusal is testable (TestPreServ
internal/buildtools/install_refresh_test.go:290
↓ 2 callersFunctionawaitItemEvent
(t *testing.T, ch <-chan events.Event, eventType, itemID string)
internal/server/handlers_unparented_test.go:253
↓ 2 callersFunctionawaitReturn
awaitReturn requires path's handler to return within the deadline plus slack, while its client is still connected and not reading.
internal/server/bug3821_write_deadline_test.go:93
↓ 2 callersFunctionawaitServing
awaitServing waits for the server holding the port to answer HTTP.
internal/cli/server.go:58
↓ 2 callersMethodawareness
()
internal/collab/room.go:808
↓ 2 callersFunctionawarenessFrame
(update []byte)
internal/collab/awareness_test.go:126
↓ 2 callersFunctionb4710Outstanding
b4710Outstanding is the destination's outstanding agenda entry at copyNow.
internal/store/bug4710_move_carry_test.go:48
↓ 2 callersFunctionbackThenDrillAfterSettleArms
( page: Page, ref: string, delayMs: number, )
web/e2e/lib/paneSettle.ts:33
↓ 2 callersFunctionbackdropDismiss
(node: HTMLElement, options: BackdropDismissOptions)
web/src/lib/utils/backdropDismiss.ts:26
↓ 2 callersMethodbackfillItemNumbers
backfillItemNumbers assigns prefixes to collections that lack them and sequential item_number values to items that don't have one yet. On first run a
internal/store/store.go:1706
↓ 2 callersMethodbackfillSelfHostedQ
backfillSelfHostedQ is the conversion itself, with no ownership check. Taking plan_source over as manual is deliberate (PLAN-3291 DR-6: the write that
internal/store/instance_mode.go:132
↓ 2 callersFunctionbalancedBlock
The `{...}` block starting at or after `from`, matched by balancing braces.
web/src/lib/components/items/itemDetailLinksRetryWiring.test.ts:19
↓ 2 callersFunctionbar
(page: Page)
web/e2e/chat-phone-sheet.spec.ts:43
↓ 2 callersFunctionbarFor
(title: string)
web/src/lib/components/charts/BarChart.render.svelte.test.ts:131
↓ 2 callersFunctionbars
()
web/src/lib/components/calendar/WeekSummary.svelte.test.ts:30
↓ 2 callersFunctionbaseProps
(overrides: Record<string, unknown> = {})
web/src/lib/components/items/PushToAgentDialog.svelte.test.ts:46
↓ 2 callersFunctionbeginDiagnosticTx
beginDiagnosticTx opens the diagnostic's one transaction, read-only by construction on Postgres: BEGIN READ ONLY through TxOptions and again with SET
internal/store/version_tie_diagnostic.go:85
↓ 2 callersMethodbeginRestore
Version-restore ↔ designated-applier coordination (BUG-2276 residual 2). Problem. A version restore (ForceRefreshRoom) freezes every connected conn f
internal/collab/restore_coord.go:66
↓ 2 callersFunctionbeginSend
(opKey: string)
web/src/lib/chat/composerRegistry.ts:44
↓ 2 callersFunctionbenchReadStore
The number that actually decides whether the guard is affordable: a REAL read through the store, guarded, against the same read on the raw driver. no
internal/store/nulguard_bench_test.go:133
↓ 2 callersFunctionbenchSeedConnection
Hot-path benchmark for GetOAuthConnectionAccess (PLAN-1519 Phase A acceptance: "Hot-path benchmark: dual-read overhead measured and documented"). The
internal/store/bench_oauth_connections_test.go:45
← previousnext →7,201–7,300 of 31,685, ranked by callers