feat: adopt local SQLite engineering memory and quality gates
This commit is contained in:
+17
-14
@@ -26,7 +26,7 @@ aie_without_git() {
|
||||
mkdir plain
|
||||
cd plain
|
||||
printf 'Existing source\n' > main.txt
|
||||
aie_without_git init --name 'Simple Project' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'Simple Project' > init.yaml
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Continue application' --goal 'Preserve local context' > work.yaml
|
||||
aie_without_git work list --open --format table > works-table.txt
|
||||
grep -q 'WRK-0001' works-table.txt
|
||||
@@ -48,9 +48,9 @@ grep -q '^WRK-0001,CREATE_PLAN,' actions.csv
|
||||
aie_without_git project compatibility --format json > compatibility.json
|
||||
grep -q '"state" : "CURRENT"' compatibility.json
|
||||
grep -q '"migrationRequired" : false' compatibility.json
|
||||
grep -q '"protocolVersion": 3' .ai-engineering/protocol.json
|
||||
grep -q '"protocolVersion": 4' .ai-engineering/protocol.json
|
||||
cp .ai-engineering/protocol.json baseline-protocol.json
|
||||
sed 's/"protocolVersion": 3/"protocolVersion": 99/' baseline-protocol.json > .ai-engineering/protocol.json
|
||||
sed 's/"protocolVersion": 4/"protocolVersion": 99/' baseline-protocol.json > .ai-engineering/protocol.json
|
||||
cp .ai-engineering/protocol.json future-protocol.json
|
||||
if aie_without_git project compatibility --format json > future-compatibility.json; then
|
||||
echo 'Unsupported contract unexpectedly succeeded' >&2
|
||||
@@ -113,7 +113,7 @@ cd "$aie_fixture"
|
||||
# Creating a Plan promotes a draft without a model or direct human attestation.
|
||||
mkdir plan-promotion
|
||||
cd plan-promotion
|
||||
aie_without_git init --name 'Plan Promotion' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'Plan Promotion' > init.yaml
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Promote decision' > work.yaml
|
||||
aie_without_git decision draft WRK-0001 --title 'Chosen approach' --context 'Problem' \
|
||||
--approach 'Small implementation' --rationale 'Bounded scope' > draft.yaml
|
||||
@@ -143,7 +143,7 @@ cp -R "$aie_fixture/df-alpha" "$aie_fixture/df-alpha-before"
|
||||
cp -R "$aie_fixture/df-beta" "$aie_fixture/df-beta-before"
|
||||
mkdir "$aie_fixture/df-import"
|
||||
cd "$aie_fixture/df-import"
|
||||
aie_without_git init --name 'DF import destination' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'DF import destination' > init.yaml
|
||||
aie_df_args=(--source "alpha=$aie_fixture/df-alpha" --source "beta=$aie_fixture/df-beta"
|
||||
--target alpha=runtime --target alpha=docs --target beta=studio --format json)
|
||||
aie_without_git import discussion "${aie_df_args[@]}" > preview.json
|
||||
@@ -175,7 +175,7 @@ cd "$aie_fixture"
|
||||
# A single Git repository can contain both the source and protocol workspace.
|
||||
git init -q single
|
||||
cd single
|
||||
"$aie_binary" init --name 'Single Repository' > init.yaml
|
||||
"$aie_binary" init --storage legacy --name 'Single Repository' > init.yaml
|
||||
"$aie_binary" repo add app --path . > repo.yaml
|
||||
"$aie_binary" work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Inspect application' --repo app > work.yaml
|
||||
"$aie_binary" work context WRK-0001 --format json > before.json
|
||||
@@ -193,7 +193,7 @@ echo 'Native simple-project continuity smoke passed (without Git and with one ro
|
||||
# Work numbers are hexadecimal; child counters still use decimal.
|
||||
mkdir hexadecimal
|
||||
cd hexadecimal
|
||||
aie_without_git init --name 'Hexadecimal Works' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'Hexadecimal Works' > init.yaml
|
||||
for aie_number in {1..16}; do
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" "Work $aie_number" > "work-$aie_number.yaml"
|
||||
done
|
||||
@@ -218,7 +218,7 @@ cd "$aie_fixture"
|
||||
# Reserve all old decimal spellings, including removed Works, when upgrading counters.
|
||||
mkdir legacy-counter
|
||||
cd legacy-counter
|
||||
aie_without_git init --name 'Legacy reservations' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'Legacy reservations' > init.yaml
|
||||
printf 'schemaVersion: 1\nlastWork: 16\n' > .ai-engineering/works/.sequence.yaml
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'After legacy reservation' > work.yaml
|
||||
grep -q 'id: "WRK-0017"' work.yaml
|
||||
@@ -231,7 +231,7 @@ echo 'Native hexadecimal Work identifiers and legacy reservations smoke passed.'
|
||||
# Exercise the refinement contract with two fixture adapters and fresh processes.
|
||||
mkdir refinement
|
||||
cd refinement
|
||||
aie_without_git init --name 'Refinement fixture' --general-adapter fixture-general \
|
||||
aie_without_git init --storage legacy --name 'Refinement fixture' --general-adapter fixture-general \
|
||||
--archive-policy reversible > init.yaml
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Compare ideas' > work.yaml
|
||||
printf 'Rendering: measure layers\nInput: compare controls\n' > ideas.md
|
||||
@@ -326,7 +326,7 @@ export AIE_CODEX_EXECUTABLE="$aie_fixture/providers/codex"
|
||||
export AIE_CLAUDE_EXECUTABLE="$aie_fixture/providers/claude"
|
||||
cd local-cli
|
||||
printf '1\ngeneral\ndefault\n5\n1\n3\nreviewer\ndefault\n5\n1\n' > setup.txt
|
||||
aie_without_git init . --name 'Native CLI fixture' --interactive --input-file setup.txt > setup.yaml
|
||||
aie_without_git init --storage legacy . --name 'Native CLI fixture' --interactive --input-file setup.txt > setup.yaml
|
||||
aie_without_git agent doctor --format json > doctor.json
|
||||
grep -q '"compatible" : true' doctor.json
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Provider protocol' > work.yaml
|
||||
@@ -354,7 +354,7 @@ echo 'Native local-CLI transport smoke passed (controlled subprocess fixtures, g
|
||||
# EPIC state control is entirely deterministic and does not need configured agents.
|
||||
mkdir epic-coordination
|
||||
cd epic-coordination
|
||||
aie_without_git init --name 'EPIC coordination fixture' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'EPIC coordination fixture' > init.yaml
|
||||
for aie_title in Parent Required Cancelled Optional; do
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" "$aie_title" --acceptance 'Reviewed fixture result' > "$aie_title.yaml"
|
||||
done
|
||||
@@ -427,7 +427,7 @@ for aie_repo in runtime studio; do
|
||||
git -C "$aie_repo" -c user.name=Fixture -c user.email=fixture@example.invalid \
|
||||
commit -q --allow-empty -m fixture
|
||||
done
|
||||
"$aie_binary" init --name 'Continuity Experiment' > init.yaml
|
||||
"$aie_binary" init --storage legacy --name 'Continuity Experiment' > init.yaml
|
||||
"$aie_binary" repo add runtime --path runtime --language rust > runtime.yaml
|
||||
"$aie_binary" repo add studio --path studio --language java > studio.yaml
|
||||
"$aie_binary" work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Improve scene editor' --repo runtime --repo studio \
|
||||
@@ -521,7 +521,7 @@ echo 'Native operational-cycle smoke passed (discovery, approval, plan, evidence
|
||||
# Automatic consolidation across independent native processes without Git/JVM/models.
|
||||
mkdir "$aie_fixture/plan-consolidation"
|
||||
cd "$aie_fixture/plan-consolidation"
|
||||
aie_without_git init --name 'Plan consolidation' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'Plan consolidation' > init.yaml
|
||||
aie_without_git work create --mode DIRECT --approval WAIVED --human-approved --choice-reason "Explicit synthetic fixture policy" 'Delivery' > work.yaml
|
||||
printf 'Synthetic executed result\n' > result.txt
|
||||
aie_without_git artifact add WRK-0001 --file result.txt --purpose 'Fixture execution' > evidence.yaml
|
||||
@@ -559,7 +559,7 @@ echo 'Native Plan consolidation smoke passed (multiple Plans, reviewed cancellat
|
||||
# Human conduct and optional OODA across fresh native processes without Git/JVM/model.
|
||||
mkdir "$aie_fixture/work-guidance"
|
||||
cd "$aie_fixture/work-guidance"
|
||||
aie_without_git init --name 'Human conduct and experiments' > init.yaml
|
||||
aie_without_git init --storage legacy --name 'Human conduct and experiments' > init.yaml
|
||||
aie_without_git work create 'Explicit human control' > unspecified.yaml
|
||||
aie_without_git next-actions WRK-0001 --format json > unspecified-actions.json
|
||||
grep -q ASK_DISCUSSION_MODE unspecified-actions.json
|
||||
@@ -624,3 +624,6 @@ aie_without_git project validate --format json > validation.json
|
||||
grep -q '"valid" : true' validation.json
|
||||
echo 'Native Work guidance/OODA smoke passed (human mode/request/approval, explicit waiver, criteria, evidence, independent execution and approved DEC revision).'
|
||||
if [[ "${AIE_KEEP_FIXTURE:-0}" == 1 ]]; then echo "Fixture retained: $aie_fixture"; fi
|
||||
|
||||
# Exercise the default SQLite backend, gates and migration separately from legacy fixtures.
|
||||
bash "$aie_source_root/scripts/native-sqlite-smoke.sh" "$aie_binary"
|
||||
|
||||
Reference in New Issue
Block a user