5pm 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +46 -10
- data/docs/live-qualification-2026-10-30.json +318 -0
- data/docs/live-validation.md +110 -8
- data/docs/proposals/rubygems-owner-oidc.md +47 -0
- data/docs/release-preparation/manual-first-publication.md +52 -173
- data/docs/releasing.md +51 -18
- data/lib/five_pm/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9e0292c126ec44f49649421334fa4721145360f70685b65a712e87ccb7eb611
|
|
4
|
+
data.tar.gz: 634bb19c30ebc5965168ad9c8b801325b3c6cd26a85e5442aee92848b8bc6853
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9734bd4cbf81bccd6d3270886042bf5367ac21507d5920232378ef40613077b0f5ad9242a0a762b8cbc2142858966080636c95f58125461823e744b6f0748178
|
|
7
|
+
data.tar.gz: 76c24f46ecefb3258b4766745bc4bc4703ca93bc85d3cfd7f8260afc7ba32fb7156422a4aa49cb489fa39f2a08dd50774831d5800f61bbad05e74b19bcbdfeed
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1 — 2026-11-25
|
|
4
|
+
|
|
5
|
+
- Allow `mcp` from 1.6.1 up to (not including) 1.12.0 in `5pm-mcp`, instead of
|
|
6
|
+
`~> 1.6.1`, so installed adapters can use current `mcp` releases. CI now also runs
|
|
7
|
+
the suite on Ruby 3.2 with `mcp` 1.6.1 to keep the lower bound tested. The core
|
|
8
|
+
`5pm` gem has no code changes; it is released at the same version as the adapter.
|
|
9
|
+
- Split the opt-in live attachment checks from User management, and run the User
|
|
10
|
+
suite only with `FIVE_PM_LIVE_USER_ADMIN=1` and a verified Administrator account.
|
|
11
|
+
Without it, User write operations are reported as excluded, not missing.
|
|
12
|
+
- Skip later live write suites after the first failure while still scanning for
|
|
13
|
+
leftover records.
|
|
14
|
+
- Track records created by the live attachment and User suites in a protected local
|
|
15
|
+
cleanup ledger outside the repository. It refuses symlinks, loose permissions,
|
|
16
|
+
untrusted parents and any malformed or ambiguous entry, and each suite finishes its
|
|
17
|
+
own earlier cleanup before creating new records. Run one live check at a time.
|
|
18
|
+
- Document the standard-User restriction behind the 2026-10-30 `users.update`
|
|
19
|
+
API code 8. These changes affect only the opt-in live harness, not the gems.
|
|
20
|
+
|
|
3
21
|
## 0.2.0 — 2026-11-24
|
|
4
22
|
|
|
5
23
|
- Add optional trusted `project_ids` scoping to the MCP adapter and
|
data/README.md
CHANGED
|
@@ -2,10 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Ruby SDK for 5pm API v2. MIT licensed; Ruby 3.2+.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
See [
|
|
8
|
-
|
|
5
|
+
Version **0.2.0** is published: [5pm](https://rubygems.org/gems/5pm/versions/0.2.0)
|
|
6
|
+
and [5pm-mcp](https://rubygems.org/gems/5pm-mcp/versions/0.2.0).
|
|
7
|
+
See the [GitHub release](https://github.com/scarver2/5pm-ruby/releases/tag/v0.2.0)
|
|
8
|
+
and [CHANGELOG](CHANGELOG.md) for details. Live API refreshes are optional and owner-controlled.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
Install the core SDK:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
gem install 5pm --version 0.2.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
For the standalone MCP server, install the adapter; it also installs the core SDK:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
gem install 5pm-mcp --version 0.2.0
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
With Bundler, add the package you need to your Gemfile:
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
gem "5pm", "~> 0.2.0"
|
|
28
|
+
# For MCP applications, use this instead (it includes the core SDK):
|
|
29
|
+
# gem "5pm-mcp", "~> 0.2.0"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then run `bundle install`. Load the SDK with `require "five_pm"`;
|
|
33
|
+
the optional adapter uses `require "five_pm/mcp"`. Both packages require Ruby 3.2+.
|
|
34
|
+
If you manage Ruby with a version manager such as mise, run these commands through
|
|
35
|
+
it (for example `gem install 5pm`); none is required.
|
|
9
36
|
|
|
10
37
|
## Development
|
|
11
38
|
|
|
@@ -21,7 +48,6 @@ For repeatable macOS Keychain setup and cached contract/read checks, see
|
|
|
21
48
|
|
|
22
49
|
## Configuration and initial API
|
|
23
50
|
|
|
24
|
-
Install from this checkout with Bundler (`gem "5pm", path: "/path/to/sdk"`).
|
|
25
51
|
The gem name is `5pm`; load it with `require "five_pm"` and use the `FivePM` namespace.
|
|
26
52
|
Provide `FIVE_PM_HOST`, `FIVE_PM_LOGIN`, and `FIVE_PM_PASSWORD` through your environment
|
|
27
53
|
or a secret manager such as Infisical; no dotenv file is needed.
|
|
@@ -173,6 +199,9 @@ the JSON option. Missing-file API error envelopes are raised rather than returne
|
|
|
173
199
|
User creation requires a symbolic `securityLevel` such as `"user"` in the tested
|
|
174
200
|
account, even though returned records use numeric strings and the help reference
|
|
175
201
|
lists numeric role codes. Request values are not silently translated.
|
|
202
|
+
5PM's role rules let a standard User add users but not modify or remove other
|
|
203
|
+
profiles; updating or removing Users needs an Administrator account. The SDK does
|
|
204
|
+
not check roles itself. See [User-management permission boundary](docs/live-validation.md#user-management-permission-boundary).
|
|
176
205
|
|
|
177
206
|
Request validation rejects missing required operation parameters, unsafe nested field
|
|
178
207
|
names, arbitrary Ruby objects, cycles, invalid identifiers and invalid pagination bounds
|
|
@@ -183,15 +212,16 @@ Clients copy configuration strings and refuse Marshal serialization of credentia
|
|
|
183
212
|
Run `bin/package` to verify the actual built artifact. See
|
|
184
213
|
[release preparation](docs/releasing.md) and [implementation guideposts](docs/implementation-guides.md).
|
|
185
214
|
|
|
186
|
-
##
|
|
215
|
+
## Future releases
|
|
187
216
|
|
|
188
217
|
- Review and merge the offline-tested source; live API refreshes are optional and owner-controlled.
|
|
189
218
|
- Keep the supported Ruby matrix passing in hosted CI. Live checks remain opt-in and outside CI.
|
|
190
219
|
- Date/time strings remain opaque; no timezone conversion or consistent-snapshot guarantee is offered.
|
|
191
220
|
- Rate-limit and transient-network behavior is tested synthetically, without stressing the live account.
|
|
192
|
-
-
|
|
193
|
-
|
|
194
|
-
|
|
221
|
+
- Releases publish through the existing protected `release` environment and both
|
|
222
|
+
RubyGems trusted publishers, first used for 0.2.0. Verify that configuration still
|
|
223
|
+
matches [release preparation](docs/releasing.md) and obtain explicit approval for
|
|
224
|
+
the version and exact commit before dispatching publication.
|
|
195
225
|
|
|
196
226
|
Official sources: [developer guide](https://www.5pmweb.com/5pm_api.php),
|
|
197
227
|
[API reference](https://www.5pmweb.com/help/api_docs.php).
|
|
@@ -206,4 +236,10 @@ the same injected environment variables, or see its README for host configuratio
|
|
|
206
236
|
|
|
207
237
|
`bin/package-mcp` verifies both installed artifacts and the adapter
|
|
208
238
|
protocol in an isolated temporary GEM_HOME. `bin/live-check` adds opt-in disposable
|
|
209
|
-
account verification
|
|
239
|
+
account verification. Publication runs only through the protected, manually
|
|
240
|
+
dispatched release workflow described in [release preparation](docs/releasing.md).
|
|
241
|
+
|
|
242
|
+
—
|
|
243
|
+
Stan Carver II
|
|
244
|
+
Made in Texas 🤠
|
|
245
|
+
https://stancarver.com
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"checked_at": "2026-10-30T22:43:45Z",
|
|
4
|
+
"evidence_commit": "9322e03f75604d7279775dc88c9192add840e76e",
|
|
5
|
+
"worktree_dirty_at_test": false,
|
|
6
|
+
"source_sha256": "069b6678733a463557bd3e6d72bb17c296b342870b3937d99f18d02a01085c5b",
|
|
7
|
+
"result": "blocked",
|
|
8
|
+
"release_evidence": false,
|
|
9
|
+
"disposable_tenant_owner_confirmed": true,
|
|
10
|
+
"standard_user_verified": true,
|
|
11
|
+
"production_accessed": false,
|
|
12
|
+
"contract_verified": true,
|
|
13
|
+
"read_operations_verified": true,
|
|
14
|
+
"mutation_operations_verified": false,
|
|
15
|
+
"cleanup_verified": false,
|
|
16
|
+
"remaining_labelled_test_records": {
|
|
17
|
+
"users": 1,
|
|
18
|
+
"projects": 0,
|
|
19
|
+
"tasks": 0,
|
|
20
|
+
"activity": 0,
|
|
21
|
+
"project_groups": 0
|
|
22
|
+
},
|
|
23
|
+
"attachment_qualification": "not_reached",
|
|
24
|
+
"remaining_test_attachments": 0,
|
|
25
|
+
"failure": {
|
|
26
|
+
"stage": "users.update",
|
|
27
|
+
"category": "FivePM::APIError",
|
|
28
|
+
"api_code": 8,
|
|
29
|
+
"cleanup_failure_service": "users",
|
|
30
|
+
"remote_message_retained": false
|
|
31
|
+
},
|
|
32
|
+
"stop_action": "Stopped subsequent writes; independent read-only cleanup/inventory checks only. No administrative substitution.",
|
|
33
|
+
"required_owner_action": "Remove only the newly created SDK disposable extra labelled User; do not remove the dedicated qualification User or pre-existing records. Independently verify cleanup before any further mutation run.",
|
|
34
|
+
"publication_authorized": false,
|
|
35
|
+
"receipts": {
|
|
36
|
+
"identity": {
|
|
37
|
+
"process_success": true,
|
|
38
|
+
"stage": "identity",
|
|
39
|
+
"report": {
|
|
40
|
+
"result": "read_only_inventory_observed",
|
|
41
|
+
"stage": "inventory",
|
|
42
|
+
"production_accessed": false,
|
|
43
|
+
"standard_user_verified": true,
|
|
44
|
+
"identity_matches": true,
|
|
45
|
+
"counts": {
|
|
46
|
+
"projects": 1,
|
|
47
|
+
"tasks": 9,
|
|
48
|
+
"activity": 19,
|
|
49
|
+
"project_groups": 0,
|
|
50
|
+
"users": 2
|
|
51
|
+
},
|
|
52
|
+
"demo_project_only": true,
|
|
53
|
+
"unclassified_tasks": 0,
|
|
54
|
+
"prior_labelled_test_records": 0,
|
|
55
|
+
"tasks_outside_demo_project": 0,
|
|
56
|
+
"activity_outside_demo_records": 0,
|
|
57
|
+
"existing_activity_attachment_count": 0,
|
|
58
|
+
"project_group_count": 0,
|
|
59
|
+
"tenant_endpoint_verified": true,
|
|
60
|
+
"session_cleanup_verified": true
|
|
61
|
+
},
|
|
62
|
+
"stderr_present": false
|
|
63
|
+
},
|
|
64
|
+
"sandbox": {
|
|
65
|
+
"process_success": true,
|
|
66
|
+
"stage": "sandbox",
|
|
67
|
+
"report": {
|
|
68
|
+
"version": "0.1.0",
|
|
69
|
+
"evidence_commit": "9322e03f75604d7279775dc88c9192add840e76e",
|
|
70
|
+
"disposable_tenant": true,
|
|
71
|
+
"result": "read_only_passed",
|
|
72
|
+
"checks": [
|
|
73
|
+
"authentication.getAuthorizedUser",
|
|
74
|
+
"projects.list",
|
|
75
|
+
"project_groups.list",
|
|
76
|
+
"tasks.list",
|
|
77
|
+
"activity.list",
|
|
78
|
+
"users.list"
|
|
79
|
+
],
|
|
80
|
+
"contract_verified": false,
|
|
81
|
+
"read_operations_verified": false,
|
|
82
|
+
"mutation_operations_verified": false
|
|
83
|
+
},
|
|
84
|
+
"stderr_present": false
|
|
85
|
+
},
|
|
86
|
+
"reads": {
|
|
87
|
+
"process_success": true,
|
|
88
|
+
"stage": "reads",
|
|
89
|
+
"report": {
|
|
90
|
+
"result": "passed",
|
|
91
|
+
"version": "0.1.0",
|
|
92
|
+
"checked_at": "2026-10-30T22:43:45Z",
|
|
93
|
+
"evidence_commit": "9322e03f75604d7279775dc88c9192add840e76e",
|
|
94
|
+
"worktree_dirty": false,
|
|
95
|
+
"source_sha256": "069b6678733a463557bd3e6d72bb17c296b342870b3937d99f18d02a01085c5b",
|
|
96
|
+
"disposable_tenant": true,
|
|
97
|
+
"mutations_enabled": false,
|
|
98
|
+
"release_evidence": false,
|
|
99
|
+
"api_operations_verified": [
|
|
100
|
+
"activity.getById",
|
|
101
|
+
"activity.getFilesList",
|
|
102
|
+
"activity.getList",
|
|
103
|
+
"authentication.getAuthorizedUser",
|
|
104
|
+
"authentication.isSsl",
|
|
105
|
+
"authentication.nop",
|
|
106
|
+
"authentication.signIn",
|
|
107
|
+
"authentication.signOut",
|
|
108
|
+
"projects.getAll",
|
|
109
|
+
"projects.getById",
|
|
110
|
+
"projects.getList",
|
|
111
|
+
"projectsgroups.getAll",
|
|
112
|
+
"tasks.getById",
|
|
113
|
+
"tasks.getList",
|
|
114
|
+
"users.getAll",
|
|
115
|
+
"users.getAuthorizedUser",
|
|
116
|
+
"users.getByEmail",
|
|
117
|
+
"users.getById"
|
|
118
|
+
],
|
|
119
|
+
"api_operations_missing": [
|
|
120
|
+
"activity.add",
|
|
121
|
+
"activity.attachFiles",
|
|
122
|
+
"activity.downloadFile",
|
|
123
|
+
"activity.remove",
|
|
124
|
+
"activity.removeFile",
|
|
125
|
+
"activity.update",
|
|
126
|
+
"projects.add",
|
|
127
|
+
"projects.remove",
|
|
128
|
+
"projects.update",
|
|
129
|
+
"projectsgroups.add",
|
|
130
|
+
"projectsgroups.getById",
|
|
131
|
+
"projectsgroups.remove",
|
|
132
|
+
"projectsgroups.update",
|
|
133
|
+
"tasks.add",
|
|
134
|
+
"tasks.remove",
|
|
135
|
+
"tasks.update",
|
|
136
|
+
"users.add",
|
|
137
|
+
"users.remove",
|
|
138
|
+
"users.update"
|
|
139
|
+
],
|
|
140
|
+
"reports": [
|
|
141
|
+
{
|
|
142
|
+
"check": "live_reads",
|
|
143
|
+
"passed": true,
|
|
144
|
+
"report": {
|
|
145
|
+
"result": "passed",
|
|
146
|
+
"checks": [
|
|
147
|
+
"contract.authentication",
|
|
148
|
+
"contract.projects",
|
|
149
|
+
"contract.tasks",
|
|
150
|
+
"contract.projectsgroups",
|
|
151
|
+
"contract.activity",
|
|
152
|
+
"contract.users",
|
|
153
|
+
"contract.schema",
|
|
154
|
+
"authentication.authorized_user",
|
|
155
|
+
"authentication.nop",
|
|
156
|
+
"authentication.isSsl",
|
|
157
|
+
"projects.list",
|
|
158
|
+
"projects.get",
|
|
159
|
+
"projects.pagination",
|
|
160
|
+
"project_groups.list",
|
|
161
|
+
"tasks.list",
|
|
162
|
+
"tasks.get",
|
|
163
|
+
"tasks.pagination",
|
|
164
|
+
"activity.list",
|
|
165
|
+
"activity.get",
|
|
166
|
+
"activity.pagination",
|
|
167
|
+
"users.list",
|
|
168
|
+
"users.get",
|
|
169
|
+
"projects.getAll",
|
|
170
|
+
"users.getAuthorizedUser",
|
|
171
|
+
"users.find_by_email",
|
|
172
|
+
"activity.files",
|
|
173
|
+
"mcp.stdio",
|
|
174
|
+
"cleanup.no_disposable_records"
|
|
175
|
+
],
|
|
176
|
+
"mutations_tested": false
|
|
177
|
+
},
|
|
178
|
+
"diagnostics": []
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"stderr_present": false
|
|
183
|
+
},
|
|
184
|
+
"core-mutations": {
|
|
185
|
+
"process_success": true,
|
|
186
|
+
"stage": "core-mutations",
|
|
187
|
+
"report": {
|
|
188
|
+
"result": "passed",
|
|
189
|
+
"checks": [
|
|
190
|
+
"project_groups.create",
|
|
191
|
+
"project_groups.update",
|
|
192
|
+
"projects.create",
|
|
193
|
+
"projects.update",
|
|
194
|
+
"tasks.create",
|
|
195
|
+
"tasks.update",
|
|
196
|
+
"activity.create",
|
|
197
|
+
"activity.update",
|
|
198
|
+
"project_groups.get",
|
|
199
|
+
"projects.get",
|
|
200
|
+
"tasks.get",
|
|
201
|
+
"activity.get",
|
|
202
|
+
"mcp.all_read_tools",
|
|
203
|
+
"activity.delete",
|
|
204
|
+
"tasks.delete",
|
|
205
|
+
"projects.delete",
|
|
206
|
+
"project_groups.delete",
|
|
207
|
+
"mcp.approval",
|
|
208
|
+
"mcp.projects.create",
|
|
209
|
+
"mcp.tasks.create",
|
|
210
|
+
"mcp.projects.update",
|
|
211
|
+
"mcp.projects.get",
|
|
212
|
+
"mcp.tasks.update",
|
|
213
|
+
"mcp.tasks.get",
|
|
214
|
+
"mcp.tasks.delete_denied",
|
|
215
|
+
"mcp.tasks.delete",
|
|
216
|
+
"mcp.projects.delete_denied",
|
|
217
|
+
"mcp.projects.delete",
|
|
218
|
+
"mcp.audit"
|
|
219
|
+
],
|
|
220
|
+
"mcp_tools_verified": [
|
|
221
|
+
"five_pm_create_projects",
|
|
222
|
+
"five_pm_create_tasks",
|
|
223
|
+
"five_pm_delete_projects",
|
|
224
|
+
"five_pm_delete_tasks",
|
|
225
|
+
"five_pm_get_activity",
|
|
226
|
+
"five_pm_get_project_groups",
|
|
227
|
+
"five_pm_get_projects",
|
|
228
|
+
"five_pm_get_tasks",
|
|
229
|
+
"five_pm_get_users",
|
|
230
|
+
"five_pm_list_activity",
|
|
231
|
+
"five_pm_list_project_groups",
|
|
232
|
+
"five_pm_list_projects",
|
|
233
|
+
"five_pm_list_tasks",
|
|
234
|
+
"five_pm_list_users",
|
|
235
|
+
"five_pm_update_projects",
|
|
236
|
+
"five_pm_update_tasks"
|
|
237
|
+
],
|
|
238
|
+
"cleanup": true
|
|
239
|
+
},
|
|
240
|
+
"stderr_present": false,
|
|
241
|
+
"diagnostics": []
|
|
242
|
+
},
|
|
243
|
+
"attachments-users": {
|
|
244
|
+
"process_success": false,
|
|
245
|
+
"stage": "attachments-users",
|
|
246
|
+
"report": {
|
|
247
|
+
"result": "failed",
|
|
248
|
+
"diagnostics": [
|
|
249
|
+
{
|
|
250
|
+
"result": "failed",
|
|
251
|
+
"stage": "users.update",
|
|
252
|
+
"category": "FivePM::APIError",
|
|
253
|
+
"passed": [
|
|
254
|
+
"users.create"
|
|
255
|
+
],
|
|
256
|
+
"api_code": 8
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"result": "cleanup_failed",
|
|
260
|
+
"service": "users"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"stderr_present": true,
|
|
265
|
+
"diagnostics": [
|
|
266
|
+
{
|
|
267
|
+
"result": "failed",
|
|
268
|
+
"stage": "users.update",
|
|
269
|
+
"category": "FivePM::APIError",
|
|
270
|
+
"passed": [
|
|
271
|
+
"users.create"
|
|
272
|
+
],
|
|
273
|
+
"api_code": 8
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"result": "cleanup_failed",
|
|
277
|
+
"service": "users"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
"post-failure-cleanup": {
|
|
282
|
+
"stage": "cleanup",
|
|
283
|
+
"process_success": false,
|
|
284
|
+
"report": {
|
|
285
|
+
"result": "cleanup_unverified"
|
|
286
|
+
},
|
|
287
|
+
"stderr_present": true
|
|
288
|
+
},
|
|
289
|
+
"post-failure-identity": {
|
|
290
|
+
"stage": "identity",
|
|
291
|
+
"process_success": true,
|
|
292
|
+
"report": {
|
|
293
|
+
"result": "read_only_inventory_observed",
|
|
294
|
+
"stage": "inventory",
|
|
295
|
+
"production_accessed": false,
|
|
296
|
+
"standard_user_verified": true,
|
|
297
|
+
"identity_matches": true,
|
|
298
|
+
"counts": {
|
|
299
|
+
"projects": 1,
|
|
300
|
+
"tasks": 9,
|
|
301
|
+
"activity": 19,
|
|
302
|
+
"project_groups": 0,
|
|
303
|
+
"users": 3
|
|
304
|
+
},
|
|
305
|
+
"demo_project_only": true,
|
|
306
|
+
"unclassified_tasks": 0,
|
|
307
|
+
"prior_labelled_test_records": 1,
|
|
308
|
+
"tasks_outside_demo_project": 0,
|
|
309
|
+
"activity_outside_demo_records": 0,
|
|
310
|
+
"existing_activity_attachment_count": 0,
|
|
311
|
+
"project_group_count": 0,
|
|
312
|
+
"tenant_endpoint_verified": true,
|
|
313
|
+
"session_cleanup_verified": true
|
|
314
|
+
},
|
|
315
|
+
"stderr_present": false
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
data/docs/live-validation.md
CHANGED
|
@@ -24,12 +24,13 @@ readbacks, zero labelled leftovers and session cleanup. Stop on unverified isola
|
|
|
24
24
|
permissions or cleanup. Record failures and the exact tested commit without secrets
|
|
25
25
|
or account payloads. Live testing remains opt-in and is never part of CI.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Earlier on 2026-10-30 qualification stopped before the sandbox/contract/mutation suite:
|
|
28
28
|
the supplied test credential was Admin, the saved browser session was signed out,
|
|
29
29
|
and independent isolation/record inventory could not be completed. Read-only
|
|
30
30
|
role-verification sessions were closed. No new qualification success is claimed.
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
That access blocker was later resolved through secure standard User provisioning;
|
|
32
|
+
the newer run below records a separate User-operation and cleanup failure. The
|
|
33
|
+
earlier historical report remains development evidence.
|
|
33
34
|
|
|
34
35
|
## Reproduce
|
|
35
36
|
|
|
@@ -40,10 +41,82 @@ temporary API sessions, which the suite closes.
|
|
|
40
41
|
|
|
41
42
|
For explicitly authorized disposable CRUD checks, also set
|
|
42
43
|
`FIVE_PM_ALLOW_MUTATIONS=1` and run `bundle exec ruby bin/live-check --mutations`.
|
|
43
|
-
This creates labelled temporary records
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
This creates labelled temporary records and a tiny synthetic text attachment. It
|
|
45
|
+
deletes those records, checks the attachment's exact bytes, verifies missing-record
|
|
46
|
+
errors and confirms no labelled records remain. Never enable this against a
|
|
47
|
+
production tenant. Live tests are not part of CI.
|
|
48
|
+
|
|
49
|
+
Suites run in this order: reads, core/MCP mutations, attachments, User management
|
|
50
|
+
(only when enabled, see below), then a read-only scan for leftover labelled records.
|
|
51
|
+
After the first failed suite, later write suites are skipped and reported with
|
|
52
|
+
`skipped_after`; the leftover scan still runs. Attachment qualification has its own
|
|
53
|
+
suite, so a User-management failure no longer hides attachment coverage.
|
|
54
|
+
|
|
55
|
+
### User-management permission boundary
|
|
56
|
+
|
|
57
|
+
5PM's [role reference](https://www.5pmweb.com/help/using_5pm.php) says a standard
|
|
58
|
+
User can add other users but cannot modify existing profiles other than their own;
|
|
59
|
+
only Administrators have unlimited rights. The API reference documents no
|
|
60
|
+
permissions or error codes for `users.add`, `users.update` or `users.remove`.
|
|
61
|
+
This matches the 2026-10-30 run below: `users.add` succeeded, then `users.update`
|
|
62
|
+
returned API code 8 and cleanup of the new User failed. Code 8 is undocumented,
|
|
63
|
+
so it is recorded as consistent with a role restriction, not as a confirmed meaning.
|
|
64
|
+
|
|
65
|
+
User administration is therefore excluded from standard-User qualification. The
|
|
66
|
+
User suite runs only with `FIVE_PM_LIVE_USER_ADMIN=1`, using an Administrator
|
|
67
|
+
account on a disposable tenant. It first confirms the authorized user's
|
|
68
|
+
`securityLevel` is `0` (admin) and stops before creating anything otherwise.
|
|
69
|
+
Without the flag, the report lists `users.add`, `users.update` and `users.remove`
|
|
70
|
+
under `api_operations_excluded` instead of failing them as missing. The SDK sends
|
|
71
|
+
these calls as given and does not check roles itself.
|
|
72
|
+
|
|
73
|
+
### Cleanup ledger
|
|
74
|
+
|
|
75
|
+
The attachment and User suites record every created record in a local cleanup
|
|
76
|
+
ledger before doing anything else with it, and remove the entry only after deletion
|
|
77
|
+
and absence are confirmed. The ledger defaults to
|
|
78
|
+
`~/.local/state/five-pm-ruby/live-cleanup-ledger.json` (override with
|
|
79
|
+
`FIVE_PM_LIVE_LEDGER`). It holds record IDs, so it is never copied into reports; the
|
|
80
|
+
tenant host is stored only as a SHA-256 digest.
|
|
81
|
+
|
|
82
|
+
The ledger fails closed rather than repairing unsafe state:
|
|
83
|
+
|
|
84
|
+
- Its path, after resolving symlinks, must be outside the repository. Each missing
|
|
85
|
+
directory is checked against the repository and its parents before it is
|
|
86
|
+
created, so an unsafe path creates nothing.
|
|
87
|
+
- Its directory must be a real directory owned by you with mode `0700`. An existing
|
|
88
|
+
directory with group or other access is refused, not tightened.
|
|
89
|
+
- The path may pass only through root-owned system symlinks (such as `/var` on
|
|
90
|
+
macOS), and every parent must be owned by root or you and not writable by others
|
|
91
|
+
unless sticky.
|
|
92
|
+
- The ledger and its lock are opened without following symlinks and must be regular
|
|
93
|
+
files readable only by you.
|
|
94
|
+
- Writes go to a fresh, exclusively created temporary file that is renamed into
|
|
95
|
+
place, so a leftover file is never reused.
|
|
96
|
+
- The whole document is validated before any entry is filtered, deleted or added:
|
|
97
|
+
version `1`, exactly the expected fields, a tenant digest, a positive integer ID,
|
|
98
|
+
a timestamp, no duplicate entries or JSON keys, and a known suite with its own services only
|
|
99
|
+
(`live_attachments`: projects, tasks, activity; `live_users`: users). A malformed
|
|
100
|
+
or ambiguous ledger is refused and left unchanged; nothing is deleted or created.
|
|
101
|
+
- Platforms without `O_NOFOLLOW` are refused.
|
|
102
|
+
|
|
103
|
+
Limits:
|
|
104
|
+
|
|
105
|
+
- Run one live check at a time per ledger. The lock covers each ledger update,
|
|
106
|
+
not a whole run.
|
|
107
|
+
- Crash recovery is not complete. A record is added to the ledger only after 5PM
|
|
108
|
+
confirms the create, so a crash in that window leaves an untracked record. The
|
|
109
|
+
final leftover scan still reports any labelled records, which then need manual
|
|
110
|
+
removal.
|
|
111
|
+
|
|
112
|
+
Each suite first retries cleanup of its own earlier entries for the same tenant,
|
|
113
|
+
and stops before creating new records if any still cannot be removed. Entries from
|
|
114
|
+
other suites are left alone, so a User only an Administrator can delete does not
|
|
115
|
+
block attachment checks.
|
|
116
|
+
|
|
117
|
+
The ledger covers the attachment and User suites only. The core/MCP mutation suite
|
|
118
|
+
still keeps its created records in a per-process temporary file, which supports
|
|
119
|
+
cleanup within a run but not recovery after a crash.
|
|
47
120
|
|
|
48
121
|
The single JSON report identifies the base commit, dirty-worktree status and a
|
|
49
122
|
SHA-256 digest of the tested source. The digest covers the sorted Git tracked and
|
|
@@ -53,7 +126,8 @@ not a fresh validation of a different source commit. `bin/release-check` does no
|
|
|
53
126
|
|
|
54
127
|
The harness records successful transport operation names only, including calls made
|
|
55
128
|
by the actual stdio process. With `--mutations`, it fails unless every one of the
|
|
56
|
-
37 inventoried SDK operations was exercised
|
|
129
|
+
37 inventoried SDK operations was exercised, apart from the three User write
|
|
130
|
+
operations listed in `api_operations_excluded` when the User suite is not enabled. The report lists both verified and
|
|
57
131
|
missing operations. It also requires a successful live call to every one of the
|
|
58
132
|
16 tools advertised by the mutation-enabled MCP server (10 reads, six writes).
|
|
59
133
|
No arguments, record IDs, return payloads or credentials enter this operation audit.
|
|
@@ -107,3 +181,31 @@ Dates remain exact strings; no timezone inference or conversion is performed.
|
|
|
107
181
|
Retries, rate limits, transport failures and malformed schemas are tested with
|
|
108
182
|
synthetic responses rather than inducing failures or load on the live account.
|
|
109
183
|
Publication, hosted-CI acceptance and accepted-commit release evidence remain separate gates.
|
|
184
|
+
|
|
185
|
+
## Standard User qualification — 2026-10-30
|
|
186
|
+
|
|
187
|
+
The [sanitized qualification receipts](live-qualification-2026-10-30.json) record a
|
|
188
|
+
new run against clean source `9322e03f75604d7279775dc88c9192add840e76e`.
|
|
189
|
+
Standard User identity, demo-record inventory, sandbox preflight, six WSDL inventories,
|
|
190
|
+
XSD parity, read checks and core mutations passed. All 16 MCP tools were exercised
|
|
191
|
+
successfully. The historical development report above remains unchanged.
|
|
192
|
+
|
|
193
|
+
The User/attachment suite stopped after creating a labelled test User: `users.update`
|
|
194
|
+
returned API code 8 and User cleanup failed. Independent inventory found one extra
|
|
195
|
+
labelled User; project/task/activity/group counts returned to baseline and no test
|
|
196
|
+
attachments remained. Attachment qualification was not reached. Further writes
|
|
197
|
+
stopped; no Administrator credentials or privilege changes were used. Sessions from
|
|
198
|
+
the independent identity/inventory checks closed successfully.
|
|
199
|
+
|
|
200
|
+
The run's recorded outcome is **blocked**, with cleanup **not verified** at the time
|
|
201
|
+
of the run. The receipts preserve that outcome unchanged; this is a historical failure
|
|
202
|
+
record, not `docs/live-validation.json` or passing evidence. Credentials, record IDs and
|
|
203
|
+
payloads are excluded.
|
|
204
|
+
|
|
205
|
+
Disposition: Stan later deleted the leftover labelled test User; no independent
|
|
206
|
+
post-deletion inventory is recorded here. Live qualification is no longer a release
|
|
207
|
+
prerequisite (see [release policy](releasing.md)), and 0.1.0 and 0.2.0 were published
|
|
208
|
+
on offline tests and package verification. The `users.update` API code 8
|
|
209
|
+
is undocumented but consistent with the standard-User restriction described under
|
|
210
|
+
User-management permission boundary above; any further live check, including the separated attachment and
|
|
211
|
+
Administrator-only User suites, runs only when Stan requests it.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!-- docs/proposals/rubygems-owner-oidc.md -->
|
|
2
|
+
# Owner-aware RubyGems trusted publishing: disposition
|
|
3
|
+
|
|
4
|
+
Status: closed proposal. No workflow change is needed or planned.
|
|
5
|
+
|
|
6
|
+
## Background
|
|
7
|
+
|
|
8
|
+
Before the first release, both gems had only *pending* trusted publishers. Pushing a
|
|
9
|
+
new gem through a pending publisher needs the RubyGems account `owner` in the OIDC
|
|
10
|
+
token exchange. The RubyGems server already accepted it, but the official actions
|
|
11
|
+
pinned here could not send it. A proposal (PR #16, October 2026) planned an upstream
|
|
12
|
+
contribution and a guarded adoption with owner `239830` for both gems.
|
|
13
|
+
|
|
14
|
+
## What happened instead
|
|
15
|
+
|
|
16
|
+
- Stan published 0.1.0 of both gems manually on 2026-10-30. Both names now exist,
|
|
17
|
+
and each has a configured (not pending) trusted publisher bound to
|
|
18
|
+
`scarver2/5pm-ruby`, workflow `release.yml`, environment `release`.
|
|
19
|
+
- 0.2.0 was published on 2026-11-24 by the protected release workflow through
|
|
20
|
+
trusted publishing, using the pinned
|
|
21
|
+
[`rubygems/release-gem@7f96501`](https://github.com/rubygems/release-gem/blob/7f9650160c1a4e7989fdc9855807bdbd421d8b6b/action.yml)
|
|
22
|
+
(v1.4.1), without any owner input.
|
|
23
|
+
- Upstream added the input independently:
|
|
24
|
+
[release-gem v1.5.0](https://github.com/rubygems/release-gem/releases/tag/v1.5.0)
|
|
25
|
+
(commit `2654a0fe0dc39725c07fe84d7fe863a084f2424e`, via
|
|
26
|
+
[rubygems/release-gem#51](https://github.com/rubygems/release-gem/pull/51)) forwards
|
|
27
|
+
`owner` to
|
|
28
|
+
[configure-rubygems-credentials v2.2.0](https://github.com/rubygems/configure-rubygems-credentials/releases/tag/v2.2.0).
|
|
29
|
+
Upstream documents it as only required when pushing a new gem via a pending
|
|
30
|
+
trusted publisher.
|
|
31
|
+
|
|
32
|
+
No upstream contribution was submitted from this repository.
|
|
33
|
+
|
|
34
|
+
## Guidance
|
|
35
|
+
|
|
36
|
+
- Do not add `owner` to either publication job; both gems use configured publishers.
|
|
37
|
+
- When the `release-gem` pin moves (for example to v1.5.0), update
|
|
38
|
+
`spec/fixtures/release_action_inputs.json` from that exact revision's `action.yml`.
|
|
39
|
+
The workflow spec fails if a job passes an input the pinned revision does not
|
|
40
|
+
declare, or passes `owner`.
|
|
41
|
+
- A future *new* gem from this repository would need a pending publisher and the
|
|
42
|
+
`owner` input, at release-gem v1.5.0 or newer.
|
|
43
|
+
|
|
44
|
+
—
|
|
45
|
+
Stan Carver II
|
|
46
|
+
Made in Texas 🤠
|
|
47
|
+
https://stancarver.com
|
|
@@ -1,190 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- docs/release-preparation/manual-first-publication.md -->
|
|
2
|
+
# Completed first publication: 0.1.0
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
supersedes the historical live-test blockers recorded in the frozen manifest.
|
|
4
|
+
Both gems were published on 2026-10-30 using the owner's existing RubyGems
|
|
5
|
+
credentials and security-key approvals. The core gem was published first, its
|
|
6
|
+
public bytes verified, and then the MCP adapter was published and verified.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Proposed version: **0.1.0** for both gems. Frozen source baseline:
|
|
11
|
-
`9322e03f75604d7279775dc88c9192add840e76e` (accepted master, not an accepted release).
|
|
12
|
-
Changelog: **0.1.0 — unreleased**. Current artifacts are provisional and blocked.
|
|
13
|
-
A dated changelog/source change requires rebuilding, offline verification and new hashes;
|
|
14
|
-
do not publish these bytes after substituting a different candidate SHA.
|
|
15
|
-
|
|
16
|
-
[Machine-readable provenance/inventories](0.1.0-manual-artifacts.json) records:
|
|
17
|
-
|
|
18
|
-
| Artifact | SHA-256 |
|
|
8
|
+
| Package | Published version |
|
|
19
9
|
| --- | --- |
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
23
|
-
Build environment: Ruby 4.0.9, RubyGems 4.0.23, Bundler 4.0.23,
|
|
24
|
-
`SOURCE_DATE_EPOCH=1793399403` (source commit timestamp). Two independent builds
|
|
25
|
-
produced identical bytes. Core inventory: 28 files; MCP: eight. MIT licenses, RBS,
|
|
26
|
-
installed load paths and both exact versions passed isolated verification.
|
|
27
|
-
|
|
28
|
-
Both gems require Ruby >=3.2. Supported/tested versions: 3.2, 3.3, 3.4, 4.0.
|
|
29
|
-
[Source CI run 41138526407](https://github.com/scarver2/5pm-ruby/actions/runs/41138526407)
|
|
30
|
-
passed all four jobs (143 examples, RBS/runtime, lint and package verification).
|
|
31
|
-
Core depends on json >=2.6,<4 and net-http >=0.3,<1; MCP depends on 5pm ~>0.1.0
|
|
32
|
-
and mcp ~>1.6.1. The locked dependency set is tested, not every possible version
|
|
33
|
-
within these ranges. MCP is not a core runtime dependency.
|
|
34
|
-
|
|
35
|
-
## Offline build, inspect and install (no publishing credentials)
|
|
10
|
+
| Core SDK | [5pm 0.1.0](https://rubygems.org/gems/5pm/versions/0.1.0) |
|
|
11
|
+
| MCP adapter | [5pm-mcp 0.1.0](https://rubygems.org/gems/5pm-mcp/versions/0.1.0) |
|
|
36
12
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
The
|
|
13
|
+
Source commit: `0a48bcd297a28e0ee7c22be8bc594daad4a88511`.
|
|
14
|
+
Tag: [`v0.1.0`](https://github.com/scarver2/5pm-ruby/releases/tag/v0.1.0).
|
|
15
|
+
The GitHub release contains both gems and `SHA256SUMS`.
|
|
40
16
|
|
|
41
|
-
|
|
42
|
-
set -eu
|
|
43
|
-
cd /Users/cora/Projects/OSS/5pm-ruby/sdk
|
|
44
|
-
candidate_sha=9322e03f75604d7279775dc88c9192add840e76e
|
|
45
|
-
source_dir=/private/tmp/5pm-maiden-voyage-0.1.0/source
|
|
46
|
-
# Already executed for the prepared worktree; only create if absent:
|
|
47
|
-
# git worktree add --detach "$source_dir" "$candidate_sha"
|
|
48
|
-
cd "$source_dir"
|
|
49
|
-
test "$(git rev-parse HEAD)" = "$candidate_sha"
|
|
50
|
-
test -z "$(git status --porcelain)"
|
|
51
|
-
export PATH=/Users/cora/.local/share/mise/installs/ruby/4.0.9/bin:$PATH
|
|
52
|
-
export BUNDLE_PATH=/Users/cora/Projects/OSS/5pm-ruby/sdk/vendor/bundle
|
|
53
|
-
export BUNDLE_FROZEN=true
|
|
54
|
-
export SOURCE_DATE_EPOCH=1793399403
|
|
55
|
-
bundle check
|
|
56
|
-
bin/spec
|
|
57
|
-
bin/lint --cache false
|
|
58
|
-
bin/package-mcp
|
|
59
|
-
# bin/package-mcp builds/inspects both gems and verifies disposable installs/RBS.
|
|
60
|
-
ruby bin/verify-package.rb pkg/5pm-0.1.0.gem
|
|
61
|
-
shasum -a 256 pkg/5pm-0.1.0.gem mcp/pkg/5pm-mcp-0.1.0.gem
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Explicit standalone isolated-install/load commands, using only bundled dependencies:
|
|
17
|
+
## Installation
|
|
65
18
|
|
|
66
19
|
```sh
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
dependency_path="$(bundle exec ruby -rbundler -e 'puts Bundler.load.specs.map(&:base_dir).uniq.join(File::PATH_SEPARATOR)')"
|
|
71
|
-
for artifact in pkg/5pm-0.1.0.gem mcp/pkg/5pm-mcp-0.1.0.gem; do
|
|
72
|
-
GEM_HOME="$qualification_home" GEM_PATH="$dependency_path" ruby -rrubygems/installer -e \
|
|
73
|
-
'Gem::Installer.at(ARGV.fetch(0), install_dir: ARGV.fetch(1), ignore_dependencies: true, document: []).install' \
|
|
74
|
-
"$artifact" "$qualification_home"
|
|
75
|
-
done
|
|
76
|
-
GEM_HOME="$qualification_home" GEM_PATH="$dependency_path" ruby -rrubygems -e '
|
|
77
|
-
gem "5pm", "0.1.0"; require "five_pm"
|
|
78
|
-
gem "5pm-mcp", "0.1.0"; require "five_pm/mcp"
|
|
79
|
-
abort "core version mismatch" unless FivePM::VERSION == "0.1.0"
|
|
80
|
-
abort "MCP version mismatch" unless FivePM::MCPAdapter::VERSION == "0.1.0"
|
|
81
|
-
%w[5pm 5pm-mcp].each do |name|
|
|
82
|
-
actual = File.realpath(Gem.loaded_specs.fetch(name).full_gem_path)
|
|
83
|
-
abort "loaded outside disposable GEM_HOME" unless actual.start_with?(File.realpath(ENV.fetch("GEM_HOME")) + File::SEPARATOR)
|
|
84
|
-
end
|
|
85
|
-
puts "Both exact versions loaded from disposable GEM_HOME"
|
|
86
|
-
'
|
|
20
|
+
gem install 5pm --version 0.1.0
|
|
21
|
+
# For the MCP server, this also installs the core SDK:
|
|
22
|
+
gem install 5pm-mcp --version 0.1.0
|
|
87
23
|
```
|
|
88
24
|
|
|
89
|
-
|
|
90
|
-
is `/private/tmp/5pm-maiden-voyage-0.1.0/artifacts`, with the two gems, `SHA256SUMS`
|
|
91
|
-
and `provenance.json`. It is outside Git and outside the frozen source tree.
|
|
92
|
-
Verify it with `cd` to that directory, then `shasum -a 256 -c SHA256SUMS`.
|
|
93
|
-
|
|
94
|
-
## Preconditions before any push
|
|
95
|
-
|
|
96
|
-
- Preserve historical API observations and failed receipts, including issue #14.
|
|
97
|
-
Stan confirmed the leftover test User was deleted. Another live session or
|
|
98
|
-
qualification run is not a publication prerequisite.
|
|
99
|
-
- Review a dated changelog and final exact source. Pass offline specs, lint, package
|
|
100
|
-
checks, hosted CI and the read-only `bin/release-check VERSION SHA`.
|
|
101
|
-
- Deputy accepts exact artifacts/source; Sheriff separately authorizes the final push.
|
|
102
|
-
- Sheriff verifies his own existing local RubyGems authentication belongs to the
|
|
103
|
-
intended account (immutable ID 239830), permits `push_rubygem`/first publication of
|
|
104
|
-
both names and meets MFA requirements. Cora neither accesses nor uses it.
|
|
105
|
-
- If existing authentication is missing/insufficient, STOP for owner action. Do not
|
|
106
|
-
run signin, generate credentials automatically, add repository secrets, print keys,
|
|
107
|
-
or pass credentials/MFA codes as command-line arguments. No new permanent key is
|
|
108
|
-
part of this procedure. An authenticated browser alone is not CLI authentication.
|
|
109
|
-
|
|
110
|
-
Read-only public gem and owner API requests returned 404 for both names on 2026-10-30.
|
|
111
|
-
No published ownership was observed; this neither reserves names nor proves manual
|
|
112
|
-
push permission. Recheck immediately before publication. Any newly existing gem,
|
|
113
|
-
version conflict, different owner or policy denial means STOP; do not overwrite/yank.
|
|
114
|
-
|
|
115
|
-
Manual `gem push` uses Sheriff's own authenticated account, not OIDC token exchange.
|
|
116
|
-
Thus owner-input action support is a later automation prerequisite, not a reason to
|
|
117
|
-
alter this manual route. Leave the protected OIDC workflow and pending publishers
|
|
118
|
-
unchanged. This distinction does not waive source/evidence/publication approval.
|
|
119
|
-
|
|
120
|
-
## Sheriff-only stage — DO NOT EXECUTE NOW
|
|
121
|
-
|
|
122
|
-
The following is a reviewed command specification, not a runnable automation added
|
|
123
|
-
to the repository. Execute only after every precondition above and exact artifact
|
|
124
|
-
acceptance. The frozen candidate has an undated changelog and is not a final release candidate.
|
|
125
|
-
If candidate bytes/SHA change, replace the reviewed manifest/hashes only through new
|
|
126
|
-
acceptance; do not edit these values to force an existing approval to match.
|
|
127
|
-
|
|
128
|
-
Run personally in Sheriff's local terminal with shell tracing/recording disabled.
|
|
129
|
-
Use existing local CLI credentials; no API keys, passwords or MFA codes go in chat,
|
|
130
|
-
logs, repository configuration, or agent input. Consult [RubyGems CLI](https://guides.rubygems.org/command-reference/#gem-push),
|
|
131
|
-
[scopes](https://guides.rubygems.org/api-key-scopes/) and
|
|
132
|
-
[MFA](https://guides.rubygems.org/using-mfa-in-command-line/).
|
|
25
|
+
For a Bundler application, add the package you need:
|
|
133
26
|
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
# Set these in your terminal from the final reviewed acceptance packet.
|
|
139
|
-
: "${SOURCE_DIR:?Set SOURCE_DIR to your clean local source worktree}"
|
|
140
|
-
: "${ARTIFACT_DIR:?Set ARTIFACT_DIR to the final accepted artifact directory}"
|
|
141
|
-
: "${CANDIDATE_SHA:?Set CANDIDATE_SHA to the final accepted full commit}"
|
|
142
|
-
: "${CORE_SHA256:?Set CORE_SHA256 to the independently accepted core digest}"
|
|
143
|
-
: "${MCP_SHA256:?Set MCP_SHA256 to the independently accepted MCP digest}"
|
|
144
|
-
source_dir="$(cd "$SOURCE_DIR" && pwd -P)"
|
|
145
|
-
artifact_dir="$(cd "$ARTIFACT_DIR" && pwd -P)"
|
|
146
|
-
candidate_sha="$CANDIDATE_SHA"
|
|
147
|
-
[[ "$CORE_SHA256" =~ ^[0-9a-f]{64}$ && "$MCP_SHA256" =~ ^[0-9a-f]{64}$ ]]
|
|
148
|
-
cd "$source_dir"
|
|
149
|
-
test "$(git rev-parse HEAD)" = "$candidate_sha"
|
|
150
|
-
mise exec -- bin/release-check 0.1.0 "$candidate_sha" # Never bypass.
|
|
151
|
-
# Guard against automatic credential issuance when local authentication is absent.
|
|
152
|
-
# This reads only inside Sheriff's local process and prints no key.
|
|
153
|
-
mise exec -- ruby -rrubygems/config_file -e 'abort "STOP: existing local RubyGems authentication required" if Gem.configuration.rubygems_api_key.to_s.empty?'
|
|
154
|
-
cd "$artifact_dir"
|
|
155
|
-
# Digests must come from the independent acceptance packet, not this directory.
|
|
156
|
-
printf '%s %s\n' "$CORE_SHA256" '5pm-0.1.0.gem' \
|
|
157
|
-
"$MCP_SHA256" '5pm-mcp-0.1.0.gem' | shasum -a 256 -c -
|
|
158
|
-
# Core first. These commands are not authorized until final acceptance/push approval.
|
|
159
|
-
mise exec -- gem push --host https://rubygems.org "$artifact_dir/5pm-0.1.0.gem" </dev/tty
|
|
160
|
-
verification_dir="$(mktemp -d)"
|
|
161
|
-
trap 'rm -rf -- "$verification_dir"' EXIT
|
|
162
|
-
cd "$verification_dir"
|
|
163
|
-
mise exec -- gem fetch 5pm --version 0.1.0 --clear-sources --source https://rubygems.org
|
|
164
|
-
cmp "$artifact_dir/5pm-0.1.0.gem" 5pm-0.1.0.gem
|
|
165
|
-
# Only after the exact core artifact is publicly available:
|
|
166
|
-
mise exec -- gem push --host https://rubygems.org "$artifact_dir/5pm-mcp-0.1.0.gem" </dev/tty
|
|
167
|
-
mise exec -- gem fetch 5pm-mcp --version 0.1.0 --clear-sources --source https://rubygems.org
|
|
168
|
-
cmp "$artifact_dir/5pm-mcp-0.1.0.gem" 5pm-mcp-0.1.0.gem
|
|
169
|
-
SHERIFF_ONLY
|
|
27
|
+
```ruby
|
|
28
|
+
gem "5pm", "~> 0.1.0"
|
|
29
|
+
# Or for MCP applications:
|
|
30
|
+
# gem "5pm-mcp", "~> 0.1.0"
|
|
170
31
|
```
|
|
171
32
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
release dispatches are included. No push commands above were executed by Cora.
|
|
33
|
+
Run `bundle install`. Require `five_pm` for the SDK or `five_pm/mcp`
|
|
34
|
+
for the adapter. The standalone executable is `five-pm-mcp`.
|
|
35
|
+
Both gems support Ruby 3.2+.
|
|
176
36
|
|
|
177
|
-
##
|
|
37
|
+
## Final artifact verification
|
|
178
38
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
39
|
+
| Artifact | SHA-256 |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| `5pm-0.1.0.gem` | `eb2398a8f1c47744a64c0cc1966239af8102970c938165286103019914d30388` |
|
|
42
|
+
| `5pm-mcp-0.1.0.gem` | `db8bd3b842fb1f74337a3037623944e82ed8d0ac3963344297517fe68d703592` |
|
|
43
|
+
|
|
44
|
+
Both downloaded RubyGems artifacts matched these final builds byte for byte. A fresh
|
|
45
|
+
isolated install of `5pm-mcp` resolved both public packages and their dependencies;
|
|
46
|
+
requiring each package loaded version 0.1.0 from that isolated installation.
|
|
47
|
+
Validation passed 149 specs, 98.19% coverage, RuboCop, RBS, isolated package checks
|
|
48
|
+
and hosted CI on Ruby 3.2, 3.3, 3.4 and 4.0.
|
|
49
|
+
|
|
50
|
+
## Historical preparation and future releases
|
|
51
|
+
|
|
52
|
+
The [original provisional manifest](0.1.0-manual-artifacts.json) records an earlier
|
|
53
|
+
source commit and different hashes. It is preserved as historical preparation
|
|
54
|
+
evidence, not the manifest for the published bytes. Its old live-test blockers were
|
|
55
|
+
superseded by the owner's policy decision. Stan confirmed the test User was deleted.
|
|
56
|
+
No new live check was claimed or needed for publication.
|
|
57
|
+
|
|
58
|
+
Live API refreshes are optional and owner-controlled. An active trial/subscription,
|
|
59
|
+
credentials, or fresh live evidence are not release requirements. See
|
|
60
|
+
[cached validation](../cached-validation.md).
|
|
61
|
+
|
|
62
|
+
Do not push 0.1.0 again or move its tag. For a future version, follow the
|
|
63
|
+
[current release guide](../releasing.md), rebuild from its accepted source, and
|
|
64
|
+
verify the exact artifact hashes before and after publication. Future protected
|
|
65
|
+
workflow publishing requires separate configuration of the GitHub environment and
|
|
66
|
+
trusted publishers on both existing RubyGems packages.
|
|
188
67
|
|
|
189
68
|
—
|
|
190
69
|
Stan Carver II
|
data/docs/releasing.md
CHANGED
|
@@ -1,9 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- docs/releasing.md -->
|
|
2
|
+
# Releases
|
|
2
3
|
|
|
3
4
|
`bin/package` builds the gem, checks its exact file inventory and MIT license, then
|
|
4
5
|
loads the installed artifact in a subprocess outside Bundler's source checkout.
|
|
5
6
|
It does not publish. `bin/release-check VERSION FULL_COMMIT_SHA` is also read-only.
|
|
6
7
|
|
|
8
|
+
|
|
9
|
+
## Published releases
|
|
10
|
+
|
|
11
|
+
### 0.2.0
|
|
12
|
+
|
|
13
|
+
Both gems were published on 2026-11-24 by the protected **Release gems** workflow
|
|
14
|
+
through RubyGems trusted publishing, from accepted commit
|
|
15
|
+
`b6325c87f660624c4dac4abf1e3639ca8b673231`, tagged `v0.2.0`.
|
|
16
|
+
|
|
17
|
+
- [5pm 0.2.0](https://rubygems.org/gems/5pm/versions/0.2.0)
|
|
18
|
+
- [5pm-mcp 0.2.0](https://rubygems.org/gems/5pm-mcp/versions/0.2.0)
|
|
19
|
+
- [GitHub release notes](https://github.com/scarver2/5pm-ruby/releases/tag/v0.2.0)
|
|
20
|
+
- [Successful release workflow run](https://github.com/scarver2/5pm-ruby/actions/runs/45461974540)
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
gem install 5pm --version 0.2.0
|
|
24
|
+
# Install this for MCP support; it includes the core SDK:
|
|
25
|
+
gem install 5pm-mcp --version 0.2.0
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Bundler applications use `gem "5pm", "~> 0.2.0"` or
|
|
29
|
+
`gem "5pm-mcp", "~> 0.2.0"`, followed by `bundle install`.
|
|
30
|
+
Version 0.2.0 is immutable: do not repeat its pushes or move its tag.
|
|
31
|
+
|
|
32
|
+
### 0.1.0
|
|
33
|
+
|
|
34
|
+
Both gems were published on 2026-10-30 from accepted commit
|
|
35
|
+
`0a48bcd297a28e0ee7c22be8bc594daad4a88511`, tagged `v0.1.0`.
|
|
36
|
+
|
|
37
|
+
- [5pm 0.1.0](https://rubygems.org/gems/5pm/versions/0.1.0)
|
|
38
|
+
- [5pm-mcp 0.1.0](https://rubygems.org/gems/5pm-mcp/versions/0.1.0)
|
|
39
|
+
- [GitHub release, artifacts and SHA256SUMS](https://github.com/scarver2/5pm-ruby/releases/tag/v0.1.0)
|
|
40
|
+
|
|
41
|
+
The owner completed manual RubyGems publication with security-key approval, core
|
|
42
|
+
first and MCP second. Both public downloads matched the final build byte for byte;
|
|
43
|
+
a fresh isolated installation and loading of both gems succeeded. Offline validation
|
|
44
|
+
passed 149 specs, 98.19% coverage, lint, RBS, package checks and four-version hosted CI.
|
|
45
|
+
See the [completed first-publication record](release-preparation/manual-first-publication.md).
|
|
46
|
+
Version 0.1.0 is immutable: do not repeat its pushes or move its tag. The procedures
|
|
47
|
+
below apply to future versions.
|
|
48
|
+
|
|
7
49
|
## Owner-controlled live validation
|
|
8
50
|
|
|
9
51
|
Stan Carver II decides when another live API check is useful. Live API access,
|
|
@@ -59,23 +101,14 @@ candidate; they are not independent authorization. GitHub's required-reviewer
|
|
|
59
101
|
approval gate and RubyGems' matching OIDC publisher policies enforce authorization.
|
|
60
102
|
|
|
61
103
|
The workflow checks these protections before building or tagging. Missing protection
|
|
62
|
-
or inaccessible environment metadata stops the run. The
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
| --- | --- | --- | --- | --- |
|
|
71
|
-
| `5pm` | `scarver2` | `5pm-ruby` | `release.yml` | `release` |
|
|
72
|
-
| `5pm-mcp` | `scarver2` | `5pm-ruby` | `release.yml` | `release` |
|
|
73
|
-
|
|
74
|
-
These are separate gem registrations using the same workflow identity. For an
|
|
75
|
-
already-owned gem, configure its trusted publisher instead of a pending publisher.
|
|
76
|
-
Recheck both names for availability before publication. Account setup must
|
|
77
|
-
be completed by the authenticated RubyGems owner; repository configuration alone
|
|
78
|
-
does not establish that connection.
|
|
104
|
+
or inaccessible environment metadata stops the run. The first release (0.1.0) used manual publication. Release 0.2.0 was the first
|
|
105
|
+
automated publication through this workflow, confirming that the protected
|
|
106
|
+
environment and both trusted publishers are configured.
|
|
107
|
+
|
|
108
|
+
Each existing gem (`5pm` and `5pm-mcp`) has a RubyGems trusted publisher using
|
|
109
|
+
GitHub owner `scarver2`, repository `5pm-ruby`, workflow `release.yml`, and
|
|
110
|
+
environment `release`. Keep these in sync if the workflow filename or environment
|
|
111
|
+
changes; repository configuration alone does not establish RubyGems authorization.
|
|
79
112
|
|
|
80
113
|
## Shared bin-script conventions
|
|
81
114
|
|
data/lib/five_pm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: 5pm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stan Carver II
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -64,9 +64,11 @@ files:
|
|
|
64
64
|
- docs/cached-validation.md
|
|
65
65
|
- docs/implementation-guides.md
|
|
66
66
|
- docs/implementation-status.md
|
|
67
|
+
- docs/live-qualification-2026-10-30.json
|
|
67
68
|
- docs/live-validation-report.json
|
|
68
69
|
- docs/live-validation.md
|
|
69
70
|
- docs/mcp-plan.md
|
|
71
|
+
- docs/proposals/rubygems-owner-oidc.md
|
|
70
72
|
- docs/release-preparation/0.1.0-manual-artifacts.json
|
|
71
73
|
- docs/release-preparation/limited-first-release-decision.md
|
|
72
74
|
- docs/release-preparation/manual-first-publication.md
|