MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestTask3401_AppsTurnedOffMidReadWithholdsTheData
On a self-host, an admin turning apps off while a read is in flight withholds its data, as the gate refuses any new request.
internal/server/task3401_app_api_test.go:775
FunctionTestTask3401_ContextSelfCheck
The self-check refuses a request missing any key the helpers read.
internal/server/task3401_app_api_test.go:478
FunctionTestTask3401_CrossWorkspaceHelpersRefuseApps
Cross-workspace helpers refuse outright under app context. Each leg has a control without the app context that IS allowed, so the refusal is the app c
internal/server/task3401_app_api_test.go:514
FunctionTestTask3401_DelegatedWriteAuthorIsThePerson
TASK-3401 U6b, the delegated half: a write is the PERSON's, with via_app = the install, never the bot's.
internal/server/task3399b_delegated_api_test.go:69
FunctionTestTask3401_ETagKeyIsMandatory
The etag key is server-only and mandatory: no encryption key, no app store.
internal/server/task3401_app_api_test.go:650
FunctionTestTask3401_EveryVisibilityCallerIsCeilinged
Every caller of the store's visibility, listed with how the ceiling reaches it. A new caller fails until it is reviewed.
internal/server/task3401_app_api_test.go:591
FunctionTestTask3401_ItemListPagingIsByWindowNotByCount
Item visibility filters AFTER the LIMIT, so a page can come back short. Paging must not depend on the page's length: next_offset advances by the rows
internal/server/task3401_app_api_test.go:818
FunctionTestTask3401_OrphanBotSeesNothingAndPeopleAreUnchanged
A bot with no install sees nothing; a person's visibility is untouched.
internal/store/task3401_app_ceiling_test.go:87
FunctionTestTask3401_ResponseDTOFieldSets
The request DTO shapes are reflected, so a Go field added without a JSON key, or with an unlisted one, fails here too.
internal/server/task3401_app_api_test.go:347
FunctionTestTask3401_RevalidateFailsClosedWithoutARecheckHolder
A request with no re-check holder could not have registered its authorizations, so re-validation refuses it rather than passing with none.
internal/server/task3401_app_api_test.go:793
FunctionTestTask3401_RoutesAndDTOCensus
Every row of the route table is reachable with a valid token, and every response's key set is exactly its DTO's, nested keys included (the census).
internal/server/task3401_app_api_test.go:199
FunctionTestTask3401_TheCeiling
The ceiling: a bot with "all" membership reads only its companions and the system collections, wherever it asks.
internal/server/task3401_app_api_test.go:374
FunctionTestTask3401_TheDoorRefuses
The door: every refusal before a handler runs.
internal/server/task3401_app_api_test.go:400
FunctionTestTask3401_TheRequestCeilingBindsAPersonActor
The request-level ceiling, which a delegated token (TASK-3399) will rely on: the actor is a PERSON with every collection visible, and the app context
internal/server/task3401_app_api_test.go:687
FunctionTestTask3401_TheRoleFollowsTheAccess
A read token acts as a viewer whatever the bot's membership; a write token keeps its membership's role.
internal/server/task3401_app_api_test.go:546
FunctionTestTask3401b_ACommentPublishesTheItemsCollectionAtWriteTime
An item a human moves to another companion between the handler's read and the comment's transaction. What the comment write publishes names the collec
internal/server/task3401b_app_writes_test.go:524
FunctionTestTask3401b_ADisableBeforeTheHandlerRefusesTheWrite
The mid-request disable race: a write admitted by the middleware, with a disable committed before its handler runs, is refused inside its FencedTx and
internal/server/task3401b_app_writes_test.go:282
FunctionTestTask3401b_AFailureAfterCommitDoesNotHideTheWrite
A write's response must not depend on a read after its commit. With the database gone after the commit, the create still answers 201 and describes the
internal/server/task3401b_app_writes_test.go:444
FunctionTestTask3401b_AMoveDuringTheBodyRefusesTheComment
TASK-3399 U5b-2: an item moved while the comment's body is still arriving is refused by the pre-write re-admission, and nothing is written.
internal/server/task3401b_app_writes_test.go:579
FunctionTestTask3401b_AnotherWritersStatusChangeIsNotTheApps
A status another writer changed between the handler's read and the app's commit is not the app's change. The app patches only size; no status notifica
internal/server/task3401b_app_writes_test.go:384
FunctionTestTask3401b_CommentRules
(t *testing.T)
internal/server/task3401b_app_writes_test.go:258
FunctionTestTask3401b_EveryWriteRowRefusesAReadToken
Every write row refuses a READ token with 403, and nothing is written.
internal/server/task3401b_app_writes_test.go:158
FunctionTestTask3401b_RequestDTOFieldSets
Request DTOs: their field sets are the spec table's.
internal/server/task3401b_app_writes_test.go:137
FunctionTestTask3401b_SSEAndWatchParity
Parity: an app write publishes the SSE events and watch notifications its human twin would, and X-Pad-Agent does not change the actor.
internal/server/task3401b_app_writes_test.go:309
FunctionTestTask3401b_TheActorNameIsReadWithTheWrite
The bot renamed between admission and the write. The stored author, the SSE actor and the watch actor all carry the name the write's transaction read.
internal/server/task3401b_app_writes_test.go:608
FunctionTestTask3401b_TheResponseUsesTheWritesSchema
The response projects fields by the schema the write validated against, read in its transaction, not the handler's earlier copy. A field added with a
internal/server/task3401b_app_writes_test.go:469
FunctionTestTask3401b_TheWriteRule
The write rule, both times: a collection inside the read ceiling but not a companion (the system collection) is refused, by requireEditPermission ahea
internal/server/task3401b_app_writes_test.go:194
FunctionTestTask3401b_UpdateRefusals
(t *testing.T)
internal/server/task3401b_app_writes_test.go:220
FunctionTestTask3401b_WriteCensus
Every write row: its happy path, and its response's key set is its DTO's.
internal/server/task3401b_app_writes_test.go:65
FunctionTestTask3401c_ACompanionLeavingMidUploadCommitsNoRow
A companion that stops being one while an upload's body is in flight. The fence checks the collection's stamp in the row's own transaction, so no row
internal/server/task3401c_app_attachments_test.go:287
FunctionTestTask3401c_ACredentialDyingMidUploadIs401
A credential that dies while an upload's body arrives is a 401 with the invalid_token challenge, not the 403 a permission change gets.
internal/server/task3401c_app_attachments_test.go:532
FunctionTestTask3401c_ADeletedVariantIsNotServed
The variant whose bytes are served is re-checked at the gate, not only the original that was authorized.
internal/server/task3401c_app_attachments_test.go:554
FunctionTestTask3401c_AFaultDuringReadmissionIsNotADenial
A store fault during re-admission withholds the bytes but answers 500, not the 401 invalid_token that tells the app to discard a good credential.
internal/server/task3401c_app_attachments_test.go:450
FunctionTestTask3401c_AMissingBlobIsNoOracle
A storage error on an attachment the subject may not see answers exactly as an unknown id does.
internal/server/task3401c_app_attachments_test.go:355
FunctionTestTask3401c_ARevocationBeforeTheFirstByteSendsNothing
U6c: a download is re-admitted immediately before its first byte, and a revocation committed before then sends nothing.
internal/server/task3401c_app_attachments_test.go:163
FunctionTestTask3401c_ARevocationDuringReadmissionSendsNothing
A credential change committed while the re-checks run. The credential is read again as re-admission's last step.
internal/server/task3401c_app_attachments_test.go:325
FunctionTestTask3401c_ASettingsFaultIsNotAppsOff
On a self-host, a failure to read the apps setting is a fault at the first gate too, not a 404 "apps are off".
internal/server/task3401c_app_attachments_test.go:586
FunctionTestTask3401c_AStalledClientDoesNotOutliveTheDeadline
The route deadline bounds the transport too. A client that reads the headers and then stops reading must not hold the handler in a blocked write past
internal/server/task3401c_app_attachments_test.go:385
FunctionTestTask3401c_ASubjectNarrowedMidUploadCommitsNoRow
The subject's edit right, checked again once the body is in. A membership narrowed while the body was read refuses the row.
internal/server/task3401c_app_attachments_test.go:494
FunctionTestTask3401c_ATruncatedUploadIsTheClientsMistake
A body that ends early over a real connection reports io.ErrUnexpectedEOF, which is the client's mistake (400), not a 500.
internal/server/task3401c_app_attachments_test.go:417
FunctionTestTask3401c_AViewerCannotUpload
The upload's write gate includes the subject's edit right: a bot whose membership role is viewer cannot upload, even with a write token. The fenced st
internal/server/task3401c_app_attachments_test.go:255
FunctionTestTask3401c_DownloadServesTheBytesFailClosed
(t *testing.T)
internal/server/task3401c_app_attachments_test.go:126
FunctionTestTask3401c_HeadAndUnknownVariant
HEAD probes the download through the same gate, and an unknown variant name is refused as on the regular download.
internal/server/task3401c_app_attachments_test.go:477
FunctionTestTask3401c_ReadRule
(t *testing.T)
internal/server/task3401c_app_attachments_test.go:99
FunctionTestTask3401c_TheStreamStopsAtTheDeadline
The route deadline ends a stream: the reader refuses once its context is done.
internal/server/task3401c_app_attachments_test.go:207
FunctionTestTask3401c_TheSubjectMustSeeTheItem
The subject's own visibility is a layer of its own: the fenced read rule asks only whether the attachment's item is a companion item, so a bot whose m
internal/server/task3401c_app_attachments_test.go:236
FunctionTestTask3401c_UploadRefusals
(t *testing.T)
internal/server/task3401c_app_attachments_test.go:64
FunctionTestTask3401c_UploadStoresARowBoundToTheItem
(t *testing.T)
internal/server/task3401c_app_attachments_test.go:38
FunctionTestTask3406_ReadBackSurvivesADeletionAfterTheCommit
TASK-3406: every store write that reads its row back did so on the pool after its commit, where a deletion landing in between (an account deletion, a
internal/store/task3406_readback_test.go:18
FunctionTestTask3408_AdmissionRacesPhaseOne
Admission and phase 1 race: once BeginInstallTeardown has returned, no admission succeeds, and the drain returns once the admitted attempts end.
internal/store/task3408_delivery_test.go:205
FunctionTestTask3408_AdmissionRecordsInFlightInDatabaseTime
(t *testing.T)
internal/store/task3408_delivery_test.go:74
FunctionTestTask3408_AdmissionRefusals
(t *testing.T)
internal/store/task3408_delivery_test.go:100
FunctionTestTask3408_AppEventDTOs
TASK-3408 (U10b): app DTOs come from the block and the table's snapshot keys only.
internal/store/task3408_dto_test.go:11
FunctionTestTask3408_CommentBlockRecordsTheWritingInstall
A comment an app wrote carries its install as the creator's via_app, as an app-created item does.
internal/store/task3408_delivery_test.go:318
FunctionTestTask3408_DeletedWorkspaceRefusesAdmission
A soft-deleted workspace keeps its installs and collections; its pending events are refused at admission.
internal/store/task3408_delivery_test.go:307
FunctionTestTask3408_DeliverFromBackfill
Hooks released under migration 122 get a deliver_from from their secret_delivered_at; held hooks stay NULL; set ones are kept.
internal/store/task3408_delivery_test.go:401
FunctionTestTask3408_DeliveredOverridesADrop
A request admitted before another drainer dropped the event did reach the app; "delivered" replaces "dropped" and the drop is taken back off the count
internal/store/task3408_ledger_test.go:110
FunctionTestTask3408_DeliveryLedger
TASK-3408 (U10c): the delivery ledger. The first terminal decision stands; attempts count only real attempts; a drop is counted once.
internal/store/task3408_ledger_test.go:14
FunctionTestTask3408_DrainIgnoresExpiredAndTimesOut
(t *testing.T)
internal/store/task3408_delivery_test.go:173
FunctionTestTask3408_DrainWaitsForInFlight
(t *testing.T)
internal/store/task3408_delivery_test.go:145
FunctionTestTask3408_DropAndDeliveryRace
A drop and a late delivery racing on a row that does not exist yet. Whatever the interleaving, dropped_count equals the number of events whose final r
internal/store/task3408_ledger_test.go:174
FunctionTestTask3408_DropDuringDeliveryRecord
The same race made deterministic: a drop starts while RecordDelivery is between its first statement and its commit. The drop must wait for the deliver
internal/store/task3408_ledger_test.go:225
FunctionTestTask3408_DropOfAnUnowedDeliveryIsARefusal
The drop decision runs admission's checks under the install lock, so a delivery no longer owed (here: the install disabled since) is recorded refused,
internal/store/task3408_ledger_test.go:81
FunctionTestTask3408_EventsBeforeDeliverFromAreRefused
An event older than the hook's deliver_from is refused.
internal/store/task3408_delivery_test.go:347
FunctionTestTask3408_RotateHoldsTheHook
Rotate holds the hook again with a secret nobody holds.
internal/store/task3408_delivery_test.go:264
FunctionTestTask3408_SubscriptionChangeMovesDeliverFrom
A subscription change moves deliver_from; an unchanged one does not.
internal/store/task3408_delivery_test.go:357
FunctionTestTask3408_UndecryptableSecretReleasesTheRecord
An admitted attempt whose secret cannot be decrypted releases its record at once, rather than holding a drain for the record's lifetime.
internal/store/task3408_delivery_test.go:290
FunctionTestTask3409_ARetryGoesOnlyToOwnerEndpointsStillOwed
TASK-3409: owner hooks keep per-endpoint delivery state. A retry goes only to endpoints still owed: not to one that accepted the event, and not to one
internal/server/task3409_owner_delivery_test.go:13
FunctionTestTask3409_ASingleOwnerEndpointBehavesAsBefore
Parity: a single owner endpoint behaves as before, apart from the record. A success acks at once; a 429 is retried as transient (TASK-3409).
internal/server/task3409_owner_delivery_test.go:71
FunctionTestTask3409_AnEndpointDeactivatedWhileOwedIsCountedAsDropped
An owner endpoint deactivated while an event is still owed to it (automatically after consecutive failures, or by its owner) is no longer owed it. The
internal/server/task3409_owner_delivery_test.go:96
FunctionTestTask3409_AutoDeactivationSettlesTheEndpointsOwedRows
The automatic deactivation (10 consecutive failures) is where an endpoint stops being owed what it was still owed, so its pending rows are settled the
internal/store/task3409_prune_drops_test.go:112
FunctionTestTask3409_GivingUpOnAnEventCountsTheEndpointsStillOwed
TASK-3409: when retention gives up on an event, each owner endpoint still owed it is counted on its hook's dropped_count; a decided endpoint is not, a
internal/store/task3409_prune_drops_test.go:13
FunctionTestTask3409_OwnerHookRetriesTheComeBackLaterStatuses
TASK-3409: on the owner path, 408, 425 and 429 mean "come back later" and are retried; a plain 400 or 404 stays permanent and is sent once.
internal/webhooks/task3409_retryable_status_test.go:15
FunctionTestTask3409_RetryableStatus
(t *testing.T)
internal/webhooks/task3409_retryable_status_test.go:50
FunctionTestTask3411_FencedWritesNameTheirInstall
TASK-3411 (SPEC-6 U10d): the app-projection block names the install whose fenced write caused the event (actor_via_app), and the app DTO's envelope ca
internal/store/task3411_actor_test.go:18
FunctionTestTask3411_V1BlocksKeepTheCreateOnlyRule
A v1 block (written before v2, still pending) keeps the created-only rule.
internal/store/task3411_actor_test.go:149
FunctionTestTask3413_AttributionLookupIsChunked
The lookup is chunked: one IN list per response would pass SQLite's 32,766-variable limit on a large unbounded response.
internal/server/task3413_via_app_test.go:200
FunctionTestTask3413_MCPProjectionsCarryViaApp
TASK-3413 (SPEC-6 U9c, ToolSurface v0.65): the MCP item projections an agent reads carry via_app / via_app_name for an app-created item: get, the list
internal/mcp/task3413_via_app_test.go:17
FunctionTestTask3413_PlaybookShowCarriesViaApp
pad playbook show (and pad_playbook get) serves the playbook item outside the common enrichment path; it carries the creating app too.
internal/server/task3413_via_app_test.go:219
FunctionTestTask3413_RoleBoardCommentEditAndExport
The role board, a comment edit's response and the account export carry the attribution too.
internal/server/task3413_via_app_test.go:252
FunctionTestTask3413_ViaAppOnHumanJSON
TASK-3413 (SPEC-6 U9c): human-facing item, comment and version JSON name the installed app that wrote them, and the name outlives the install.
internal/server/task3413_via_app_test.go:17
FunctionTestTask3413a_AppsOffSaysSoInsteadOfAnEmptyList
(t *testing.T)
internal/server/task3413a_app_list_test.go:74
FunctionTestTask3413a_OnlyAnOwnerListsInstalls
(t *testing.T)
internal/server/task3413a_app_list_test.go:60
FunctionTestTask3413a_TheListNamesEveryInstallWithItsStateAndHook
(t *testing.T)
internal/server/task3413a_app_list_test.go:20
FunctionTestTask3413b_ANonASCIIOriginFindsItsItems
The prefix is compared in characters: an origin whose host is not ASCII still finds its items.
internal/server/task3413b_install_artifacts_test.go:73
FunctionTestTask3413b_TheAppCannotActivateItsOwnDrafts
§2 step 7: activating an app's draft is an ordinary edit by a person, never the app's. An app token, service or a delegated owner's, cannot PATCH a dr
internal/server/task3413b_install_artifacts_test.go:102
FunctionTestTask3413b_TheInstallListsItsProvisionedItems
TASK-3413 (SPEC-6 U9b): the install view lists the items the app's pack provisioned, so the owner can activate its drafts.
internal/server/task3413b_install_artifacts_test.go:13
FunctionTestTask3414_ActionRowsFollowTheManifest
Provisioning writes the manifest's actions; a reviewed upgrade that changes one gives it a new revision, one that removes it retires it; uninstall del
internal/server/task3414_item_actions_test.go:297
FunctionTestTask3414_BackfillSkipsAnUninstalledInstall
The backfill re-decides under the install lock: an install that is no longer active or inactive gets nothing, even if the work list said so.
internal/store/task3414_redeem_race_test.go:163
FunctionTestTask3414_BurnIsScopedToTheInstall
BurnContextCode consumes only the named install's code.
internal/store/task3414_redeem_race_test.go:206
FunctionTestTask3414_CodeFromAnEarlierEpochIsRefused
A code minted before the install's epoch moved (a rotate) is refused even with a token from the new epoch: the code is bound to the epoch it was minte
internal/server/task3414_item_actions_test.go:382
FunctionTestTask3414_CodeFromBeforeAnUpgradeIsRefused
A code minted before an action change is refused after it.
internal/store/task3414_redeem_race_test.go:140
FunctionTestTask3414_DelegatedTokenCannotRedeem
§6: a service token only; a person's delegated token is refused with the same body.
internal/server/task3414_item_actions_test.go:460
FunctionTestTask3414_InvalidatingMutationsWaitForARedeem
(t *testing.T)
internal/store/task3414_redeem_race_test.go:89
FunctionTestTask3414_MintRedeemAndReplay
(t *testing.T)
internal/server/task3414_item_actions_test.go:82
FunctionTestTask3414_MintRefusalsAreIndistinguishable
The mint re-checks what the redeem will, with one refusal body.
internal/server/task3414_item_actions_test.go:227
FunctionTestTask3414_NoPoolReadsInsideTheTransactions
The mint and redeem transactions read nothing through the pool. With ONE connection, a pool read inside them deadlocks deterministically. Every viewer
internal/server/task3414_item_actions_test.go:500
FunctionTestTask3414_NonMemberAdminCannotLaunch
A platform admin who is not a member of the workspace is not a viewer an app may be handed an item for: the membership-only stance, not the admin cook
internal/server/task3414_item_actions_test.go:409
FunctionTestTask3414_RedeemRefusalsAreIndistinguishable
Every refusal of a redeem is one body, whatever the reason; and a mismatch burns the code (consume first).
internal/server/task3414_item_actions_test.go:134
FunctionTestTask3414_RedeemRouteCensus
The unscoped route census: redeem's answer is {action_key, item} with the app item DTO's keys. The root-mounted routes are exactly the context redeem
internal/server/task3414_item_actions_test.go:425
← previousnext →25,401–25,500 of 28,840, ranked by callers