retcon 0.0.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 +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/lib/retcon/version.rb +5 -0
- data/lib/retcon.rb +9 -0
- metadata +51 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a2c5f3e0a11c40992f3c13611fd891c9c1ad985ebcae53e247f21f3a74391271
|
|
4
|
+
data.tar.gz: 3fd9c20b6f94d9c0d4b249eb4e281b8436cca651b7befe3614774c568393333f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 402dada65b81ede0f6125cd52a0595c5a44760fc115b5ad5a434d85dad51d7c6e8001256e76db3183d21c5cf67b6a83d85e511e6608505077d8d1170219f16c7
|
|
7
|
+
data.tar.gz: a8f4cf88e952d7903178aa02b8f402c42277fbfa9f70ffefcb9d970aceac5de2c29b85ef20967d2ff58a2d218e87a157105fcb6c2b479cd162c5f2c219eed0d1
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Love Wins Media, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# retcon
|
|
2
|
+
|
|
3
|
+
[](https://github.com/lwm-luminx/retcon/actions/workflows/ci.yml)
|
|
4
|
+
[](https://rubygems.org/gems/retcon)
|
|
5
|
+
|
|
6
|
+
**Retroactive continuity for Active Record:** change the past without breaking the story.
|
|
7
|
+
|
|
8
|
+
retcon adds a VCS-style layer to Active Record so many people can edit shared records with full attribution, and
|
|
9
|
+
damage (bad deletes, misinformation, bad actors) can be repaired without losing the good work that came after it.
|
|
10
|
+
|
|
11
|
+
> **Status: 0.0.1 reserves the name.** Nothing is implemented yet. The design is in review; the first working release
|
|
12
|
+
> follows once it is approved.
|
|
13
|
+
|
|
14
|
+
## The idea
|
|
15
|
+
|
|
16
|
+
- **History is the source of truth.** Each versioned table has a history table of immutable field-level versions:
|
|
17
|
+
value, actor, changeset, schema version and base version.
|
|
18
|
+
- **Live tables stay fast.** They are a projection of history, written in the same transaction, so reads don't change
|
|
19
|
+
and any live row can be rebuilt from history.
|
|
20
|
+
- **Changesets group changes.** A direct edit is an applied changeset; a proposal is an unapplied changeset against a
|
|
21
|
+
base version, reviewed before it applies (like a pull request).
|
|
22
|
+
- **Field-level conflicts.** A stale edit or proposal conflicts only on fields that changed since its base.
|
|
23
|
+
- **Tombstones, not deletes.** Removed rows and edges come back with their history.
|
|
24
|
+
- **Repair.** Reverting an actor's changes drops them and keeps later changes; only same-field overlaps go to review.
|
|
25
|
+
Reverts are changesets too, so they can be undone.
|
|
26
|
+
- **Redaction.** Scrub a value from every version it appears in, or pseudonymize an editor, with salted per-field
|
|
27
|
+
commitments so history still verifies.
|
|
28
|
+
- **Policy is yours.** Trust tiers, review routing and matching rules plug in as adapters.
|
|
29
|
+
|
|
30
|
+
Graph edges (subject, predicate, object) are versioned rows too, and walk with
|
|
31
|
+
[graph_query](https://github.com/lwm-luminx/graph_query).
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT. See [LICENSE.txt](LICENSE.txt).
|
data/lib/retcon.rb
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'retcon/version'
|
|
4
|
+
|
|
5
|
+
# VCS-style history for Active Record: field-level versions, changesets, proposals and reverts, with live tables kept
|
|
6
|
+
# as a fast projection of history. This release reserves the name; nothing is implemented yet. See README.md.
|
|
7
|
+
module Retcon
|
|
8
|
+
class Error < StandardError; end
|
|
9
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: retcon
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Love Wins Media, Inc.
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: 'Field-level version history for Active Record models, kept in per-table
|
|
13
|
+
history tables with live tables as a fast projection: changesets with full attribution,
|
|
14
|
+
proposals reviewed before they apply, field-level conflicts, tombstones instead
|
|
15
|
+
of deletes, reverts of one actor''s changes that keep later good work, and redaction.
|
|
16
|
+
Early release: the name is reserved and the design is in review.'
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- CHANGELOG.md
|
|
22
|
+
- LICENSE.txt
|
|
23
|
+
- README.md
|
|
24
|
+
- lib/retcon.rb
|
|
25
|
+
- lib/retcon/version.rb
|
|
26
|
+
homepage: https://github.com/lwm-luminx/retcon
|
|
27
|
+
licenses:
|
|
28
|
+
- MIT
|
|
29
|
+
metadata:
|
|
30
|
+
rubygems_mfa_required: 'true'
|
|
31
|
+
source_code_uri: https://github.com/lwm-luminx/retcon
|
|
32
|
+
changelog_uri: https://github.com/lwm-luminx/retcon/blob/main/CHANGELOG.md
|
|
33
|
+
bug_tracker_uri: https://github.com/lwm-luminx/retcon/issues
|
|
34
|
+
rdoc_options: []
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '3.3'
|
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
requirements: []
|
|
48
|
+
rubygems_version: 4.0.20
|
|
49
|
+
specification_version: 4
|
|
50
|
+
summary: VCS-style history, proposals and reverts for Active Record
|
|
51
|
+
test_files: []
|