gitcx 0.1.0a3__tar.gz → 0.1.0a5__tar.gz

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.
Files changed (84) hide show
  1. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/IMPLEMENTATION_PLAN.md +32 -0
  2. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/PKG-INFO +36 -5
  3. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/README.md +34 -3
  4. gitcx-0.1.0a5/docs/alpha-qualification.md +38 -0
  5. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/backend-sources.json +26 -24
  6. gitcx-0.1.0a5/docs/browser.md +53 -0
  7. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/catalog.md +8 -2
  8. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/hosting-acceptance.md +27 -5
  9. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/installation.md +29 -1
  10. gitcx-0.1.0a5/docs/jobs.md +58 -0
  11. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/management-api.md +8 -3
  12. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/migration.md +6 -0
  13. gitcx-0.1.0a5/docs/operations.md +140 -0
  14. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/provisioning.md +1 -1
  15. gitcx-0.1.0a5/docs/pull-requests.md +201 -0
  16. gitcx-0.1.0a5/docs/releases.md +122 -0
  17. gitcx-0.1.0a5/docs/webhooks.md +75 -0
  18. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/pyproject.toml +2 -2
  19. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/pyproject.toml.orig +2 -2
  20. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/scripts/accept_hosting.py +148 -5
  21. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/scripts/check_distribution.py +1 -1
  22. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/__init__.py +20 -0
  23. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/backend.py +2 -1
  24. gitcx-0.1.0a5/src/gitcx/browser_http.py +300 -0
  25. gitcx-0.1.0a5/src/gitcx/browsing.py +180 -0
  26. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/catalog.py +51 -2
  27. gitcx-0.1.0a5/src/gitcx/cli.py +77 -0
  28. gitcx-0.1.0a5/src/gitcx/collaboration_http.py +253 -0
  29. gitcx-0.1.0a5/src/gitcx/jobs.py +192 -0
  30. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/management.py +38 -2
  31. gitcx-0.1.0a5/src/gitcx/merge_policy.py +159 -0
  32. gitcx-0.1.0a5/src/gitcx/merging.py +263 -0
  33. gitcx-0.1.0a5/src/gitcx/operations.py +297 -0
  34. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/provisioning.py +10 -3
  35. gitcx-0.1.0a5/src/gitcx/pull_requests.py +330 -0
  36. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/receive.py +3 -0
  37. gitcx-0.1.0a5/src/gitcx/restoration.py +87 -0
  38. gitcx-0.1.0a5/src/gitcx/retention.py +41 -0
  39. gitcx-0.1.0a5/src/gitcx/snapshots.py +235 -0
  40. gitcx-0.1.0a5/src/gitcx/webhooks.py +229 -0
  41. gitcx-0.1.0a5/tests/browser_fixtures.py +23 -0
  42. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_backend_profile.py +19 -1
  43. gitcx-0.1.0a5/tests/test_browser_http.py +149 -0
  44. gitcx-0.1.0a5/tests/test_browsing.py +111 -0
  45. gitcx-0.1.0a5/tests/test_collaboration_http.py +195 -0
  46. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_hosting_acceptance.py +10 -0
  47. gitcx-0.1.0a5/tests/test_jobs.py +139 -0
  48. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_management.py +20 -0
  49. gitcx-0.1.0a5/tests/test_merge_http.py +161 -0
  50. gitcx-0.1.0a5/tests/test_merge_plans.py +127 -0
  51. gitcx-0.1.0a5/tests/test_merge_policy.py +77 -0
  52. gitcx-0.1.0a5/tests/test_merge_publication.py +220 -0
  53. gitcx-0.1.0a5/tests/test_operations.py +136 -0
  54. gitcx-0.1.0a5/tests/test_operations_cli.py +55 -0
  55. gitcx-0.1.0a5/tests/test_pull_requests.py +219 -0
  56. gitcx-0.1.0a5/tests/test_restoration.py +72 -0
  57. gitcx-0.1.0a5/tests/test_snapshots.py +115 -0
  58. gitcx-0.1.0a5/tests/test_webhooks.py +147 -0
  59. gitcx-0.1.0a3/docs/releases.md +0 -58
  60. gitcx-0.1.0a3/src/gitcx/cli.py +0 -23
  61. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/LICENSE +0 -0
  62. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/authentication.md +0 -0
  63. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/permissions.md +0 -0
  64. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/receive.md +0 -0
  65. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/ref-policy.md +0 -0
  66. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/docs/smart-http.md +0 -0
  67. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/scripts/check_release.py +0 -0
  68. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/__main__.py +0 -0
  69. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/authentication.py +0 -0
  70. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/branch_policy.py +0 -0
  71. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/domain.py +0 -0
  72. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/git_http.py +0 -0
  73. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/permissions.py +0 -0
  74. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/py.typed +0 -0
  75. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/src/gitcx/ref_policy.py +0 -0
  76. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_authentication.py +0 -0
  77. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_catalog.py +0 -0
  78. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_domain.py +0 -0
  79. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_git_http.py +0 -0
  80. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_permissions.py +0 -0
  81. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_provisioning.py +0 -0
  82. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_receive.py +0 -0
  83. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_receive_http.py +0 -0
  84. {gitcx-0.1.0a3 → gitcx-0.1.0a5}/tests/test_ref_policy.py +0 -0
@@ -1,5 +1,37 @@
1
1
  # Gitcx implementation plan
2
2
 
3
+ ## CAT-11 collaboration foundation (2 December 2026)
4
+
5
+ [Pull-request services](docs/pull-requests.md) persist reviewed native commit
6
+ snapshots, comments and revision-bound reviews with transactional audit/outbox
7
+ records. Versioned merge settings distinguish Git-default (the initial default),
8
+ fast-forward-only, no-fast-forward and squash policies. Branch restrictions
9
+ intersect and stale tips/policies invalidate approvals. Escaped browser views
10
+ and authenticated JSON routes expose this foundation. Checked publication
11
+ requires the qualified bare
12
+ merge API from Gitdx DX-34. The published backend selection remains unchanged
13
+ until its separate release/integration gate.
14
+
15
+ ## CAT-12 durable operations (1 December 2026)
16
+
17
+ Current source adds explicit bounded job batches with per-consumer leases,
18
+ restart/retry/dead-letter outcomes, a monotone activity projection and scoped
19
+ administrator audit/job queries. Optional signed webhooks persist secret-free
20
+ configuration and independent progress; selected origin/numeric-peer policy,
21
+ credential providers and finite HTTP deadlines bound outgoing delivery. See
22
+ [jobs](docs/jobs.md) and [webhooks](docs/webhooks.md). Schema upgrades are
23
+ transactional; deployment scheduling and retention remain operational choices.
24
+
25
+ ## CAT-10 repository browser (1 December 2026)
26
+
27
+ Current source adds bounded native branch/tree/blob/commit/comparison reads and
28
+ server-rendered pages through the existing optional HTTP app. Catalog/token
29
+ authorization precedes storage and is rechecked before disclosure. Byte paths,
30
+ escaped text, script-free pages and sandboxed attachment responses preserve the
31
+ untrusted-content boundary. See [browser contracts](docs/browser.md) for exact
32
+ limits, credential handling and remaining large-repository work. Production
33
+ qualification and publication remain separate.
34
+
3
35
  ## CAT-09 local acceptance (27 November 2026)
4
36
 
5
37
  The repeatable [two-user runner](docs/hosting-acceptance.md) uses temporary state
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitcx
3
- Version: 0.1.0a3
3
+ Version: 0.1.0a5
4
4
  Summary: A Git-compatible hosting platform powered by gitdx
5
5
  Author: ellainng
6
6
  Author-email: ellainng <299958882+ellainng@users.noreply.github.com>
7
7
  License-Expression: MIT
8
8
  License-File: LICENSE
9
- Requires-Dist: gitdx==0.1.0a2
9
+ Requires-Dist: gitdx==0.1.0a3
10
10
  Requires-Dist: expose-api==0.2.0 ; extra == 'http'
11
11
  Requires-Python: >=3.14
12
12
  Project-URL: Repository, https://github.com/wispsy/gitcx
@@ -16,14 +16,19 @@ Description-Content-Type: text/markdown
16
16
 
17
17
  # gitcx
18
18
 
19
- Developer preview: **0.1.0a3**, paired with published `gitdx==0.1.0a2`.
19
+ Developer preview source candidate: **0.1.0a5**, paired with published `gitdx==0.1.0a3`.
20
+ The [release history](https://github.com/wispsy/gitcx/releases) records published
21
+ versions; a source version label does not establish publication.
20
22
  The selected scope includes catalog storage, repository provisioning,
21
23
  authentication, the management API, bounded read-only smart HTTP and
22
- SHA-256-only hosted receive on qualified Linux storage.
24
+ SHA-256-only hosted receive and checked merges on qualified Linux storage,
25
+ repository browsing, collaboration/reviews and explicitly selected durable jobs.
23
26
  Production qualification is unfinished. [Preview notes](docs/releases.md)
24
27
  record the supported scope and remaining gates.
25
28
  The project was renamed from Gittycat to avoid the existing npm command name.
26
- Use `pip install "gitcx[http]==0.1.0a3"`, `import gitcx` and the `gitcx` command.
29
+ The published collaboration preview is `pip install "gitcx[http]==0.1.0a4"`;
30
+ the operations candidate is available from source until separately published.
31
+ Use `import gitcx` and the `gitcx` command.
27
32
  See [migration instructions](docs/migration.md) for existing installations.
28
33
  [Wispsy Releases](https://github.com/orgs/wispsy/projects/31)
29
34
  tracks publication separately from current development.
@@ -38,6 +43,20 @@ qualification targets; public deployment remains a later milestone.
38
43
 
39
44
  Source development does not imply a published package or deployed service.
40
45
 
46
+ Current source also provides a [repository browser](docs/browser.md) at `/repos`
47
+ with escaped file, branch, commit and comparison views, bounded text previews
48
+ and isolated attachment downloads. It shares the existing repository/token
49
+ authorization and supports both native object formats.
50
+
51
+ [Pull-request pages and services](docs/pull-requests.md) persist reviewed base/head
52
+ snapshots, comments and fresh approvals, with versioned allowed/default merge
53
+ methods. Git-default, fast-forward-only, no-fast-forward and squash remain
54
+ distinct choices. Read-only pages show escaped comparisons and discussion;
55
+ Bearer-authenticated JSON routes manage proposals, reviews and settings.
56
+ Checked publication revalidates current reviews, permissions, protections and
57
+ both reviewed tips through the qualified bare merge engine. Previews show exact
58
+ result trees/parents; durable outcomes preserve explicit interruption recovery.
59
+
41
60
  The first implementation provides immutable platform records, validated slugs
42
61
  and opaque storage IDs, an explicit Git backend protocol and deny-by-default
43
62
  repository permissions. [Permission contracts](docs/permissions.md) describe
@@ -48,6 +67,18 @@ same read policy as repository access.
48
67
  repository metadata, permissions, credential metadata and a transactional audit
49
68
  outbox.
50
69
 
70
+ [Durable workers and audit queries](docs/jobs.md) add bounded batches,
71
+ restartable leases/retries and an idempotent local activity projection. Worker
72
+ execution is explicitly selected; no background service starts automatically.
73
+ Optional [signed webhooks](docs/webhooks.md) use explicit destination/IP policy,
74
+ caller-supplied credentials and independent durable delivery receipts.
75
+
76
+ [Single-node operations](docs/operations.md) provide verified maintenance-window
77
+ snapshots, isolated restores requiring fresh tokens with webhooks disabled,
78
+ explicit quota admission and durable writer reservations. Local commands inspect
79
+ and reconcile maintenance and propose retained snapshots without deleting them.
80
+ Snapshot creation requires exclusion of every managed and external writer.
81
+
51
82
  [Managed provisioning](docs/provisioning.md) now connects catalog permissions to
52
83
  real Gitdx bare repositories with pending/ready recovery and an immutable backend
53
84
  release.
@@ -1,13 +1,18 @@
1
1
  # gitcx
2
2
 
3
- Developer preview: **0.1.0a3**, paired with published `gitdx==0.1.0a2`.
3
+ Developer preview source candidate: **0.1.0a5**, paired with published `gitdx==0.1.0a3`.
4
+ The [release history](https://github.com/wispsy/gitcx/releases) records published
5
+ versions; a source version label does not establish publication.
4
6
  The selected scope includes catalog storage, repository provisioning,
5
7
  authentication, the management API, bounded read-only smart HTTP and
6
- SHA-256-only hosted receive on qualified Linux storage.
8
+ SHA-256-only hosted receive and checked merges on qualified Linux storage,
9
+ repository browsing, collaboration/reviews and explicitly selected durable jobs.
7
10
  Production qualification is unfinished. [Preview notes](docs/releases.md)
8
11
  record the supported scope and remaining gates.
9
12
  The project was renamed from Gittycat to avoid the existing npm command name.
10
- Use `pip install "gitcx[http]==0.1.0a3"`, `import gitcx` and the `gitcx` command.
13
+ The published collaboration preview is `pip install "gitcx[http]==0.1.0a4"`;
14
+ the operations candidate is available from source until separately published.
15
+ Use `import gitcx` and the `gitcx` command.
11
16
  See [migration instructions](docs/migration.md) for existing installations.
12
17
  [Wispsy Releases](https://github.com/orgs/wispsy/projects/31)
13
18
  tracks publication separately from current development.
@@ -22,6 +27,20 @@ qualification targets; public deployment remains a later milestone.
22
27
 
23
28
  Source development does not imply a published package or deployed service.
24
29
 
30
+ Current source also provides a [repository browser](docs/browser.md) at `/repos`
31
+ with escaped file, branch, commit and comparison views, bounded text previews
32
+ and isolated attachment downloads. It shares the existing repository/token
33
+ authorization and supports both native object formats.
34
+
35
+ [Pull-request pages and services](docs/pull-requests.md) persist reviewed base/head
36
+ snapshots, comments and fresh approvals, with versioned allowed/default merge
37
+ methods. Git-default, fast-forward-only, no-fast-forward and squash remain
38
+ distinct choices. Read-only pages show escaped comparisons and discussion;
39
+ Bearer-authenticated JSON routes manage proposals, reviews and settings.
40
+ Checked publication revalidates current reviews, permissions, protections and
41
+ both reviewed tips through the qualified bare merge engine. Previews show exact
42
+ result trees/parents; durable outcomes preserve explicit interruption recovery.
43
+
25
44
  The first implementation provides immutable platform records, validated slugs
26
45
  and opaque storage IDs, an explicit Git backend protocol and deny-by-default
27
46
  repository permissions. [Permission contracts](docs/permissions.md) describe
@@ -32,6 +51,18 @@ same read policy as repository access.
32
51
  repository metadata, permissions, credential metadata and a transactional audit
33
52
  outbox.
34
53
 
54
+ [Durable workers and audit queries](docs/jobs.md) add bounded batches,
55
+ restartable leases/retries and an idempotent local activity projection. Worker
56
+ execution is explicitly selected; no background service starts automatically.
57
+ Optional [signed webhooks](docs/webhooks.md) use explicit destination/IP policy,
58
+ caller-supplied credentials and independent durable delivery receipts.
59
+
60
+ [Single-node operations](docs/operations.md) provide verified maintenance-window
61
+ snapshots, isolated restores requiring fresh tokens with webhooks disabled,
62
+ explicit quota admission and durable writer reservations. Local commands inspect
63
+ and reconcile maintenance and propose retained snapshots without deleting them.
64
+ Snapshot creation requires exclusion of every managed and external writer.
65
+
35
66
  [Managed provisioning](docs/provisioning.md) now connects catalog permissions to
36
67
  real Gitdx bare repositories with pending/ready recovery and an immutable backend
37
68
  release.
@@ -0,0 +1,38 @@
1
+ # Single-node forge qualification
2
+
3
+ The 0.1.0a5 source candidate builds on published Gitcx 0.1.0a4 and selects
4
+ published Gitdx 0.1.0a3 / optional Expose API 0.2.0 on Python 3.14+. This profile
5
+ qualifies the selected single-node forge source; it does not establish public
6
+ production hosting. Package publication and deployment remain separate gates.
7
+
8
+ | Surface | Selected support and evidence |
9
+ | --- | --- |
10
+ | Installation | Source plus independent wheel/sdist environments outside the checkout; exact backend index provenance, artifact hashes and core no-helper/no-HTTP-import startup. |
11
+ | Platforms | Linux, macOS and Windows source/artifact matrices; qualified Linux descriptor storage is required for hosted writes. Other POSIX tests can exercise mechanisms without enabling public write support. |
12
+ | Object formats | Native SHA-1/SHA-256 provisioning, read serving and offline snapshots/restores; hosted receive and checked publication require native SHA-256. |
13
+ | Git transport | Real stock-Git clone/fetch in smart HTTP protocols 0/1/2, branches, tags and empty repositories; bounded receive and explicit policy/profile refusals. No cross-format transport claim. |
14
+ | Collaboration | Two authorized users and a denied outsider; native pushes/fetches, reviews, Git-default/ff-only/no-ff/squash, exact native trees/parents and preserved source refs after restoration. |
15
+ | Browser | Real HTTP clients read restored private HTML pages; escaped script-like titles and isolation headers survive restore, while outsiders see concealed refusal. Unit/HTTP suites cover byte paths, malicious HTML, isolated downloads and bounded rendering. |
16
+ | Credentials and delivery | Restored old tokens refuse, fresh local tokens inherit existing grants, raw tokens stay out of catalog/client config, and disabled webhooks cannot claim history or invoke a supplied transport. |
17
+ | Recovery and operation | Catalog migrations/rollback, pending provisioning, checked receive/merge receipts and explicit unknown outcomes; maintenance with active users, disk pressure, stale reservations, process death/fork, isolated restore and retention proposals. |
18
+
19
+ The installed driver retains sanitized JSON receipts identifying artifact hashes,
20
+ package/source selection, native Git version, selected profile, completed checks
21
+ and limits. Linux receipts say `hosted-sha256-linux`; other platforms say
22
+ `read-only-native`. CI artifacts retain these receipts for fourteen days. A
23
+ passing POSIX mechanism test is never relabeled as supported macOS hosting.
24
+
25
+ The acceptance fixture selects 16 MiB Git request bytes, 128 receive commands,
26
+ 30-second engine deadlines, a 4 GiB admission capacity and 16 MiB free-space
27
+ margin. The default engine filesystem reservation is 768 MiB per hosted mutation.
28
+ Browser defaults bound graph/tree/content and rendered output independently.
29
+ Snapshot limits, catalog/provision/worker reserves, retained roots and operating
30
+ capacity are explicit selections. Fixture capacity is not a production sizing
31
+ recommendation; [operations](operations.md) states the external-writer contract.
32
+
33
+ No SSH, LFS, registries, hosted CI, distributed storage, automatic retention
34
+ deletion, operating-system hard quotas, untrusted SHA-1, unqualified-platform
35
+ writes or atomic files-ref visibility is advertised. An interrupted cross-store
36
+ operation can remain unknown and require owner reconciliation. Production
37
+ application server, reverse proxy, TLS, host/domain, monitoring and rollback
38
+ require a separate deployment proposal and explicit authorization.
@@ -1,17 +1,38 @@
1
1
  {
2
2
  "gitdx": {
3
3
  "repository": "https://github.com/wispsy/gitdx",
4
- "commit": "5564067cc8becb1d5341fc56e271d7360d229e21",
5
- "qualification": "https://github.com/wispsy/gitdx/actions/runs/46064002159",
6
- "profile": "native files-ref storage, bounded upload-pack and SHA-256-only untrusted receive with host publication guards on qualified Linux",
4
+ "commit": "0d3d15742f0e3d479a62096444f034ed6460440a",
5
+ "qualification": "https://github.com/wispsy/gitdx/actions/runs/47073716635",
6
+ "profile": "native files-ref storage, bounded upload-pack, four-policy bare merge planning/guarded publication and SHA-256-only untrusted receive on qualified Linux",
7
7
  "required_capabilities": [
8
8
  "objects.read",
9
9
  "objects.write",
10
10
  "refs.read",
11
- "refs.update"
11
+ "refs.update",
12
+ "merge.bare-plans",
13
+ "merge.bare-publication"
12
14
  ],
13
- "version": "0.1.0a2",
15
+ "version": "0.1.0a3",
14
16
  "published": {
17
+ "version": "0.1.0a3",
18
+ "commit": "0d3d15742f0e3d479a62096444f034ed6460440a",
19
+ "qualification": "https://github.com/wispsy/gitdx/actions/runs/47073716635",
20
+ "pypi": "https://pypi.org/project/gitdx/0.1.0a3/",
21
+ "artifacts": [
22
+ {
23
+ "filename": "gitdx-0.1.0a3-py3-none-any.whl",
24
+ "bytes": 160728,
25
+ "sha256": "d23b3aed0bb08ddbf64d67f5bee248782e87d4f8476e0c4380e102bbfcee2221"
26
+ },
27
+ {
28
+ "filename": "gitdx-0.1.0a3.tar.gz",
29
+ "bytes": 297019,
30
+ "sha256": "4efabc484c986462c36d136feb1d31b35f29e3f63025f41e4a9828d83520058b"
31
+ }
32
+ ]
33
+ },
34
+ "source_kind": "pypi",
35
+ "previous_published": {
15
36
  "version": "0.1.0a2",
16
37
  "commit": "5564067cc8becb1d5341fc56e271d7360d229e21",
17
38
  "qualification": "https://github.com/wispsy/gitdx/actions/runs/46064002159",
@@ -29,25 +50,6 @@
29
50
  }
30
51
  ]
31
52
  },
32
- "source_kind": "pypi",
33
- "previous_published": {
34
- "version": "0.1.0a1",
35
- "commit": "3386e6b0b0cd4c99c7ff208ba5e127b6c15ac3a8",
36
- "qualification": "https://github.com/wispsy/gitdx/actions/runs/45495562313",
37
- "pypi": "https://pypi.org/project/gitdx/0.1.0a1/",
38
- "artifacts": [
39
- {
40
- "filename": "gitdx-0.1.0a1-py3-none-any.whl",
41
- "bytes": 101327,
42
- "sha256": "a4cdada6eafc93e2c58ac1c9558cfe16b8bd7e2e8193c6a10ee4f50c8307e30b"
43
- },
44
- {
45
- "filename": "gitdx-0.1.0a1.tar.gz",
46
- "bytes": 178361,
47
- "sha256": "94268e46bf7fd8e2aeee97a3b43ccbd365ddfff02015d18439f02a23848d20bd"
48
- }
49
- ]
50
- },
51
53
  "previous_source": {
52
54
  "version": "0.1.0a1",
53
55
  "commit": "8765b1fa9d3bc664fd551b15912e5455174f1983",
@@ -0,0 +1,53 @@
1
+ # Repository browser
2
+
3
+ Source development adds `BrowserService`: read-only branches, commit/tree/blob
4
+ snapshots and two-commit comparisons through the published Gitdx engine. It
5
+ supports native SHA-1 and SHA-256 repositories. The optional HTTP app adds HTML
6
+ routes at `/` and `/repos`, with repository pages under `/repos/<opaque-id>`.
7
+
8
+ Every operation uses catalog read authorization before opening managed storage,
9
+ hides pending/private repositories, and refreshes credential scope, expiry and
10
+ revocation. Bounded preparation holds catalog exclusion; expiry is checked again
11
+ before returning. Trusted local principals and anonymous public reads use the
12
+ same repository policy as the management and Git interfaces.
13
+
14
+ Select `HEAD`, a full `refs/heads/…` or `refs/tags/…` name, or a known full commit
15
+ ID. A known commit ID selects any stored commit in the authorized repository;
16
+ this is not a reachability filter. Returned views pin links to immutable IDs.
17
+ Git byte paths traverse tree objects without opening host files. Symlinks are
18
+ displayed as blob bytes; gitlinks never trigger submodule access. Diffs compare
19
+ explicit trees; commit views compare against the first parent (empty for roots).
20
+
21
+ `BrowserLimits` defaults to 1 MiB per object, 8 MiB aggregate object reads, 4096
22
+ reads, 1000 directory entries/changed paths/branches, depth 32, path length 4096,
23
+ 64 KiB text previews, 2 MiB rendered output and 500,000 diff work units. Pack
24
+ reads also enforce finite index/pack/scan/delta budgets. Limits refuse oversized
25
+ work; large-object streaming and pagination through large trees are later work.
26
+ No Git executable, filters, hooks or external UI dependency runs in this path.
27
+
28
+ ## HTML navigation and downloads
29
+
30
+ Repository pages link files, branches, commits, first-parent changes and explicit
31
+ base/head comparisons. Tree/blob queries use `revision` and lowercase byte-hex
32
+ `path`, preserving names that are not UTF-8. Links pin the resolved full commit
33
+ ID. Empty repositories show the branch page. Repository listing uses 50-item
34
+ cursor pages; individual directories and branch lists refuse their configured
35
+ hard limit. Comparisons show two complete tree snapshots, rather than computing
36
+ a merge-base or predicting a merge result.
37
+
38
+ Names, messages, paths and patch bytes are escaped as HTML. Invalid UTF-8 and
39
+ control/directional characters are displayed with visible escapes. Binary data
40
+ and text beyond 64 KiB have no inline preview. `/download` returns a fixed-name
41
+ attachment with `application/octet-stream`, `nosniff` and a sandbox CSP; active
42
+ content is never rendered as a document. HTML has no scripts, a restrictive CSP,
43
+ no-store caching, no-referrer and authorization-aware variation. Semantic tables,
44
+ labelled forms, skip navigation and visible keyboard focus support navigation.
45
+
46
+ Anonymous browsing lists and opens public repositories. Private URLs conceal
47
+ missing/denied resources with the same 404 response before storage lookup.
48
+ Optional Bearer or Basic credentials use the existing token parser and are
49
+ checked before preparation and disclosure. Basic authentication is usable by
50
+ explicit clients/browser credential handling; this milestone adds no interactive
51
+ login, cookies or token-in-URL workflow. The local listener remains loopback-only.
52
+ Four browser preparations can be admitted by default, separately from Git
53
+ transfer capacity; select `browser_limits` and `max_browser_reads` in `create_app`.
@@ -38,8 +38,14 @@ legacy metadata/verifiers without scope rows cannot authenticate as tokens.
38
38
 
39
39
  `pending_jobs(limit, after)` and `acknowledge_job(id)` provide restart-safe bounded
40
40
  outbox envelopes and idempotent acknowledgement. Delivery can occur at least once;
41
- consumers must be idempotent. Worker leases/retries, execution and external delivery
42
- remain CAT-12 work. No worker or network service starts automatically.
41
+ consumers must be idempotent. Schema 7 adds [explicit workers](jobs.md) with
42
+ independent consumer leases, retries, dead letters and a rebuildable activity
43
+ projection. No worker or network service starts automatically.
44
+
45
+ Schema 8 persists [optional webhook](webhooks.md) configuration without signing
46
+ keys, including its repository, creator, destination and historical cursor.
47
+ Consumer receipts remain independent of local acknowledgement. The creator's
48
+ current administrator permission is checked before each bounded delivery.
43
49
 
44
50
  Pages contain at most 100 results. New databases use owner-only file permissions;
45
51
  static database/sidecar symlinks are refused. SQLite manages database transaction
@@ -1,7 +1,7 @@
1
1
  # Local two-user hosting acceptance
2
2
 
3
3
  Install the selected preview profile with `uv sync --locked --all-extras`.
4
- The published Gitdx 0.1.0a2 artifacts, source commit and released Expose API
4
+ The published Gitdx 0.1.0a3 artifacts, source commit and released Expose API
5
5
  source/version are recorded in [backend-sources.json](backend-sources.json).
6
6
  The runner verifies the installed engine version and package-index provenance,
7
7
  refusing direct Git/archive installations. Its source commit is linked through
@@ -16,8 +16,13 @@ uv run --frozen --all-extras python scripts/accept_hosting.py --output /tmp/host
16
16
  The runner creates a temporary catalog, two private repositories, two authorized
17
17
  accounts and an outsider, and binds only an ephemeral loopback listener. Real
18
18
  stock Git clients clone an empty SHA-256 repository, create/commit/push main,
19
- push a feature branch, and fetch it as the second user. A new app/catalog/backend
20
- lifecycle on the same durable data accepts another feature push; the second
19
+ push a feature branch, and fetch it as the second user. Managed quota admission
20
+ is configured for the temporary root. Maintenance refuses an active user's HTTP
21
+ request, then all fixture writers/listeners stop. A verified catalog/Git snapshot
22
+ is restored into a fresh isolated root; all three old tokens refuse and fresh
23
+ tokens are issued locally. Disabled webhooks neither claim historical events
24
+ nor call the supplied transport. A new app/catalog/backend lifecycle on this
25
+ restored data accepts another feature push; the second
21
26
  client fetches the resulting tip. Protected-main and outsider pushes fail while
22
27
  the checked refs stay unchanged. Outsiders cannot discover or clone private
23
28
  repositories. Native fsck verifies server and client storage after the workflow.
@@ -51,8 +56,25 @@ source checkout. The installed runner executes from the qualification bundle
51
56
  and imports only its selected environment's packages.
52
57
 
53
58
  This prototype does not qualify untrusted SHA-1, unqualified-platform writes,
54
- atomic files-ref visibility, global quotas or public deployment. Production
55
- TLS/proxy selection, complete catalog/Git backup, destructive retention and
59
+ atomic files-ref visibility, filesystem hard quotas or public deployment. Production
60
+ server/TLS/proxy selection, destructive retention and
56
61
  future publication remain separately selected gates. This developer preview
57
62
  leaves production qualification unfinished. [Hosted receive](receive.md)
58
63
  documents the per-ref/unknown outcome and recovery contracts.
64
+
65
+ ## Checked merge milestone
66
+
67
+ The current driver previews all four methods through the real API in both native
68
+ formats and checks stable revision/target identity across restart. The qualified
69
+ Linux write profile performs Alice-create/Bob-review checked merges for
70
+ Git-default, ff-only, no-ff and squash. Native Git compares exact trees and parent
71
+ topology, including independent base edits in divergent squash/default cases;
72
+ source refs stay unchanged. Stale previews, missing approvals and outsider
73
+ publication are refused. Wheel/sdist runs use the same driver and selected
74
+ published backend; non-Linux receipts remain explicitly read-only.
75
+
76
+ The selected admission profile reserves a 4 GiB temporary capacity budget and
77
+ 16 MiB free-space safety margin. Both object formats retain native Git fsck and
78
+ fetch checks after restoration. No production capacity is inferred from these
79
+ fixture values. [Operations](operations.md) documents the explicit offline and
80
+ external-writer contract, crash reservations, isolated restore and retention.
@@ -1,6 +1,6 @@
1
1
  # Qualified installation profile
2
2
 
3
- Developer preview 0.1.0a3 selects published `gitdx==0.1.0a2` in `pyproject.toml`
3
+ Source candidate 0.1.0a5 selects published `gitdx==0.1.0a3` in `pyproject.toml`
4
4
  and `uv.lock`. [backend-sources.json](backend-sources.json) records the published
5
5
  version, source, release evidence and exact artifact hashes. Installed acceptance
6
6
  requires the selected version from a package-index installation and refuses
@@ -56,3 +56,31 @@ exercise descriptor mechanisms without enabling that public platform profile;
56
56
  Windows qualifies early refusal. Both hashes retain trusted-local provisioning
57
57
  and read serving. The receive suite checks real stock-Git initial/subsequent
58
58
  pushes, policy/credential races, unknown outcomes and prepared/committed recovery.
59
+
60
+ ## macOS CI runner selection
61
+
62
+ The source and installed matrices keep the existing `macos-latest` check/artifact
63
+ keys and select `macos-15-intel` for regular pull-request/main checks, following
64
+ hosted arm64 capacity cancellations. All six required checks retain their tests.
65
+ The Checks workflow also supports manual `macos_runner=macos-latest` selection
66
+ for explicit arm64 qualification when capacity is available. Local arm64
67
+ qualification uses the same source and `check_distribution.py` entry points.
68
+ Workflow logs identify the actual image; a display/check key is not a hardware
69
+ claim. Python and dependency pins remain unchanged. Supported
70
+ runner labels are documented in the [GitHub runner reference](https://docs.github.com/en/actions/reference/runners/github-hosted-runners).
71
+
72
+ The backend must expose both selected bare merge capabilities before managed
73
+ storage is reported ready. Actual published artifact hashes and source/release
74
+ qualification are recorded in `backend-sources.json`. Operations added after the
75
+ preview release are source work until separately published. Installed suites
76
+ qualify snapshot/restore, revoked credentials, disabled delivery, quota admission,
77
+ maintenance, retention proposals and restored two-user native workflows through
78
+ the same artifact installation boundary.
79
+
80
+ Windows installed qualification has a twenty-five-minute job budget. One
81
+ artifact's 159-test suite measured 338 seconds before the original ten-minute
82
+ limit interrupted the second artifact; the complete 174-test operations pair
83
+ then passed in 19m56s. The selected limit retains headroom for runner variance.
84
+ Both complete artifact suites and
85
+ native/HTTP acceptance remain required. Source jobs and Linux/macOS installed
86
+ budgets remain ten minutes; existing check names and coverage are unchanged.
@@ -0,0 +1,58 @@
1
+ # Durable jobs and audit queries
2
+
3
+ Schema 7 adds per-consumer leases, retry/dead-letter outcomes and a rebuildable
4
+ resource-activity projection. Audit/outbox envelopes remain transactional with
5
+ catalog mutations. Schema-6 catalogs upgrade in one SQLite transaction; failed
6
+ DDL rolls back version and rows. Back up before upgrading. Older binaries refuse
7
+ the new schema; rollback uses the backup.
8
+
9
+ Workers are explicitly invoked trusted local operations. Each process/thread
10
+ owns a separate `Catalog`. Nothing starts at import, HTTP startup or installation.
11
+
12
+ ```python
13
+ from gitcx import ActivityProjection, Catalog, JobQueue, Worker
14
+
15
+ with Catalog("data/catalog.sqlite3") as catalog:
16
+ projection = ActivityProjection(catalog)
17
+ outcomes = Worker(JobQueue(catalog), {
18
+ "catalog.changed": projection,
19
+ "repository.index": projection,
20
+ }).run_once()
21
+ ```
22
+
23
+ Claims serialize in SQLite and receive unique lease tokens. Defaults: 50 jobs
24
+ per batch, a 30-second lease, five attempts, exponential delays from five seconds
25
+ capped at one hour. Expired claims recover after restart; stale/expired completion
26
+ cannot acknowledge a new claim. Completion and local acknowledgement commit
27
+ together. Interrupted final attempts become dead letters without blocking later
28
+ jobs. Trusted administrators may `retry_dead`, resetting the attempt budget and
29
+ retaining the stable job/idempotency key.
30
+
31
+ The `local` consumer acknowledges the legacy outbox. Named consumers retain
32
+ independent receipts and may consume locally acknowledged events. Select the
33
+ same name, resource/cursor and policy across restarts. A new name starts a new
34
+ consumer and may repeat history. Avoid mixing direct legacy acknowledgement
35
+ with a running local worker.
36
+
37
+ Delivery is at least once. External effects must use `claim.idempotency_key`:
38
+ crashes between an effect and completion can repeat it. `ActivityProjection` is
39
+ monotone and idempotent under repeated/out-of-order events. It indexes the last
40
+ repository event, never Git branch authority or full-text content. Audit/job and
41
+ projection queries constrain event kind as well as opaque ID, so an account or
42
+ credential with the same ID cannot enter a repository's activity. Handlers bound
43
+ their own time/effects; leases provide neither cancellation nor exactly-once
44
+ execution. No hook, helper or network call runs in the default projection.
45
+
46
+ Only fixed outcome codes persist: claimed, succeeded, retryable, permanent,
47
+ exhausted. Exception text, headers, secrets and response bodies are excluded.
48
+ Ordinary exceptions retry; `PermanentJobError` refuses work. Process interruption
49
+ leaves a recoverable lease. Trusted explicit dead-letter retry resets the stored
50
+ attempt count; this milestone retains the current outcome rather than a complete
51
+ per-attempt execution log.
52
+
53
+ Administrator-only management routes `GET /api/repositories/<id>/audit` and
54
+ `/jobs` take `limit` (1–100) and nonnegative sequence `after`. Jobs also select
55
+ `consumer`. Results exclude lease tokens/verifiers, refresh tokens and share the
56
+ concealed repository policy. `repository_activity` supplies the authorized local
57
+ projection query. Retention, compaction and a scheduled worker service remain
58
+ operational policy work. Outbound delivery is a separately selected adapter.
@@ -26,6 +26,8 @@ running after the acceptance tests.
26
26
  | POST /api/repositories | Reserve and provision a managed bare repository |
27
27
  | GET /api/repositories/{id} | Authorized open and capability/format summary |
28
28
  | POST /api/repositories/{id}/recover | Authorized pending/ready recovery |
29
+ | GET /api/repositories/{id}/audit?limit=50&after=0 | Administrator audit events with an exclusive sequence cursor |
30
+ | GET /api/repositories/{id}/jobs?limit=50&after=0 | Administrator delivery state; optional named consumer |
29
31
  | PUT /api/repositories/{id}/grants/{user_id} | Set read/write/admin collaborator permission |
30
32
  | DELETE /api/repositories/{id}/grants/{user_id} | Revoke a collaborator grant |
31
33
  | POST /api/organizations | Create an organization and its owner membership |
@@ -66,9 +68,12 @@ failures remain hidden and recoverable. Synchronous local catalog/storage work
66
68
  runs inline and is bounded; long/background jobs and public concurrency
67
69
  qualification remain later work. Storage errors return redacted 503 responses.
68
70
 
69
- Only JSON control routes exist. `/repo.git/info/refs`, upload-pack/receive-pack
70
- and Git packet/binary serializers are not registered. Account login/token issuance
71
- remain local bootstrap operations. Real loopback HTTP tests qualify both hashes,
71
+ The same application also installs [repository HTML views](browser.md) under
72
+ `/repos` and [smart HTTP](smart-http.md) under `/git/<opaque-id>.git`, including
73
+ the separately gated [hosted receiver](receive.md). These have their own content
74
+ types, budgets and optional anonymous public-read policy. JSON API routes retain
75
+ mandatory Bearer authentication. Account login/token issuance remain local
76
+ bootstrap operations. Real loopback HTTP tests qualify both hashes,
72
77
  two collaborators and an outsider, scope/expiry/revocation, limits, recovery,
73
78
  organization roles, concealed discovery and lifespan restart. Installed wheel
74
79
  and sdist pairs run the same HTTP suite outside source trees on all CI platforms.
@@ -37,6 +37,12 @@ Catalogs opened explicitly through Python keep their existing filesystem paths.
37
37
  The namespace migration does not require rebuilding repositories or issuing new
38
38
  tokens. Stop the old server before starting `gitcx` against the same data root.
39
39
 
40
+ Later source development upgrades the catalog transactionally through schemas 7
41
+ (durable jobs) and 8 (optional webhook configuration). Ownership receipts,
42
+ credentials and native Git storage keep their formats. Back up before the schema
43
+ upgrade; an older binary refuses a newer catalog, so binary rollback requires
44
+ restoring the pre-upgrade backup.
45
+
40
46
  Gitdx remains pinned to published `gitdx==0.1.0a2`; the optional HTTP extra keeps
41
47
  Expose API 0.2.0. The release uses `release.yaml`, the `pypi` environment and the
42
48
  Trusted Publisher for `wispsy/gitcx`. Earlier `gittycat` PyPI distributions and